Browse Source

Pull request #1359: 无JIRA任务 标红类单选框setValue为空字符串会标红

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '42b499e14ebf19666dcb533c9b3c11483c21f212':
  无JIRA任务 标红类单选框setValue为空字符串会标红
es6
windy 4 years ago
parent
commit
8e0ea77ad5
  1. 1
      changelog.md
  2. 2
      src/case/combo/icontextvaluecombo/combo.icontextvalue.js
  3. 2
      src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js
  4. 2
      src/case/combo/textvaluecombo/combo.textvalue.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-06)
- 修复了单选标红combo类setValue为空字符串会标红的问题
- BI.history提供与注册路由对应的卸载路由方法unRoute
- 修复了单选标红combo类setValue为空和空数组行为不一致的问题
- 单选列表支持新增选项

2
src/case/combo/icontextvaluecombo/combo.icontextvalue.js

@ -67,7 +67,7 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v)) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {

2
src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js

@ -124,7 +124,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v)) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {

2
src/case/combo/textvaluecombo/combo.textvalue.js

@ -62,7 +62,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v)) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {

Loading…
Cancel
Save