bkui-vue 0.0.1-beta.356 → 0.0.1-beta.358
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 +1 -1
- package/dist/index.esm.js +18 -5
- package/dist/index.umd.js +1 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -0
- package/lib/date-picker/index.js +1 -1
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -22001,6 +22001,12 @@ var PickerDropdown = defineComponent({
|
|
22001
22001
|
onBeforeUnmount(() => {
|
22002
22002
|
destoryDropdown();
|
22003
22003
|
});
|
22004
|
+
const forceUpdate = () => {
|
22005
|
+
var _a;
|
22006
|
+
if (popoverInstance) {
|
22007
|
+
(_a = popoverInstance == null ? void 0 : popoverInstance.forceUpdate) == null ? void 0 : _a.call(popoverInstance);
|
22008
|
+
}
|
22009
|
+
};
|
22004
22010
|
const destoryDropdown = () => {
|
22005
22011
|
if (popoverInstance && Object.keys(popoverInstance).length !== 0) {
|
22006
22012
|
const instance = popoverInstance;
|
@@ -22051,6 +22057,7 @@ var PickerDropdown = defineComponent({
|
|
22051
22057
|
});
|
22052
22058
|
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
22053
22059
|
refContentRef,
|
22060
|
+
forceUpdate,
|
22054
22061
|
updateDropdown,
|
22055
22062
|
destoryDropdown
|
22056
22063
|
});
|
@@ -26849,15 +26856,17 @@ var TimePicker = defineComponent({
|
|
26849
26856
|
const {
|
26850
26857
|
proxy
|
26851
26858
|
} = getCurrentInstance();
|
26859
|
+
const pickerDropdownRef = ref(null);
|
26852
26860
|
watch(() => state.visible, (visible) => {
|
26861
|
+
var _a, _b;
|
26853
26862
|
if (visible) {
|
26863
|
+
(_b = (_a = pickerDropdownRef.value) == null ? void 0 : _a.forceUpdate) == null ? void 0 : _b.call(_a);
|
26854
26864
|
nextTick(() => {
|
26855
|
-
var
|
26856
|
-
(
|
26865
|
+
var _a2, _b2;
|
26866
|
+
(_b2 = (_a2 = proxy.pickerPanelRef) == null ? void 0 : _a2.timeSpinnerRef) == null ? void 0 : _b2.updateScroll();
|
26857
26867
|
});
|
26858
26868
|
}
|
26859
26869
|
});
|
26860
|
-
const pickerDropdownRef = ref(null);
|
26861
26870
|
watch(() => props2.modelValue, (modelValue) => {
|
26862
26871
|
var _a;
|
26863
26872
|
state.internalValue = parseDate(modelValue, props2.type, props2.multiple, props2.format);
|
@@ -29432,9 +29441,11 @@ var Dropdown = defineComponent({
|
|
29432
29441
|
emit("hide");
|
29433
29442
|
handleShowChagne(false);
|
29434
29443
|
};
|
29444
|
+
const popoverRef = ref(null);
|
29435
29445
|
return {
|
29436
29446
|
afterShow,
|
29437
|
-
afterHidden
|
29447
|
+
afterHidden,
|
29448
|
+
popoverRef
|
29438
29449
|
};
|
29439
29450
|
},
|
29440
29451
|
render() {
|
@@ -29452,7 +29463,9 @@ var Dropdown = defineComponent({
|
|
29452
29463
|
const popoverOptions = lodash.exports.merge(basePopoverOptions, this.popoverOptions);
|
29453
29464
|
return createVNode("div", {
|
29454
29465
|
"class": wrapperClasses
|
29455
|
-
}, [createVNode(BkPopover, mergeProps(
|
29466
|
+
}, [createVNode(BkPopover, mergeProps({
|
29467
|
+
"ref": "popoverRef"
|
29468
|
+
}, popoverOptions, {
|
29456
29469
|
"onAfterShow": this.afterShow,
|
29457
29470
|
"onAfterHidden": this.afterHidden
|
29458
29471
|
}), {
|