bkui-vue 0.0.1-beta.56 → 0.0.1-beta.57
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 +11 -11
- package/dist/index.esm.js +121 -147
- package/dist/index.umd.js +18 -18
- package/dist/style.css +1 -1
- package/lib/dialog/dialog.css +8 -0
- package/lib/dialog/dialog.d.ts +147 -101
- package/lib/dialog/dialog.less +8 -0
- package/lib/dialog/dialog.variable.css +8 -0
- package/lib/dialog/index.d.ts +315 -213
- package/lib/dialog/index.js +1 -1
- package/lib/modal/index.d.ts +194 -154
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +77 -61
- package/lib/modal/props.mixin.d.ts +38 -30
- package/lib/sideslider/index.d.ts +156 -124
- package/lib/sideslider/sideslider.d.ts +77 -61
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/index.js +1 -1
- package/lib/table/use-common.d.ts +1 -1
- package/package.json +1 -1
package/lib/dialog/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("../button"),require("../modal")):o(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o,t,n)=>(()=>{"use strict";var r={4976:e=>{e.exports=t},8014:e=>{e.exports=n},4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function l(e){var o=i[e];if(void 0!==o)return o.exports;var t=i[e]={exports:{}};return r[e](t,t.exports,l),t.exports}l.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return l.d(o,{a:o}),o},l.d=(e,o)=>{for(var t in o)l.o(o,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{l.r(s),l.d(s,{default:()=>d});var e=l(4212),o=l(748),t=l(4976),n=l.n(t),r=l(8014),i=l.n(r);const a=(0,o.defineComponent)({name:"Dialog",components:{BkModal:i(),BkButton:n()},props:Object.assign(Object.assign({},r.propsMixin),{width:e.PropTypes.string.def("null")||e.PropTypes.number.def(),height:e.PropTypes.string.def("null")||e.PropTypes.number.def(),confirmText:e.PropTypes.string.def("确定"),cancelText:e.PropTypes.string.def("取消"),title:e.PropTypes.string.def("title"),headerAlign:e.PropTypes.commonType(["left","center","right"],"headerAlign").def("left"),footerAlign:e.PropTypes.commonType(["left","center","right"],"footerAlign").def("right"),theme:e.PropTypes.commonType(["primary","warning","success","danger"],"theme").def("primary"),isLoading:e.PropTypes.bool.def(!1)}),emits:["closed","update:isShow","confirm"],setup:function(e,t){var n=t.emit,r=(0,o.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}});(0,o.onMounted)((function(){e.escClose&&addEventListener("keydown",l)})),(0,o.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",l)})),(0,o.watch)((function(){return e.isShow}),(function(e){e||(r.moveStyle={top:"50%",left:"50%"},r.positionX=0,r.positionY=0)}));var i=function(){n("update:isShow",!1),n("closed")},l=function(o){e.isShow&&e.closeIcon&&27===o.keyCode&&i()};return{data:r,handleClose:i,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:l,moveHandler:function(o){if(e.fullscreen)return!1;var t,n,i=o.target,l=o.currentTarget.parentNode.parentNode.offsetHeight,s=o.currentTarget.parentNode.parentNode.offsetWidth;0!==r.positionX&&0!==r.positionY?(t=o.clientX-r.positionX,n=o.clientY-r.positionY):(t=o.clientX-i.offsetLeft,n=o.clientY-i.offsetTop),document.onmousemove=function(e){var o=window.innerWidth-s,i=window.innerHeight-l,a=e.clientX-t,d=e.clientY-n;o/2-a<=0?a=o/2:o/2+a<=0&&(a=-o/2),i/2-d<=0?d=i/2:i/2+d<=0&&(d=-i/2),r.positionX=a,r.positionY=d,r.moveStyle.left="calc(50% + ".concat(a,"px)"),r.moveStyle.top="calc(50% + ".concat(d,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}},render:function(){var e,t=this,r={header:function(){var e,n,r;return[(0,o.createVNode)("div",{class:["bk-dialog-tool",t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[(0,o.createVNode)("span",{class:["bk-dialog-close",t.closeIcon?"":"close-icon"],onClick:t.handleClose},[(0,o.createTextVNode)("+")])]),(0,o.createVNode)("div",{class:"bk-dialog-header"},[(0,o.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(t.headerAlign)},[null!==(r=null===(n=(e=t.$slots).header)||void 0===n?void 0:n.call(e))&&void 0!==r?r:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,r,i;return(0,o.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(t.footerAlign)},[null!==(i=null===(r=(e=t.$slots).footer)||void 0===r?void 0:r.call(e))&&void 0!==i?i:(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(n(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}}),(0,o.createVNode)(n(),{style:"margin-left: 8px;",onClick:t.handleClose},{default:function(){return[t.cancelText]}})])])}},l="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return(0,o.createVNode)(i(),(0,o.mergeProps)(this.$props,{class:[l,this.fullscreen?"bk-model-fullscreen":this.size],style:this.data.moveStyle}),"function"==typeof(e=r)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,o.isVNode)(e)?r:{default:function(){return[r]}})}}),d=(0,e.withInstall)(a)})(),s})()));
|
package/lib/modal/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ declare const BkModal: {
|
|
8
8
|
$props: Partial<{
|
9
9
|
width: string | number;
|
10
10
|
height: string | number;
|
11
|
+
draggable: boolean;
|
11
12
|
showMask: boolean;
|
12
13
|
size: string;
|
13
14
|
isShow: boolean;
|
@@ -17,59 +18,66 @@ declare const BkModal: {
|
|
17
18
|
escClose: boolean;
|
18
19
|
maskClose: boolean;
|
19
20
|
fullscreen: boolean;
|
20
|
-
renderDirective: string;
|
21
21
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
22
|
-
isShow: {
|
23
|
-
|
22
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
23
|
+
default: boolean;
|
24
|
+
} & {
|
24
25
|
default: boolean;
|
25
26
|
};
|
26
|
-
width: {
|
27
|
-
type: (NumberConstructor | StringConstructor)[];
|
27
|
+
width: (import("vue-types").VueTypeValidableDef<string> & {
|
28
28
|
default: string;
|
29
|
-
}
|
30
|
-
|
31
|
-
|
29
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
30
|
+
default: number;
|
31
|
+
});
|
32
|
+
height: (import("vue-types").VueTypeValidableDef<string> & {
|
32
33
|
default: string;
|
33
|
-
}
|
34
|
-
|
35
|
-
|
34
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
35
|
+
default: number;
|
36
|
+
});
|
37
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
36
38
|
default: string;
|
37
|
-
}
|
38
|
-
|
39
|
-
|
39
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
40
|
+
default: () => unknown[];
|
41
|
+
});
|
42
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
43
|
+
default: boolean;
|
44
|
+
} & {
|
40
45
|
default: boolean;
|
41
46
|
};
|
42
|
-
showMask: {
|
43
|
-
|
47
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
+
default: boolean;
|
49
|
+
} & {
|
44
50
|
default: boolean;
|
45
51
|
};
|
46
|
-
closeIcon: {
|
47
|
-
|
52
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
+
default: boolean;
|
54
|
+
} & {
|
48
55
|
default: boolean;
|
49
56
|
};
|
50
|
-
escClose: {
|
51
|
-
|
57
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
58
|
+
default: boolean;
|
59
|
+
} & {
|
52
60
|
default: boolean;
|
53
61
|
};
|
54
|
-
maskClose: {
|
55
|
-
|
62
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
63
|
+
default: boolean;
|
64
|
+
} & {
|
56
65
|
default: boolean;
|
57
66
|
};
|
58
|
-
fullscreen: {
|
59
|
-
|
67
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
68
|
+
default: boolean;
|
69
|
+
} & {
|
60
70
|
default: boolean;
|
61
71
|
};
|
62
|
-
size: {
|
63
|
-
type: StringConstructor;
|
72
|
+
size: import("vue-types").VueTypeDef<string> & {
|
64
73
|
default: string;
|
65
|
-
validator: (value: string) => boolean;
|
66
74
|
};
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
75
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
76
|
+
default: boolean;
|
77
|
+
} & {
|
78
|
+
default: boolean;
|
71
79
|
};
|
72
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen"
|
80
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "draggable" | "showMask" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen">;
|
73
81
|
$attrs: {
|
74
82
|
[x: string]: unknown;
|
75
83
|
};
|
@@ -84,55 +92,63 @@ declare const BkModal: {
|
|
84
92
|
$emit: (event: string, ...args: any[]) => void;
|
85
93
|
$el: any;
|
86
94
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
87
|
-
isShow: {
|
88
|
-
|
95
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
96
|
+
default: boolean;
|
97
|
+
} & {
|
89
98
|
default: boolean;
|
90
99
|
};
|
91
|
-
width: {
|
92
|
-
type: (NumberConstructor | StringConstructor)[];
|
100
|
+
width: (import("vue-types").VueTypeValidableDef<string> & {
|
93
101
|
default: string;
|
94
|
-
}
|
95
|
-
|
96
|
-
|
102
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
103
|
+
default: number;
|
104
|
+
});
|
105
|
+
height: (import("vue-types").VueTypeValidableDef<string> & {
|
97
106
|
default: string;
|
98
|
-
}
|
99
|
-
|
100
|
-
|
107
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
108
|
+
default: number;
|
109
|
+
});
|
110
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
101
111
|
default: string;
|
102
|
-
}
|
103
|
-
|
104
|
-
|
112
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
113
|
+
default: () => unknown[];
|
114
|
+
});
|
115
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
} & {
|
105
118
|
default: boolean;
|
106
119
|
};
|
107
|
-
showMask: {
|
108
|
-
|
120
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
121
|
+
default: boolean;
|
122
|
+
} & {
|
109
123
|
default: boolean;
|
110
124
|
};
|
111
|
-
closeIcon: {
|
112
|
-
|
125
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
126
|
+
default: boolean;
|
127
|
+
} & {
|
113
128
|
default: boolean;
|
114
129
|
};
|
115
|
-
escClose: {
|
116
|
-
|
130
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
|
+
default: boolean;
|
132
|
+
} & {
|
117
133
|
default: boolean;
|
118
134
|
};
|
119
|
-
maskClose: {
|
120
|
-
|
135
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
|
+
default: boolean;
|
137
|
+
} & {
|
121
138
|
default: boolean;
|
122
139
|
};
|
123
|
-
fullscreen: {
|
124
|
-
|
140
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
141
|
+
default: boolean;
|
142
|
+
} & {
|
125
143
|
default: boolean;
|
126
144
|
};
|
127
|
-
size: {
|
128
|
-
type: StringConstructor;
|
145
|
+
size: import("vue-types").VueTypeDef<string> & {
|
129
146
|
default: string;
|
130
|
-
validator: (value: string) => boolean;
|
131
147
|
};
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
148
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
149
|
+
default: boolean;
|
150
|
+
} & {
|
151
|
+
default: boolean;
|
136
152
|
};
|
137
153
|
}>>, unknown, {
|
138
154
|
visible: boolean;
|
@@ -143,6 +159,7 @@ declare const BkModal: {
|
|
143
159
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
144
160
|
width: string | number;
|
145
161
|
height: string | number;
|
162
|
+
draggable: boolean;
|
146
163
|
showMask: boolean;
|
147
164
|
size: string;
|
148
165
|
isShow: boolean;
|
@@ -152,7 +169,6 @@ declare const BkModal: {
|
|
152
169
|
escClose: boolean;
|
153
170
|
maskClose: boolean;
|
154
171
|
fullscreen: boolean;
|
155
|
-
renderDirective: string;
|
156
172
|
}> & {
|
157
173
|
beforeCreate?: (() => void) | (() => void)[];
|
158
174
|
created?: (() => void) | (() => void)[];
|
@@ -174,55 +190,63 @@ declare const BkModal: {
|
|
174
190
|
$nextTick: typeof import("vue").nextTick;
|
175
191
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
176
192
|
} & Readonly<import("vue").ExtractPropTypes<{
|
177
|
-
isShow: {
|
178
|
-
|
193
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
194
|
+
default: boolean;
|
195
|
+
} & {
|
179
196
|
default: boolean;
|
180
197
|
};
|
181
|
-
width: {
|
182
|
-
type: (NumberConstructor | StringConstructor)[];
|
198
|
+
width: (import("vue-types").VueTypeValidableDef<string> & {
|
183
199
|
default: string;
|
184
|
-
}
|
185
|
-
|
186
|
-
|
200
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
201
|
+
default: number;
|
202
|
+
});
|
203
|
+
height: (import("vue-types").VueTypeValidableDef<string> & {
|
187
204
|
default: string;
|
188
|
-
}
|
189
|
-
|
190
|
-
|
205
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
206
|
+
default: number;
|
207
|
+
});
|
208
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
191
209
|
default: string;
|
192
|
-
}
|
193
|
-
|
194
|
-
|
210
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
211
|
+
default: () => unknown[];
|
212
|
+
});
|
213
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
214
|
+
default: boolean;
|
215
|
+
} & {
|
195
216
|
default: boolean;
|
196
217
|
};
|
197
|
-
showMask: {
|
198
|
-
|
218
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
219
|
+
default: boolean;
|
220
|
+
} & {
|
199
221
|
default: boolean;
|
200
222
|
};
|
201
|
-
closeIcon: {
|
202
|
-
|
223
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
224
|
+
default: boolean;
|
225
|
+
} & {
|
203
226
|
default: boolean;
|
204
227
|
};
|
205
|
-
escClose: {
|
206
|
-
|
228
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
229
|
+
default: boolean;
|
230
|
+
} & {
|
207
231
|
default: boolean;
|
208
232
|
};
|
209
|
-
maskClose: {
|
210
|
-
|
233
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
234
|
+
default: boolean;
|
235
|
+
} & {
|
211
236
|
default: boolean;
|
212
237
|
};
|
213
|
-
fullscreen: {
|
214
|
-
|
238
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
239
|
+
default: boolean;
|
240
|
+
} & {
|
215
241
|
default: boolean;
|
216
242
|
};
|
217
|
-
size: {
|
218
|
-
type: StringConstructor;
|
243
|
+
size: import("vue-types").VueTypeDef<string> & {
|
219
244
|
default: string;
|
220
|
-
validator: (value: string) => boolean;
|
221
245
|
};
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
246
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
247
|
+
default: boolean;
|
248
|
+
} & {
|
249
|
+
default: boolean;
|
226
250
|
};
|
227
251
|
}>> & import("vue").ShallowUnwrapRef<{}> & {
|
228
252
|
visible: boolean;
|
@@ -235,55 +259,63 @@ declare const BkModal: {
|
|
235
259
|
__isTeleport?: never;
|
236
260
|
__isSuspense?: never;
|
237
261
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
238
|
-
isShow: {
|
239
|
-
|
262
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
263
|
+
default: boolean;
|
264
|
+
} & {
|
240
265
|
default: boolean;
|
241
266
|
};
|
242
|
-
width: {
|
243
|
-
type: (NumberConstructor | StringConstructor)[];
|
267
|
+
width: (import("vue-types").VueTypeValidableDef<string> & {
|
244
268
|
default: string;
|
245
|
-
}
|
246
|
-
|
247
|
-
|
269
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
270
|
+
default: number;
|
271
|
+
});
|
272
|
+
height: (import("vue-types").VueTypeValidableDef<string> & {
|
248
273
|
default: string;
|
249
|
-
}
|
250
|
-
|
251
|
-
|
274
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
275
|
+
default: number;
|
276
|
+
});
|
277
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
252
278
|
default: string;
|
253
|
-
}
|
254
|
-
|
255
|
-
|
279
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
280
|
+
default: () => unknown[];
|
281
|
+
});
|
282
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
283
|
+
default: boolean;
|
284
|
+
} & {
|
256
285
|
default: boolean;
|
257
286
|
};
|
258
|
-
showMask: {
|
259
|
-
|
287
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
288
|
+
default: boolean;
|
289
|
+
} & {
|
260
290
|
default: boolean;
|
261
291
|
};
|
262
|
-
closeIcon: {
|
263
|
-
|
292
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
293
|
+
default: boolean;
|
294
|
+
} & {
|
264
295
|
default: boolean;
|
265
296
|
};
|
266
|
-
escClose: {
|
267
|
-
|
297
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
298
|
+
default: boolean;
|
299
|
+
} & {
|
268
300
|
default: boolean;
|
269
301
|
};
|
270
|
-
maskClose: {
|
271
|
-
|
302
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
303
|
+
default: boolean;
|
304
|
+
} & {
|
272
305
|
default: boolean;
|
273
306
|
};
|
274
|
-
fullscreen: {
|
275
|
-
|
307
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
308
|
+
default: boolean;
|
309
|
+
} & {
|
276
310
|
default: boolean;
|
277
311
|
};
|
278
|
-
size: {
|
279
|
-
type: StringConstructor;
|
312
|
+
size: import("vue-types").VueTypeDef<string> & {
|
280
313
|
default: string;
|
281
|
-
validator: (value: string) => boolean;
|
282
314
|
};
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
315
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
316
|
+
default: boolean;
|
317
|
+
} & {
|
318
|
+
default: boolean;
|
287
319
|
};
|
288
320
|
}>>, unknown, {
|
289
321
|
visible: boolean;
|
@@ -294,6 +326,7 @@ declare const BkModal: {
|
|
294
326
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
295
327
|
width: string | number;
|
296
328
|
height: string | number;
|
329
|
+
draggable: boolean;
|
297
330
|
showMask: boolean;
|
298
331
|
size: string;
|
299
332
|
isShow: boolean;
|
@@ -303,58 +336,65 @@ declare const BkModal: {
|
|
303
336
|
escClose: boolean;
|
304
337
|
maskClose: boolean;
|
305
338
|
fullscreen: boolean;
|
306
|
-
renderDirective: string;
|
307
339
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
308
340
|
propsMixin: {
|
309
|
-
isShow: {
|
310
|
-
|
341
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
342
|
+
default: boolean;
|
343
|
+
} & {
|
311
344
|
default: boolean;
|
312
345
|
};
|
313
|
-
width: {
|
314
|
-
type: (NumberConstructor | StringConstructor)[];
|
346
|
+
width: (import("vue-types").VueTypeValidableDef<string> & {
|
315
347
|
default: string;
|
316
|
-
}
|
317
|
-
|
318
|
-
|
348
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
349
|
+
default: number;
|
350
|
+
});
|
351
|
+
height: (import("vue-types").VueTypeValidableDef<string> & {
|
319
352
|
default: string;
|
320
|
-
}
|
321
|
-
|
322
|
-
|
353
|
+
}) | (import("vue-types").VueTypeValidableDef<number> & {
|
354
|
+
default: number;
|
355
|
+
});
|
356
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
323
357
|
default: string;
|
324
|
-
}
|
325
|
-
|
326
|
-
|
358
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
359
|
+
default: () => unknown[];
|
360
|
+
});
|
361
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
362
|
+
default: boolean;
|
363
|
+
} & {
|
327
364
|
default: boolean;
|
328
365
|
};
|
329
|
-
showMask: {
|
330
|
-
|
366
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
367
|
+
default: boolean;
|
368
|
+
} & {
|
331
369
|
default: boolean;
|
332
370
|
};
|
333
|
-
closeIcon: {
|
334
|
-
|
371
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
372
|
+
default: boolean;
|
373
|
+
} & {
|
335
374
|
default: boolean;
|
336
375
|
};
|
337
|
-
escClose: {
|
338
|
-
|
376
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
377
|
+
default: boolean;
|
378
|
+
} & {
|
339
379
|
default: boolean;
|
340
380
|
};
|
341
|
-
maskClose: {
|
342
|
-
|
381
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
382
|
+
default: boolean;
|
383
|
+
} & {
|
343
384
|
default: boolean;
|
344
385
|
};
|
345
|
-
fullscreen: {
|
346
|
-
|
386
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
387
|
+
default: boolean;
|
388
|
+
} & {
|
347
389
|
default: boolean;
|
348
390
|
};
|
349
|
-
size: {
|
350
|
-
type: StringConstructor;
|
391
|
+
size: import("vue-types").VueTypeDef<string> & {
|
351
392
|
default: string;
|
352
|
-
validator: (value: string) => boolean;
|
353
393
|
};
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
394
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
395
|
+
default: boolean;
|
396
|
+
} & {
|
397
|
+
default: boolean;
|
358
398
|
};
|
359
399
|
};
|
360
400
|
}>;
|
package/lib/modal/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function s(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,s),i.exports}s.d=(e,o)=>{for(var t in o)s.o(o,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{BkModal:()=>n,default:()=>l,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.string||e.PropTypes.number,height:e.PropTypes.string||e.PropTypes.number,customClass:e.PropTypes.string||e.PropTypes.array,scrollable:e.PropTypes.bool.def(!0),showMask:e.PropTypes.bool.def(!0),closeIcon:e.PropTypes.bool.def(!0),escClose:e.PropTypes.bool.def(!0),maskClose:e.PropTypes.bool.def(!0),fullscreen:e.PropTypes.bool.def(!1),size:e.PropTypes.commonType(["normal","small","medium","large"],"size").def("normal"),draggable:e.PropTypes.bool.def(!0)};const r=(0,o.defineComponent)({name:"Modal",props:Object.assign({},t),data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,minHeigth:"".concat(200,"px"),display:this.visible?"inherit":"none"}}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(o){var t=this;o?this.$nextTick((function(){var o=t.showMask?{}:{"background-color":"rgba(0,0,0,0)"};e.bkPopIndexManager.show(t.$el,t.showMask,o)})):e.bkPopIndexManager.hide(this.$el)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},render:function(){var e,t,r,s,i,n,l,a,d;return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.customClass],style:this.compStyle},[this.isShow?(0,o.createVNode)("div",{class:"bk-modal-body"},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(r=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==r?r:""]),(0,o.createVNode)("div",{class:"bk-modal-content"},[null!==(n=null===(i=(s=this.$slots).default)||void 0===i?void 0:i.call(s))&&void 0!==n?n:""]),(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(d=null===(a=(l=this.$slots).footer)||void 0===a?void 0:a.call(l))&&void 0!==d?d:""])]):""])}});var n=(0,e.withInstallProps)(r,{propsMixin:t},!0);const l=n})(),i})()));
|