Browse Source

Merge pull request #386 in FUI/fineui from ~YOUNG/fineui:master to master

* commit '0afd686d32f962c2facdf11567cad659e2702fc2':
  BI-20297 将fineui的滑块控件国际化处理一下
es6
guy 7 years ago
parent
commit
c80989a6d9
  1. 3
      demo/version.js
  2. 2
      src/widget/singleslider/singleslider.js

3
demo/version.js

@ -159,5 +159,6 @@ BI.i18n = {
"BI-Microsoft_YaHei": "微软雅黑", "BI-Microsoft_YaHei": "微软雅黑",
"BI-Apple_Light": "苹方-light", "BI-Apple_Light": "苹方-light",
"BI-Font_Family": "字体", "BI-Font_Family": "字体",
"BI-Basic_Please_Input_Content": "请输入内容" "BI-Basic_Please_Input_Content": "请输入内容",
"BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值"
}; };

2
src/widget/singleslider/singleslider.js

@ -315,7 +315,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
if (!isNaN(this.min) && !isNaN(this.max)) { if (!isNaN(this.min) && !isNaN(this.max)) {
this._setVisible(true); this._setVisible(true);
this.enable = 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)) { if (BI.isNumeric(this.value) || BI.isNotEmptyString(this.value)) {
this.label.setValue(this.value); this.label.setValue(this.value);
this._setAllPosition(this._getPercentByValue(this.value)); this._setAllPosition(this._getPercentByValue(this.value));

Loading…
Cancel
Save