Browse Source

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

research/test
Oliver.Ke 8 months ago
parent
commit
60f5a7a05c
  1. 6
      packages/fineui/src/widget/downlist/combo.downlist.js

6
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";
@ -134,8 +134,12 @@ export class DownListCombo extends Widget {
}
getValue() {
if (isNull(this.popupView)) {
return this.options.value;
} else {
return this.popupView.getValue();
}
}
adjustWidth() {
this.downlistcombo.adjustWidth();

Loading…
Cancel
Save