diff --git a/demo/version.js b/demo/version.js index f3a196808b..ea3899e242 100644 --- a/demo/version.js +++ b/demo/version.js @@ -159,5 +159,6 @@ BI.i18n = { "BI-Microsoft_YaHei": "微软雅黑", "BI-Apple_Light": "苹方-light", "BI-Font_Family": "字体", - "BI-Basic_Please_Input_Content": "请输入内容" + "BI-Basic_Please_Input_Content": "请输入内容", + "BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值" }; \ No newline at end of file diff --git a/src/widget/singleslider/singleslider.js b/src/widget/singleslider/singleslider.js index 46c6cd920b..1d684cc077 100644 --- a/src/widget/singleslider/singleslider.js +++ b/src/widget/singleslider/singleslider.js @@ -315,7 +315,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { if (!isNaN(this.min) && !isNaN(this.max)) { this._setVisible(true); this.enable = true; - this.label.setErrorText(BI.i18nText("BI-Please_Enter") + this.min + "-" + this.max + BI.i18nText("BI-Basic_De") + BI.i18nText("BI-Basic_Number")); + this.label.setErrorText(BI.i18nText("BI-Basic_Please_Enter_Number_Between", this.min, this.max)); if (BI.isNumeric(this.value) || BI.isNotEmptyString(this.value)) { this.label.setValue(this.value); this._setAllPosition(this._getPercentByValue(this.value));