Browse Source

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

* commit 'ced17523f4739e1ee6d880446be1e4ea2f50a0a5':
  auto upgrade version to 2.0.20220726185509
  DESIGN-5 style: 【2022】气泡的边距统一调整
es6
superman 2 years ago
parent
commit
345f935dd8
  1. 2
      package.json
  2. 30
      src/case/combo/bubblecombo/popup.bubble.js

2
package.json

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

30
src/case/combo/bubblecombo/popup.bubble.js

@ -36,7 +36,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
}, {
text: BI.i18nText(BI.i18nText("BI-Basic_OK")),
value: true
}]
}],
innerVgap: 16,
innerHgap: 16,
});
},
@ -48,8 +50,7 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
if (BI.isWidget(buttonOpt)) {
items.push({
el: buttonOpt,
lgap: i === 0 ? 15 : 10,
rgap: i === o.buttons.length - 1 ? 15 : 0
lgap: 12,
});
} else {
items.push({
@ -60,14 +61,14 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v);
}
}, buttonOpt),
lgap: i === 0 ? 15 : 10,
rgap: i === o.buttons.length - 1 ? 15 : 0
lgap: 12,
});
}
});
return BI.createWidget({
type: "bi.right_vertical_adapt",
height: 44,
innerVgap: o.innerVgap,
innerHgap: o.innerHgap,
items: items
});
},
@ -79,20 +80,17 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_createView: function () {
var o = this.options;
var button = BI.createWidget({
type: "bi.button_group",
var view = BI.createWidget({
type: "bi.vertical",
items: [this._createContent()],
layouts: [{
type: "bi.vertical",
cls: "bar-popup-container",
hgap: BI.SIZE_CONSANTS.H_GAP_SIZE,
tgap: BI.SIZE_CONSANTS.V_GAP_SIZE
}]
cls: "bar-popup-container",
hgap: o.innerHgap,
tgap: o.innerVgap,
});
button.element.css("min-height", o.minHeight - 44);
view.element.css("min-height", o.minHeight);
return button;
return view;
}
});
BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";

Loading…
Cancel
Save