vue-devui 1.0.0-rc.5 → 1.0.0-rc.8
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/README.md +22 -8
- package/alert/index.es.js +37 -11
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +72 -26
- package/auto-complete/index.umd.js +5 -5
- package/auto-complete/style.css +1 -1
- package/avatar/index.es.js +32 -6
- package/avatar/index.umd.js +1 -1
- package/avatar/style.css +1 -1
- package/badge/index.es.js +29 -4
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +5548 -76
- package/button/index.umd.js +27 -1
- package/button/style.css +1 -1
- package/card/index.es.js +56 -29
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +48 -30
- package/checkbox/index.umd.js +1 -1
- package/checkbox/style.css +1 -1
- package/date-picker/index.es.js +91 -145
- package/date-picker/index.umd.js +1 -1
- package/date-picker/style.css +1 -1
- package/drawer/index.es.js +28 -3
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +39 -13
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +14 -14
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +958 -1200
- package/form/index.umd.js +18 -18
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +29 -5
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/grid/index.es.js +68 -49
- package/grid/index.umd.js +1 -1
- package/grid/style.css +1 -1
- package/image-preview/index.es.js +34 -11
- package/image-preview/index.umd.js +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +91 -145
- package/input/index.umd.js +1 -1
- package/input/style.css +1 -1
- package/input-number/index.es.js +27 -5
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/layout/index.es.js +34 -6
- package/layout/index.umd.js +1 -1
- package/layout/style.css +1 -1
- package/loading/index.es.js +34 -10
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/modal/index.es.js +41 -15
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +40 -13
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/ButtonGroup.js +3 -0
- package/nuxt/components/CheckboxGroup.js +3 -0
- package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
- package/nuxt/components/FORM_TOKEN.js +3 -0
- package/nuxt/components/Tree.js +3 -0
- package/nuxt/components/buttonGroupInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupProps.js +3 -0
- package/nuxt/components/formControlProps.js +3 -0
- package/nuxt/components/formItemProps.js +3 -0
- package/nuxt/components/formProps.js +3 -0
- package/nuxt/components/treeProps.js +3 -0
- package/overlay/index.es.js +31 -9
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +135 -124
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/popover/index.es.js +53 -24
- package/popover/index.umd.js +13 -13
- package/popover/style.css +1 -1
- package/progress/index.es.js +76 -20
- package/progress/index.umd.js +3 -3
- package/progress/style.css +1 -1
- package/radio/index.es.js +32 -7
- package/radio/index.umd.js +1 -1
- package/radio/style.css +1 -1
- package/rate/index.es.js +34 -10
- package/rate/index.umd.js +1 -1
- package/rate/style.css +1 -1
- package/search/index.es.js +103 -153
- package/search/index.umd.js +14 -14
- package/search/style.css +1 -1
- package/select/index.es.js +74 -51
- package/select/index.umd.js +1 -1
- package/select/style.css +1 -1
- package/skeleton/index.es.js +37 -12
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.es.js +52 -16
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +52 -24
- package/splitter/index.umd.js +15 -15
- package/splitter/style.css +1 -1
- package/status/index.es.js +26 -2
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +30 -6
- package/switch/index.umd.js +1 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +6267 -536
- package/table/index.umd.js +27 -1
- package/table/style.css +1 -1
- package/tabs/index.es.js +32 -8
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +27 -2
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +93 -76
- package/textarea/index.umd.js +1 -1
- package/textarea/style.css +1 -1
- package/tooltip/index.es.js +42 -15
- package/tooltip/index.umd.js +12 -12
- package/tooltip/style.css +1 -1
- package/{comment → tree}/index.d.ts +0 -0
- package/tree/index.es.js +1030 -0
- package/tree/index.umd.js +1 -0
- package/{comment → tree}/package.json +1 -1
- package/tree/style.css +1 -0
- package/upload/index.es.js +53 -22
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +5296 -4916
- package/vue-devui.umd.js +22 -22
- package/comment/index.es.js +0 -84
- package/comment/index.umd.js +0 -1
- package/comment/style.css +0 -1
- package/nuxt/components/Comment.js +0 -3
- package/nuxt/components/ReadTip.js +0 -3
- package/nuxt/components/commentProps.js +0 -3
- package/nuxt/components/readTipProps.js +0 -3
- package/read-tip/index.d.ts +0 -7
- package/read-tip/index.es.js +0 -261
- package/read-tip/index.umd.js +0 -1
- package/read-tip/package.json +0 -7
- package/read-tip/style.css +0 -1
package/pagination/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.devui-pagination{font-size:var(--devui-font-size, 12px)}.devui-pagination .devui-
|
|
1
|
+
@charset "UTF-8";.devui-pagination{font-size:var(--devui-font-size, 12px)}.devui-pagination .devui-pagination__size{display:inline-block;max-width:100px;line-height:24px;margin:0 12px 0 0;position:relative;vertical-align:middle}.devui-pagination .devui-pagination__size.devui-pagination__size--sm{max-width:80px}.devui-pagination .devui-pagination__size.devui-pagination__size--sm .devui-select-input{height:24px}.devui-pagination .devui-pagination__size.devui-pagination__size--lg{max-width:100px}.devui-pagination .devui-pagination__size.devui-pagination__size--lg .devui-select-input,.devui-pagination .devui-pagination__size.devui-pagination__size--lg .devui-select-item{height:46px}.devui-pagination .devui-select-input{height:26px}.devui-pagination .devui-pagination__total-size{display:inline-block;position:relative;vertical-align:middle;margin:0 12px 0 0;color:var(--devui-text-weak, #575d6c)}.devui-pagination .devui-pagination__list,.devui-pagination .devui-pagination__item{padding:0;margin:0;list-style:none}.devui-pagination a{text-decoration:none;color:#3eaf7c}.devui-pagination .devui-pagination__list{vertical-align:middle;display:inline-flex;align-items:center}.devui-pagination .devui-pagination__list li.devui-pagination__item{cursor:pointer}.devui-pagination .devui-pagination__list li.devui-pagination__item.active a.devui-pagination__link{text-decoration:none;background-color:var(--devui-list-item-active-bg, #5e7ce0);color:var(--devui-list-item-active-text, #ffffff)}.devui-pagination .devui-pagination__list li.devui-pagination__item.disabled a.devui-pagination__link{cursor:not-allowed;opacity:.5;background-color:#fff;color:var(--devui-text-weak, #575d6c)}.devui-pagination .devui-pagination__list li.devui-pagination__item .devui-pagination__link{margin-left:5px;padding:3px 7px;line-height:1.5;border-radius:var(--devui-border-radius, 2px);color:var(--devui-text-weak, #575d6c);display:flex;align-items:center;transition:background-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-pagination .devui-pagination__list li.devui-pagination__item .devui-pagination__link:hover{text-decoration:none;background-color:var(--devui-list-item-hover-bg, #f2f5fc);color:var(--devui-list-item-hover-text, #526ecc)}.devui-pagination .devui-pagination__sm>li.devui-pagination__item>a.devui-pagination__link{padding:0 5px;min-width:18px;height:22px;line-height:1.5;font-size:var(--devui-font-size-sm, 12px)}.devui-pagination .devui-pagination__lg>li.devui-pagination__item>a.devui-pagination__link{padding:0 12px;height:38px;font-size:var(--devui-font-size-lg, 14px);line-height:1.5}.devui-pagination .devui-pagination__jump-container{display:inline-flex;position:relative;margin:0 12px;vertical-align:middle;align-items:center}.devui-pagination .devui-pagination__jump-container .devui-input{display:inline-block;width:42px;vertical-align:middle;margin:0 4px}.devui-pagination .devui-pagination__jump-container .devui-input--lg{width:56px}.devui-pagination .devui-pagination__jump-button{display:inline-flex;vertical-align:middle;width:24px;height:24px;border-radius:var(--devui-border-radius, 2px);border:1px solid var(--devui-line, #adb0b8);cursor:pointer;margin-left:4px;align-items:center;justify-content:center}.devui-pagination .devui-pagination__jump-button .devui-pagination__go{width:0;height:0;border-top:6px solid transparent;border-left:6px solid var(--devui-icon-text, #252b3a);border-bottom:6px solid transparent}.devui-pagination .devui-pagination__jump-button:hover{border-color:var(--devui-brand-active, #526ecc)}.devui-pagination .devui-pagination__jump-button:hover .devui-pagination__go{border-left-color:var(--devui-brand-active, #526ecc)}.devui-pagination .devui-pagination__jump-size--default{width:28px;height:28px}.devui-pagination .devui-pagination__jump-size--default .devui-pagination__go{width:0;height:0;border-top:8px solid transparent;border-left:10px solid var(--devui-icon-text, #252b3a);border-bottom:8px solid transparent}.devui-pagination .devui-pagination__jump-size--sm{width:24px;height:24px}.devui-pagination .devui-pagination__jump-size--sm .devui-pagination__go{width:0;height:0;border-top:6px solid transparent;border-left:6px solid var(--devui-icon-text, #252b3a);border-bottom:6px solid transparent}.devui-pagination .devui-pagination__jump-size--sm .devui-pagination__link{height:30px;line-height:32px}.devui-pagination .devui-pagination__jump-size--lg{width:46px;height:46px}.devui-pagination .devui-pagination__jump-size--lg .devui-pagination__go{width:0;height:0;border-top:14px solid transparent;border-left:14px solid var(--devui-icon-text, #252b3a);border-bottom:14px solid transparent}.devui-pagination .devui-pagination__config{color:var(--devui-text, #252b3a);position:relative;display:inline-block;vertical-align:middle;margin:0 4px}.devui-pagination .devui-pagination__setup-icon{line-height:30px;cursor:pointer;display:flex}.devui-pagination .devui-pagination__config-container{padding:4px 0;box-shadow:var(--devui-shadow-connected-overlay, 0 2px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));border-radius:var(--devui-border-radius, 2px);width:150px;background-color:var(--devui-connected-overlay-bg, #ffffff);line-height:26px;position:absolute;left:-136px;top:28px;cursor:auto;z-index:var(--devui-z-index-dropdown, 1052);user-select:none}.devui-pagination .devui-pagination__config-item{padding-bottom:8px;padding-top:4px;border-bottom:1px solid var(--devui-line, #adb0b8)}.devui-pagination .devui-pagination__config-item:last-child{border-bottom:none}.devui-pagination .config-item-title{color:var(--devui-line, #adb0b8);padding-left:8px;font-size:var(--devui-font-size, 12px);line-height:1.5}.devui-pagination .devui-pagination__number{padding-left:8px;margin-top:4px;display:flex}.devui-pagination .devui-pagination__number div{color:var(--devui-text, #252b3a);cursor:pointer;border-top:1px solid var(--devui-line, #adb0b8);border-bottom:1px solid var(--devui-line, #adb0b8);border-right:1px solid var(--devui-line, #adb0b8);text-align:center;height:26px;width:26px}.devui-pagination .devui-pagination__number div:first-child{border-left:1px solid var(--devui-line, #adb0b8)}.devui-pagination .devui-pagination__number div:hover{background-color:var(--devui-list-item-hover-bg, #f2f5fc);color:var(--devui-list-item-hover-text, #526ecc)}.devui-pagination .devui-pagination__number div.choosed{color:var(--devui-list-item-active-text, #ffffff);background-color:var(--devui-list-item-active-bg, #5e7ce0)!important;cursor:auto!important}.devui-pagination .config-item-words{color:var(--devui-text, #252b3a);padding-left:8px;font-size:var(--devui-font-size, 12px);margin-top:4px}.devui-pagination .config-item-words:hover{background-color:var(--devui-area, #f8f8f8);cursor:pointer}
|
package/popover/index.es.js
CHANGED
|
@@ -19,19 +19,43 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, createVNode, Teleport, Transition, renderSlot, isVNode, computed, onMounted, watch, onUnmounted, ref, unref, nextTick, mergeProps, toRefs, Fragment } from "vue";
|
|
21
21
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
22
|
+
function createBem(namespace, element, modifier) {
|
|
23
|
+
let cls = namespace;
|
|
24
|
+
if (element) {
|
|
25
|
+
cls += `__${element}`;
|
|
26
|
+
}
|
|
27
|
+
if (modifier) {
|
|
28
|
+
cls += `--${modifier}`;
|
|
29
|
+
}
|
|
30
|
+
return cls;
|
|
31
|
+
}
|
|
32
|
+
function useNamespace(block) {
|
|
33
|
+
const namespace = `devui-${block}`;
|
|
34
|
+
const b = () => createBem(namespace);
|
|
35
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
36
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
37
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
38
|
+
return {
|
|
39
|
+
b,
|
|
40
|
+
e,
|
|
41
|
+
m,
|
|
42
|
+
em
|
|
43
|
+
};
|
|
44
|
+
}
|
|
22
45
|
var baseOverlay = "";
|
|
23
46
|
function _isSlot(s) {
|
|
24
47
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
25
48
|
}
|
|
26
49
|
const CommonOverlay = defineComponent({
|
|
27
50
|
setup(props, ctx) {
|
|
51
|
+
const ns2 = useNamespace("overlay");
|
|
28
52
|
return () => {
|
|
29
53
|
let _slot;
|
|
30
54
|
return createVNode(Teleport, {
|
|
31
55
|
"to": "#d-overlay-anchor"
|
|
32
56
|
}, {
|
|
33
57
|
default: () => [createVNode(Transition, {
|
|
34
|
-
"name": "
|
|
58
|
+
"name": ns2.e("fade")
|
|
35
59
|
}, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : {
|
|
36
60
|
default: () => [_slot]
|
|
37
61
|
})]
|
|
@@ -74,15 +98,12 @@ const fixedOverlayProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
|
74
98
|
});
|
|
75
99
|
const overlayEmits = ["update:visible", "backdropClick"];
|
|
76
100
|
function useOverlayLogic(props, ctx) {
|
|
101
|
+
const ns2 = useNamespace("overlay");
|
|
77
102
|
const backgroundClass = computed(() => {
|
|
78
|
-
return [
|
|
79
|
-
"devui-overlay-background",
|
|
80
|
-
props.backgroundClass,
|
|
81
|
-
!props.hasBackdrop ? "devui-overlay-background__disabled" : "devui-overlay-background__color"
|
|
82
|
-
];
|
|
103
|
+
return [ns2.e("background"), props.backgroundClass, !props.hasBackdrop ? ns2.em("background", "disabled") : ns2.em("background", "color")];
|
|
83
104
|
});
|
|
84
105
|
const overlayClass = computed(() => {
|
|
85
|
-
return
|
|
106
|
+
return ns2.b();
|
|
86
107
|
});
|
|
87
108
|
const handleBackdropClick = (event) => {
|
|
88
109
|
var _a;
|
|
@@ -292,6 +313,7 @@ const FlexibleOverlay = defineComponent({
|
|
|
292
313
|
emit,
|
|
293
314
|
expose
|
|
294
315
|
}) {
|
|
316
|
+
const ns2 = useNamespace("flexible-overlay");
|
|
295
317
|
const {
|
|
296
318
|
arrowRef,
|
|
297
319
|
overlayRef,
|
|
@@ -304,10 +326,10 @@ const FlexibleOverlay = defineComponent({
|
|
|
304
326
|
var _a;
|
|
305
327
|
return props.modelValue && createVNode("div", mergeProps({
|
|
306
328
|
"ref": overlayRef,
|
|
307
|
-
"class":
|
|
329
|
+
"class": ns2.b()
|
|
308
330
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
|
|
309
331
|
"ref": arrowRef,
|
|
310
|
-
"class": "
|
|
332
|
+
"class": ns2.e("arrow")
|
|
311
333
|
}, null)]);
|
|
312
334
|
};
|
|
313
335
|
}
|
|
@@ -5834,11 +5856,12 @@ function usePopoverEvent(props, visible, origin) {
|
|
|
5834
5856
|
origin.value.addEventListener("mouseleave", onMouseleave);
|
|
5835
5857
|
}
|
|
5836
5858
|
});
|
|
5837
|
-
return { placement, handlePositionChange };
|
|
5859
|
+
return { placement, handlePositionChange, onMouseenter, onMouseleave };
|
|
5838
5860
|
}
|
|
5861
|
+
const ns = useNamespace("popover");
|
|
5839
5862
|
function SuccessIcon() {
|
|
5840
5863
|
return createVNode("svg", {
|
|
5841
|
-
"class": "
|
|
5864
|
+
"class": [ns.e("icon"), ns.em("icon", "success")],
|
|
5842
5865
|
"viewBox": "0 0 16 16",
|
|
5843
5866
|
"version": "1.1",
|
|
5844
5867
|
"xmlns": "http://www.w3.org/2000/svg"
|
|
@@ -5862,7 +5885,7 @@ function SuccessIcon() {
|
|
|
5862
5885
|
}
|
|
5863
5886
|
function WarningIcon() {
|
|
5864
5887
|
return createVNode("svg", {
|
|
5865
|
-
"class": "
|
|
5888
|
+
"class": [ns.e("icon"), ns.em("icon", "warning")],
|
|
5866
5889
|
"viewBox": "0 0 16 16",
|
|
5867
5890
|
"version": "1.1",
|
|
5868
5891
|
"xmlns": "http://www.w3.org/2000/svg"
|
|
@@ -5872,14 +5895,14 @@ function WarningIcon() {
|
|
|
5872
5895
|
"fill": "none",
|
|
5873
5896
|
"fill-rule": "evenodd"
|
|
5874
5897
|
}, [createVNode("polygon", {
|
|
5875
|
-
"points": "7.5 1.74501946 1.39184847 13.5954649 7.08947368
|
|
5898
|
+
"points": "7.5 1.74501946 1.39184847 13.5954649 7.08947368 14.2207621 13.9973698 13.5954649 10.9383683 5.61273879 8.40084114 1.27624313"
|
|
5876
5899
|
}, null), createVNode("path", {
|
|
5877
|
-
"d": "M8.51325441,0.127397589 C8.70423071,0.228333932
|
|
5900
|
+
"d": "M8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 Z M8.87894737,11.2105263 L7.08947368,11.2105263 L7.08947368,13 L8.87894737,13 L8.87894737,11.2105263 Z M8.96842105,4.5 L7,4.5 L7.08947368,9.86842105 L8.87894737,9.86842105 L8.96842105,4.5 Z"
|
|
5878
5901
|
}, null)])]);
|
|
5879
5902
|
}
|
|
5880
5903
|
function InfoIcon() {
|
|
5881
5904
|
return createVNode("svg", {
|
|
5882
|
-
"class": "
|
|
5905
|
+
"class": [ns.e("icon"), ns.em("icon", "info")],
|
|
5883
5906
|
"viewBox": "0 0 16 16",
|
|
5884
5907
|
"version": "1.1",
|
|
5885
5908
|
"xmlns": "http://www.w3.org/2000/svg"
|
|
@@ -5895,12 +5918,12 @@ function InfoIcon() {
|
|
|
5895
5918
|
}, null), createVNode("g", {
|
|
5896
5919
|
"stroke-width": "1"
|
|
5897
5920
|
}, [createVNode("path", {
|
|
5898
|
-
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16
|
|
5921
|
+
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z M9,5 L7,5 L7,3 L9,3 L9,5 Z M9,12.6 L7,12.6 L7,6.6 L9,6.6 L9,12.6 Z"
|
|
5899
5922
|
}, null)])])]);
|
|
5900
5923
|
}
|
|
5901
5924
|
function ErrorIcon() {
|
|
5902
5925
|
return createVNode("svg", {
|
|
5903
|
-
"class": "
|
|
5926
|
+
"class": [ns.e("icon"), ns.em("icon", "error")],
|
|
5904
5927
|
"width": "16px",
|
|
5905
5928
|
"height": "16px",
|
|
5906
5929
|
"viewBox": "0 0 16 16",
|
|
@@ -5916,7 +5939,7 @@ function ErrorIcon() {
|
|
|
5916
5939
|
"cy": "8",
|
|
5917
5940
|
"r": "7"
|
|
5918
5941
|
}, null), createVNode("path", {
|
|
5919
|
-
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8
|
|
5942
|
+
"d": "M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z M9,12.6 L7,12.6 L7,10.6 L9,10.6 L9,12.6 Z M9,9.1 L7,9.1 L6.9,3.1 L9.1,3.1 L9,9.1 Z",
|
|
5920
5943
|
"fill-rule": "nonzero"
|
|
5921
5944
|
}, null)])]);
|
|
5922
5945
|
}
|
|
@@ -5929,8 +5952,9 @@ var PopoverIcon = defineComponent({
|
|
|
5929
5952
|
}
|
|
5930
5953
|
},
|
|
5931
5954
|
setup(props) {
|
|
5955
|
+
const ns2 = useNamespace("popover");
|
|
5932
5956
|
return () => props.type && props.type !== "default" && createVNode("span", {
|
|
5933
|
-
"class": "
|
|
5957
|
+
"class": ns2.e("icon-wrap")
|
|
5934
5958
|
}, [props.type === "success" && createVNode(SuccessIcon, null, null), props.type === "warning" && createVNode(WarningIcon, null, null), props.type === "info" && createVNode(InfoIcon, null, null), props.type === "error" && createVNode(ErrorIcon, null, null)]);
|
|
5935
5959
|
}
|
|
5936
5960
|
});
|
|
@@ -5956,21 +5980,24 @@ var Popover = defineComponent({
|
|
|
5956
5980
|
const visible = ref(false);
|
|
5957
5981
|
const {
|
|
5958
5982
|
placement,
|
|
5959
|
-
handlePositionChange
|
|
5983
|
+
handlePositionChange,
|
|
5984
|
+
onMouseenter,
|
|
5985
|
+
onMouseleave
|
|
5960
5986
|
} = usePopoverEvent(props, visible, origin);
|
|
5961
5987
|
const {
|
|
5962
5988
|
overlayStyles
|
|
5963
5989
|
} = usePopover(props, visible, placement, origin, popoverRef);
|
|
5990
|
+
const ns2 = useNamespace("popover");
|
|
5964
5991
|
return () => {
|
|
5965
5992
|
var _a;
|
|
5966
5993
|
return createVNode(Fragment, null, [createVNode("div", {
|
|
5967
5994
|
"ref": origin,
|
|
5968
|
-
"class": "
|
|
5995
|
+
"class": ns2.e("reference")
|
|
5969
5996
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Teleport, {
|
|
5970
5997
|
"to": "body"
|
|
5971
5998
|
}, {
|
|
5972
5999
|
default: () => [createVNode(Transition, {
|
|
5973
|
-
"name": showAnimation.value ? `
|
|
6000
|
+
"name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
|
|
5974
6001
|
}, {
|
|
5975
6002
|
default: () => [createVNode(FlexibleOverlay, mergeProps({
|
|
5976
6003
|
"modelValue": visible.value,
|
|
@@ -5980,12 +6007,14 @@ var Popover = defineComponent({
|
|
|
5980
6007
|
"position": position.value,
|
|
5981
6008
|
"align": align.value,
|
|
5982
6009
|
"offset": offset2.value,
|
|
5983
|
-
"class": ["
|
|
6010
|
+
"class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
|
|
5984
6011
|
"show-arrow": true,
|
|
5985
6012
|
"is-arrow-center": false,
|
|
5986
6013
|
"style": overlayStyles.value
|
|
5987
6014
|
}, attrs, {
|
|
5988
|
-
"onPositionChange": handlePositionChange
|
|
6015
|
+
"onPositionChange": handlePositionChange,
|
|
6016
|
+
"onMouseenter": onMouseenter,
|
|
6017
|
+
"onMouseleave": onMouseleave
|
|
5989
6018
|
}), {
|
|
5990
6019
|
default: () => {
|
|
5991
6020
|
var _a2;
|