Browse Source

BI-27628 点击添加项视觉修改

es6
windy 6 years ago
parent
commit
58d2b075a4
  1. 9
      demo/js/widget/multiselect/demo.multi_select_tree.js
  2. 26
      dist/bundle.js
  3. 9
      dist/demo.js
  4. 26
      dist/fineui.js
  5. 26
      dist/widget.js
  6. 26
      src/widget/multiselect/search/multiselect.search.insert.pane.js

9
demo/js/widget/multiselect/demo.multi_select_tree.js

@ -13,7 +13,9 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
_createMultiSelectCombo: function () { _createMultiSelectCombo: function () {
var self = this; var self = this;
var widget = BI.createWidget({ var widget = BI.createWidget({
type: "bi.multi_select_insert_no_bar_list", type: "bi.multi_select_insert_list",
width: 200,
height: 300,
ref: function (ref) { ref: function (ref) {
self.list = ref; self.list = ref;
}, },
@ -80,7 +82,10 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
type: "bi.absolute", type: "bi.absolute",
scrolly: false, scrolly: false,
items: [{ items: [{
el: this._createMultiSelectCombo(), el: {
type: "bi.center_adapt",
items: [this._createMultiSelectCombo()]
},
top: 50, top: 50,
left: 50, left: 50,
right: 50, right: 50,

26
dist/bundle.js vendored

@ -99030,14 +99030,12 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
}); });
this.addNotMatchTip = BI.createWidget({ this.addNotMatchTip = BI.createWidget({
type: "bi.icon_text_item", type: "bi.label",
invisible: true, invisible: true,
logic: {
dynamic: true
},
text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""), text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""),
cls: "text-add-tip-font",
height: this.constants.height, height: this.constants.height,
cls: "bi-high-light",
hgap: 5,
handler: function () { handler: function () {
self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter()); self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());
} }
@ -99063,13 +99061,29 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
type: "bi.vtape", type: "bi.vtape",
element: this, element: this,
items: [{ items: [{
type: "bi.float_center_adapt", type: "bi.vertical",
items: [this.tooltipClick, this.addNotMatchTip], items: [this.tooltipClick, this.addNotMatchTip],
height: this.constants.height height: this.constants.height
}, { }, {
el: this.loader el: this.loader
}] }]
}); });
BI.createWidget({
type: "bi.absolute",
element: this.addNotMatchTip,
items: [{
el: {
type: "bi.icon_label",
width: this.constants.height,
cls: "text-add-tip-font"
},
left: 0,
top: 0,
height: this.constants.height,
width: this.constants.height
}]
});
}, },
setKeyword: function (keyword) { setKeyword: function (keyword) {

9
dist/demo.js vendored

@ -12853,7 +12853,9 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
_createMultiSelectCombo: function () { _createMultiSelectCombo: function () {
var self = this; var self = this;
var widget = BI.createWidget({ var widget = BI.createWidget({
type: "bi.multi_select_insert_no_bar_list", type: "bi.multi_select_insert_list",
width: 200,
height: 300,
ref: function (ref) { ref: function (ref) {
self.list = ref; self.list = ref;
}, },
@ -12920,7 +12922,10 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
type: "bi.absolute", type: "bi.absolute",
scrolly: false, scrolly: false,
items: [{ items: [{
el: this._createMultiSelectCombo(), el: {
type: "bi.center_adapt",
items: [this._createMultiSelectCombo()]
},
top: 50, top: 50,
left: 50, left: 50,
right: 50, right: 50,

26
dist/fineui.js vendored

@ -99279,14 +99279,12 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
}); });
this.addNotMatchTip = BI.createWidget({ this.addNotMatchTip = BI.createWidget({
type: "bi.icon_text_item", type: "bi.label",
invisible: true, invisible: true,
logic: {
dynamic: true
},
text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""), text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""),
cls: "text-add-tip-font",
height: this.constants.height, height: this.constants.height,
cls: "bi-high-light",
hgap: 5,
handler: function () { handler: function () {
self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter()); self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());
} }
@ -99312,13 +99310,29 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
type: "bi.vtape", type: "bi.vtape",
element: this, element: this,
items: [{ items: [{
type: "bi.float_center_adapt", type: "bi.vertical",
items: [this.tooltipClick, this.addNotMatchTip], items: [this.tooltipClick, this.addNotMatchTip],
height: this.constants.height height: this.constants.height
}, { }, {
el: this.loader el: this.loader
}] }]
}); });
BI.createWidget({
type: "bi.absolute",
element: this.addNotMatchTip,
items: [{
el: {
type: "bi.icon_label",
width: this.constants.height,
cls: "text-add-tip-font"
},
left: 0,
top: 0,
height: this.constants.height,
width: this.constants.height
}]
});
}, },
setKeyword: function (keyword) { setKeyword: function (keyword) {

26
dist/widget.js vendored

@ -11232,14 +11232,12 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
}); });
this.addNotMatchTip = BI.createWidget({ this.addNotMatchTip = BI.createWidget({
type: "bi.icon_text_item", type: "bi.label",
invisible: true, invisible: true,
logic: {
dynamic: true
},
text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""), text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""),
cls: "text-add-tip-font",
height: this.constants.height, height: this.constants.height,
cls: "bi-high-light",
hgap: 5,
handler: function () { handler: function () {
self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter()); self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());
} }
@ -11265,13 +11263,29 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
type: "bi.vtape", type: "bi.vtape",
element: this, element: this,
items: [{ items: [{
type: "bi.float_center_adapt", type: "bi.vertical",
items: [this.tooltipClick, this.addNotMatchTip], items: [this.tooltipClick, this.addNotMatchTip],
height: this.constants.height height: this.constants.height
}, { }, {
el: this.loader el: this.loader
}] }]
}); });
BI.createWidget({
type: "bi.absolute",
element: this.addNotMatchTip,
items: [{
el: {
type: "bi.icon_label",
width: this.constants.height,
cls: "text-add-tip-font"
},
left: 0,
top: 0,
height: this.constants.height,
width: this.constants.height
}]
});
}, },
setKeyword: function (keyword) { setKeyword: function (keyword) {

26
src/widget/multiselect/search/multiselect.search.insert.pane.js

@ -35,14 +35,12 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
}); });
this.addNotMatchTip = BI.createWidget({ this.addNotMatchTip = BI.createWidget({
type: "bi.icon_text_item", type: "bi.label",
invisible: true, invisible: true,
logic: {
dynamic: true
},
text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""), text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""),
cls: "text-add-tip-font",
height: this.constants.height, height: this.constants.height,
cls: "bi-high-light",
hgap: 5,
handler: function () { handler: function () {
self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter()); self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());
} }
@ -68,13 +66,29 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
type: "bi.vtape", type: "bi.vtape",
element: this, element: this,
items: [{ items: [{
type: "bi.float_center_adapt", type: "bi.vertical",
items: [this.tooltipClick, this.addNotMatchTip], items: [this.tooltipClick, this.addNotMatchTip],
height: this.constants.height height: this.constants.height
}, { }, {
el: this.loader el: this.loader
}] }]
}); });
BI.createWidget({
type: "bi.absolute",
element: this.addNotMatchTip,
items: [{
el: {
type: "bi.icon_label",
width: this.constants.height,
cls: "text-add-tip-font"
},
left: 0,
top: 0,
height: this.constants.height,
width: this.constants.height
}]
});
}, },
setKeyword: function (keyword) { setKeyword: function (keyword) {

Loading…
Cancel
Save