Browse Source

Pull request #2942: DESIGN-5 style: 【2022】气泡的边距统一调整

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '6e7c59297e470830ab81a4d8b19a3777336a6fa4':
  DESIGN-5 style: 【2022】气泡的边距统一调整
es6
Dailer 2 years ago
parent
commit
22e3c053ce
  1. 30
      src/case/combo/bubblecombo/popup.bubble.js

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

Loading…
Cancel
Save