bkui-vue 0.0.1-beta.183 → 0.0.1-beta.184
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 +19 -19
- package/dist/index.esm.js +31 -4
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.css +55 -1
- package/lib/dialog/dialog.d.ts +7 -0
- package/lib/dialog/dialog.less +23 -0
- package/lib/dialog/dialog.variable.css +55 -1
- package/lib/dialog/index.d.ts +16 -1
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +3 -0
- package/lib/info-box/index.css +35 -0
- package/lib/info-box/index.js +1 -1
- package/lib/info-box/index.less +48 -0
- package/lib/info-box/index.variable.css +35 -0
- package/lib/modal/index.d.ts +19 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +37 -1
- package/lib/modal/modal.d.ts +7 -0
- package/lib/modal/modal.less +4 -1
- package/lib/modal/modal.variable.css +37 -1
- package/lib/modal/props.mixin.d.ts +3 -0
- package/lib/sideslider/index.d.ts +16 -1
- package/lib/sideslider/sideslider.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -10154,7 +10154,8 @@ const propsMixin$1 = {
|
|
10154
10154
|
renderDirective: PropTypes.commonType(["show", "if"], "renderDirective").def("show"),
|
10155
10155
|
beforeClose: PropTypes.custom(() => true),
|
10156
10156
|
dialogType: PropTypes.commonType(["show", "operation", "confirm", "process"], "dialogType").def("operation"),
|
10157
|
-
multiInstance: PropTypes.bool.def(true)
|
10157
|
+
multiInstance: PropTypes.bool.def(true),
|
10158
|
+
infoType: PropTypes.commonType(["success", "warning", "danger", "loading"], "infoType").def()
|
10158
10159
|
};
|
10159
10160
|
var Component$u = defineComponent({
|
10160
10161
|
name: "Modal",
|
@@ -10408,6 +10409,23 @@ var Dialog = defineComponent({
|
|
10408
10409
|
};
|
10409
10410
|
},
|
10410
10411
|
render() {
|
10412
|
+
const renderIcon = () => {
|
10413
|
+
const iconMap = {
|
10414
|
+
loading: createVNode(spinner, {
|
10415
|
+
"class": "bk-info-icon primary"
|
10416
|
+
}, null),
|
10417
|
+
warning: createVNode(warn, {
|
10418
|
+
"class": "bk-info-icon warning"
|
10419
|
+
}, null),
|
10420
|
+
success: createVNode(success, {
|
10421
|
+
"class": "bk-info-icon success"
|
10422
|
+
}, null),
|
10423
|
+
danger: createVNode(close$1, {
|
10424
|
+
"class": "bk-info-icon danger"
|
10425
|
+
}, null)
|
10426
|
+
};
|
10427
|
+
return iconMap[this.infoType];
|
10428
|
+
};
|
10411
10429
|
const dialogSlot = {
|
10412
10430
|
header: () => {
|
10413
10431
|
var _a, _b, _c, _d, _e, _f;
|
@@ -10416,7 +10434,11 @@ var Dialog = defineComponent({
|
|
10416
10434
|
"onMousedown": this.moveHandler
|
10417
10435
|
}, [(_c = (_b = (_a = this.$slots).tools) == null ? void 0 : _b.call(_a)) != null ? _c : ""]), createVNode("div", {
|
10418
10436
|
"class": "bk-dialog-header"
|
10419
|
-
}, [createVNode("
|
10437
|
+
}, [createVNode("div", {
|
10438
|
+
"class": "bk-header-icon"
|
10439
|
+
}, [this.infoType ? renderIcon() : createVNode("slot", {
|
10440
|
+
"name": "info-icon"
|
10441
|
+
}, null)]), createVNode("span", {
|
10420
10442
|
"class": "bk-dialog-title",
|
10421
10443
|
"style": `text-align: ${this.headerAlign}`
|
10422
10444
|
}, [(_f = (_e = (_d = this.$slots).header) == null ? void 0 : _e.call(_d)) != null ? _f : this.title])])];
|
@@ -20156,10 +20178,14 @@ const InfoBox = (config) => {
|
|
20156
20178
|
if (modalFuncProps.value.subTitle) {
|
20157
20179
|
switch (typeof modalFuncProps.value.subTitle) {
|
20158
20180
|
case "string":
|
20159
|
-
children.push(h$1("div",
|
20181
|
+
children.push(h$1("div", {
|
20182
|
+
class: "bk-info-subTitle"
|
20183
|
+
}, modalFuncProps.value.subTitle));
|
20160
20184
|
break;
|
20161
20185
|
case "function":
|
20162
|
-
children.push(h$1("div",
|
20186
|
+
children.push(h$1("div", {
|
20187
|
+
class: "bk-info-subTitle"
|
20188
|
+
}, modalFuncProps.value.subTitle()));
|
20163
20189
|
break;
|
20164
20190
|
default:
|
20165
20191
|
children.push(h$1(modalFuncProps.value.subTitle));
|
@@ -20170,6 +20196,7 @@ const InfoBox = (config) => {
|
|
20170
20196
|
};
|
20171
20197
|
return () => createVNode(Dialog, __spreadProps(__spreadValues({}, modalFuncProps.value), {
|
20172
20198
|
isShow: isShow.value,
|
20199
|
+
class: "bk-info-wrapper",
|
20173
20200
|
onClosed,
|
20174
20201
|
onConfirm
|
20175
20202
|
}), getContent());
|