Browse Source

Merge pull request #243839 in DEC/fineui from master to feature/x

* commit '64474f00bb837f9f8e224deeed4d9df1d3661be9':
  BI-131340 fix: DynamicDateTimeCombo不设置value的默认值
  BI-131340 fix: DynamicDateTimeCombo的value默认值设置为null
master
superman 1 year ago
parent
commit
17c8c9f0fc
  1. 36
      packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js

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

@ -31,29 +31,19 @@ export class DynamicDateTimeCombo extends Single {
iconWidth: 24
};
props = () => {
const date = getDate();
return {
baseCls: "bi-dynamic-date--time-combo",
height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31",
format: "",
allowEdit: true,
supportDynamic: true,
attributes: {
tabIndex: -1
},
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
value: {
type: DynamicDateTimeCombo.Static,
value: {
year: date.getFullYear(),
month: date.getMonth() + 1
}
}
};
props = {
baseCls: "bi-dynamic-date--time-combo",
height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31",
format: "",
allowEdit: true,
supportDynamic: true,
attributes: {
tabIndex: -1,
},
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
};
static EVENT_KEY_DOWN = "EVENT_KEY_DOWN";

Loading…
Cancel
Save