bkui-vue 0.0.1-beta.44 → 0.0.1-beta.47
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 +689 -306
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/{animate-number.js → index.js} +1 -1
- package/lib/backtop/{backtop.js → index.js} +1 -1
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/index.js +1 -0
- package/lib/button/index.js +1 -0
- package/lib/card/index.js +1 -0
- 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 -0
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/index.js +1 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/dialog/dialog.css +3 -0
- package/lib/dialog/dialog.d.ts +89 -17
- package/lib/dialog/dialog.less +4 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.d.ts +191 -36
- package/lib/dialog/index.js +1 -0
- package/lib/directives/index.js +2 -0
- package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
- package/lib/divider/{divider.js → index.js} +0 -0
- package/lib/dropdown/{dropdown.js → index.js} +0 -0
- package/lib/exception/{exception.js → index.js} +1 -1
- package/lib/fixed-navbar/{fixed-navbar.js → 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 -0
- 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/{icon.js → index.js} +1 -1
- package/lib/input/index.js +1 -0
- package/lib/link/{link.js → index.js} +0 -0
- package/lib/loading/index.js +1 -0
- package/lib/menu/index.js +1 -0
- package/lib/message/{message.js → index.js} +0 -0
- package/lib/modal/index.d.ts +149 -1
- package/lib/modal/index.js +1 -0
- 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/navigation/index.js +1 -0
- package/lib/notify/index.js +1 -0
- package/lib/pagination/index.js +1 -0
- package/lib/popover/index.d.ts +33 -2
- package/lib/popover/index.js +1 -0
- package/lib/popover/popover.d.ts +16 -1
- package/lib/popover/props.d.ts +12 -0
- package/lib/process/index.js +1 -0
- package/lib/progress/index.js +1 -0
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +17 -16
- package/lib/radio/index.js +1 -0
- 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 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/select/index.js +1 -0
- package/lib/shared/index.js +1 -0
- package/lib/sideslider/index.d.ts +123 -1
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.d.ts +58 -0
- package/lib/slider/index.js +1 -0
- package/lib/steps/index.js +1 -0
- package/lib/swiper/index.js +1 -0
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.less +2 -0
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/index.js +1 -0
- 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/lib/tag/index.js +1 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/timeline/{timeline.js → index.js} +0 -0
- package/lib/transfer/index.js +1 -0
- package/lib/tree/index.js +1 -0
- package/lib/virtual-render/index.js +1 -0
- package/package.json +30 -16
- package/lib/alert/alert.js +0 -1
- package/lib/badge/badge.js +0 -1
- package/lib/breadcrumb/breadcrumb.js +0 -1
- package/lib/button/button.js +0 -1
- package/lib/card/card.js +0 -1
- package/lib/checkbox/checkbox.js +0 -1
- package/lib/code-diff/code-diff.js +0 -1
- package/lib/collapse/collapse.js +0 -1
- package/lib/date-picker/date-picker.js +0 -1
- package/lib/dialog/dialog.js +0 -1
- package/lib/directives/directives.js +0 -2
- package/lib/form/form.js +0 -1
- package/lib/input/input.js +0 -1
- package/lib/loading/loading.js +0 -1
- package/lib/menu/menu.js +0 -1
- package/lib/modal/modal.js +0 -1
- package/lib/navigation/navigation.js +0 -1
- package/lib/notify/notify.js +0 -1
- package/lib/pagination/pagination.js +0 -1
- package/lib/popover/popover.js +0 -1
- package/lib/process/process.js +0 -1
- package/lib/progress/progress.js +0 -1
- package/lib/radio/radio.js +0 -1
- package/lib/rate/rate.js +0 -1
- package/lib/resize-layout/resize-layout.js +0 -1
- package/lib/select/select.js +0 -1
- package/lib/shared/shared.js +0 -1
- package/lib/sideslider/sideslider.js +0 -1
- package/lib/slider/slider.js +0 -1
- package/lib/steps/steps.js +0 -1
- package/lib/swiper/swiper.js +0 -1
- package/lib/switcher/switcher.js +0 -1
- package/lib/tab/tab.js +0 -1
- package/lib/table/table.js +0 -1
- package/lib/tag/tag.js +0 -1
- package/lib/tag-input/tag-input.js +0 -1
- package/lib/transfer/transfer.js +0 -1
- package/lib/tree/tree.js +0 -1
- package/lib/virtual-render/virtual-render.js +0 -1
package/lib/dialog/dialog.d.ts
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
+
width: {
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
4
|
+
default: any;
|
5
|
+
};
|
6
|
+
height: {
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
8
|
+
default: any;
|
9
|
+
};
|
2
10
|
confirmText: {
|
3
11
|
type: StringConstructor;
|
4
12
|
default: string;
|
@@ -21,18 +29,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
29
|
default: string;
|
22
30
|
validator: (value: string) => boolean;
|
23
31
|
};
|
32
|
+
theme: {
|
33
|
+
type: StringConstructor;
|
34
|
+
default: string;
|
35
|
+
validator: (value: string) => boolean;
|
36
|
+
};
|
24
37
|
isShow: {
|
25
38
|
type: BooleanConstructor;
|
26
39
|
default: boolean;
|
27
40
|
};
|
28
|
-
width: {
|
29
|
-
type: (NumberConstructor | StringConstructor)[];
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
height: {
|
33
|
-
type: (NumberConstructor | StringConstructor)[];
|
34
|
-
default: string;
|
35
|
-
};
|
36
41
|
customClass: {
|
37
42
|
type: (ArrayConstructor | StringConstructor)[];
|
38
43
|
default: string;
|
@@ -45,9 +50,45 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
50
|
type: BooleanConstructor;
|
46
51
|
default: boolean;
|
47
52
|
};
|
53
|
+
closeIcon: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: boolean;
|
56
|
+
};
|
57
|
+
escClose: {
|
58
|
+
type: BooleanConstructor;
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
maskClose: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
fullscreen: {
|
66
|
+
type: BooleanConstructor;
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
size: {
|
70
|
+
type: StringConstructor;
|
71
|
+
default: string;
|
72
|
+
validator: (value: string) => boolean;
|
73
|
+
};
|
74
|
+
renderDirective: {
|
75
|
+
type: StringConstructor;
|
76
|
+
default: string;
|
77
|
+
validator: (value: string) => boolean;
|
78
|
+
};
|
48
79
|
}, unknown, unknown, {}, {
|
49
80
|
handleClose(): void;
|
50
|
-
|
81
|
+
handleConfirm(): void;
|
82
|
+
escCloseHandler(e: any): void;
|
83
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], "closed" | "update:isShow" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
84
|
+
width: {
|
85
|
+
type: (NumberConstructor | StringConstructor)[];
|
86
|
+
default: any;
|
87
|
+
};
|
88
|
+
height: {
|
89
|
+
type: (NumberConstructor | StringConstructor)[];
|
90
|
+
default: any;
|
91
|
+
};
|
51
92
|
confirmText: {
|
52
93
|
type: StringConstructor;
|
53
94
|
default: string;
|
@@ -70,18 +111,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
70
111
|
default: string;
|
71
112
|
validator: (value: string) => boolean;
|
72
113
|
};
|
114
|
+
theme: {
|
115
|
+
type: StringConstructor;
|
116
|
+
default: string;
|
117
|
+
validator: (value: string) => boolean;
|
118
|
+
};
|
73
119
|
isShow: {
|
74
120
|
type: BooleanConstructor;
|
75
121
|
default: boolean;
|
76
122
|
};
|
77
|
-
width: {
|
78
|
-
type: (NumberConstructor | StringConstructor)[];
|
79
|
-
default: string;
|
80
|
-
};
|
81
|
-
height: {
|
82
|
-
type: (NumberConstructor | StringConstructor)[];
|
83
|
-
default: string;
|
84
|
-
};
|
85
123
|
customClass: {
|
86
124
|
type: (ArrayConstructor | StringConstructor)[];
|
87
125
|
default: string;
|
@@ -94,17 +132,51 @@ declare const _default: import("vue").DefineComponent<{
|
|
94
132
|
type: BooleanConstructor;
|
95
133
|
default: boolean;
|
96
134
|
};
|
135
|
+
closeIcon: {
|
136
|
+
type: BooleanConstructor;
|
137
|
+
default: boolean;
|
138
|
+
};
|
139
|
+
escClose: {
|
140
|
+
type: BooleanConstructor;
|
141
|
+
default: boolean;
|
142
|
+
};
|
143
|
+
maskClose: {
|
144
|
+
type: BooleanConstructor;
|
145
|
+
default: boolean;
|
146
|
+
};
|
147
|
+
fullscreen: {
|
148
|
+
type: BooleanConstructor;
|
149
|
+
default: boolean;
|
150
|
+
};
|
151
|
+
size: {
|
152
|
+
type: StringConstructor;
|
153
|
+
default: string;
|
154
|
+
validator: (value: string) => boolean;
|
155
|
+
};
|
156
|
+
renderDirective: {
|
157
|
+
type: StringConstructor;
|
158
|
+
default: string;
|
159
|
+
validator: (value: string) => boolean;
|
160
|
+
};
|
97
161
|
}>> & {
|
98
162
|
onClosed?: (...args: any[]) => any;
|
99
163
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
164
|
+
onConfirm?: (...args: any[]) => any;
|
100
165
|
}, {
|
101
166
|
width: string | number;
|
102
167
|
height: string | number;
|
103
168
|
title: string;
|
104
169
|
showMask: boolean;
|
170
|
+
theme: string;
|
171
|
+
size: string;
|
105
172
|
isShow: boolean;
|
106
173
|
customClass: string | unknown[];
|
107
174
|
scrollable: boolean;
|
175
|
+
closeIcon: boolean;
|
176
|
+
escClose: boolean;
|
177
|
+
maskClose: boolean;
|
178
|
+
fullscreen: boolean;
|
179
|
+
renderDirective: string;
|
108
180
|
confirmText: string;
|
109
181
|
cancelText: string;
|
110
182
|
headerAlign: string;
|
package/lib/dialog/dialog.less
CHANGED
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;
|
@@ -0,0 +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}},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,2 @@
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("@popperjs/core"),require("../styles/mixins/popper.less"));else if("function"==typeof define&&define.amd)define(["../shared","@popperjs/core","../styles/mixins/popper.less"],t);else{var n="object"==typeof exports?t(require("../shared"),require("@popperjs/core"),require("../styles/mixins/popper.less")):t(e["../shared"],e["@popperjs/core"],e["../styles/mixins/popper.less"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r={2439:(e,t,n)=>{e.exports=n(2527)},7430:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},6377:e=>{var t,n,r,o,i,a,u,s,c,d,l,f,p,m,v,y=!1;function b(){if(!y){y=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),h=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),l=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,r=b[3]?parseFloat(b[3]):NaN,(o=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=b&&b[1]?parseFloat(b[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(h){if(h[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!g||parseFloat(g[1].replace("_","."))}else u=!1;s=!!h[2],c=!!h[3]}else u=s=c=!1}}var h={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||a>t},ie64:function(){return h.ie()&&l},firefox:function(){return b()||n},opera:function(){return b()||r},webkit:function(){return b()||o},safari:function(){return h.webkit()},chrome:function(){return b()||i},windows:function(){return b()||s},osx:function(){return b()||u},linux:function(){return b()||c},iphone:function(){return b()||f},mobile:function(){return b()||f||p||d||v},nativeApp:function(){return b()||m},android:function(){return b()||d},ipad:function(){return b()||p}};e.exports=h},3541:(e,t,n)=>{"use strict";var r,o=n(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,t,n)=>{"use strict";var r=n(6377),o=n(3541);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},4212:t=>{"use strict";t.exports=e},7018:e=>{"use strict";e.exports=n},5798:e=>{"use strict";e.exports=t}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";i.r(a),i.d(a,{bkTooltips:()=>b,clickoutside:()=>l,mousewheel:()=>r});var e=i(2439),t=i.n(e),n="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const r={beforeMount:function(e,r){var o,i;console.error(e,r),o=e,i=r.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(n?"DOMMouseScroll":"mousewheel",(function(e){var n=t()(e);null==i||i.apply(this,[e,n])}))}};function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,c=new Map;function d(e,t){var n,r=[];return Array.isArray(t.arg)?r=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&r.push(t.arg)),function(n,o){var i=t.instance.popperRef,a=n.target,u=null==o?void 0:o.target,s=!t||!t.instance,c=!a||!u,d=e.contains(a)||e.contains(u),l=e===a,f=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(u),p=i&&(i.contains(a)||i.contains(u));s||c||d||l||f||p||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return s=e})),document.addEventListener("mouseup",(function(e){var t,n=o(c.values());try{for(n.s();!(t=n.n()).done;){var r,i=o(t.value);try{for(i.s();!(r=i.n()).done;)(0,r.value.documentHandler)(e,s)}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}));const l={beforeMount:function(e,t){c.has(e)||c.set(e,[]),c.get(e).push({documentHandler:d(e,t),bindingFn:t.value})},updated:function(e,t){c.has(e)||c.set(e,[]);var n=c.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:d(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){c.delete(e)}};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=i(4212),y=i(5798);i(7018);const b={mounted:function(e,t){var n={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===m(t.value)?Object.assign(n,t.value):n.content=t.value;var r=n.disabled,o=n.arrow,i=n.theme;if(!r){var a=function(e,t,n){var r=v.bkZIndexManager.getPopperIndex(),o=document.createElement("div");if(o.className="bk-popper ".concat(n?"light":"dark"),o.innerText=e,o.style.zIndex=String(r),t){var i=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();o.appendChild(i)}return document.body.appendChild(o),o}(n.content,o,"light"===i);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,u=n.onShow,s=n.onHide,c=(0,y.createPopper)(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){["mouseenter","focus"].forEach((function(t){e.addEventListener(t,d)})),["mouseleave","blur"].forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?d():t.hasAttribute("data-show")&&l()}));function d(){t.setAttribute("data-show",""),u(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(p(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),c.update()}function l(){t.removeAttribute("data-show"),s(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(p(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}a&&d()}(e,a,n)}}}})(),a})()));
|
File without changes
|
File without changes
|
File without changes
|