Browse Source

Pull request #3739: BI-145829 fix: DownListCombo,getValue方法在popupView未创建时,取options.value

Merge in VISUAL/fineui from ~OLIVER.KE/fineui:master to master

* commit '635933d55effb231f6d9afab5fcfe776e8ab61b5':
  Revert "BI-145126 fix: DownListCombo的isDefaultInit默认值设置为false"
  BI-145829 fix: DownListCombo,getValue方法在popupView未创建时,取options.value
master
Oliver.Ke-柯键基 2 months ago committed by Dailer-刘荣歆
parent
commit
5596d9424a
  1. 10
      packages/fineui/src/widget/downlist/combo.downlist.js

10
packages/fineui/src/widget/downlist/combo.downlist.js

@ -1,4 +1,4 @@
import { cloneDeep, createWidget, each, extend, isArray, shortcut, some, Widget } from "@/core";
import { cloneDeep, createWidget, each, extend, isArray, isNull, shortcut, some, Widget } from "@/core";
import { DownListPopup } from "./popup.downlist";
import { Combo } from "@/base";
import { IconTrigger } from "@/case";
@ -52,7 +52,7 @@ export class DownListCombo extends Widget {
minWidth: 140,
maxHeight: 1000,
destroyWhenHide: false,
isDefaultInit: false,
isDefaultInit: true,
});
}
@ -134,7 +134,11 @@ export class DownListCombo extends Widget {
}
getValue() {
return this.popupView.getValue();
if (isNull(this.popupView)) {
return this.options.value;
} else {
return this.popupView.getValue();
}
}
adjustWidth() {

Loading…
Cancel
Save