vue-devui 1.6.3-markdown.2 → 1.6.3-select.0
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/editable-select/index.es.js +6 -0
- package/editable-select/index.umd.js +12 -12
- package/editor-md/index.es.js +1 -1
- package/editor-md/index.umd.js +5 -5
- package/package.json +1 -1
- package/pagination/index.es.js +14 -9
- package/pagination/index.umd.js +15 -15
- package/pagination/style.css +1 -1
- package/select/index.es.js +14 -9
- package/select/index.umd.js +14 -14
- package/select/style.css +1 -1
- package/style.css +1 -1
- package/time-select/index.es.js +14 -9
- package/time-select/index.umd.js +14 -14
- package/time-select/style.css +1 -1
- package/vue-devui.es.js +22 -11
- package/vue-devui.umd.js +34 -34
package/package.json
CHANGED
package/pagination/index.es.js
CHANGED
|
@@ -9429,8 +9429,16 @@ var Select = defineComponent({
|
|
|
9429
9429
|
toggleChange
|
|
9430
9430
|
});
|
|
9431
9431
|
const isRender = ref(false);
|
|
9432
|
+
const currentPosition = ref("bottom");
|
|
9432
9433
|
const position = ref(["bottom-start", "top-start"]);
|
|
9433
9434
|
const dropdownWidth = ref("0");
|
|
9435
|
+
const handlePositionChange = (pos) => {
|
|
9436
|
+
currentPosition.value = pos.split("-")[0] === "top" ? "top" : "bottom";
|
|
9437
|
+
};
|
|
9438
|
+
const styles = computed(() => ({
|
|
9439
|
+
transformOrigin: currentPosition.value === "top" ? "0% 100%" : "0% 0%",
|
|
9440
|
+
"z-index": "var(--devui-z-index-dropdown, 1052)"
|
|
9441
|
+
}));
|
|
9434
9442
|
const updateDropdownWidth = () => {
|
|
9435
9443
|
var _a;
|
|
9436
9444
|
dropdownWidth.value = ((_a = originRef == null ? void 0 : originRef.value) == null ? void 0 : _a.clientWidth) ? originRef.value.clientWidth + "px" : "100%";
|
|
@@ -9485,9 +9493,9 @@ var Select = defineComponent({
|
|
|
9485
9493
|
"to": "body"
|
|
9486
9494
|
}, {
|
|
9487
9495
|
default: () => [createVNode(Transition, {
|
|
9488
|
-
"name":
|
|
9496
|
+
"name": `fade-${currentPosition.value}`
|
|
9489
9497
|
}, {
|
|
9490
|
-
default: () => [createVNode(FlexibleOverlay, {
|
|
9498
|
+
default: () => [withDirectives(createVNode(FlexibleOverlay, {
|
|
9491
9499
|
"modelValue": isRender.value,
|
|
9492
9500
|
"onUpdate:modelValue": ($event) => isRender.value = $event,
|
|
9493
9501
|
"ref": dropdownRef,
|
|
@@ -9495,18 +9503,15 @@ var Select = defineComponent({
|
|
|
9495
9503
|
"align": "start",
|
|
9496
9504
|
"offset": 4,
|
|
9497
9505
|
"position": position.value,
|
|
9498
|
-
"
|
|
9499
|
-
|
|
9500
|
-
"z-index": isOpen.value ? "var(--devui-z-index-dropdown, 1052)" : -1
|
|
9501
|
-
}
|
|
9506
|
+
"onPositionChange": handlePositionChange,
|
|
9507
|
+
"style": styles.value
|
|
9502
9508
|
}, {
|
|
9503
9509
|
default: () => {
|
|
9504
9510
|
var _a, _b, _c, _d;
|
|
9505
9511
|
return [createVNode("div", {
|
|
9506
9512
|
"class": dropdownCls,
|
|
9507
9513
|
"style": {
|
|
9508
|
-
width: `${dropdownWidth.value}
|
|
9509
|
-
visibility: isOpen.value ? "visible" : "hidden"
|
|
9514
|
+
width: `${dropdownWidth.value}`
|
|
9510
9515
|
}
|
|
9511
9516
|
}, [withDirectives(createVNode("ul", {
|
|
9512
9517
|
"class": listCls,
|
|
@@ -9535,7 +9540,7 @@ var Select = defineComponent({
|
|
|
9535
9540
|
"class": dropdownEmptyCls
|
|
9536
9541
|
}, [emptyText.value])])])];
|
|
9537
9542
|
}
|
|
9538
|
-
})]
|
|
9543
|
+
}), [[vShow, isOpen.value]])]
|
|
9539
9544
|
})]
|
|
9540
9545
|
})]);
|
|
9541
9546
|
};
|