bkui-vue 0.0.1-beta.45 → 0.0.1-beta.48
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 +27 -27
- package/dist/index.esm.js +698 -319
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/lib/button/index.js +1 -1
- package/lib/checkbox/checkbox.css +12 -0
- package/lib/checkbox/checkbox.d.ts +5 -11
- package/lib/checkbox/checkbox.less +17 -0
- package/lib/checkbox/checkbox.variable.css +12 -0
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +10 -18
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/dialog/dialog.d.ts +89 -17
- package/lib/dialog/index.d.ts +191 -36
- package/lib/dialog/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form.css +73 -12
- package/lib/form/form.less +120 -46
- package/lib/form/form.variable.css +167 -12
- package/lib/form/index.d.ts +17 -1
- package/lib/form/index.js +1 -1
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/modal/index.d.ts +149 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +20 -0
- package/lib/modal/modal.d.ts +58 -0
- package/lib/modal/modal.less +25 -0
- package/lib/modal/modal.variable.css +20 -0
- package/lib/modal/props.mixin.d.ts +26 -0
- package/lib/popover/index.d.ts +33 -2
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +16 -1
- package/lib/popover/props.d.ts +12 -0
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +17 -16
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +5 -4
- package/lib/radio/radio.css +2 -2
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +2 -2
- package/lib/radio/radio.variable.css +2 -2
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.js +1 -1
- package/lib/sideslider/index.d.ts +123 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +58 -0
- package/lib/slider/index.js +1 -1
- package/lib/switcher/switcher.less +2 -0
- 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/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +162 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +116 -0
- package/lib/table/props.d.ts +8 -1
- package/lib/table/render.d.ts +10 -15
- package/lib/table/table.css +94 -26
- package/lib/table/table.less +9 -28
- package/lib/table/table.variable.css +108 -40
- package/lib/table/utils.d.ts +10 -1
- package/package.json +30 -16
- package/lib/dialog/dialog.css +0 -68
- package/lib/dialog/dialog.less +0 -80
- package/lib/dialog/dialog.variable.css +0 -68
package/lib/dialog/index.d.ts
CHANGED
@@ -7,14 +7,29 @@ declare const BkDialog: {
|
|
7
7
|
height: string | number;
|
8
8
|
title: string;
|
9
9
|
showMask: boolean;
|
10
|
+
theme: string;
|
11
|
+
size: string;
|
10
12
|
isShow: boolean;
|
11
13
|
customClass: string | unknown[];
|
12
14
|
scrollable: boolean;
|
15
|
+
closeIcon: boolean;
|
16
|
+
escClose: boolean;
|
17
|
+
maskClose: boolean;
|
18
|
+
fullscreen: boolean;
|
19
|
+
renderDirective: string;
|
13
20
|
confirmText: string;
|
14
21
|
cancelText: string;
|
15
22
|
headerAlign: string;
|
16
23
|
footerAlign: string;
|
17
24
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
width: {
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
27
|
+
default: any;
|
28
|
+
};
|
29
|
+
height: {
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
31
|
+
default: any;
|
32
|
+
};
|
18
33
|
confirmText: {
|
19
34
|
type: StringConstructor;
|
20
35
|
default: string;
|
@@ -37,18 +52,15 @@ declare const BkDialog: {
|
|
37
52
|
default: string;
|
38
53
|
validator: (value: string) => boolean;
|
39
54
|
};
|
55
|
+
theme: {
|
56
|
+
type: StringConstructor;
|
57
|
+
default: string;
|
58
|
+
validator: (value: string) => boolean;
|
59
|
+
};
|
40
60
|
isShow: {
|
41
61
|
type: BooleanConstructor;
|
42
62
|
default: boolean;
|
43
63
|
};
|
44
|
-
width: {
|
45
|
-
type: (NumberConstructor | StringConstructor)[];
|
46
|
-
default: string;
|
47
|
-
};
|
48
|
-
height: {
|
49
|
-
type: (NumberConstructor | StringConstructor)[];
|
50
|
-
default: string;
|
51
|
-
};
|
52
64
|
customClass: {
|
53
65
|
type: (ArrayConstructor | StringConstructor)[];
|
54
66
|
default: string;
|
@@ -61,10 +73,37 @@ declare const BkDialog: {
|
|
61
73
|
type: BooleanConstructor;
|
62
74
|
default: boolean;
|
63
75
|
};
|
76
|
+
closeIcon: {
|
77
|
+
type: BooleanConstructor;
|
78
|
+
default: boolean;
|
79
|
+
};
|
80
|
+
escClose: {
|
81
|
+
type: BooleanConstructor;
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
maskClose: {
|
85
|
+
type: BooleanConstructor;
|
86
|
+
default: boolean;
|
87
|
+
};
|
88
|
+
fullscreen: {
|
89
|
+
type: BooleanConstructor;
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
size: {
|
93
|
+
type: StringConstructor;
|
94
|
+
default: string;
|
95
|
+
validator: (value: string) => boolean;
|
96
|
+
};
|
97
|
+
renderDirective: {
|
98
|
+
type: StringConstructor;
|
99
|
+
default: string;
|
100
|
+
validator: (value: string) => boolean;
|
101
|
+
};
|
64
102
|
}>> & {
|
65
103
|
onClosed?: (...args: any[]) => any;
|
66
104
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
67
|
-
|
105
|
+
onConfirm?: (...args: any[]) => any;
|
106
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "title" | "showMask" | "theme" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective" | "confirmText" | "cancelText" | "headerAlign" | "footerAlign">;
|
68
107
|
$attrs: {
|
69
108
|
[x: string]: unknown;
|
70
109
|
};
|
@@ -76,9 +115,17 @@ declare const BkDialog: {
|
|
76
115
|
}>;
|
77
116
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
117
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
-
$emit: (event: "closed" | "update:isShow", ...args: any[]) => void;
|
118
|
+
$emit: (event: "closed" | "update:isShow" | "confirm", ...args: any[]) => void;
|
80
119
|
$el: any;
|
81
120
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
121
|
+
width: {
|
122
|
+
type: (NumberConstructor | StringConstructor)[];
|
123
|
+
default: any;
|
124
|
+
};
|
125
|
+
height: {
|
126
|
+
type: (NumberConstructor | StringConstructor)[];
|
127
|
+
default: any;
|
128
|
+
};
|
82
129
|
confirmText: {
|
83
130
|
type: StringConstructor;
|
84
131
|
default: string;
|
@@ -101,18 +148,15 @@ declare const BkDialog: {
|
|
101
148
|
default: string;
|
102
149
|
validator: (value: string) => boolean;
|
103
150
|
};
|
151
|
+
theme: {
|
152
|
+
type: StringConstructor;
|
153
|
+
default: string;
|
154
|
+
validator: (value: string) => boolean;
|
155
|
+
};
|
104
156
|
isShow: {
|
105
157
|
type: BooleanConstructor;
|
106
158
|
default: boolean;
|
107
159
|
};
|
108
|
-
width: {
|
109
|
-
type: (NumberConstructor | StringConstructor)[];
|
110
|
-
default: string;
|
111
|
-
};
|
112
|
-
height: {
|
113
|
-
type: (NumberConstructor | StringConstructor)[];
|
114
|
-
default: string;
|
115
|
-
};
|
116
160
|
customClass: {
|
117
161
|
type: (ArrayConstructor | StringConstructor)[];
|
118
162
|
default: string;
|
@@ -125,19 +169,55 @@ declare const BkDialog: {
|
|
125
169
|
type: BooleanConstructor;
|
126
170
|
default: boolean;
|
127
171
|
};
|
172
|
+
closeIcon: {
|
173
|
+
type: BooleanConstructor;
|
174
|
+
default: boolean;
|
175
|
+
};
|
176
|
+
escClose: {
|
177
|
+
type: BooleanConstructor;
|
178
|
+
default: boolean;
|
179
|
+
};
|
180
|
+
maskClose: {
|
181
|
+
type: BooleanConstructor;
|
182
|
+
default: boolean;
|
183
|
+
};
|
184
|
+
fullscreen: {
|
185
|
+
type: BooleanConstructor;
|
186
|
+
default: boolean;
|
187
|
+
};
|
188
|
+
size: {
|
189
|
+
type: StringConstructor;
|
190
|
+
default: string;
|
191
|
+
validator: (value: string) => boolean;
|
192
|
+
};
|
193
|
+
renderDirective: {
|
194
|
+
type: StringConstructor;
|
195
|
+
default: string;
|
196
|
+
validator: (value: string) => boolean;
|
197
|
+
};
|
128
198
|
}>> & {
|
129
199
|
onClosed?: (...args: any[]) => any;
|
130
200
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
201
|
+
onConfirm?: (...args: any[]) => any;
|
131
202
|
}, unknown, unknown, {}, {
|
132
203
|
handleClose(): void;
|
133
|
-
|
204
|
+
handleConfirm(): void;
|
205
|
+
escCloseHandler(e: any): void;
|
206
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], string, {
|
134
207
|
width: string | number;
|
135
208
|
height: string | number;
|
136
209
|
title: string;
|
137
210
|
showMask: boolean;
|
211
|
+
theme: string;
|
212
|
+
size: string;
|
138
213
|
isShow: boolean;
|
139
214
|
customClass: string | unknown[];
|
140
215
|
scrollable: boolean;
|
216
|
+
closeIcon: boolean;
|
217
|
+
escClose: boolean;
|
218
|
+
maskClose: boolean;
|
219
|
+
fullscreen: boolean;
|
220
|
+
renderDirective: string;
|
141
221
|
confirmText: string;
|
142
222
|
cancelText: string;
|
143
223
|
headerAlign: string;
|
@@ -163,6 +243,14 @@ declare const BkDialog: {
|
|
163
243
|
$nextTick: typeof import("vue").nextTick;
|
164
244
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
165
245
|
} & Readonly<import("vue").ExtractPropTypes<{
|
246
|
+
width: {
|
247
|
+
type: (NumberConstructor | StringConstructor)[];
|
248
|
+
default: any;
|
249
|
+
};
|
250
|
+
height: {
|
251
|
+
type: (NumberConstructor | StringConstructor)[];
|
252
|
+
default: any;
|
253
|
+
};
|
166
254
|
confirmText: {
|
167
255
|
type: StringConstructor;
|
168
256
|
default: string;
|
@@ -185,18 +273,15 @@ declare const BkDialog: {
|
|
185
273
|
default: string;
|
186
274
|
validator: (value: string) => boolean;
|
187
275
|
};
|
276
|
+
theme: {
|
277
|
+
type: StringConstructor;
|
278
|
+
default: string;
|
279
|
+
validator: (value: string) => boolean;
|
280
|
+
};
|
188
281
|
isShow: {
|
189
282
|
type: BooleanConstructor;
|
190
283
|
default: boolean;
|
191
284
|
};
|
192
|
-
width: {
|
193
|
-
type: (NumberConstructor | StringConstructor)[];
|
194
|
-
default: string;
|
195
|
-
};
|
196
|
-
height: {
|
197
|
-
type: (NumberConstructor | StringConstructor)[];
|
198
|
-
default: string;
|
199
|
-
};
|
200
285
|
customClass: {
|
201
286
|
type: (ArrayConstructor | StringConstructor)[];
|
202
287
|
default: string;
|
@@ -209,16 +294,53 @@ declare const BkDialog: {
|
|
209
294
|
type: BooleanConstructor;
|
210
295
|
default: boolean;
|
211
296
|
};
|
297
|
+
closeIcon: {
|
298
|
+
type: BooleanConstructor;
|
299
|
+
default: boolean;
|
300
|
+
};
|
301
|
+
escClose: {
|
302
|
+
type: BooleanConstructor;
|
303
|
+
default: boolean;
|
304
|
+
};
|
305
|
+
maskClose: {
|
306
|
+
type: BooleanConstructor;
|
307
|
+
default: boolean;
|
308
|
+
};
|
309
|
+
fullscreen: {
|
310
|
+
type: BooleanConstructor;
|
311
|
+
default: boolean;
|
312
|
+
};
|
313
|
+
size: {
|
314
|
+
type: StringConstructor;
|
315
|
+
default: string;
|
316
|
+
validator: (value: string) => boolean;
|
317
|
+
};
|
318
|
+
renderDirective: {
|
319
|
+
type: StringConstructor;
|
320
|
+
default: string;
|
321
|
+
validator: (value: string) => boolean;
|
322
|
+
};
|
212
323
|
}>> & {
|
213
324
|
onClosed?: (...args: any[]) => any;
|
214
325
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
326
|
+
onConfirm?: (...args: any[]) => any;
|
215
327
|
} & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
216
328
|
handleClose(): void;
|
329
|
+
handleConfirm(): void;
|
330
|
+
escCloseHandler(e: any): void;
|
217
331
|
} & import("vue").ComponentCustomProperties;
|
218
332
|
__isFragment?: never;
|
219
333
|
__isTeleport?: never;
|
220
334
|
__isSuspense?: never;
|
221
335
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
336
|
+
width: {
|
337
|
+
type: (NumberConstructor | StringConstructor)[];
|
338
|
+
default: any;
|
339
|
+
};
|
340
|
+
height: {
|
341
|
+
type: (NumberConstructor | StringConstructor)[];
|
342
|
+
default: any;
|
343
|
+
};
|
222
344
|
confirmText: {
|
223
345
|
type: StringConstructor;
|
224
346
|
default: string;
|
@@ -241,18 +363,15 @@ declare const BkDialog: {
|
|
241
363
|
default: string;
|
242
364
|
validator: (value: string) => boolean;
|
243
365
|
};
|
366
|
+
theme: {
|
367
|
+
type: StringConstructor;
|
368
|
+
default: string;
|
369
|
+
validator: (value: string) => boolean;
|
370
|
+
};
|
244
371
|
isShow: {
|
245
372
|
type: BooleanConstructor;
|
246
373
|
default: boolean;
|
247
374
|
};
|
248
|
-
width: {
|
249
|
-
type: (NumberConstructor | StringConstructor)[];
|
250
|
-
default: string;
|
251
|
-
};
|
252
|
-
height: {
|
253
|
-
type: (NumberConstructor | StringConstructor)[];
|
254
|
-
default: string;
|
255
|
-
};
|
256
375
|
customClass: {
|
257
376
|
type: (ArrayConstructor | StringConstructor)[];
|
258
377
|
default: string;
|
@@ -265,19 +384,55 @@ declare const BkDialog: {
|
|
265
384
|
type: BooleanConstructor;
|
266
385
|
default: boolean;
|
267
386
|
};
|
387
|
+
closeIcon: {
|
388
|
+
type: BooleanConstructor;
|
389
|
+
default: boolean;
|
390
|
+
};
|
391
|
+
escClose: {
|
392
|
+
type: BooleanConstructor;
|
393
|
+
default: boolean;
|
394
|
+
};
|
395
|
+
maskClose: {
|
396
|
+
type: BooleanConstructor;
|
397
|
+
default: boolean;
|
398
|
+
};
|
399
|
+
fullscreen: {
|
400
|
+
type: BooleanConstructor;
|
401
|
+
default: boolean;
|
402
|
+
};
|
403
|
+
size: {
|
404
|
+
type: StringConstructor;
|
405
|
+
default: string;
|
406
|
+
validator: (value: string) => boolean;
|
407
|
+
};
|
408
|
+
renderDirective: {
|
409
|
+
type: StringConstructor;
|
410
|
+
default: string;
|
411
|
+
validator: (value: string) => boolean;
|
412
|
+
};
|
268
413
|
}>> & {
|
269
414
|
onClosed?: (...args: any[]) => any;
|
270
415
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
416
|
+
onConfirm?: (...args: any[]) => any;
|
271
417
|
}, unknown, unknown, {}, {
|
272
418
|
handleClose(): void;
|
273
|
-
|
419
|
+
handleConfirm(): void;
|
420
|
+
escCloseHandler(e: any): void;
|
421
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], "closed" | "update:isShow" | "confirm", {
|
274
422
|
width: string | number;
|
275
423
|
height: string | number;
|
276
424
|
title: string;
|
277
425
|
showMask: boolean;
|
426
|
+
theme: string;
|
427
|
+
size: string;
|
278
428
|
isShow: boolean;
|
279
429
|
customClass: string | unknown[];
|
280
430
|
scrollable: boolean;
|
431
|
+
closeIcon: boolean;
|
432
|
+
escClose: boolean;
|
433
|
+
maskClose: boolean;
|
434
|
+
fullscreen: boolean;
|
435
|
+
renderDirective: string;
|
281
436
|
confirmText: string;
|
282
437
|
cancelText: string;
|
283
438
|
headerAlign: string;
|
package/lib/dialog/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={4976:e=>{e.exports=o},8014:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={4976:e=>{e.exports=o},8014:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,l),o.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{l.r(a),l.d(a,{default:()=>d});var e=l(4212),t=l(748),o=l(4976),r=l.n(o),n=l(8014),i=l.n(n);const s=(0,t.defineComponent)({name:"Dialog",components:{BkModal:i(),BkButton:r()},props:Object.assign(Object.assign({},n.propsMixin),{width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},theme:{type:String,default:"primary",validator:function(e){return!(["primary","warning","success","danger"].indexOf(e)<0&&(console.error("theme property is not valid: '".concat(e,"'")),1))}}}),emits:["closed","update:isShow","confirm"],mounted:function(){this.escClose&&addEventListener("keydown",this.escCloseHandler)},beforeDestory:function(){this.escClose&&removeEventListener("keydown",this.escCloseHandler)},methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")},handleConfirm:function(){this.$emit("update:isShow",!1),this.$emit("confirm")},escCloseHandler:function(e){this.isShow&&this.closeIcon&&27===e.keyCode&&this.handleClose()}},render:function(){var e,o=this,n={header:function(){var e,r,n;return[(0,t.createVNode)("div",{class:"bk-dialog-tool"},[(0,t.createVNode)("span",{class:["bk-dialog-close",o.closeIcon?"":"close-icon"],onClick:o.handleClose},[(0,t.createTextVNode)("+")])]),(0,t.createVNode)("div",{class:"bk-dialog-header"},[(0,t.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(r=(e=o.$slots).header)||void 0===r?void 0:r.call(e))&&void 0!==n?n:o.title])])]},default:function(){var e,t,r;return null!==(r=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"default"},footer:function(){var e,n,i;return(0,t.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(i=null===(n=(e=o.$slots).footer)||void 0===n?void 0:n.call(e))&&void 0!==i?i:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(r(),{onClick:o.handleConfirm,theme:o.theme},{default:function(){return[o.confirmText]}}),(0,t.createVNode)(r(),{style:"margin-left: 8px;",onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},l="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return(0,t.createVNode)(i(),(0,t.mergeProps)(this.$props,{class:l}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)?n:{default:function(){return[n]}})}}),d=(0,e.withInstall)(s)})(),a})()));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
headBackgroundColor: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
tailBackgroundColor: StringConstructor;
|
7
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
headBackgroundColor: {
|
9
|
+
type: StringConstructor;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
tailBackgroundColor: StringConstructor;
|
13
|
+
}>>, {
|
14
|
+
headBackgroundColor: string;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
package/lib/form/form.css
CHANGED
@@ -1,11 +1,22 @@
|
|
1
1
|
.bk-form {
|
2
2
|
text-align: left;
|
3
3
|
}
|
4
|
-
.bk-form .bk-form-item {
|
4
|
+
.bk-form--vertical .bk-form-item {
|
5
|
+
flex-direction: column;
|
6
|
+
}
|
7
|
+
.bk-form--vertical .bk-form-label {
|
8
|
+
width: auto;
|
9
|
+
padding-right: 0;
|
10
|
+
text-align: left;
|
11
|
+
}
|
12
|
+
.bk-form--vertical .bk-form-content {
|
13
|
+
text-align: left;
|
14
|
+
}
|
15
|
+
.bk-form-item {
|
5
16
|
display: flex;
|
6
17
|
margin-bottom: 24px;
|
7
18
|
}
|
8
|
-
.bk-form
|
19
|
+
.bk-form-item.is-required .bk-form-label:after {
|
9
20
|
position: absolute;
|
10
21
|
width: 14px;
|
11
22
|
line-height: 32px;
|
@@ -13,7 +24,7 @@
|
|
13
24
|
text-align: center;
|
14
25
|
content: '*';
|
15
26
|
}
|
16
|
-
.bk-form
|
27
|
+
.bk-form-label {
|
17
28
|
position: relative;
|
18
29
|
width: 150px;
|
19
30
|
padding-right: 24px;
|
@@ -23,11 +34,11 @@
|
|
23
34
|
color: #63656e;
|
24
35
|
text-align: right;
|
25
36
|
}
|
26
|
-
.bk-form
|
37
|
+
.bk-form-content {
|
27
38
|
position: relative;
|
28
39
|
line-height: 32px;
|
29
40
|
}
|
30
|
-
.bk-form
|
41
|
+
.bk-form-error {
|
31
42
|
position: absolute;
|
32
43
|
left: 0;
|
33
44
|
padding-top: 4px;
|
@@ -36,14 +47,64 @@
|
|
36
47
|
color: #ea3636;
|
37
48
|
text-align: left;
|
38
49
|
}
|
39
|
-
.bk-
|
40
|
-
|
50
|
+
.bk-compose-form-item {
|
51
|
+
display: inline-block;
|
41
52
|
}
|
42
|
-
.bk-form
|
53
|
+
.bk-compose-form-item > .bk-input,
|
54
|
+
.bk-compose-form-item > .bk-select,
|
55
|
+
.bk-compose-form-item > .bk-cascade,
|
56
|
+
.bk-compose-form-item > .bk-color-picker,
|
57
|
+
.bk-compose-form-item > .bk-date-picker,
|
58
|
+
.bk-compose-form-item > .bk-tag-input,
|
59
|
+
.bk-compose-form-item > .bk-tag-selector,
|
60
|
+
.bk-compose-form-item > .bk-search-select {
|
61
|
+
float: left;
|
43
62
|
width: auto;
|
44
|
-
|
45
|
-
text-align: left;
|
63
|
+
margin-left: -1px;
|
46
64
|
}
|
47
|
-
.bk-form
|
48
|
-
|
65
|
+
.bk-compose-form-item .bk-input,
|
66
|
+
.bk-compose-form-item .bk-form-password,
|
67
|
+
.bk-compose-form-item .bk-form-textarea,
|
68
|
+
.bk-compose-form-item .bk-select,
|
69
|
+
.bk-compose-form-item .bk-cascade,
|
70
|
+
.bk-compose-form-item .bk-color-picker,
|
71
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor,
|
72
|
+
.bk-compose-form-item .bk-tag-input,
|
73
|
+
.bk-compose-form-item .bk-search-select {
|
74
|
+
border-radius: 0;
|
75
|
+
}
|
76
|
+
.bk-compose-form-item .bk-input.control-active,
|
77
|
+
.bk-compose-form-item .bk-select.is-focus,
|
78
|
+
.bk-compose-form-item .bk-cascade.is-focus,
|
79
|
+
.bk-compose-form-item .bk-color-picker.bk-color-picker-show-dropdown,
|
80
|
+
.bk-compose-form-item .bk-color-picker:hover,
|
81
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor:focus,
|
82
|
+
.bk-compose-form-item .bk-tag-input.active,
|
83
|
+
.bk-compose-form-item .bk-tag-selector,
|
84
|
+
.bk-compose-form-item .bk-search-select.is-focus {
|
85
|
+
z-index: 1;
|
86
|
+
opacity: 1;
|
87
|
+
}
|
88
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-input,
|
89
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-select,
|
90
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-cascade,
|
91
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-color-picker,
|
92
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-date-picker .bk-date-picker-editor,
|
93
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
94
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
95
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-search-select {
|
96
|
+
margin-left: 0;
|
97
|
+
border-top-right-radius: 0px;
|
98
|
+
border-bottom-right-radius: 0px;
|
99
|
+
}
|
100
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-input,
|
101
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-select,
|
102
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-cascade,
|
103
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-color-picker,
|
104
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-date-picker,
|
105
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
106
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
107
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-search-select {
|
108
|
+
border-top-right-radius: 2px;
|
109
|
+
border-bottom-right-radius: 2px;
|
49
110
|
}
|