bkui-vue 2.0.1-beta.109 → 2.0.1-beta.110
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 +25 -25
- package/dist/index.esm.js +3374 -3360
- package/dist/index.umd.js +24 -24
- package/lib/index.js +1 -1
- package/lib/plugin-popover/index.js +27 -16
- package/lib/popover/index.d.ts +3 -3
- package/lib/popover/index.js +27 -16
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -3454,21 +3454,30 @@ var parentNodeReferId = null;
|
|
3454
3454
|
document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
|
3455
3455
|
};
|
3456
3456
|
var handleClickOutside = function handleClickOutside(_e) {
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
|
3465
|
-
|
3466
|
-
|
3467
|
-
|
3468
|
-
|
3469
|
-
|
3470
|
-
|
3471
|
-
|
3457
|
+
var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
3458
|
+
var commonFunc = function commonFunc() {
|
3459
|
+
ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
|
3460
|
+
isShow: localIsShow.value,
|
3461
|
+
event: _e
|
3462
|
+
});
|
3463
|
+
var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
|
3464
|
+
if (!props.forceClickoutside && needExec) {
|
3465
|
+
return;
|
3466
|
+
}
|
3467
|
+
if (localIsShow.value) {
|
3468
|
+
hideFn();
|
3469
|
+
}
|
3470
|
+
};
|
3471
|
+
if (hideIgnoreReference) {
|
3472
|
+
setTimeout(function () {
|
3473
|
+
if (ReferenceClickSharedState[uniqKey]) {
|
3474
|
+
ReferenceClickSharedState[uniqKey] = false;
|
3475
|
+
return;
|
3476
|
+
}
|
3477
|
+
return commonFunc();
|
3478
|
+
});
|
3479
|
+
} else {
|
3480
|
+
return commonFunc();
|
3472
3481
|
}
|
3473
3482
|
};
|
3474
3483
|
return {
|
@@ -3723,7 +3732,9 @@ function _isSlot(s) {
|
|
3723
3732
|
}
|
3724
3733
|
}) : '';
|
3725
3734
|
}
|
3726
|
-
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"),
|
3735
|
+
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
|
3736
|
+
return _this.handleClickOutside(e, _this.hideIgnoreReference);
|
3737
|
+
}]])];
|
3727
3738
|
}
|
3728
3739
|
})];
|
3729
3740
|
}
|
package/lib/popover/index.d.ts
CHANGED
@@ -287,7 +287,7 @@ declare const BkPopover: {
|
|
287
287
|
isRenderModeShow: import("vue").ComputedRef<boolean>;
|
288
288
|
transBoundary: import("vue").ComputedRef<boolean>;
|
289
289
|
handleClickContent: () => void;
|
290
|
-
handleClickOutside: (_e: MouseEvent) => void;
|
290
|
+
handleClickOutside: (_e: MouseEvent, hideIgnoreReference?: boolean) => void;
|
291
291
|
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
292
292
|
resetPopover: () => void;
|
293
293
|
hide: () => void;
|
@@ -535,7 +535,7 @@ declare const BkPopover: {
|
|
535
535
|
isRenderModeShow: import("vue").ComputedRef<boolean>;
|
536
536
|
transBoundary: import("vue").ComputedRef<boolean>;
|
537
537
|
handleClickContent: () => void;
|
538
|
-
handleClickOutside: (_e: MouseEvent) => void;
|
538
|
+
handleClickOutside: (_e: MouseEvent, hideIgnoreReference?: boolean) => void;
|
539
539
|
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
540
540
|
resetPopover: () => void;
|
541
541
|
hide: () => void;
|
@@ -718,7 +718,7 @@ declare const BkPopover: {
|
|
718
718
|
isRenderModeShow: import("vue").ComputedRef<boolean>;
|
719
719
|
transBoundary: import("vue").ComputedRef<boolean>;
|
720
720
|
handleClickContent: () => void;
|
721
|
-
handleClickOutside: (_e: MouseEvent) => void;
|
721
|
+
handleClickOutside: (_e: MouseEvent, hideIgnoreReference?: boolean) => void;
|
722
722
|
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
723
723
|
resetPopover: () => void;
|
724
724
|
hide: () => void;
|
package/lib/popover/index.js
CHANGED
@@ -3457,21 +3457,30 @@ var parentNodeReferId = null;
|
|
3457
3457
|
document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
|
3458
3458
|
};
|
3459
3459
|
var handleClickOutside = function handleClickOutside(_e) {
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
|
3465
|
-
|
3466
|
-
|
3467
|
-
|
3468
|
-
|
3469
|
-
|
3470
|
-
|
3471
|
-
|
3472
|
-
|
3473
|
-
|
3474
|
-
|
3460
|
+
var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
3461
|
+
var commonFunc = function commonFunc() {
|
3462
|
+
ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
|
3463
|
+
isShow: localIsShow.value,
|
3464
|
+
event: _e
|
3465
|
+
});
|
3466
|
+
var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
|
3467
|
+
if (!props.forceClickoutside && needExec) {
|
3468
|
+
return;
|
3469
|
+
}
|
3470
|
+
if (localIsShow.value) {
|
3471
|
+
hideFn();
|
3472
|
+
}
|
3473
|
+
};
|
3474
|
+
if (hideIgnoreReference) {
|
3475
|
+
setTimeout(function () {
|
3476
|
+
if (ReferenceClickSharedState[uniqKey]) {
|
3477
|
+
ReferenceClickSharedState[uniqKey] = false;
|
3478
|
+
return;
|
3479
|
+
}
|
3480
|
+
return commonFunc();
|
3481
|
+
});
|
3482
|
+
} else {
|
3483
|
+
return commonFunc();
|
3475
3484
|
}
|
3476
3485
|
};
|
3477
3486
|
return {
|
@@ -3726,7 +3735,9 @@ function _isSlot(s) {
|
|
3726
3735
|
}
|
3727
3736
|
}) : '';
|
3728
3737
|
}
|
3729
|
-
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"),
|
3738
|
+
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
|
3739
|
+
return _this.handleClickOutside(e, _this.hideIgnoreReference);
|
3740
|
+
}]])];
|
3730
3741
|
}
|
3731
3742
|
})];
|
3732
3743
|
}
|
package/lib/popover/popover.d.ts
CHANGED
@@ -154,7 +154,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
154
154
|
isRenderModeShow: import("vue").ComputedRef<boolean>;
|
155
155
|
transBoundary: import("vue").ComputedRef<boolean>;
|
156
156
|
handleClickContent: () => void;
|
157
|
-
handleClickOutside: (_e: MouseEvent) => void;
|
157
|
+
handleClickOutside: (_e: MouseEvent, hideIgnoreReference?: boolean) => void;
|
158
158
|
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
159
159
|
resetPopover: () => void;
|
160
160
|
hide: () => void;
|
@@ -6,7 +6,7 @@ declare const _default: (props: any, ctx: any, { refReference, refContent, refAr
|
|
6
6
|
}) => {
|
7
7
|
onMountedFn: () => void;
|
8
8
|
onUnmountedFn: () => void;
|
9
|
-
handleClickOutside: (_e: MouseEvent) => void;
|
9
|
+
handleClickOutside: (_e: MouseEvent, hideIgnoreReference?: boolean) => void;
|
10
10
|
beforeInstanceUnmount: () => void;
|
11
11
|
updateBoundary: () => void;
|
12
12
|
initPopInstance: () => void;
|