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/vue-devui.es.js
CHANGED
|
@@ -1765,7 +1765,7 @@ const autoCompleteProps = {
|
|
|
1765
1765
|
},
|
|
1766
1766
|
position: {
|
|
1767
1767
|
type: Array,
|
|
1768
|
-
default: ["bottom
|
|
1768
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
1769
1769
|
},
|
|
1770
1770
|
disabled: {
|
|
1771
1771
|
type: Boolean,
|
|
@@ -2185,6 +2185,10 @@ const formProps = {
|
|
|
2185
2185
|
appendToBodyScrollStrategy: {
|
|
2186
2186
|
type: String,
|
|
2187
2187
|
default: "reposition"
|
|
2188
|
+
},
|
|
2189
|
+
requirePosition: {
|
|
2190
|
+
type: String,
|
|
2191
|
+
default: "left"
|
|
2188
2192
|
}
|
|
2189
2193
|
};
|
|
2190
2194
|
const FORM_TOKEN = "dForm";
|
|
@@ -8096,11 +8100,7 @@ const popoverProps = {
|
|
|
8096
8100
|
},
|
|
8097
8101
|
position: {
|
|
8098
8102
|
type: Array,
|
|
8099
|
-
default: ["bottom"]
|
|
8100
|
-
},
|
|
8101
|
-
align: {
|
|
8102
|
-
type: String,
|
|
8103
|
-
default: null
|
|
8103
|
+
default: () => ["top", "right", "bottom", "left"]
|
|
8104
8104
|
},
|
|
8105
8105
|
offset: {
|
|
8106
8106
|
type: [Number, Object],
|
|
@@ -8171,6 +8171,7 @@ function usePopover(props, visible, placement, origin, popoverRef) {
|
|
|
8171
8171
|
function usePopoverEvent(props, visible, origin) {
|
|
8172
8172
|
const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
|
|
8173
8173
|
const isClick = computed(() => trigger.value === "click");
|
|
8174
|
+
const isHover = computed(() => trigger.value === "hover");
|
|
8174
8175
|
const placement = ref(position.value[0].split("-")[0]);
|
|
8175
8176
|
const isEnter = ref(false);
|
|
8176
8177
|
const onClick = () => {
|
|
@@ -8189,13 +8190,13 @@ function usePopoverEvent(props, visible, origin) {
|
|
|
8189
8190
|
if (disabled.value) {
|
|
8190
8191
|
return;
|
|
8191
8192
|
}
|
|
8192
|
-
if (
|
|
8193
|
+
if (isHover.value) {
|
|
8193
8194
|
isEnter.value = true;
|
|
8194
8195
|
enter();
|
|
8195
8196
|
}
|
|
8196
8197
|
};
|
|
8197
8198
|
const onMouseleave = () => {
|
|
8198
|
-
if (
|
|
8199
|
+
if (isHover.value) {
|
|
8199
8200
|
isEnter.value = false;
|
|
8200
8201
|
leave();
|
|
8201
8202
|
}
|
|
@@ -8345,7 +8346,6 @@ var Popover = defineComponent({
|
|
|
8345
8346
|
content: content2,
|
|
8346
8347
|
popType,
|
|
8347
8348
|
position,
|
|
8348
|
-
align,
|
|
8349
8349
|
offset: offset2,
|
|
8350
8350
|
showAnimation
|
|
8351
8351
|
} = toRefs(props);
|
|
@@ -8387,7 +8387,6 @@ var Popover = defineComponent({
|
|
|
8387
8387
|
"ref": popoverRef,
|
|
8388
8388
|
"origin": origin.value,
|
|
8389
8389
|
"position": position.value,
|
|
8390
|
-
"align": align.value,
|
|
8391
8390
|
"offset": offset2.value,
|
|
8392
8391
|
"class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
|
|
8393
8392
|
"show-arrow": true,
|
|
@@ -8509,7 +8508,8 @@ function useFormLabel() {
|
|
|
8509
8508
|
}));
|
|
8510
8509
|
const labelInnerClasses = computed(() => ({
|
|
8511
8510
|
[`${ns2.e("label-span")}`]: true,
|
|
8512
|
-
[`${ns2.em("label", "required")}`]: formItemContext.isRequired,
|
|
8511
|
+
[`${ns2.em("label", "required")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "left",
|
|
8512
|
+
[`${ns2.em("label", "required-right")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "right",
|
|
8513
8513
|
[`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
|
|
8514
8514
|
}));
|
|
8515
8515
|
const tipsPopover = computed(() => {
|
|
@@ -9834,6 +9834,7 @@ var FormItem = defineComponent({
|
|
|
9834
9834
|
layout: formContext.layout,
|
|
9835
9835
|
labelSize: formContext.labelSize,
|
|
9836
9836
|
labelAlign: formContext.labelAlign,
|
|
9837
|
+
requiredPosition: formContext.requirePosition,
|
|
9837
9838
|
helpTips: helpTips.value,
|
|
9838
9839
|
formItemCtx: ctx2
|
|
9839
9840
|
}));
|
|
@@ -10529,7 +10530,6 @@ var AutoComplete = defineComponent({
|
|
|
10529
10530
|
const inputNs = useNamespace$1("auto-complete-input");
|
|
10530
10531
|
const isDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || disabled.value);
|
|
10531
10532
|
const autoCompleteSize = computed(() => (formContext == null ? void 0 : formContext.size) || props.size);
|
|
10532
|
-
const align = computed(() => position.value.some((item) => item.includes("start") || item.includes("end")) ? "start" : null);
|
|
10533
10533
|
const {
|
|
10534
10534
|
handleSearch,
|
|
10535
10535
|
searchList,
|
|
@@ -10608,7 +10608,6 @@ var AutoComplete = defineComponent({
|
|
|
10608
10608
|
default: () => [createVNode(FlexibleOverlay, {
|
|
10609
10609
|
"origin": origin.value,
|
|
10610
10610
|
"position": position.value,
|
|
10611
|
-
"align": align.value,
|
|
10612
10611
|
"modelValue": visible.value,
|
|
10613
10612
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
10614
10613
|
"onPositionChange": handlePositionChange,
|
|
@@ -11327,11 +11326,7 @@ const dropdownProps$1 = {
|
|
|
11327
11326
|
},
|
|
11328
11327
|
position: {
|
|
11329
11328
|
type: Array,
|
|
11330
|
-
default: ["bottom"]
|
|
11331
|
-
},
|
|
11332
|
-
align: {
|
|
11333
|
-
type: String,
|
|
11334
|
-
default: null
|
|
11329
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
11335
11330
|
},
|
|
11336
11331
|
offset: {
|
|
11337
11332
|
type: [Number, Object],
|
|
@@ -11517,7 +11512,6 @@ var Dropdown$1 = defineComponent({
|
|
|
11517
11512
|
const {
|
|
11518
11513
|
visible,
|
|
11519
11514
|
position,
|
|
11520
|
-
align,
|
|
11521
11515
|
offset: offset2,
|
|
11522
11516
|
destroyOnHide,
|
|
11523
11517
|
shiftOffset,
|
|
@@ -11575,7 +11569,6 @@ var Dropdown$1 = defineComponent({
|
|
|
11575
11569
|
"ref": overlayRef,
|
|
11576
11570
|
"origin": origin.value,
|
|
11577
11571
|
"position": position.value,
|
|
11578
|
-
"align": align.value,
|
|
11579
11572
|
"offset": offset2.value,
|
|
11580
11573
|
"shiftOffset": shiftOffset == null ? void 0 : shiftOffset.value,
|
|
11581
11574
|
"onPositionChange": handlePositionChange,
|
|
@@ -13928,7 +13921,6 @@ var Cascader = defineComponent({
|
|
|
13928
13921
|
"modelValue": menuShow.value,
|
|
13929
13922
|
"onUpdate:modelValue": ($event) => menuShow.value = $event,
|
|
13930
13923
|
"position": position.value,
|
|
13931
|
-
"align": "start",
|
|
13932
13924
|
"style": styles.value,
|
|
13933
13925
|
"onPositionChange": handlePositionChange
|
|
13934
13926
|
}, {
|
|
@@ -14406,7 +14398,7 @@ var CategorySearchTag = defineComponent({
|
|
|
14406
14398
|
var _a2, _b, _c, _d;
|
|
14407
14399
|
return [rootCtx.slots[`${item.value.field}Tag`] ? rootCtx.slots[`${item.value.field}Tag`]({
|
|
14408
14400
|
tag: item.value
|
|
14409
|
-
}) : isJoinLabelType.value ? createVNode(Fragment, null, [createVNode("span", null, [item.value.label]), createVNode("span", {
|
|
14401
|
+
}) : isJoinLabelType.value ? createVNode(Fragment, null, [createVNode("span", null, [item.value.label, createTextVNode(": ")]), createVNode("span", {
|
|
14410
14402
|
"class": "dp-category-search-multi-tag",
|
|
14411
14403
|
"style": {
|
|
14412
14404
|
maxWidth: (tagMaxWidth == null ? void 0 : tagMaxWidth.value) + "px"
|
|
@@ -24305,7 +24297,7 @@ const datePickerProCommonProps = {
|
|
|
24305
24297
|
},
|
|
24306
24298
|
position: {
|
|
24307
24299
|
type: Array,
|
|
24308
|
-
default: () => ["bottom-start", "top-start"]
|
|
24300
|
+
default: () => ["bottom-start", "top-start", "left-start", "right-start"]
|
|
24309
24301
|
}
|
|
24310
24302
|
};
|
|
24311
24303
|
const datePickerProProps = __spreadValues({
|
|
@@ -26376,6 +26368,10 @@ const timePickerProps = {
|
|
|
26376
26368
|
showGlowStyle: {
|
|
26377
26369
|
type: Boolean,
|
|
26378
26370
|
default: true
|
|
26371
|
+
},
|
|
26372
|
+
position: {
|
|
26373
|
+
type: Array,
|
|
26374
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
26379
26375
|
}
|
|
26380
26376
|
};
|
|
26381
26377
|
function useTimeScroll() {
|
|
@@ -27413,15 +27409,6 @@ var DatePickerPro = defineComponent({
|
|
|
27413
27409
|
transformOrigin: currentPosition.value === "top" ? "0% 100%" : "0% 0%",
|
|
27414
27410
|
"z-index": "var(--devui-z-index-dropdown, 1052)"
|
|
27415
27411
|
}));
|
|
27416
|
-
const align = computed(() => {
|
|
27417
|
-
if (position.value.some((item) => item.includes("start"))) {
|
|
27418
|
-
return "start";
|
|
27419
|
-
}
|
|
27420
|
-
if (position.value.some((item) => item.includes("end"))) {
|
|
27421
|
-
return "end";
|
|
27422
|
-
}
|
|
27423
|
-
return void 0;
|
|
27424
|
-
});
|
|
27425
27412
|
return () => {
|
|
27426
27413
|
var _a2, _b;
|
|
27427
27414
|
const vSlots = {
|
|
@@ -27463,7 +27450,6 @@ var DatePickerPro = defineComponent({
|
|
|
27463
27450
|
"onUpdate:modelValue": ($event) => isPanelShow.value = $event,
|
|
27464
27451
|
"ref": overlayRef,
|
|
27465
27452
|
"origin": originRef.value,
|
|
27466
|
-
"align": align.value,
|
|
27467
27453
|
"position": position.value,
|
|
27468
27454
|
"style": styles.value,
|
|
27469
27455
|
"onPositionChange": handlePositionChange
|
|
@@ -27663,15 +27649,6 @@ var DRangeDatePickerPro = defineComponent({
|
|
|
27663
27649
|
transformOrigin: currentPosition.value === "top" ? "0% 100%" : "0% 0%",
|
|
27664
27650
|
"z-index": "var(--devui-z-index-dropdown, 1052)"
|
|
27665
27651
|
}));
|
|
27666
|
-
const align = computed(() => {
|
|
27667
|
-
if (position.value.some((item) => item.includes("start"))) {
|
|
27668
|
-
return "start";
|
|
27669
|
-
}
|
|
27670
|
-
if (position.value.some((item) => item.includes("end"))) {
|
|
27671
|
-
return "end";
|
|
27672
|
-
}
|
|
27673
|
-
return void 0;
|
|
27674
|
-
});
|
|
27675
27652
|
return () => {
|
|
27676
27653
|
var _a2, _b;
|
|
27677
27654
|
const vSlots = {
|
|
@@ -27733,7 +27710,6 @@ var DRangeDatePickerPro = defineComponent({
|
|
|
27733
27710
|
"onUpdate:modelValue": ($event) => isPanelShow.value = $event,
|
|
27734
27711
|
"ref": overlayRef,
|
|
27735
27712
|
"origin": originRef.value,
|
|
27736
|
-
"align": align.value,
|
|
27737
27713
|
"position": position.value,
|
|
27738
27714
|
"style": styles.value,
|
|
27739
27715
|
"onPositionChange": handlePositionChange
|
|
@@ -33673,7 +33649,7 @@ const editableSelectProps = {
|
|
|
33673
33649
|
},
|
|
33674
33650
|
position: {
|
|
33675
33651
|
type: Array,
|
|
33676
|
-
default: ["bottom"]
|
|
33652
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
33677
33653
|
},
|
|
33678
33654
|
options: {
|
|
33679
33655
|
type: Array,
|
|
@@ -34206,7 +34182,6 @@ var EditableSelect = defineComponent({
|
|
|
34206
34182
|
placeholder,
|
|
34207
34183
|
maxLength
|
|
34208
34184
|
} = toRefs(props);
|
|
34209
|
-
const align = computed(() => position.value.some((item) => item.includes("start") || item.includes("end")) ? "start" : null);
|
|
34210
34185
|
const {
|
|
34211
34186
|
onInput,
|
|
34212
34187
|
onMouseenter,
|
|
@@ -34273,7 +34248,6 @@ var EditableSelect = defineComponent({
|
|
|
34273
34248
|
"onUpdate:modelValue": ($event) => states.visible = $event,
|
|
34274
34249
|
"origin": originRef.value,
|
|
34275
34250
|
"position": position.value,
|
|
34276
|
-
"align": align.value,
|
|
34277
34251
|
"style": styles.value,
|
|
34278
34252
|
"onPositionChange": handlePositionChange
|
|
34279
34253
|
}, {
|
|
@@ -36558,11 +36532,7 @@ const tooltipProps = {
|
|
|
36558
36532
|
},
|
|
36559
36533
|
position: {
|
|
36560
36534
|
type: [String, Array],
|
|
36561
|
-
default: "top"
|
|
36562
|
-
},
|
|
36563
|
-
align: {
|
|
36564
|
-
type: String,
|
|
36565
|
-
default: null
|
|
36535
|
+
default: () => ["top", "right", "bottom", "left"]
|
|
36566
36536
|
},
|
|
36567
36537
|
showAnimation: {
|
|
36568
36538
|
type: Boolean,
|
|
@@ -36675,7 +36645,6 @@ var Tooltip = defineComponent({
|
|
|
36675
36645
|
const {
|
|
36676
36646
|
showAnimation,
|
|
36677
36647
|
content: content2,
|
|
36678
|
-
align,
|
|
36679
36648
|
overlayClass,
|
|
36680
36649
|
teleport
|
|
36681
36650
|
} = toRefs(props);
|
|
@@ -36716,7 +36685,6 @@ var Tooltip = defineComponent({
|
|
|
36716
36685
|
"class": className2.value,
|
|
36717
36686
|
"origin": origin.value,
|
|
36718
36687
|
"position": positionArr.value,
|
|
36719
|
-
"align": align.value,
|
|
36720
36688
|
"offset": 6,
|
|
36721
36689
|
"show-arrow": true,
|
|
36722
36690
|
"style": overlayStyles.value,
|
|
@@ -42544,6 +42512,10 @@ const selectProps = {
|
|
|
42544
42512
|
type: Array,
|
|
42545
42513
|
default: () => []
|
|
42546
42514
|
},
|
|
42515
|
+
position: {
|
|
42516
|
+
type: Array,
|
|
42517
|
+
default: () => ["bottom", "top", "left", "right"]
|
|
42518
|
+
},
|
|
42547
42519
|
size: {
|
|
42548
42520
|
type: String,
|
|
42549
42521
|
default: ""
|
|
@@ -43020,7 +42992,6 @@ var Select = defineComponent({
|
|
|
43020
42992
|
});
|
|
43021
42993
|
const isRender = ref(false);
|
|
43022
42994
|
const currentPosition = ref("bottom");
|
|
43023
|
-
const position = ref(["bottom-start", "top-start"]);
|
|
43024
42995
|
const handlePositionChange = (pos) => {
|
|
43025
42996
|
currentPosition.value = pos.split("-")[0] === "top" ? "top" : "bottom";
|
|
43026
42997
|
};
|
|
@@ -43080,10 +43051,9 @@ var Select = defineComponent({
|
|
|
43080
43051
|
"onUpdate:modelValue": ($event) => isRender.value = $event,
|
|
43081
43052
|
"ref": dropdownRef,
|
|
43082
43053
|
"origin": originRef.value,
|
|
43083
|
-
"align": "start",
|
|
43084
43054
|
"offset": 4,
|
|
43085
43055
|
"fit-origin-width": true,
|
|
43086
|
-
"position": position
|
|
43056
|
+
"position": props.position,
|
|
43087
43057
|
"onPositionChange": handlePositionChange,
|
|
43088
43058
|
"style": styles.value,
|
|
43089
43059
|
"class": props.menuClass
|
|
@@ -43168,7 +43138,7 @@ const paginationProps = {
|
|
|
43168
43138
|
},
|
|
43169
43139
|
pageSizeDirection: {
|
|
43170
43140
|
type: Array,
|
|
43171
|
-
default: () => ["bottom", "top"]
|
|
43141
|
+
default: () => ["bottom", "top", "left", "bottom"]
|
|
43172
43142
|
},
|
|
43173
43143
|
pageIndex: {
|
|
43174
43144
|
type: Number,
|
|
@@ -50436,7 +50406,6 @@ var TimePicker = defineComponent({
|
|
|
50436
50406
|
const activeMinute = ref("00");
|
|
50437
50407
|
const activeSecond = ref("00");
|
|
50438
50408
|
const format2 = props.format.toLowerCase();
|
|
50439
|
-
const position = ref(["bottom-start", "top-start"]);
|
|
50440
50409
|
const currentPosition = ref("bottom");
|
|
50441
50410
|
const handlePositionChange = (pos) => {
|
|
50442
50411
|
currentPosition.value = pos.split("-")[0] === "top" ? "top" : "bottom";
|
|
@@ -50516,8 +50485,7 @@ var TimePicker = defineComponent({
|
|
|
50516
50485
|
"onUpdate:modelValue": ($event) => showPopup.value = $event,
|
|
50517
50486
|
"ref": overlayRef,
|
|
50518
50487
|
"origin": (_a2 = inputDom.value) == null ? void 0 : _a2.$el,
|
|
50519
|
-
"position": position
|
|
50520
|
-
"align": "start",
|
|
50488
|
+
"position": props.position,
|
|
50521
50489
|
"style": styles.value,
|
|
50522
50490
|
"onPositionChange": handlePositionChange
|
|
50523
50491
|
}, {
|
|
@@ -54434,7 +54402,7 @@ const installs = [
|
|
|
54434
54402
|
VirtualListInstall
|
|
54435
54403
|
];
|
|
54436
54404
|
var vueDevui = {
|
|
54437
|
-
version: "1.6.
|
|
54405
|
+
version: "1.6.18",
|
|
54438
54406
|
install(app) {
|
|
54439
54407
|
installs.forEach((p) => app.use(p));
|
|
54440
54408
|
}
|