vue-devui 1.6.17 → 1.6.18
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 +12 -13
- package/auto-complete/index.umd.js +16 -16
- package/auto-complete/style.css +1 -1
- package/breadcrumb/index.es.js +1 -7
- package/breadcrumb/index.umd.js +1 -1
- package/category-search/index.es.js +13 -18
- package/category-search/index.umd.js +14 -14
- package/category-search/style.css +1 -1
- package/checkbox/index.es.js +11 -10
- package/checkbox/index.umd.js +7 -7
- package/checkbox/style.css +1 -1
- package/code-review/index.es.js +4 -9
- package/code-review/index.umd.js +17 -17
- package/data-grid/index.es.js +12 -17
- package/data-grid/index.umd.js +15 -15
- package/data-grid/style.css +1 -1
- package/date-picker-pro/index.es.js +16 -31
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/dropdown/index.es.js +1 -7
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +1 -3
- package/editable-select/index.umd.js +10 -10
- package/editor-md/index.es.js +2 -14
- package/editor-md/index.umd.js +22 -22
- package/form/index.es.js +11 -10
- package/form/index.umd.js +8 -8
- package/form/style.css +1 -1
- package/input/index.es.js +11 -10
- package/input/index.umd.js +9 -9
- package/input/style.css +1 -1
- package/input-number/index.es.js +11 -10
- package/input-number/index.umd.js +16 -16
- package/input-number/style.css +1 -1
- package/mention/index.es.js +11 -10
- package/mention/index.umd.js +15 -15
- package/mention/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +18 -21
- package/pagination/index.umd.js +16 -16
- package/pagination/style.css +1 -1
- package/popover/index.es.js +4 -9
- package/popover/index.umd.js +10 -10
- package/radio/index.es.js +11 -10
- package/radio/index.umd.js +14 -14
- package/radio/style.css +1 -1
- package/search/index.es.js +11 -10
- package/search/index.umd.js +8 -8
- package/search/style.css +1 -1
- package/select/index.es.js +16 -13
- package/select/index.umd.js +14 -14
- package/select/style.css +1 -1
- package/splitter/index.es.js +1 -7
- package/splitter/index.umd.js +9 -9
- package/style.css +1 -1
- package/switch/index.es.js +11 -10
- package/switch/index.umd.js +10 -10
- package/switch/style.css +1 -1
- package/table/index.es.js +13 -24
- package/table/index.umd.js +12 -12
- package/table/style.css +1 -1
- package/textarea/index.es.js +11 -10
- package/textarea/index.umd.js +11 -11
- package/textarea/style.css +1 -1
- package/time-picker/index.es.js +16 -13
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +16 -13
- package/time-select/index.umd.js +13 -13
- package/time-select/style.css +1 -1
- package/tooltip/index.es.js +1 -7
- package/tooltip/index.umd.js +11 -11
- package/tree/index.es.js +11 -10
- package/tree/index.umd.js +9 -9
- package/tree/style.css +1 -1
- package/types/auto-complete/src/auto-complete-types.d.ts +1 -1
- package/types/dropdown/src/dropdown-types.d.ts +1 -6
- package/types/dropdown/src/dropdown.d.ts +2 -11
- package/types/editable-select/src/editable-select-types.d.ts +1 -1
- package/types/form/src/components/form-item/form-item-types.d.ts +2 -1
- package/types/form/src/form-types.d.ts +5 -0
- package/types/popover/src/popover-types.d.ts +1 -6
- package/types/popover/src/popover.d.ts +2 -11
- package/types/select/src/select-types.d.ts +5 -0
- package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
- package/types/time-picker/src/time-picker-types.d.ts +5 -0
- package/types/tooltip/src/tooltip-types.d.ts +1 -6
- package/types/tooltip/src/tooltip.d.ts +2 -11
- package/vue-devui.es.js +29 -61
- package/vue-devui.umd.js +39 -39
|
@@ -62,7 +62,7 @@ const autoCompleteProps = {
|
|
|
62
62
|
},
|
|
63
63
|
position: {
|
|
64
64
|
type: Array,
|
|
65
|
-
default: ["bottom
|
|
65
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
66
66
|
},
|
|
67
67
|
disabled: {
|
|
68
68
|
type: Boolean,
|
|
@@ -482,6 +482,10 @@ const formProps = {
|
|
|
482
482
|
appendToBodyScrollStrategy: {
|
|
483
483
|
type: String,
|
|
484
484
|
default: "reposition"
|
|
485
|
+
},
|
|
486
|
+
requirePosition: {
|
|
487
|
+
type: String,
|
|
488
|
+
default: "left"
|
|
485
489
|
}
|
|
486
490
|
};
|
|
487
491
|
const FORM_TOKEN = "dForm";
|
|
@@ -6443,11 +6447,7 @@ const popoverProps = {
|
|
|
6443
6447
|
},
|
|
6444
6448
|
position: {
|
|
6445
6449
|
type: Array,
|
|
6446
|
-
default: ["bottom"]
|
|
6447
|
-
},
|
|
6448
|
-
align: {
|
|
6449
|
-
type: String,
|
|
6450
|
-
default: null
|
|
6450
|
+
default: () => ["top", "right", "bottom", "left"]
|
|
6451
6451
|
},
|
|
6452
6452
|
offset: {
|
|
6453
6453
|
type: [Number, Object],
|
|
@@ -6518,6 +6518,7 @@ function usePopover(props, visible, placement, origin, popoverRef) {
|
|
|
6518
6518
|
function usePopoverEvent(props, visible, origin) {
|
|
6519
6519
|
const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
|
|
6520
6520
|
const isClick = computed(() => trigger.value === "click");
|
|
6521
|
+
const isHover = computed(() => trigger.value === "hover");
|
|
6521
6522
|
const placement = ref(position.value[0].split("-")[0]);
|
|
6522
6523
|
const isEnter = ref(false);
|
|
6523
6524
|
const onClick = () => {
|
|
@@ -6536,13 +6537,13 @@ function usePopoverEvent(props, visible, origin) {
|
|
|
6536
6537
|
if (disabled.value) {
|
|
6537
6538
|
return;
|
|
6538
6539
|
}
|
|
6539
|
-
if (
|
|
6540
|
+
if (isHover.value) {
|
|
6540
6541
|
isEnter.value = true;
|
|
6541
6542
|
enter();
|
|
6542
6543
|
}
|
|
6543
6544
|
};
|
|
6544
6545
|
const onMouseleave = () => {
|
|
6545
|
-
if (
|
|
6546
|
+
if (isHover.value) {
|
|
6546
6547
|
isEnter.value = false;
|
|
6547
6548
|
leave();
|
|
6548
6549
|
}
|
|
@@ -6692,7 +6693,6 @@ var Popover = defineComponent({
|
|
|
6692
6693
|
content,
|
|
6693
6694
|
popType,
|
|
6694
6695
|
position,
|
|
6695
|
-
align,
|
|
6696
6696
|
offset: offset2,
|
|
6697
6697
|
showAnimation
|
|
6698
6698
|
} = toRefs(props);
|
|
@@ -6734,7 +6734,6 @@ var Popover = defineComponent({
|
|
|
6734
6734
|
"ref": popoverRef,
|
|
6735
6735
|
"origin": origin.value,
|
|
6736
6736
|
"position": position.value,
|
|
6737
|
-
"align": align.value,
|
|
6738
6737
|
"offset": offset2.value,
|
|
6739
6738
|
"class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
|
|
6740
6739
|
"show-arrow": true,
|
|
@@ -6856,7 +6855,8 @@ function useFormLabel() {
|
|
|
6856
6855
|
}));
|
|
6857
6856
|
const labelInnerClasses = computed(() => ({
|
|
6858
6857
|
[`${ns2.e("label-span")}`]: true,
|
|
6859
|
-
[`${ns2.em("label", "required")}`]: formItemContext.isRequired,
|
|
6858
|
+
[`${ns2.em("label", "required")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "left",
|
|
6859
|
+
[`${ns2.em("label", "required-right")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "right",
|
|
6860
6860
|
[`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
|
|
6861
6861
|
}));
|
|
6862
6862
|
const tipsPopover = computed(() => {
|
|
@@ -8173,6 +8173,7 @@ defineComponent({
|
|
|
8173
8173
|
layout: formContext.layout,
|
|
8174
8174
|
labelSize: formContext.labelSize,
|
|
8175
8175
|
labelAlign: formContext.labelAlign,
|
|
8176
|
+
requiredPosition: formContext.requirePosition,
|
|
8176
8177
|
helpTips: helpTips.value,
|
|
8177
8178
|
formItemCtx: ctx2
|
|
8178
8179
|
}));
|
|
@@ -9011,7 +9012,6 @@ var AutoComplete = defineComponent({
|
|
|
9011
9012
|
const inputNs = useNamespace("auto-complete-input");
|
|
9012
9013
|
const isDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || disabled.value);
|
|
9013
9014
|
const autoCompleteSize = computed(() => (formContext == null ? void 0 : formContext.size) || props.size);
|
|
9014
|
-
const align = computed(() => position.value.some((item) => item.includes("start") || item.includes("end")) ? "start" : null);
|
|
9015
9015
|
const {
|
|
9016
9016
|
handleSearch,
|
|
9017
9017
|
searchList,
|
|
@@ -9090,7 +9090,6 @@ var AutoComplete = defineComponent({
|
|
|
9090
9090
|
default: () => [createVNode(FlexibleOverlay, {
|
|
9091
9091
|
"origin": origin.value,
|
|
9092
9092
|
"position": position.value,
|
|
9093
|
-
"align": align.value,
|
|
9094
9093
|
"modelValue": visible.value,
|
|
9095
9094
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
9096
9095
|
"onPositionChange": handlePositionChange,
|