Browse Source

Revert "Pull request #16: Feature/x"

This reverts commit 50477a38e8, reversing
changes made to deddfff869.
master
翠屏山最速下山传说 3 months ago
parent
commit
5a053e72ce
  1. 2
      packages/fineui/package.json
  2. 9
      packages/fineui/src/base/combination/tab.js
  3. 9
      packages/fineui/src/base/single/input/radio/radio.js
  4. 1
      packages/fineui/src/case/toolbar/toolbar.multiselect.js
  5. 4
      packages/fineui/src/case/ztree/asynctree.js
  6. 5
      packages/fineui/src/core/utils/dom.js
  7. 7
      packages/fineui/src/less/base/tree/ztree.less
  8. 7
      packages/fineui/src/widget/downlist/combo.downlist.js
  9. 24
      packages/fineui/src/widget/dynamicdate/dynamicdate.combo.js
  10. 28
      packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js
  11. 28
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.js
  12. 2
      packages/fineui/src/widget/multiselect/multiselect.insert.trigger.js
  13. 2
      packages/fineui/src/widget/multiselect/multiselect.trigger.js
  14. 4
      packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js
  15. 4
      packages/fineui/src/widget/multiselect/trigger/switcher.checkselected.js
  16. 57
      packages/fineui/src/widget/multitree/multi.tree.combo.js
  17. 4
      packages/fineui/src/widget/multitree/multi.tree.popup.js
  18. 4
      packages/fineui/src/widget/multitree/trigger/searcher.multi.tree.js
  19. 25
      packages/fineui/src/widget/singleselect/singleselect.insert.combo.js
  20. 4
      packages/fineui/src/widget/singleselect/trigger/searcher.singleselect.js
  21. 11
      packages/fineui/src/widget/textvaluedownlistcombo/combo.textvaluedownlist.js
  22. 18
      packages/fineui/src/widget/timeinterval/dateinterval.js
  23. 18
      packages/fineui/src/widget/timeinterval/timeinterval.js
  24. 24
      packages/fineui/src/widget/year/combo.year.js
  25. 24
      packages/fineui/src/widget/yearmonth/combo.yearmonth.js
  26. 18
      packages/fineui/src/widget/yearmonthinterval/yearmonthinterval.js
  27. 24
      packages/fineui/src/widget/yearquarter/combo.yearquarter.js
  28. 1
      packages/fineui/typescript/index.ts
  29. 3
      packages/fineui/typescript/widget/downlist/combo.downlist.ts
  30. 6
      packages/fineui/typescript/widget/dynamicdate/dynamicdate.combo.ts
  31. 4
      packages/fineui/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts
  32. 10
      packages/fineui/typescript/widget/multiselect/multiselect.insert.combo.ts
  33. 19
      packages/fineui/typescript/widget/multiselect/switcher.checkselected.ts
  34. 12
      packages/fineui/typescript/widget/multitree/multi.tree.combo.ts
  35. 3
      packages/fineui/typescript/widget/multitree/multi.tree.popup.ts
  36. 5
      packages/fineui/typescript/widget/singleselect/singleselect.insert.combo.ts
  37. 9
      packages/fineui/typescript/widget/textvaluedownlistcombo/combo.textvaluedownlist.ts
  38. 13
      packages/fineui/typescript/widget/timeinterval/dateinterval.ts
  39. 11
      packages/fineui/typescript/widget/timeinterval/timeinterval.ts
  40. 7
      packages/fineui/typescript/widget/year/combo.year.ts
  41. 7
      packages/fineui/typescript/widget/yearmonth/combo.yearmonth.ts
  42. 11
      packages/fineui/typescript/widget/yearmonthinterval/yearmonthinterval.ts
  43. 7
      packages/fineui/typescript/widget/yearquarter/combo.yearquarter.ts

2
packages/fineui/package.json

@ -60,4 +60,4 @@
"core-js": "^3.37.1", "core-js": "^3.37.1",
"cross-env": "^7.0.3" "cross-env": "^7.0.3"
} }
} }

9
packages/fineui/src/base/combination/tab.js

