vue-devui 1.6.36-alpha.0 → 1.6.36-alpha.2
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/auto-complete/index.es.js +17 -0
- package/auto-complete/index.umd.js +17 -17
- package/breadcrumb/index.es.js +17 -0
- package/breadcrumb/index.umd.js +2 -2
- package/category-search/index.es.js +103 -16
- package/category-search/index.umd.js +23 -23
- package/checkbox/index.es.js +17 -0
- package/checkbox/index.umd.js +13 -13
- package/code-review/index.es.js +17 -0
- package/code-review/index.umd.js +16 -16
- package/data-grid/index.es.js +17 -0
- package/data-grid/index.umd.js +17 -17
- package/date-picker-pro/index.es.js +17 -0
- package/date-picker-pro/index.umd.js +18 -18
- package/dropdown/index.es.js +17 -0
- package/dropdown/index.umd.js +2 -2
- package/editable-select/index.es.js +17 -0
- package/editable-select/index.umd.js +12 -12
- package/editor-md/index.es.js +17 -0
- package/editor-md/index.umd.js +19 -19
- package/form/index.es.js +17 -0
- package/form/index.umd.js +20 -20
- package/input/index.es.js +17 -0
- package/input/index.umd.js +15 -15
- package/input-number/index.es.js +17 -0
- package/input-number/index.umd.js +20 -20
- package/mention/index.es.js +17 -0
- package/mention/index.umd.js +21 -21
- package/modal/index.es.js +17 -0
- package/modal/index.umd.js +2 -2
- package/overlay/index.es.js +17 -0
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +18 -2
- package/pagination/index.umd.js +16 -16
- package/popover/index.es.js +17 -0
- package/popover/index.umd.js +16 -16
- package/radio/index.es.js +17 -0
- package/radio/index.umd.js +20 -20
- package/search/index.es.js +17 -0
- package/search/index.umd.js +14 -14
- package/select/index.es.js +18 -2
- package/select/index.umd.js +15 -15
- package/splitter/index.es.js +17 -0
- package/splitter/index.umd.js +9 -9
- package/switch/index.es.js +17 -0
- package/switch/index.umd.js +20 -20
- package/table/index.es.js +17 -0
- package/table/index.umd.js +9 -9
- package/tag/index.es.js +1 -2
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +17 -0
- package/textarea/index.umd.js +21 -21
- package/time-picker/index.es.js +17 -0
- package/time-picker/index.umd.js +18 -18
- package/time-select/index.es.js +18 -2
- package/time-select/index.umd.js +17 -17
- package/tooltip/index.es.js +17 -0
- package/tooltip/index.umd.js +12 -12
- package/tree/index.es.js +17 -0
- package/tree/index.umd.js +13 -13
- package/types/category-search/src/category-search-types.d.ts +11 -0
- package/types/category-search/src/composables/use-category-selected-tags.d.ts +15 -0
- package/types/overlay/src/flexible-overlay/flexible-overlay-types.d.ts +4 -0
- package/types/overlay/src/flexible-overlay/index.d.ts +3 -0
- package/vue-devui.es.js +103 -16
- package/vue-devui.umd.js +71 -71
package/time-select/index.es.js
CHANGED
|
@@ -6118,6 +6118,10 @@ const flexibleOverlayProps = {
|
|
|
6118
6118
|
fitOriginWidth: {
|
|
6119
6119
|
type: Boolean,
|
|
6120
6120
|
default: false
|
|
6121
|
+
},
|
|
6122
|
+
autoUpdatePosition: {
|
|
6123
|
+
type: Boolean,
|
|
6124
|
+
default: false
|
|
6121
6125
|
}
|
|
6122
6126
|
};
|
|
6123
6127
|
function adjustArrowPosition(isArrowCenter, point, placement, originRect) {
|
|
@@ -6145,6 +6149,7 @@ function useOverlay(props, emit) {
|
|
|
6145
6149
|
const arrowRef = ref();
|
|
6146
6150
|
const overlayWidth = ref(0);
|
|
6147
6151
|
let originObserver;
|
|
6152
|
+
let overlayObserver;
|
|
6148
6153
|
const styles = computed(() => {
|
|
6149
6154
|
if (fitOriginWidth.value) {
|
|
6150
6155
|
return { width: overlayWidth.value + "px" };
|
|
@@ -6215,6 +6220,15 @@ function useOverlay(props, emit) {
|
|
|
6215
6220
|
const originEl = (_b = (_a = props.origin) == null ? void 0 : _a.$el) != null ? _b : props.origin;
|
|
6216
6221
|
originEl && (originObserver == null ? void 0 : originObserver.unobserve(originEl));
|
|
6217
6222
|
};
|
|
6223
|
+
const observeOverlay = () => {
|
|
6224
|
+
if (props.autoUpdatePosition && typeof window !== "undefined" && overlayRef.value) {
|
|
6225
|
+
overlayObserver = new window.ResizeObserver(updatePosition);
|
|
6226
|
+
overlayObserver.observe(overlayRef.value);
|
|
6227
|
+
}
|
|
6228
|
+
};
|
|
6229
|
+
const unobserveOverlay = () => {
|
|
6230
|
+
overlayRef.value && (overlayObserver == null ? void 0 : overlayObserver.unobserve(overlayRef.value));
|
|
6231
|
+
};
|
|
6218
6232
|
watch(
|
|
6219
6233
|
() => props.modelValue,
|
|
6220
6234
|
() => {
|
|
@@ -6223,10 +6237,12 @@ function useOverlay(props, emit) {
|
|
|
6223
6237
|
window.addEventListener("scroll", scrollCallback, true);
|
|
6224
6238
|
window.addEventListener("resize", updatePosition);
|
|
6225
6239
|
observeOrigin();
|
|
6240
|
+
nextTick(observeOverlay);
|
|
6226
6241
|
} else {
|
|
6227
6242
|
window.removeEventListener("scroll", scrollCallback, true);
|
|
6228
6243
|
window.removeEventListener("resize", updatePosition);
|
|
6229
6244
|
unobserveOrigin();
|
|
6245
|
+
unobserveOverlay();
|
|
6230
6246
|
}
|
|
6231
6247
|
}
|
|
6232
6248
|
);
|
|
@@ -6234,6 +6250,7 @@ function useOverlay(props, emit) {
|
|
|
6234
6250
|
window.removeEventListener("scroll", scrollCallback, true);
|
|
6235
6251
|
window.removeEventListener("resize", updatePosition);
|
|
6236
6252
|
unobserveOrigin();
|
|
6253
|
+
unobserveOverlay();
|
|
6237
6254
|
});
|
|
6238
6255
|
return { arrowRef, overlayRef, styles, updatePosition };
|
|
6239
6256
|
}
|
|
@@ -9331,7 +9348,6 @@ var Tag = defineComponent({
|
|
|
9331
9348
|
} = toRefs(props);
|
|
9332
9349
|
const tagClass = useClass(props);
|
|
9333
9350
|
const themeColor = useColor(props);
|
|
9334
|
-
const tagTitle = titleContent.value || "";
|
|
9335
9351
|
const isDefaultTag = () => !type4.value && !color.value;
|
|
9336
9352
|
const handleClick = (e) => {
|
|
9337
9353
|
emit("click", e);
|
|
@@ -9370,7 +9386,7 @@ var Tag = defineComponent({
|
|
|
9370
9386
|
color: contentColor.value,
|
|
9371
9387
|
backgroundColor: checked.value ? themeColor.value : !color.value ? "" : "var(--devui-base-bg, #ffffff)"
|
|
9372
9388
|
},
|
|
9373
|
-
"title":
|
|
9389
|
+
"title": titleContent.value || ""
|
|
9374
9390
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), closeIconEl()])]);
|
|
9375
9391
|
};
|
|
9376
9392
|
}
|