bkui-vue 0.0.1-beta.184 → 0.0.1-beta.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -20174,32 +20174,28 @@ const InfoBox = (config) => {
20174
20174
  update
20175
20175
  });
20176
20176
  const getContent = () => {
20177
- const children = [];
20178
- if (modalFuncProps.value.subTitle) {
20179
- switch (typeof modalFuncProps.value.subTitle) {
20180
- case "string":
20181
- children.push(h$1("div", {
20182
- class: "bk-info-subTitle"
20183
- }, modalFuncProps.value.subTitle));
20184
- break;
20185
- case "function":
20186
- children.push(h$1("div", {
20187
- class: "bk-info-subTitle"
20188
- }, modalFuncProps.value.subTitle()));
20189
- break;
20190
- default:
20191
- children.push(h$1(modalFuncProps.value.subTitle));
20192
- break;
20193
- }
20177
+ if (!modalFuncProps.value.subTitle) {
20178
+ return "";
20179
+ }
20180
+ switch (typeof modalFuncProps.value.subTitle) {
20181
+ case "function":
20182
+ return modalFuncProps.value.subTitle();
20183
+ default:
20184
+ case "string":
20185
+ return modalFuncProps.value.subTitle;
20194
20186
  }
20195
- return children;
20196
20187
  };
20197
- return () => createVNode(Dialog, __spreadProps(__spreadValues({}, modalFuncProps.value), {
20188
+ return () => createVNode(Dialog, __spreadProps(__spreadValues({
20189
+ headerAlign: "center",
20190
+ footerAlign: "center"
20191
+ }, modalFuncProps.value), {
20198
20192
  isShow: isShow.value,
20199
- class: "bk-info-wrapper",
20200
20193
  onClosed,
20201
20194
  onConfirm
20202
- }), getContent());
20195
+ }), [h$1("div", {
20196
+ class: "bk-info-sub-title",
20197
+ style: `text-Align:${modalFuncProps.value.contentAlign || "center"}`
20198
+ }, getContent())]);
20203
20199
  }
20204
20200
  });
20205
20201
  const app = createApp(dialog2).mount(container2);