Browse Source

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

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

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

@ -31,29 +31,20 @@ export class DynamicDateTimeCombo extends Single {
iconWidth: 24 iconWidth: 24
}; };
props = () => { props = {
const date = getDate(); baseCls: "bi-dynamic-date--time-combo",
return { height: 24,
baseCls: "bi-dynamic-date--time-combo", minDate: "1900-01-01",
height: 24, maxDate: "2099-12-31",
minDate: "1900-01-01", format: "",
maxDate: "2099-12-31", allowEdit: true,
format: "", supportDynamic: true,
allowEdit: true, attributes: {
supportDynamic: true, tabIndex: -1,
attributes: { },
tabIndex: -1 isNeedAdjustHeight: false,
}, isNeedAdjustWidth: false,
isNeedAdjustHeight: false, value: null,
isNeedAdjustWidth: false,
value: {
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