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.cjs.js +1 -1
- package/dist/index.esm.js +17 -21
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.css +4 -4
- package/lib/dialog/dialog.variable.css +4 -4
- package/lib/info-box/index.css +4 -4
- package/lib/info-box/index.d.ts +3 -0
- package/lib/info-box/index.js +1 -1
- package/lib/info-box/index.less +5 -5
- package/lib/info-box/index.variable.css +4 -4
- package/lib/modal/modal.css +4 -4
- package/lib/modal/modal.variable.css +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -20174,32 +20174,28 @@ const InfoBox = (config) => {
|
|
20174
20174
|
update
|
20175
20175
|
});
|
20176
20176
|
const getContent = () => {
|
20177
|
-
|
20178
|
-
|
20179
|
-
|
20180
|
-
|
20181
|
-
|
20182
|
-
|
20183
|
-
|
20184
|
-
|
20185
|
-
|
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({
|
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
|
-
}),
|
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);
|