Browse Source

Pull request #3502: 无JIRA fix: button_group选中问题

Merge in VISUAL/fineui from ~DAILER/fineui:es6 to es6

* commit '791b2858c0236fcaa868dbeeecaa42dc83400062':
  update
  无JIRA fix: button_group选中问题
es6
Dailer-刘荣歆 2 years ago
parent
commit
14331b4fcc
  1. 3
      .gitignore
  2. 6
      packages/fineui/src/base/combination/group.button.js

3
.gitignore vendored

@ -2,4 +2,5 @@ node_modules
packages/demo/dist
packages/fineui/dist/*
!packages/fineui/dist/font
!packages/fineui/dist/images
!packages/fineui/dist/images
.idea/

6
packages/fineui/src/base/combination/group.button.js

@ -42,7 +42,7 @@ export class ButtonGroup extends Widget {
static xtype = "bi.button_group";
static EVENT_CHANGE = "EVENT_CHANGE";
static CHOOSE_TYPE_SINGLE = Selection.Single;
static CHOOSE_TYPE_MULTI = Selection.Multi;
static CHOOSE_TYPE_ALL = Selection.All;
@ -86,8 +86,8 @@ export class ButtonGroup extends Widget {
this.setValue(newValue);
})
: value;
if (isKey(value) || isNotEmptyArray(value)) {
this.setValue(value);
if (isKey(this.options.value) || isNotEmptyArray(this.options.value)) {
this.setValue(this.options.value);
}
}

Loading…
Cancel
Save