Browse Source

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

* commit '2dc7788a9c2327a3469cad243cd110804ace8ef0':
  auto upgrade version to 2.0.20230207102533
  BI-120672 feat:时间选择控件opt里支持传height
  BI-120672 feat:时间选择控件opt里支持传height
research/test
superman 2 years ago
parent
commit
d555dd2653
  1. 2
      package.json
  2. 15
      src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20230206100506", "version": "2.0.20230207102533",
"description": "fineui", "description": "fineui",
"main": "dist/fineui_without_conflict.min.js", "main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

15
src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

@ -1,11 +1,16 @@
BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, { BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
props: { props: function () {
baseCls: "bi-date-time-select" return {
baseCls: "bi-date-time-select",
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
};
}, },
render: function () { render: function () {
var self = this; var self = this;
var o = this.options;
return { return {
type: "bi.center_adapt", type: "bi.center_adapt",
items: [{ items: [{
@ -41,7 +46,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
} }
}], }],
width: 60, width: 60,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT height: o.height,
} }
}, { }, {
type: "bi.label", type: "bi.label",
@ -77,7 +82,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
} }
}], }],
width: 60, width: 60,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT height: o.height,
}, { }, {
type: "bi.label", type: "bi.label",
text: ":", text: ":",
@ -106,7 +111,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
} }
}], }],
width: 60, width: 60,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT height: o.height,
}] }]
}] }]
}; };

Loading…
Cancel
Save