@ -13,8 +13,7 @@ import {
contains, contains,
any, any,
isEqual, isEqual,
LogicFactory, LogicFactory
Events,
} from "@/core"; } from "@/core";
/** /**
@ -107,11 +106,7 @@ export class Tab extends Widget {
Widget.execWithContext(this, () => { Widget.execWithContext(this, () => {
this.cardMap[v] = cardCreator(v); this.cardMap[v] = cardCreator(v);
}); });
const card = this.layout.addCardByName(v, this.cardMap[v]); this.layout.addCardByName(v, this.cardMap[v]);
card.on(Events.DESTROY, () => {
this.layout.deleteCardByName(v);
delete this.cardMap[v];
});
} }
} }

9
packages/fineui/src/base/single/input/radio/radio.js

@ -56,4 +56,13 @@ export class Radio extends BasicButton {
this.fireEvent(Radio.EVENT_CHANGE); this.fireEvent(Radio.EVENT_CHANGE);
} }
} }
setSelected(b) {
super.setSelected(b);
if (b) {
this.radio.element.addClass("bi-high-light-background");
} else {
this.radio.element.removeClass("bi-high-light-background");
}
}
} }

1
packages/fineui/src/case/toolbar/toolbar.multiselect.js

@ -126,7 +126,6 @@ export class MultiSelectBar extends BasicButton {
} }
setSelected(v) { setSelected(v) {
super.setSelected(v);
this.checkbox.setSelected(v); this.checkbox.setSelected(v);
this.setHalfSelected(false); this.setHalfSelected(false);
} }

4
packages/fineui/src/case/ztree/asynctree.js

@ -221,11 +221,15 @@ export class AsyncTree extends TreeView {
{ {
el: { el: {
type: IconLabel.xtype, type: IconLabel.xtype,
width: 20,
height: 20,
cls: "button-loading-font anim-rotate bi-card", cls: "button-loading-font anim-rotate bi-card",
ref: ref => { ref: ref => {
loadingIcon = ref; loadingIcon = ref;
}, },
}, },
left: 5,
top: 5,
}, },
], ],
}); });

5
packages/fineui/src/core/utils/dom.js

@ -743,13 +743,12 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap
} }
if (needAdaptHeight === true && popup.resetHeight) { if (needAdaptHeight === true && popup.resetHeight) {
const comboRect = combo.element[0].getBoundingClientRect(); const comboRect = combo.element[0].getBoundingClientRect();
const scale = comboRect.height === 0 ? 1 : comboRect.height / combo.element.height();
const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0; const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0;
const positionTop = position.top + relativeOffset; const positionTop = position.top + relativeOffset;
if (positionTop < comboRect.top) { if (positionTop < comboRect.top) {
popup.resetHeight(Math.min((viewportBounds.height - positionTop) / scale, comboRect.top / scale, maxHeight)); popup.resetHeight(Math.min(viewportBounds.height - positionTop, comboRect.top, maxHeight));
} else if (positionTop >= comboRect.bottom) { } else if (positionTop >= comboRect.bottom) {
popup.resetHeight(Math.min((viewportBounds.height - positionTop) / scale, (viewportBounds.height - comboRect.bottom) / scale, maxHeight)); popup.resetHeight(Math.min(viewportBounds.height - positionTop, viewportBounds.height - comboRect.bottom, maxHeight));
} }
} }

7
packages/fineui/src/less/base/tree/ztree.less

@ -335,10 +335,3 @@
margin-right: 2px; margin-right: 2px;
vertical-align: top; vertical-align: top;
} }
.ztree .button-loading-font {
.use-scale(width, 20px);
.use-scale(height, 20px);
.use-scale(left, 5px);
.use-scale(top, 5px);
}

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

@ -108,9 +108,6 @@ export class DownListCombo extends Widget {
stopPropagation: o.stopPropagation, stopPropagation: o.stopPropagation,
maxHeight: o.maxHeight, maxHeight: o.maxHeight,
minWidth: o.minWidth, minWidth: o.minWidth,
ref: (ref) => {
this.popup = ref;
},
...o.popup, ...o.popup,
}, },
}); });
@ -128,10 +125,6 @@ export class DownListCombo extends Widget {
this.downlistcombo.showView(e); this.downlistcombo.showView(e);
} }
getPopup() {
return this.popup;
}
populate(items) { populate(items) {
this.popupView.populate(items); this.popupView.populate(items);
} }

24
packages/fineui/src/widget/dynamicdate/dynamicdate.combo.js

@ -208,7 +208,7 @@ export class DynamicDateCombo extends Single {
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
ref: _ref => { ref: _ref => {
this.popupEl = _ref; this.popup = _ref;
}, },
listeners: [ listeners: [
{ {
@ -238,7 +238,7 @@ export class DynamicDateCombo extends Single {
{ {
eventName: DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, eventName: DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,
action: () => { action: () => {
const value = this.popupEl.getValue(); const value = this.popup.getValue();
if (this._checkValue(value)) { if (this._checkValue(value)) {
this.setValue(value); this.setValue(value);
} }
@ -249,7 +249,7 @@ export class DynamicDateCombo extends Single {
{ {
eventName: DynamicDatePopup.EVENT_CHANGE, eventName: DynamicDatePopup.EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicDateCombo.EVENT_CONFIRM); this.fireEvent(DynamicDateCombo.EVENT_CONFIRM);
}, },
@ -262,10 +262,6 @@ export class DynamicDateCombo extends Single {
} }
], ],
}, },
ref: (ref) => {
this.popup = ref;
},
...opts.popup,
}, },
// // DEC-4250 和复选下拉一样,点击triggerBtn不默认收起 // // DEC-4250 和复选下拉一样,点击triggerBtn不默认收起
// hideChecker: function (e) { // hideChecker: function (e) {
@ -275,9 +271,9 @@ export class DynamicDateCombo extends Single {
{ {
eventName: Combo.EVENT_BEFORE_POPUPVIEW, eventName: Combo.EVENT_BEFORE_POPUPVIEW,
action: () => { action: () => {
this.popupEl.setMinDate(opts.minDate); this.popup.setMinDate(opts.minDate);
this.popupEl.setMaxDate(opts.maxDate); this.popup.setMaxDate(opts.maxDate);
this.popupEl.setValue(this.storeValue); this.popup.setValue(this.storeValue);
this.fireEvent(DynamicDateCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(DynamicDateCombo.EVENT_BEFORE_POPUPVIEW);
}, },
} }
@ -336,14 +332,14 @@ export class DynamicDateCombo extends Single {
const o = this.options; const o = this.options;
o.minDate = minDate; o.minDate = minDate;
this.trigger.setMinDate(minDate); this.trigger.setMinDate(minDate);
this.popupEl && this.popupEl.setMinDate(minDate); this.popup && this.popup.setMinDate(minDate);
} }
setMaxDate(maxDate) { setMaxDate(maxDate) {
const o = this.options; const o = this.options;
o.maxDate = maxDate; o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate); this.trigger.setMaxDate(maxDate);
this.popupEl && this.popupEl.setMaxDate(maxDate); this.popup && this.popup.setMaxDate(maxDate);
} }
setValue(v) { setValue(v) {
@ -360,10 +356,6 @@ export class DynamicDateCombo extends Single {
return this.trigger.getKey(); return this.trigger.getKey();
} }
getPopup() {
return this.popup;
}
hidePopupView() { hidePopupView() {
this.combo.hideView(); this.combo.hideView();
} }

28
packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -216,7 +216,7 @@ export class DynamicDateTimeCombo extends Single {
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
ref: _ref => { ref: _ref => {
this.popupEl = _ref; this.popup = _ref;
}, },
listeners: [ listeners: [
{ {
@ -249,7 +249,7 @@ export class DynamicDateTimeCombo extends Single {
{ {
eventName: DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, eventName: DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,
action: () => { action: () => {
const value = this.popupEl.getValue(); const value = this.popup.getValue();
if (this._checkValue(value)) { if (this._checkValue(value)) {
this.setValue(value); this.setValue(value);
} }
@ -260,7 +260,7 @@ export class DynamicDateTimeCombo extends Single {
{ {
eventName: DynamicDateTimePopup.EVENT_CHANGE, eventName: DynamicDateTimePopup.EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicDateTimeCombo.EVENT_CONFIRM); this.fireEvent(DynamicDateTimeCombo.EVENT_CONFIRM);
} }
@ -271,20 +271,16 @@ export class DynamicDateTimeCombo extends Single {
this.fireEvent(DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW); this.fireEvent(DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
} }
} }
], ]
}, }
ref: (ref) => {
this.popup = ref;
},
...opts.popup,
}, },
listeners: [ listeners: [
{ {
eventName: Combo.EVENT_BEFORE_POPUPVIEW, eventName: Combo.EVENT_BEFORE_POPUPVIEW,
action: () => { action: () => {
this.popupEl.setMinDate(opts.minDate); this.popup.setMinDate(opts.minDate);
this.popupEl.setMaxDate(opts.maxDate); this.popup.setMaxDate(opts.maxDate);
this.popupEl.setValue(this.storeValue); this.popup.setValue(this.storeValue);
this.fireEvent(DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW);
} }
} }
@ -343,14 +339,14 @@ export class DynamicDateTimeCombo extends Single {
const o = this.options; const o = this.options;
o.minDate = minDate; o.minDate = minDate;
this.trigger.setMinDate(minDate); this.trigger.setMinDate(minDate);
this.popupEl && this.popupEl.setMinDate(minDate); this.popup && this.popup.setMinDate(minDate);
} }
setMaxDate(maxDate) { setMaxDate(maxDate) {
const o = this.options; const o = this.options;
o.maxDate = maxDate; o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate); this.trigger.setMaxDate(maxDate);
this.popupEl && this.popupEl.setMaxDate(maxDate); this.popup && this.popup.setMaxDate(maxDate);
} }
setValue(v) { setValue(v) {
@ -367,10 +363,6 @@ export class DynamicDateTimeCombo extends Single {
return this.trigger.getKey(); return this.trigger.getKey();
} }
getPopup() {
return this.popup;
}
hidePopupView() { hidePopupView() {
this.combo.hideView(); this.combo.hideView();
} }

28
packages/fineui/src/widget/multiselect/multiselect.insert.combo.js

@ -47,15 +47,12 @@ export class MultiSelectInsertCombo extends Single {
static REQ_GET_ALL_DATA = "-1"; static REQ_GET_ALL_DATA = "-1";
static EVENT_FOCUS = "EVENT_FOCUS"; static EVENT_FOCUS = "EVENT_FOCUS";
static EVENT_BLUR = "EVENT_BLUR"; static EVENT_BLUR = "EVENT_BLUR";
static EVENT_START = "EVENT_START";
static EVENT_STOP = "EVENT_STOP"; static EVENT_STOP = "EVENT_STOP";
static EVENT_SEARCHING = "EVENT_SEARCHING"; static EVENT_SEARCHING = "EVENT_SEARCHING";
static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM";
static EVENT_CONFIRM = "EVENT_CONFIRM"; static EVENT_CONFIRM = "EVENT_CONFIRM";
static EVENT_ADD_ITEM = "EVENT_ADD_ITEM"; static EVENT_ADD_ITEM = "EVENT_ADD_ITEM";
static EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; static EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW = "EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW";
_defaultConfig() { _defaultConfig() {
return extend(super._defaultConfig(...arguments), { return extend(super._defaultConfig(...arguments), {
@ -65,8 +62,6 @@ export class MultiSelectInsertCombo extends Single {
height: 24, height: 24,
itemHeight: SIZE_CONSANTS.LIST_ITEM_HEIGHT, itemHeight: SIZE_CONSANTS.LIST_ITEM_HEIGHT,
allowEdit: true, allowEdit: true,
popup: {},
masker: {},
}); });
} }
@ -102,8 +97,6 @@ export class MultiSelectInsertCombo extends Single {
this.trigger = createWidget({ this.trigger = createWidget({
type: MultiSelectInsertTrigger.xtype, type: MultiSelectInsertTrigger.xtype,
popup: o.popup,
masker: o.masker,
allowEdit: o.allowEdit, allowEdit: o.allowEdit,
height: toPix(o.height, o.simple ? 1 : 2), height: toPix(o.height, o.simple ? 1 : 2),
text: o.text, text: o.text,
@ -129,7 +122,6 @@ export class MultiSelectInsertCombo extends Single {
this.trigger.on(MultiSelectInsertTrigger.EVENT_START, function() { this.trigger.on(MultiSelectInsertTrigger.EVENT_START, function() {
self._setStartValue(""); self._setStartValue("");
this.getSearcher().setValue(self.storeValue); this.getSearcher().setValue(self.storeValue);
self.fireEvent(MultiSelectInsertCombo.EVENT_START);
}); });
this.trigger.on(MultiSelectInsertTrigger.EVENT_STOP, () => { this.trigger.on(MultiSelectInsertTrigger.EVENT_STOP, () => {
self._setStartValue(""); self._setStartValue("");
@ -249,14 +241,12 @@ export class MultiSelectInsertCombo extends Single {
self.trigger.getSearcher().adjustView(); self.trigger.getSearcher().adjustView();
}); });
}, },
...o.popup,
}, },
value: o.value, value: o.value,
hideChecker(e) { hideChecker(e) {
return ( return (
triggerBtn.element.find(e.target).length === 0 && triggerBtn.element.find(e.target).length === 0 &&
size(self.numberCounter.getView()?.element.find(e.target)) === 0 && self.numberCounter.element.find(e.target).length === 0
size(self.trigger.getSearcher().getSearcher().getView()?.element.find(e.target)) === 0
); );
}, },
}); });
@ -269,7 +259,6 @@ export class MultiSelectInsertCombo extends Single {
nextTick(() => { nextTick(() => {
self._populate(); self._populate();
}); });
self.fireEvent(MultiSelectInsertCombo.EVENT_BEFORE_POPUPVIEW);
}); });
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件 // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
this.wants2Quit = false; this.wants2Quit = false;
@ -301,8 +290,6 @@ export class MultiSelectInsertCombo extends Single {
valueFormatter: o.valueFormatter, valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this), itemsCreator: bind(this._itemsCreator4Trigger, this),
value: o.value, value: o.value,
masker: o.masker,
popup: o.popup,
}); });
this.numberCounter.on(MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, () => { this.numberCounter.on(MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, () => {
if (!self.combo.isViewVisible()) { if (!self.combo.isViewVisible()) {
@ -311,7 +298,6 @@ export class MultiSelectInsertCombo extends Single {
}); });
this.numberCounter.on(MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function() { this.numberCounter.on(MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function() {
this.updateSelectedValue(self.storeValue); this.updateSelectedValue(self.storeValue);
self.fireEvent(MultiSelectInsertCombo.EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW);
}); });
this.numberCounter.on(Events.VIEW, b => { this.numberCounter.on(Events.VIEW, b => {
@ -569,16 +555,4 @@ export class MultiSelectInsertCombo extends Single {
this._populate(...arguments); this._populate(...arguments);
this.numberCounter.populateSwitcher(...arguments); this.numberCounter.populateSwitcher(...arguments);
} }
getPopup() {
return this.popup;
}
getNumberCounter() {
return this.numberCounter;
}
getTrigger() {
return this.trigger;
}
} }

2
packages/fineui/src/widget/multiselect/multiselect.insert.trigger.js

@ -50,7 +50,7 @@ export class MultiSelectInsertTrigger extends Trigger {
itemFormatter: o.itemFormatter, itemFormatter: o.itemFormatter,
itemHeight: o.itemHeight, itemHeight: o.itemHeight,
watermark: o.watermark, watermark: o.watermark,
popup: o.popup, popup: {},
adapter: o.adapter, adapter: o.adapter,
masker: o.masker, masker: o.masker,
value: o.value, value: o.value,

2
packages/fineui/src/widget/multiselect/multiselect.trigger.js

@ -50,7 +50,7 @@ export class MultiSelectTrigger extends Trigger {
valueFormatter: o.valueFormatter, valueFormatter: o.valueFormatter,
itemFormatter: o.itemFormatter, itemFormatter: o.itemFormatter,
watermark: o.watermark, watermark: o.watermark,
popup: o.popup, popup: {},
adapter: o.adapter, adapter: o.adapter,
masker: o.masker, masker: o.masker,
value: o.value, value: o.value,

4
packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js

@ -132,10 +132,6 @@ export class MultiSelectInsertSearcher extends Widget {
} }
} }
getSearcher() {
return this.searcher;
}
adjustView() { adjustView() {
this.searcher.adjustView(); this.searcher.adjustView();
} }

4
packages/fineui/src/widget/multiselect/trigger/switcher.checkselected.js

@ -80,10 +80,6 @@ export class MultiSelectCheckSelectedSwitcher extends Widget {
this.switcher.adjustView(); this.switcher.adjustView();
} }
getView() {
return this.switcher.getView();
}
hideView() { hideView() {
this.switcher.empty(); this.switcher.empty();
this.switcher.hideView(); this.switcher.hideView();

57
packages/fineui/src/widget/multitree/multi.tree.combo.js

@ -10,7 +10,7 @@ import {
VerticalAdaptLayout, VerticalAdaptLayout,
deepClone, deepClone,
Selection, Selection,
size SIZE_CONSANTS
} from "@/core"; } from "@/core";
import { Single, Combo } from "@/base"; import { Single, Combo } from "@/base";
import { MultiTreeSearcher } from "./trigger/searcher.multi.tree"; import { MultiTreeSearcher } from "./trigger/searcher.multi.tree";
@ -27,14 +27,12 @@ export class MultiTreeCombo extends Single {
static EVENT_FOCUS = "EVENT_FOCUS"; static EVENT_FOCUS = "EVENT_FOCUS";
static EVENT_BLUR = "EVENT_BLUR"; static EVENT_BLUR = "EVENT_BLUR";
static EVENT_START = "EVENT_START";
static EVENT_STOP = "EVENT_STOP"; static EVENT_STOP = "EVENT_STOP";
static EVENT_SEARCHING = "EVENT_SEARCHING"; static EVENT_SEARCHING = "EVENT_SEARCHING";
static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM";
static EVENT_CONFIRM = "EVENT_CONFIRM"; static EVENT_CONFIRM = "EVENT_CONFIRM";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; static EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
static EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW = "EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW";
_defaultConfig() { _defaultConfig() {
return extend(super._defaultConfig(...arguments), { return extend(super._defaultConfig(...arguments), {
@ -44,8 +42,6 @@ export class MultiTreeCombo extends Single {
height: 24, height: 24,
allowEdit: true, allowEdit: true,
isNeedAdjustWidth: true, isNeedAdjustWidth: true,
popup: {},
masker: {},
}); });
} }
@ -67,20 +63,23 @@ export class MultiTreeCombo extends Single {
this.storeValue = { value: o.value || {} }; this.storeValue = { value: o.value || {} };
this.trigger = createWidget({ this.trigger = createWidget({
type: MultiSelectTrigger.xtype, type: "bi.multi_select_trigger",
popup: o.popup,
masker: o.masker,
allowEdit: o.allowEdit, allowEdit: o.allowEdit,
height: toPix(o.height, o.simple ? 1 : 2), height: toPix(o.height, o.simple ? 1 : 2),
valueFormatter: o.valueFormatter, valueFormatter: o.valueFormatter,
text: o.text, text: o.text,
defaultText: o.defaultText, defaultText: o.defaultText,
watermark: o.watermark, watermark: o.watermark,
adapter: () => { masker: {
return this.popup.getView(); offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
}, },
searcher: { searcher: {
type: MultiTreeSearcher.xtype, type: "bi.multi_tree_searcher",
itemsCreator: o.itemsCreator, itemsCreator: o.itemsCreator,
listeners: [ listeners: [
{ {
@ -105,6 +104,8 @@ export class MultiTreeCombo extends Single {
type: MultiTreePopup.xtype, type: MultiTreePopup.xtype,
ref() { ref() {
self.popup = this; self.popup = this;
self.trigger.setAdapter(this);
self.numberCounter.setAdapter(this);
}, },
listeners: [ listeners: [
{ {
@ -159,16 +160,13 @@ export class MultiTreeCombo extends Single {
}); });
}, },
maxWidth: o.isNeedAdjustWidth ? "auto" : 500, maxWidth: o.isNeedAdjustWidth ? "auto" : 500,
...o.popup,
}, },
isNeedAdjustWidth: o.isNeedAdjustWidth, isNeedAdjustWidth: o.isNeedAdjustWidth,
value: { value: o.value || {} }, value: { value: o.value || {} },
hideChecker(e) { hideChecker(e) {
return ( return (
triggerBtn.element.find(e.target).length === 0 && triggerBtn.element.find(e.target).length === 0 &&
size(self.numberCounter.getView()?.element.find(e.target)) === 0 && self.numberCounter.element.find(e.target).length === 0
size(self.trigger.getSearcher().getSearcher().getView()?.element.find(e.target)) === 0 &&
self.trigger.getSearcher().getSearcher().getView()?.element[0] !== e.target
); );
}, },
}); });
@ -195,7 +193,6 @@ export class MultiTreeCombo extends Single {
self.storeValue = { value: self.combo.getValue() }; self.storeValue = { value: self.combo.getValue() };
this.setValue(self.storeValue); this.setValue(self.storeValue);
self.numberCounter.setValue(self.storeValue); self.numberCounter.setValue(self.storeValue);
self.fireEvent(MultiTreeCombo.EVENT_START);
}); });
this.trigger.on(MultiSelectTrigger.EVENT_STOP, function () { this.trigger.on(MultiSelectTrigger.EVENT_STOP, function () {
self.storeValue = { value: this.getValue() }; self.storeValue = { value: this.getValue() };
@ -298,18 +295,23 @@ export class MultiTreeCombo extends Single {
}); });
this.numberCounter = createWidget({ this.numberCounter = createWidget({
type: MultiSelectCheckSelectedSwitcher, type: "bi.multi_select_check_selected_switcher",
el: { el: {
// type: "bi.multi_tree_check_selected_button",
type: MultiTreeCheckSelectedButton.xtype, type: MultiTreeCheckSelectedButton.xtype,
}, },
popup: { popup: {
// type: "bi.multi_tree_check_pane",
type: MultiTreeCheckPane.xtype, type: MultiTreeCheckPane.xtype,
...o.popup,
}, },
adapter: () => { masker: {
return this.popup.getView(); offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
}, },
masker: o.masker,
itemsCreator: o.itemsCreator, itemsCreator: o.itemsCreator,
valueFormatter: o.valueFormatter, valueFormatter: o.valueFormatter,
value: { value: o.value || {} }, value: { value: o.value || {} },
@ -332,7 +334,6 @@ export class MultiTreeCombo extends Single {
want2showCounter = null; want2showCounter = null;
showCounter(); showCounter();
} }
this.fireEvent(MultiTreeCombo.EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW);
} }
); );
@ -442,16 +443,4 @@ export class MultiTreeCombo extends Single {
setWaterMark(v) { setWaterMark(v) {
this.trigger.setWaterMark(v); this.trigger.setWaterMark(v);
} }
getPopup() {
return this.popup;
}
getNumberCounter() {
return this.numberCounter;
}
getTrigger() {
return this.trigger;
}
} }

4
packages/fineui/src/widget/multitree/multi.tree.popup.js

@ -105,8 +105,4 @@ export class MultiTreePopup extends Pane {
resetWidth(w) { resetWidth(w) {
this.popupView.resetWidth(w); this.popupView.resetWidth(w);
} }
getView() {
return this.popupView.getView();
}
} }

4
packages/fineui/src/widget/multitree/trigger/searcher.multi.tree.js

@ -220,10 +220,6 @@ export class MultiTreeSearcher extends Widget {
return this.editor.getState(); return this.editor.getState();
} }
getSearcher() {
return this.searcher;
}
setValue(ob) { setValue(ob) {
this.setState(ob); this.setState(ob);
this.searcher.setValue(ob); this.searcher.setValue(ob);

25
packages/fineui/src/widget/singleselect/singleselect.insert.combo.js

@ -10,8 +10,7 @@ import {
isNotNull, isNotNull,
nextTick, nextTick,
AbsoluteLayout, AbsoluteLayout,
makeObject, makeObject
size
} from "@/core"; } from "@/core";
import { Single, Combo } from "@/base"; import { Single, Combo } from "@/base";
import { SingleSelectTrigger } from "./singleselect.trigger"; import { SingleSelectTrigger } from "./singleselect.trigger";
@ -26,12 +25,10 @@ export class SingleSelectInsertCombo extends Single {
static REQ_GET_ALL_DATA = -1; static REQ_GET_ALL_DATA = -1;
static EVENT_FOCUS = "EVENT_FOCUS"; static EVENT_FOCUS = "EVENT_FOCUS";
static EVENT_BLUR = "EVENT_BLUR"; static EVENT_BLUR = "EVENT_BLUR";
static EVENT_START = "EVENT_START";
static EVENT_STOP = "EVENT_STOP"; static EVENT_STOP = "EVENT_STOP";
static EVENT_SEARCHING = "EVENT_SEARCHING"; static EVENT_SEARCHING = "EVENT_SEARCHING";
static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; static EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM";
static EVENT_CONFIRM = "EVENT_CONFIRM"; static EVENT_CONFIRM = "EVENT_CONFIRM";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"
_defaultConfig() { _defaultConfig() {
return extend(super._defaultConfig(...arguments), { return extend(super._defaultConfig(...arguments), {
@ -43,8 +40,6 @@ export class SingleSelectInsertCombo extends Single {
height: 24, height: 24,
allowEdit: true, allowEdit: true,
watermark: i18nText("BI-Basic_Search_And_Patch_Paste"), watermark: i18nText("BI-Basic_Search_And_Patch_Paste"),
popup: {},
masker: {},
}); });
} }
@ -62,7 +57,6 @@ export class SingleSelectInsertCombo extends Single {
this.trigger = createWidget({ this.trigger = createWidget({
type: SingleSelectTrigger.xtype, type: SingleSelectTrigger.xtype,
masker: o.masker,
watermark: o.watermark, watermark: o.watermark,
height: toPix(o.height, o.simple ? 1 : 2), height: toPix(o.height, o.simple ? 1 : 2),
allowNoSelect: o.allowNoSelect, allowNoSelect: o.allowNoSelect,
@ -83,7 +77,6 @@ export class SingleSelectInsertCombo extends Single {
searcher: { searcher: {
popup: { popup: {
type: SingleSelectSearchInsertPane.xtype, type: SingleSelectSearchInsertPane.xtype,
...o.popup,
}, },
}, },
}); });
@ -98,7 +91,6 @@ export class SingleSelectInsertCombo extends Single {
this.trigger.on(SingleSelectTrigger.EVENT_START, function () { this.trigger.on(SingleSelectTrigger.EVENT_START, function () {
self._setStartValue(); self._setStartValue();
this.getSearcher().setValue(self.storeValue); this.getSearcher().setValue(self.storeValue);
self.fireEvent(SingleSelectInsertCombo.EVENT_START);
}); });
this.trigger.on(SingleSelectTrigger.EVENT_STOP, () => { this.trigger.on(SingleSelectTrigger.EVENT_STOP, () => {
self._setStartValue(); self._setStartValue();
@ -164,13 +156,9 @@ export class SingleSelectInsertCombo extends Single {
self.trigger.getSearcher().adjustView(); self.trigger.getSearcher().adjustView();
}); });
}, },
...o.popup,
}, },
hideChecker(e) { hideChecker(e) {
return ( return triggerBtn.element.find(e.target).length === 0;
triggerBtn.element.find(e.target).length === 0 &&
size(self.trigger.getSearcher().getSearcher().getView()?.element.find(e.target)) === 0
);
}, },
value: o.value, value: o.value,
}); });
@ -183,7 +171,6 @@ export class SingleSelectInsertCombo extends Single {
nextTick(() => { nextTick(() => {
self.populate(); self.populate();
}); });
self.fireEvent(SingleSelectInsertCombo .EVENT_BEFORE_POPUPVIEW);
}); });
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件 // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
this.wants2Quit = false; this.wants2Quit = false;
@ -274,12 +261,4 @@ export class SingleSelectInsertCombo extends Single {
populate() { populate() {
this.combo.populate(...arguments); this.combo.populate(...arguments);
} }
getPopup() {
return this.popup;
}
getTrigger() {
return this.trigger;
}
} }

4
packages/fineui/src/widget/singleselect/trigger/searcher.singleselect.js

@ -131,10 +131,6 @@ export class SingleSelectSearcher extends Widget {
return this.searcher.getView() && this.searcher.getView().hasChecked(); return this.searcher.getView() && this.searcher.getView().hasChecked();
} }
getSearcher() {
return this.searcher;
}
setAdapter(adapter) { setAdapter(adapter) {
this.searcher.setAdapter(adapter); this.searcher.setAdapter(adapter);
} }

11
packages/fineui/src/widget/textvaluedownlistcombo/combo.textvaluedownlist.js

@ -20,7 +20,6 @@ export class TextValueDownListCombo extends Widget {
static xtype = "bi.text_value_down_list_combo"; static xtype = "bi.text_value_down_list_combo";
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
_defaultConfig(config) { _defaultConfig(config) {
return extend(super._defaultConfig(...arguments), { return extend(super._defaultConfig(...arguments), {
@ -43,7 +42,6 @@ export class TextValueDownListCombo extends Widget {
this.combo = createWidget({ this.combo = createWidget({
type: DownListCombo.xtype, type: DownListCombo.xtype,
element: this, element: this,
container: o.container,
chooseType: Selection.Single, chooseType: Selection.Single,
adjustLength: 2, adjustLength: 2,
width: toPix(o.width, 2), width: toPix(o.width, 2),
@ -61,7 +59,6 @@ export class TextValueDownListCombo extends Widget {
}, },
value: isNull(value) ? [] : [value], value: isNull(value) ? [] : [value],
items: deepClone(o.items), items: deepClone(o.items),
popup: o.popup,
}); });
this.combo.on(DownListCombo.EVENT_CHANGE, () => { this.combo.on(DownListCombo.EVENT_CHANGE, () => {
@ -79,10 +76,6 @@ export class TextValueDownListCombo extends Widget {
this.fireEvent(TextValueDownListCombo.EVENT_CHANGE); this.fireEvent(TextValueDownListCombo.EVENT_CHANGE);
} }
}); });
this.combo.on(DownListCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(TextValueDownListCombo.EVENT_BEFORE_POPUPVIEW);
});
} }
_createValueMap() { _createValueMap() {
@ -121,8 +114,4 @@ export class TextValueDownListCombo extends Widget {
this.combo.populate(items); this.combo.populate(items);
this._createValueMap(); this._createValueMap();
} }
getPopup() {
return this.combo.getPopup();
}
} }

18
packages/fineui/src/widget/timeinterval/dateinterval.js

@ -30,8 +30,6 @@ export class DateInterval extends Single {
static EVENT_ERROR = "EVENT_ERROR"; static EVENT_ERROR = "EVENT_ERROR";
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW"; static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW";
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW";
_defaultConfig() { _defaultConfig() {
const conf = super._defaultConfig(...arguments); const conf = super._defaultConfig(...arguments);
@ -52,13 +50,6 @@ export class DateInterval extends Single {
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);
this.left.on(DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(DateInterval.EVENT_BEFORE_START_POPUPVIEW);
})
this.right.on(DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(DateInterval.EVENT_BEFORE_END_POPUPVIEW);
})
return { return {
type: HorizontalFillLayout.xtype, type: HorizontalFillLayout.xtype,
columnSize: ["fill", "", "fill"], columnSize: ["fill", "", "fill"],
@ -88,8 +79,6 @@ export class DateInterval extends Single {
const o = this.options; const o = this.options;
const combo = createWidget({ const combo = createWidget({
type: DynamicDateCombo.xtype, type: DynamicDateCombo.xtype,
container: o.container,
popup: o.popup,
isPreview: o.isPreview, isPreview: o.isPreview,
supportDynamic: o.supportDynamic, supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
@ -254,11 +243,4 @@ export class DateInterval extends Single {
end: this.right.getValue(), end: this.right.getValue(),
}; };
} }
getPopup() {
return {
start: this.left.getPopup(),
end: this.right.getPopup(),
};
}
} }

18
packages/fineui/src/widget/timeinterval/timeinterval.js

@ -29,8 +29,6 @@ export class TimeInterval extends Single {
static EVENT_VALID = "EVENT_VALID"; static EVENT_VALID = "EVENT_VALID";
static EVENT_ERROR = "EVENT_ERROR"; static EVENT_ERROR = "EVENT_ERROR";
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW";
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW";
_defaultConfig() { _defaultConfig() {
const conf = super._defaultConfig(...arguments); const conf = super._defaultConfig(...arguments);
@ -50,13 +48,6 @@ export class TimeInterval extends Single {
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);
this.left.on(DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(TimeInterval.EVENT_BEFORE_START_POPUPVIEW);
})
this.right.on(DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(TimeInterval.EVENT_BEFORE_END_POPUPVIEW);
})
return { return {
type: HorizontalFillLayout.xtype, type: HorizontalFillLayout.xtype,
columnSize: ["fill", "", "fill"], columnSize: ["fill", "", "fill"],
@ -86,8 +77,6 @@ export class TimeInterval extends Single {
const o = this.options; const o = this.options;
const combo = createWidget({ const combo = createWidget({
type: DynamicDateTimeCombo.xtype, type: DynamicDateTimeCombo.xtype,
container: o.container,
popup: o.popup,
isPreview: o.isPreview, isPreview: o.isPreview,
timeSelectTypes: o.timeSelectTypes, timeSelectTypes: o.timeSelectTypes,
simple: o.simple, simple: o.simple,
@ -261,11 +250,4 @@ export class TimeInterval extends Single {
end: this.right.getValue(), end: this.right.getValue(),
}; };
} }
getPopup() {
return {
start: this.left.getPopup(),
end: this.right.getPopup(),
};
}
} }

24
packages/fineui/src/widget/year/combo.year.js

@ -98,13 +98,13 @@ export class DynamicYearCombo extends Widget {
supportDynamic: o.supportDynamic, supportDynamic: o.supportDynamic,
isPreview: o.isPreview, isPreview: o.isPreview,
ref: _ref => { ref: _ref => {
this.popupEl = _ref; this.popup = _ref;
}, },
listeners: [ listeners: [
{ {
eventName: DynamicYearPopup.EVENT_CHANGE, eventName: DynamicYearPopup.EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicYearCombo.EVENT_CONFIRM); this.fireEvent(DynamicYearCombo.EVENT_CONFIRM);
}, },
@ -129,7 +129,7 @@ export class DynamicYearCombo extends Widget {
{ {
eventName: DynamicYearPopup.BUTTON_OK_EVENT_CHANGE, eventName: DynamicYearPopup.BUTTON_OK_EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicDateCombo.EVENT_CONFIRM); this.fireEvent(DynamicDateCombo.EVENT_CONFIRM);
}, },
@ -140,16 +140,12 @@ export class DynamicYearCombo extends Widget {
max: o.maxDate, max: o.maxDate,
}, },
value: o.value || "", value: o.value || "",
ref: (ref) => {
this.popup = ref;
},
...o.popup,
}, },
}); });
this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => { this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => {
this.popupEl.setMinDate(o.minDate); this.popup.setMinDate(o.minDate);
this.popupEl.setMaxDate(o.maxDate); this.popup.setMaxDate(o.maxDate);
this.popupEl.setValue(this.storeValue); this.popup.setValue(this.storeValue);
this.fireEvent(DynamicYearCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(DynamicYearCombo.EVENT_BEFORE_POPUPVIEW);
}); });
@ -209,14 +205,14 @@ export class DynamicYearCombo extends Widget {
const o = this.options; const o = this.options;
o.minDate = minDate; o.minDate = minDate;
this.trigger.setMinDate(minDate); this.trigger.setMinDate(minDate);
this.popupEl && this.popupEl.setMinDate(minDate); this.popup && this.popup.setMinDate(minDate);
} }
setMaxDate(maxDate) { setMaxDate(maxDate) {
const o = this.options; const o = this.options;
o.maxDate = maxDate; o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate); this.trigger.setMaxDate(maxDate);
this.popupEl && this.popupEl.setMaxDate(maxDate); this.popup && this.popup.setMaxDate(maxDate);
} }
hideView() { hideView() {
@ -244,10 +240,6 @@ export class DynamicYearCombo extends Widget {
setWaterMark(v) { setWaterMark(v) {
this.trigger.setWaterMark(v); this.trigger.setWaterMark(v);
} }
getPopup() {
return this.popup;
}
} }
extend(DynamicYearCombo, { extend(DynamicYearCombo, {
Static: 1, Static: 1,

24
packages/fineui/src/widget/yearmonth/combo.yearmonth.js

@ -109,13 +109,13 @@ export class DynamicYearMonthCombo extends Single {
supportDynamic: o.supportDynamic, supportDynamic: o.supportDynamic,
isPreview: o.isPreview, isPreview: o.isPreview,
ref: _ref => { ref: _ref => {
this.popupEl = _ref; this.popup = _ref;
}, },
listeners: [ listeners: [
{ {
eventName: DynamicYearMonthPopup.EVENT_CHANGE, eventName: DynamicYearMonthPopup.EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicYearMonthCombo.EVENT_CONFIRM); this.fireEvent(DynamicYearMonthCombo.EVENT_CONFIRM);
}, },
@ -147,7 +147,7 @@ export class DynamicYearMonthCombo extends Single {
{ {
eventName: DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE, eventName: DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE,
action: () => { action: () => {
const value = this.popupEl.getValue(); const value = this.popup.getValue();
if (this._checkValue(value)) { if (this._checkValue(value)) {
this.setValue(value); this.setValue(value);
} }
@ -161,16 +161,12 @@ export class DynamicYearMonthCombo extends Single {
max: o.maxDate, max: o.maxDate,
}, },
value: o.value || "", value: o.value || "",
ref: (ref) => {
this.popup = ref;
},
...o.popup,
}, },
}); });
this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => { this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => {
this.popupEl.setMinDate(o.minDate); this.popup.setMinDate(o.minDate);
this.popupEl.setMaxDate(o.maxDate); this.popup.setMaxDate(o.maxDate);
this.popupEl.setValue(this.storeValue); this.popup.setValue(this.storeValue);
this.fireEvent(DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW);
}); });
@ -245,18 +241,14 @@ export class DynamicYearMonthCombo extends Single {
const o = this.options; const o = this.options;
o.minDate = minDate; o.minDate = minDate;
this.trigger.setMinDate(minDate); this.trigger.setMinDate(minDate);
this.popupEl && this.popupEl.setMinDate(minDate); this.popup && this.popup.setMinDate(minDate);
} }
setMaxDate(maxDate) { setMaxDate(maxDate) {
const o = this.options; const o = this.options;
o.maxDate = maxDate; o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate); this.trigger.setMaxDate(maxDate);
this.popupEl && this.popupEl.setMaxDate(maxDate); this.popup && this.popup.setMaxDate(maxDate);
}
getPopup() {
return this.popup;
} }
hideView() { hideView() {

18
packages/fineui/src/widget/yearmonthinterval/yearmonthinterval.js

@ -20,8 +20,6 @@ export class YearMonthInterval extends Single {
static EVENT_ERROR = "EVENT_ERROR"; static EVENT_ERROR = "EVENT_ERROR";
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW";
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW";
constants = { constants = {
width: 25, width: 25,
@ -45,13 +43,6 @@ export class YearMonthInterval extends Single {
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);
this.left.on(DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(YearMonthInterval.EVENT_BEFORE_START_POPUPVIEW);
})
this.right.on(DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(YearMonthInterval.EVENT_BEFORE_END_POPUPVIEW);
})
return { return {
type: HorizontalFillLayout.xtype, type: HorizontalFillLayout.xtype,
columnSize: ["fill", "", "fill"], columnSize: ["fill", "", "fill"],
@ -81,8 +72,6 @@ export class YearMonthInterval extends Single {
const o = this.options; const o = this.options;
const combo = createWidget({ const combo = createWidget({
type: DynamicYearMonthCombo.xtype, type: DynamicYearMonthCombo.xtype,
container: o.container,
popup: o.popup,
isPreview: o.isPreview, isPreview: o.isPreview,
simple: o.simple, simple: o.simple,
supportDynamic: o.supportDynamic, supportDynamic: o.supportDynamic,
@ -246,11 +235,4 @@ export class YearMonthInterval extends Single {
getValue() { getValue() {
return { start: this.left.getValue(), end: this.right.getValue() }; return { start: this.left.getValue(), end: this.right.getValue() };
} }
getPopup() {
return {
start: this.left.getPopup(),
end: this.right.getPopup(),
};
}
} }

24
packages/fineui/src/widget/yearquarter/combo.yearquarter.js

@ -112,13 +112,13 @@ export class DynamicYearQuarterCombo extends Widget {
supportDynamic: o.supportDynamic, supportDynamic: o.supportDynamic,
isPreview: o.isPreview, isPreview: o.isPreview,
ref: _ref => { ref: _ref => {
this.popupEl = _ref; this.popup = _ref;
}, },
listeners: [ listeners: [
{ {
eventName: DynamicYearQuarterPopup.EVENT_CHANGE, eventName: DynamicYearQuarterPopup.EVENT_CHANGE,
action: () => { action: () => {
this.setValue(this.popupEl.getValue()); this.setValue(this.popup.getValue());
this.combo.hideView(); this.combo.hideView();
this.fireEvent(DynamicYearQuarterCombo.EVENT_CONFIRM); this.fireEvent(DynamicYearQuarterCombo.EVENT_CONFIRM);
}, },
@ -150,7 +150,7 @@ export class DynamicYearQuarterCombo extends Widget {
{ {
eventName: DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE, eventName: DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE,
action: () => { action: () => {
const value = this.popupEl.getValue(); const value = this.popup.getValue();
if (this._checkValue(value)) { if (this._checkValue(value)) {
this.setValue(value); this.setValue(value);
} }
@ -164,16 +164,12 @@ export class DynamicYearQuarterCombo extends Widget {
max: o.maxDate, max: o.maxDate,
}, },
value: o.value || "", value: o.value || "",
ref: (ref) => {
this.popup = ref;
},
...o.popup,
}, },
}); });
this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => { this.combo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => {
this.popupEl.setMinDate(o.minDate); this.popup.setMinDate(o.minDate);
this.popupEl.setMaxDate(o.maxDate); this.popup.setMaxDate(o.maxDate);
this.popupEl.setValue(this.storeValue); this.popup.setValue(this.storeValue);
this.fireEvent(DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW);
}); });
@ -248,18 +244,14 @@ export class DynamicYearQuarterCombo extends Widget {
const o = this.options; const o = this.options;
o.minDate = minDate; o.minDate = minDate;
this.trigger.setMinDate(minDate); this.trigger.setMinDate(minDate);
this.popupEl && this.popupEl.setMinDate(minDate); this.popup && this.popup.setMinDate(minDate);
} }
setMaxDate(maxDate) { setMaxDate(maxDate) {
const o = this.options; const o = this.options;
o.maxDate = maxDate; o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate); this.trigger.setMaxDate(maxDate);
this.popupEl && this.popupEl.setMaxDate(maxDate); this.popup && this.popup.setMaxDate(maxDate);
}
getPopup() {
return this.popup;
} }
hideView() { hideView() {

1
packages/fineui/typescript/index.ts

@ -103,7 +103,6 @@ export { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
export { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical"; export { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
export { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo"; export { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo";
export { MultiSelectCombo } from "./widget/multiselect/multiselect.combo"; export { MultiSelectCombo } from "./widget/multiselect/multiselect.combo";
export { MultiSelectCheckSelectedSwitcher } from "./widget/multiselect/switcher.checkselected";
export { SearchEditor } from "./widget/editor/editor.search"; export { SearchEditor } from "./widget/editor/editor.search";
export { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree"; export { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree";
export { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple"; export { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple";

3
packages/fineui/typescript/widget/downlist/combo.downlist.ts

@ -1,4 +1,3 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export declare class DownListCombo extends Widget { export declare class DownListCombo extends Widget {
@ -16,6 +15,4 @@ export declare class DownListCombo extends Widget {
adjustWidth: (e?: MouseEvent) => void; adjustWidth: (e?: MouseEvent) => void;
adjustHeight: (e?: MouseEvent) => void; adjustHeight: (e?: MouseEvent) => void;
getPopup(): PopupView;
} }

6
packages/fineui/typescript/widget/dynamicdate/dynamicdate.combo.ts

@ -1,5 +1,4 @@
import { PopupView } from "../../base/layer/layer.popup"; import { Single } from '../../base/single/single';
import { Single } from "../../base/single/single";
export declare class DynamicDateCombo extends Single { export declare class DynamicDateCombo extends Single {
static xtype: string; static xtype: string;
@ -27,7 +26,6 @@ export declare class DynamicDateCombo extends Single {
}; };
watermark?: string; watermark?: string;
simple?: boolean; simple?: boolean;
popup?: any;
} & Single['props'] } & Single['props']
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
@ -45,8 +43,6 @@ export declare class DynamicDateCombo extends Single {
blur(): void; blur(): void;
setWaterMark(v: string): void; setWaterMark(v: string): void;
getPopup(): PopupView;
} }
export interface DynamicDataComboValue { export interface DynamicDataComboValue {

4
packages/fineui/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts

@ -1,4 +1,3 @@
import { PopupView } from '../../base/layer/layer.popup';
import { Single } from '../../base/single/single'; import { Single } from '../../base/single/single';
export declare class DynamicDateTimeCombo extends Single { export declare class DynamicDateTimeCombo extends Single {
@ -24,7 +23,6 @@ export declare class DynamicDateTimeCombo extends Single {
tabIndex?: number; tabIndex?: number;
}; };
watermark?: string; watermark?: string;
popup?: any;
} & Single['props']; } & Single['props'];
getValue(): DynamicDateTimeComboValue; getValue(): DynamicDateTimeComboValue;
@ -42,8 +40,6 @@ export declare class DynamicDateTimeCombo extends Single {
blur(): void; blur(): void;
setWaterMark(v: string): void setWaterMark(v: string): void
getPopup(): PopupView;
} }
export interface DynamicDateTimeComboValue { export interface DynamicDateTimeComboValue {

10
packages/fineui/typescript/widget/multiselect/multiselect.insert.combo.ts

@ -1,6 +1,4 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
import { MultiSelectCheckSelectedSwitcher } from "./switcher.checkselected";
export declare class MultiSelectInsertCombo extends Single { export declare class MultiSelectInsertCombo extends Single {
static xtype: string; static xtype: string;
@ -14,8 +12,6 @@ export declare class MultiSelectInsertCombo extends Single {
static REQ_GET_DATA_LENGTH: 1; static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1; static REQ_GET_ALL_DATA: -1;
static EVENT_AFTER_HIDEVIEW: string; static EVENT_AFTER_HIDEVIEW: string;
static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW: string;
props: { props: {
itemsCreator?: Function; itemsCreator?: Function;
@ -25,8 +21,6 @@ export declare class MultiSelectInsertCombo extends Single {
text?: string; text?: string;
watermark?: string; watermark?: string;
container?: any; container?: any;
popup?: any;
masker?: any;
} & Single["props"]; } & Single["props"];
_itemsCreator4Trigger(op: any, callback: Function): void; _itemsCreator4Trigger(op: any, callback: Function): void;
@ -73,9 +67,5 @@ export declare class MultiSelectInsertCombo extends Single {
assist: string[]; assist: string[];
}; };
getPopup(): PopupView;
getNumberCounter(): MultiSelectCheckSelectedSwitcher;
populate(...args: any[]): void; populate(...args: any[]): void;
} }

19
packages/fineui/typescript/widget/multiselect/switcher.checkselected.ts

@ -1,19 +0,0 @@
import { Widget } from '../../core/widget';
export declare class MultiSelectCheckSelectedSwitcher extends Widget {
static xtype: string;
static EVENT_TRIGGER_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_AFTER_HIDEVIEW: string;
props: {
itemsCreator?: Function;
valueFormatter?: Function;
};
adjustView(): void;
hideView(): void;
getView(): Widget;
}

12
packages/fineui/typescript/widget/multitree/multi.tree.combo.ts

@ -1,7 +1,5 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
import { MultiSelectCheckSelectedSwitcher } from "../multiselect/switcher.checkselected";
export declare class MultiTreeCombo extends Single { export declare class MultiTreeCombo extends Single {
static xtype: string; static xtype: string;
@ -12,12 +10,6 @@ export declare class MultiTreeCombo extends Single {
static EVENT_CLICK_ITEM: string; static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string; static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_NUMBER_COUNTER_POPUPVIEW: string;
props: {
popup?: any;
masker?: any;
} & Single["props"];
showView(): void; showView(): void;
hideView(): void; hideView(): void;
@ -29,8 +21,4 @@ export declare class MultiTreeCombo extends Single {
blur(): void; blur(): void;
setWaterMark(v: string): void; setWaterMark(v: string): void;
getPopup(): PopupView;
getNumberCounter(): MultiSelectCheckSelectedSwitcher;
} }

3
packages/fineui/typescript/widget/multitree/multi.tree.popup.ts

@ -1,4 +1,3 @@
import { ButtonGroup } from "../../base/combination/group.button";
import { Pane } from "../../base/pane"; import { Pane } from "../../base/pane";
export declare class MultiTreePopup extends Pane { export declare class MultiTreePopup extends Pane {
@ -13,6 +12,4 @@ export declare class MultiTreePopup extends Pane {
resetHeight(h: number): void; resetHeight(h: number): void;
resetWidth(w: number): void; resetWidth(w: number): void;
getView(): ButtonGroup;
} }

5
packages/fineui/typescript/widget/singleselect/singleselect.insert.combo.ts

@ -1,4 +1,3 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
export declare class SingleSelectInsertCombo extends Single { export declare class SingleSelectInsertCombo extends Single {
@ -9,7 +8,6 @@ export declare class SingleSelectInsertCombo extends Single {
static EVENT_SEARCHING: string; static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string; static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string; static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
props: { props: {
text?: string, text?: string,
@ -18,8 +16,5 @@ export declare class SingleSelectInsertCombo extends Single {
valueFormatter?: Function, valueFormatter?: Function,
allowEdit?: boolean, allowEdit?: boolean,
watermark?: string, watermark?: string,
popup?: any;
} & Single['props'] } & Single['props']
getPopup(): PopupView;
} }

9
packages/fineui/typescript/widget/textvaluedownlistcombo/combo.textvaluedownlist.ts

@ -1,17 +1,8 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export declare class TextValueDownListCombo extends Widget { export declare class TextValueDownListCombo extends Widget {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
props: {
container?: string;
popup?: any;
};
getValue<T>(): [T]; getValue<T>(): [T];
getPopup(): PopupView;
} }

13
packages/fineui/typescript/widget/timeinterval/dateinterval.ts

@ -1,5 +1,5 @@
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
import { DynamicDataComboValue, DynamicDateCombo } from "../dynamicdate/dynamicdate.combo"; import { DynamicDataComboValue } from "../dynamicdate/dynamicdate.combo";
export declare class DateInterval extends Single { export declare class DateInterval extends Single {
static xtype: string; static xtype: string;
@ -7,17 +7,13 @@ export declare class DateInterval extends Single {
static EVENT_VALID: string; static EVENT_VALID: string;
static EVENT_ERROR: string; static EVENT_ERROR: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string; static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
static EVENT_BEFORE_START_POPUPVIEW: string;
static EVENT_BEFORE_END_POPUPVIEW: string;
props: { props: {
minDate?: string; minDate?: string;
maxDate?: string; maxDate?: string;
supportDynamic?: boolean; supportDynamic?: boolean;
watermark?: string; watermark?: string;
container?: string; } & Single['props']
popup?: any;
} & Single["props"];
getValue(): { getValue(): {
start: DynamicDataComboValue; start: DynamicDataComboValue;
@ -27,9 +23,4 @@ export declare class DateInterval extends Single {
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(minDate: string): void; setMaxDate(minDate: string): void;
getPopup(): {
start: DynamicDateCombo;
end: DynamicDateCombo;
};
} }

11
packages/fineui/typescript/widget/timeinterval/timeinterval.ts

@ -1,13 +1,11 @@
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
import { DynamicDateTimeCombo, DynamicDateTimeComboValue } from "../dynamicdatetime/dynamicdatetime.combo"; import { DynamicDateTimeComboValue } from "../dynamicdatetime/dynamicdatetime.combo";
export declare class TimeInterval extends Single { export declare class TimeInterval extends Single {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
static EVENT_VALID: string; static EVENT_VALID: string;
static EVENT_ERROR: string; static EVENT_ERROR: string;
static EVENT_BEFORE_START_POPUPVIEW: string;
static EVENT_BEFORE_END_POPUPVIEW: string;
props: { props: {
minDate?: string; minDate?: string;
@ -15,8 +13,6 @@ export declare class TimeInterval extends Single {
supportDynamic?: boolean; supportDynamic?: boolean;
watermark?: string; watermark?: string;
simple?: boolean; simple?: boolean;
container?: string;
popup?: any;
} & Single['props']; } & Single['props'];
getValue(): { getValue(): {
@ -27,9 +23,4 @@ export declare class TimeInterval extends Single {
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(minDate: string): void; setMaxDate(minDate: string): void;
getPopup(): {
start: DynamicDateTimeCombo;
end: DynamicDateTimeCombo;
};
} }

7
packages/fineui/typescript/widget/year/combo.year.ts

@ -1,4 +1,3 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export declare class DynamicYearCombo extends Widget { export declare class DynamicYearCombo extends Widget {
@ -8,17 +7,11 @@ export declare class DynamicYearCombo extends Widget {
static EVENT_CONFIRM: string; static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
props: {
popup?: any;
};
getValue(): DynamicYearComboValue; getValue(): DynamicYearComboValue;
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void; setMaxDate(maxDate: string): void;
getPopup(): PopupView;
} }
export interface DynamicYearComboValue { export interface DynamicYearComboValue {

7
packages/fineui/typescript/widget/yearmonth/combo.yearmonth.ts

@ -1,4 +1,3 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Single } from "../../base/single/single"; import { Single } from "../../base/single/single";
export declare class DynamicYearMonthCombo extends Single { export declare class DynamicYearMonthCombo extends Single {
@ -9,10 +8,6 @@ export declare class DynamicYearMonthCombo extends Single {
static EVENT_CONFIRM: string; static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
props: {
popup?: any;
} & Single["props"];
hideView(): void; hideView(): void;
getKey(): string; getKey(): string;
@ -22,8 +17,6 @@ export declare class DynamicYearMonthCombo extends Single {
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void; setMaxDate(maxDate: string): void;
getPopup(): PopupView;
} }
export interface DynamicYearMonthComboValue { export interface DynamicYearMonthComboValue {

11
packages/fineui/typescript/widget/yearmonthinterval/yearmonthinterval.ts

@ -1,5 +1,5 @@
import { Single } from '../../base/single/single'; import { Single } from '../../base/single/single';
import { DynamicYearMonthCombo, DynamicYearMonthComboValue } from '../yearmonth/combo.yearmonth'; import { DynamicYearMonthComboValue } from '../yearmonth/combo.yearmonth';
export declare class YearMonthInterval extends Single { export declare class YearMonthInterval extends Single {
static xtype: string; static xtype: string;
@ -7,13 +7,9 @@ export declare class YearMonthInterval extends Single {
static EVENT_ERROR: string; static EVENT_ERROR: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_START_POPUPVIEW: string;
static EVENT_BEFORE_END_POPUPVIEW: string;
props: { props: {
simple?: boolean; simple?: boolean;
container?: string;
popup?: any;
} & Single['props']; } & Single['props'];
getValue(): { getValue(): {
@ -24,9 +20,4 @@ export declare class YearMonthInterval extends Single {
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void; setMaxDate(maxDate: string): void;
getPopup(): {
start: DynamicYearMonthCombo;
end: DynamicYearMonthCombo;
};
} }

7
packages/fineui/typescript/widget/yearquarter/combo.yearquarter.ts

@ -1,4 +1,3 @@
import { PopupView } from "../../base/layer/layer.popup";
import { Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export declare class DynamicYearQuarterCombo extends Widget { export declare class DynamicYearQuarterCombo extends Widget {
@ -6,17 +5,11 @@ export declare class DynamicYearQuarterCombo extends Widget {
static EVENT_CONFIRM: string; static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
props: {
popup?: any;
};
getValue(): DynamicYearQuarterComboValue; getValue(): DynamicYearQuarterComboValue;
setMinDate(minDate: string): void; setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void; setMaxDate(maxDate: string): void;
getPopup(): PopupView;
} }
export interface DynamicYearQuarterComboValue { export interface DynamicYearQuarterComboValue {

Loading…
Cancel
Save