SOURCE

console 命令行工具 X clear

                    
>
console
<div class="chartItem">
	<div class="wrap-top">
		<div class="title">成交金额(元)</div>
		<div class="wrap-switchDate">
			<div class="week active" @click="clickSwitchDate(1, 0)">
				周
			</div>
			<div class="month" @click="clickSwitchDate(1, 1)">
				月
			</div>
		</div>
	</div>
	<div ref="chart2" class="chart"></div>
</div>
.chartItem {
    background-color: rgba(249, 249, 249, 0.7);
    padding: 16px;
    width: 366px;
    margin-top: 24px;
    &:not(: first-child) {
        margin-left: 26px;
    }
    .wrap-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .title {
            font-size: 16px;
            font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
            font-weight: bold;
            color: #666666;
        }
        .wrap-switchDate {
            display: flex;
            align-items: center;
            .week {
                border-radius: 90px 0px 0px 90px;
            }
            .month {
                border-radius: 0px 90px 90px 0px;
                border-left: none;
            }
            .week,
            .month {
                width: 40px;
                height: 24px;
                line-height: 24px;
                text-align: center;
                background: #ffffff;
                border: 1px solid #dcdfe6;
                font-size: 14px;
                font-family: MicrosoftYaHei;
                color: #999999;
                border: 1px solid #dcdfe6;
                cursor: pointer;
                &.active {
                    background: #07c160;
                    font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
                    font-weight: bold;
                    color: #ffffff;
                    border: none;
                }
            }
        }
    }
    .chart {
        width: 366px;
        height: 300px;
        margin-top: -26px;
        padding-bottom: 16px;
        box-sizing: content-box;
    }
}