Browse Source

BI-131340 fix: DynamicDateTimeCombo的value默认值设置为null

research/test
Oliver.Ke 1 year ago
parent
commit
1c985e855c
  1. 15
      packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js

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

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

Loading…
Cancel
Save