bkui-vue 2.0.2-beta.3 → 2.0.2-beta.5
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 +15 -15
- package/dist/index.esm.js +19 -10
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/date-picker/date-picker.css +220 -4
- package/lib/date-picker/date-picker.less +5 -5
- package/lib/date-picker/date-picker.variable.css +237 -21
- package/lib/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +16 -2
- package/lib/pop-confirm/index.js +13 -5
- package/lib/pop-confirm/pop-confirm.d.ts +5 -1
- package/package.json +1 -1
@@ -39,6 +39,8 @@ declare const BKPopConfirm: {
|
|
39
39
|
}>> & {
|
40
40
|
onConfirm?: (...args: any[]) => any;
|
41
41
|
onCancel?: (...args: any[]) => any;
|
42
|
+
"onAfter-show"?: (...args: any[]) => any;
|
43
|
+
"onAfter-hidden"?: (...args: any[]) => any;
|
42
44
|
}, {
|
43
45
|
popoverRef: import("vue").Ref<any>;
|
44
46
|
visible: import("vue").Ref<boolean>;
|
@@ -49,7 +51,9 @@ declare const BKPopConfirm: {
|
|
49
51
|
resolveClassName: (cls: string) => string;
|
50
52
|
ensure: (e: Event) => void;
|
51
53
|
cancel: (e: Event) => void;
|
52
|
-
|
54
|
+
handleAfterShow: () => void;
|
55
|
+
handleAfterHidden: () => void;
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "after-show" | "after-hidden")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
53
57
|
trigger: import("vue-types").VueTypeDef<"click" | "hover"> & {
|
54
58
|
default: "click" | "hover";
|
55
59
|
};
|
@@ -89,6 +93,8 @@ declare const BKPopConfirm: {
|
|
89
93
|
}>> & {
|
90
94
|
onConfirm?: (...args: any[]) => any;
|
91
95
|
onCancel?: (...args: any[]) => any;
|
96
|
+
"onAfter-show"?: (...args: any[]) => any;
|
97
|
+
"onAfter-hidden"?: (...args: any[]) => any;
|
92
98
|
}, {
|
93
99
|
title: string;
|
94
100
|
width: string | number;
|
@@ -145,6 +151,8 @@ declare const BKPopConfirm: {
|
|
145
151
|
}>> & {
|
146
152
|
onConfirm?: (...args: any[]) => any;
|
147
153
|
onCancel?: (...args: any[]) => any;
|
154
|
+
"onAfter-show"?: (...args: any[]) => any;
|
155
|
+
"onAfter-hidden"?: (...args: any[]) => any;
|
148
156
|
}, {
|
149
157
|
popoverRef: import("vue").Ref<any>;
|
150
158
|
visible: import("vue").Ref<boolean>;
|
@@ -155,6 +163,8 @@ declare const BKPopConfirm: {
|
|
155
163
|
resolveClassName: (cls: string) => string;
|
156
164
|
ensure: (e: Event) => void;
|
157
165
|
cancel: (e: Event) => void;
|
166
|
+
handleAfterShow: () => void;
|
167
|
+
handleAfterHidden: () => void;
|
158
168
|
}, {}, {}, {}, {
|
159
169
|
title: string;
|
160
170
|
width: string | number;
|
@@ -208,6 +218,8 @@ declare const BKPopConfirm: {
|
|
208
218
|
}>> & {
|
209
219
|
onConfirm?: (...args: any[]) => any;
|
210
220
|
onCancel?: (...args: any[]) => any;
|
221
|
+
"onAfter-show"?: (...args: any[]) => any;
|
222
|
+
"onAfter-hidden"?: (...args: any[]) => any;
|
211
223
|
}, {
|
212
224
|
popoverRef: import("vue").Ref<any>;
|
213
225
|
visible: import("vue").Ref<boolean>;
|
@@ -218,7 +230,9 @@ declare const BKPopConfirm: {
|
|
218
230
|
resolveClassName: (cls: string) => string;
|
219
231
|
ensure: (e: Event) => void;
|
220
232
|
cancel: (e: Event) => void;
|
221
|
-
|
233
|
+
handleAfterShow: () => void;
|
234
|
+
handleAfterHidden: () => void;
|
235
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "after-show" | "after-hidden")[], "cancel" | "confirm" | "after-show" | "after-hidden", {
|
222
236
|
title: string;
|
223
237
|
width: string | number;
|
224
238
|
content: string;
|
package/lib/pop-confirm/index.js
CHANGED
@@ -182,7 +182,7 @@ var PopConfirmProps = {
|
|
182
182
|
/* harmony default export */ const pop_confirm = ((0,external_vue_namespaceObject.defineComponent)({
|
183
183
|
name: 'PopConfirm',
|
184
184
|
props: props,
|
185
|
-
emits: ['confirm', 'cancel'],
|
185
|
+
emits: ['confirm', 'cancel', 'after-show', 'after-hidden'],
|
186
186
|
setup: function setup(_props, _ref) {
|
187
187
|
var emit = _ref.emit;
|
188
188
|
var visible = (0,external_vue_namespaceObject.ref)(false);
|
@@ -197,6 +197,13 @@ var PopConfirmProps = {
|
|
197
197
|
emit('cancel');
|
198
198
|
e.stopPropagation();
|
199
199
|
}
|
200
|
+
function handleAfterShow() {
|
201
|
+
visible.value = true;
|
202
|
+
emit('after-show');
|
203
|
+
}
|
204
|
+
function handleAfterHidden() {
|
205
|
+
emit('after-hidden');
|
206
|
+
}
|
200
207
|
// function renderIcon() {
|
201
208
|
// if (typeof slots.icon === 'function') {
|
202
209
|
// return slots.icon();
|
@@ -214,7 +221,9 @@ var PopConfirmProps = {
|
|
214
221
|
// icon,
|
215
222
|
resolveClassName: resolveClassName,
|
216
223
|
ensure: ensure,
|
217
|
-
cancel: cancel
|
224
|
+
cancel: cancel,
|
225
|
+
handleAfterShow: handleAfterShow,
|
226
|
+
handleAfterHidden: handleAfterHidden
|
218
227
|
};
|
219
228
|
},
|
220
229
|
render: function render() {
|
@@ -234,9 +243,8 @@ var PopConfirmProps = {
|
|
234
243
|
"placement": this.placement,
|
235
244
|
"theme": this.theme,
|
236
245
|
"trigger": this.trigger,
|
237
|
-
"
|
238
|
-
|
239
|
-
}
|
246
|
+
"onAfterHidden": this.handleAfterHidden,
|
247
|
+
"onAfterShow": this.handleAfterShow
|
240
248
|
}, {
|
241
249
|
"default": function _default() {
|
242
250
|
return _this.$slots["default"]();
|
@@ -45,7 +45,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
resolveClassName: (cls: string) => string;
|
46
46
|
ensure: (e: Event) => void;
|
47
47
|
cancel: (e: Event) => void;
|
48
|
-
|
48
|
+
handleAfterShow: () => void;
|
49
|
+
handleAfterHidden: () => void;
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "after-show" | "after-hidden")[], "cancel" | "confirm" | "after-show" | "after-hidden", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
49
51
|
trigger: import("vue-types").VueTypeDef<"click" | "hover"> & {
|
50
52
|
default: "click" | "hover";
|
51
53
|
};
|
@@ -85,6 +87,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
87
|
}>> & {
|
86
88
|
onConfirm?: (...args: any[]) => any;
|
87
89
|
onCancel?: (...args: any[]) => any;
|
90
|
+
"onAfter-show"?: (...args: any[]) => any;
|
91
|
+
"onAfter-hidden"?: (...args: any[]) => any;
|
88
92
|
}, {
|
89
93
|
title: string;
|
90
94
|
width: string | number;
|