From 916029f75eeb94ed1746953057c3982218d83f46 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 27 Jan 2021 16:26:45 +0800 Subject: [PATCH] =?UTF-8?q?BI-81001=20fix:=20=E4=BF=AE=E6=AD=A3=E5=B9=B4?= =?UTF-8?q?=E5=AD=A3=E5=BA=A6=E6=8E=A7=E4=BB=B6=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/yearquarter/card.dynamic.yearquarter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/yearquarter/card.dynamic.yearquarter.js b/src/widget/yearquarter/card.dynamic.yearquarter.js index 45edb3579..f78b73ecc 100644 --- a/src/widget/yearquarter/card.dynamic.yearquarter.js +++ b/src/widget/yearquarter/card.dynamic.yearquarter.js @@ -8,7 +8,7 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { props: { - baseCls: "bi-year-month-card" + baseCls: "bi-year-quarter-card" }, render: function () { @@ -78,7 +78,7 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { case BI.DynamicDateCard.TYPE.YEAR: valueMap.year = (value.offset === 0 ? -value.value : +value.value); break; - case BI.DynamicDateCard.TYPE.MONTH: + case BI.DynamicDateCard.TYPE.QUARTER: valueMap.quarter = (value.offset === 0 ? -value.value : +value.value); break; default: @@ -108,7 +108,7 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { }, setValue: function (v) { - v = v || {year: 0, month: 0}; + v = v || {year: 0, quarter: 0}; this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year)); this.quarter.setValue(this._createValue(BI.DynamicDateCard.TYPE.QUARTER, v.quarter)); },