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
package/form/index.es.js
CHANGED
|
@@ -86,6 +86,10 @@ const formProps = {
|
|
|
86
86
|
appendToBodyScrollStrategy: {
|
|
87
87
|
type: String,
|
|
88
88
|
default: "reposition"
|
|
89
|
+
},
|
|
90
|
+
requirePosition: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "left"
|
|
89
93
|
}
|
|
90
94
|
};
|
|
91
95
|
const FORM_TOKEN = "dForm";
|
|
@@ -6043,11 +6047,7 @@ const popoverProps = {
|
|
|
6043
6047
|
},
|
|
6044
6048
|
position: {
|
|
6045
6049
|
type: Array,
|
|
6046
|
-
default: ["bottom"]
|
|
6047
|
-
},
|
|
6048
|
-
align: {
|
|
6049
|
-
type: String,
|
|
6050
|
-
default: null
|
|
6050
|
+
default: () => ["top", "right", "bottom", "left"]
|
|
6051
6051
|
},
|
|
6052
6052
|
offset: {
|
|
6053
6053
|
type: [Number, Object],
|
|
@@ -6118,6 +6118,7 @@ function usePopover(props, visible, placement, origin, popoverRef) {
|
|
|
6118
6118
|
function usePopoverEvent(props, visible, origin) {
|
|
6119
6119
|
const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
|
|
6120
6120
|
const isClick = computed(() => trigger.value === "click");
|
|
6121
|
+
const isHover = computed(() => trigger.value === "hover");
|
|
6121
6122
|
const placement = ref(position.value[0].split("-")[0]);
|
|
6122
6123
|
const isEnter = ref(false);
|
|
6123
6124
|
const onClick = () => {
|
|
@@ -6136,13 +6137,13 @@ function usePopoverEvent(props, visible, origin) {
|
|
|
6136
6137
|
if (disabled.value) {
|
|
6137
6138
|
return;
|
|
6138
6139
|
}
|
|
6139
|
-
if (
|
|
6140
|
+
if (isHover.value) {
|
|
6140
6141
|
isEnter.value = true;
|
|
6141
6142
|
enter();
|
|
6142
6143
|
}
|
|
6143
6144
|
};
|
|
6144
6145
|
const onMouseleave = () => {
|
|
6145
|
-
if (
|
|
6146
|
+
if (isHover.value) {
|
|
6146
6147
|
isEnter.value = false;
|
|
6147
6148
|
leave();
|
|
6148
6149
|
}
|
|
@@ -6292,7 +6293,6 @@ var Popover = defineComponent({
|
|
|
6292
6293
|
content,
|
|
6293
6294
|
popType,
|
|
6294
6295
|
position,
|
|
6295
|
-
align,
|
|
6296
6296
|
offset: offset2,
|
|
6297
6297
|
showAnimation
|
|
6298
6298
|
} = toRefs(props);
|
|
@@ -6334,7 +6334,6 @@ var Popover = defineComponent({
|
|
|
6334
6334
|
"ref": popoverRef,
|
|
6335
6335
|
"origin": origin.value,
|
|
6336
6336
|
"position": position.value,
|
|
6337
|
-
"align": align.value,
|
|
6338
6337
|
"offset": offset2.value,
|
|
6339
6338
|
"class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
|
|
6340
6339
|
"show-arrow": true,
|
|
@@ -6456,7 +6455,8 @@ function useFormLabel() {
|
|
|
6456
6455
|
}));
|
|
6457
6456
|
const labelInnerClasses = computed(() => ({
|
|
6458
6457
|
[`${ns2.e("label-span")}`]: true,
|
|
6459
|
-
[`${ns2.em("label", "required")}`]: formItemContext.isRequired,
|
|
6458
|
+
[`${ns2.em("label", "required")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "left",
|
|
6459
|
+
[`${ns2.em("label", "required-right")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "right",
|
|
6460
6460
|
[`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
|
|
6461
6461
|
}));
|
|
6462
6462
|
const tipsPopover = computed(() => {
|
|
@@ -7773,6 +7773,7 @@ var FormItem = defineComponent({
|
|
|
7773
7773
|
layout: formContext.layout,
|
|
7774
7774
|
labelSize: formContext.labelSize,
|
|
7775
7775
|
labelAlign: formContext.labelAlign,
|
|
7776
|
+
requiredPosition: formContext.requirePosition,
|
|
7776
7777
|
helpTips: helpTips.value,
|
|
7777
7778
|
formItemCtx: ctx
|
|
7778
7779
|
}));
|