Browse Source

REPORT-80311 fix: 给一下默认值

(cherry picked from commit b14f323f43)
research/test
jimmychai 2 years ago
parent
commit
80083216f2
  1. 3
      src/base/combination/searcher.js
  2. 2
      src/widget/multiselectlist/multiselectlist.insert.js
  3. 4
      src/widget/multiselecttree/multiselecttree.js
  4. 2
      src/widget/singleselect/singleselectlist.insert.js
  5. 1
      src/widget/timeinterval/dateinterval.js
  6. 4
      src/widget/yearmonthinterval/yearmonthinterval.js

3
src/base/combination/searcher.js

@ -39,6 +39,8 @@ BI.Searcher = BI.inherit(BI.Widget, {
masker: { // masker层
offset: {},
},
simple: false,
});
},
@ -47,6 +49,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
this.editor = BI.createWidget(o.el, {
type: "bi.search_editor",
simple: o.simple,
});
BI.createWidget({

2
src/widget/multiselectlist/multiselectlist.insert.js

@ -9,6 +9,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
valueFormatter: BI.emptyFn,
searcherHeight: BI.SIZE_CONSANTS.TRIGGER_HEIGHT,
itemHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
simple: false,
});
},
_init: function () {
@ -70,6 +71,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
el: {
type: "bi.search_editor",
watermark: BI.i18nText("BI-Basic_Search_And_Patch_Paste"),
simple: o.simple,
},
ref: function (ref) {
self.editor = ref;

4
src/widget/multiselecttree/multiselecttree.js

@ -9,7 +9,8 @@ BI.MultiSelectTree = BI.inherit(BI.Single, {
_defaultConfig: function () {
return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-multi-select-tree",
itemsCreator: BI.emptyFn
itemsCreator: BI.emptyFn,
simple: false,
});
},
@ -51,6 +52,7 @@ BI.MultiSelectTree = BI.inherit(BI.Single, {
type: "bi.searcher",
isAutoSearch: false,
isAutoSync: false,
simple: o.simple,
onSearch: function (op, callback) {
callback({
keyword: self.searcher.getKeyword()

2
src/widget/singleselect/singleselectlist.insert.js

@ -12,6 +12,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
itemWrapper: BI.emptyFn,
valueFormatter: BI.emptyFn,
searcherHeight: 24,
simple: false,
});
},
_init: function () {
@ -70,6 +71,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
el: {
type: "bi.search_editor",
watermark: BI.i18nText("BI-Basic_Search_And_Patch_Paste"),
simple: o.simple,
},
ref: function (ref) {
self.editor = ref;

1
src/widget/timeinterval/dateinterval.js

@ -17,6 +17,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
maxDate: "2099-12-31",
height: 24,
supportDynamic: true,
simple: false,
});
},

4
src/widget/yearmonthinterval/yearmonthinterval.js

@ -11,7 +11,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
minDate: "1900-01-01",
maxDate: "2099-12-31",
supportDynamic: true,
height: 24
height: 24,
simple: false,
},
render: function () {
@ -45,6 +46,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options;
var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo",
simple: o.simple,
supportDynamic: o.supportDynamic,
height: o.height,
minDate: o.minDate,

Loading…
Cancel
Save