vue-devui 1.0.0-rc.7 → 1.0.0
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 +163 -146
- package/alert/index.es.js +46 -15
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +8230 -231
- package/auto-complete/index.umd.js +29 -5
- package/auto-complete/style.css +1 -1
- package/avatar/index.es.js +81 -70
- package/avatar/index.umd.js +1 -1
- package/avatar/style.css +1 -1
- package/badge/index.es.js +34 -4
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +5706 -98
- package/button/index.umd.js +27 -1
- package/button/style.css +1 -1
- package/card/index.es.js +38 -13
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +8066 -245
- package/checkbox/index.umd.js +27 -1
- package/checkbox/style.css +1 -1
- package/{date-picker → collapse}/index.d.ts +0 -0
- package/collapse/index.es.js +213 -0
- package/collapse/index.umd.js +1 -0
- package/{date-picker → collapse}/package.json +1 -1
- package/collapse/style.css +1 -0
- package/countdown/index.es.js +56 -13
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.d.ts +7 -0
- package/date-picker-pro/index.es.js +12020 -0
- package/date-picker-pro/index.umd.js +27 -0
- package/date-picker-pro/package.json +7 -0
- package/date-picker-pro/style.css +1 -0
- package/drawer/index.es.js +29 -4
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +178 -142
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +742 -107
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +544 -316
- package/form/index.umd.js +17 -17
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +28 -4
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/grid/index.es.js +71 -50
- package/grid/index.umd.js +1 -1
- package/grid/style.css +1 -1
- package/icon/index.es.js +184 -23
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -0
- 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 +8250 -131
- package/input/index.umd.js +27 -1
- package/input/style.css +1 -1
- package/input-number/index.es.js +275 -203
- 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/mention/index.d.ts +7 -0
- package/mention/index.es.js +8310 -0
- package/mention/index.umd.js +36 -0
- package/mention/package.json +7 -0
- package/mention/style.css +1 -0
- package/menu/index.d.ts +7 -0
- package/menu/index.es.js +934 -0
- package/menu/index.umd.js +1 -0
- package/menu/package.json +7 -0
- package/menu/style.css +1 -0
- package/message/index.d.ts +7 -0
- package/message/index.es.js +538 -0
- package/message/index.umd.js +1 -0
- package/message/package.json +7 -0
- package/message/style.css +1 -0
- package/modal/index.es.js +359 -170
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +236 -65
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/ButtonGroup.js +3 -0
- package/nuxt/components/CheckboxButton.js +3 -0
- package/nuxt/components/Collapse.js +3 -0
- package/nuxt/components/CollapseItem.js +3 -0
- package/nuxt/components/DRangeDatePickerPro.js +3 -0
- package/nuxt/components/DatePickerPro.js +3 -0
- package/nuxt/components/Icon.js +1 -0
- package/nuxt/components/IconGroup.js +3 -0
- package/nuxt/components/LABEL_DATA.js +3 -0
- package/nuxt/components/Mention.js +3 -0
- package/nuxt/components/Menu.js +3 -0
- package/nuxt/components/MenuItem.js +3 -0
- package/nuxt/components/Message.js +3 -0
- package/nuxt/components/Option.js +3 -0
- package/nuxt/components/OptionGroup.js +3 -0
- package/nuxt/components/RadioButton.js +3 -0
- package/nuxt/components/Step.js +3 -0
- package/nuxt/components/Steps.js +3 -0
- package/nuxt/components/SubMenu.js +3 -0
- package/nuxt/components/TABLE_TOKEN.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/TimeSelect.js +3 -0
- package/nuxt/components/animationInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupProps.js +3 -0
- package/nuxt/components/collapseItemProps.js +3 -0
- package/nuxt/components/collapseProps.js +3 -0
- package/nuxt/components/datePickerProCommonProps.js +3 -0
- package/nuxt/components/datePickerProPanelProps.js +3 -0
- package/nuxt/components/datePickerProProps.js +3 -0
- package/nuxt/components/iconProps.js +1 -0
- package/nuxt/components/mentionProps.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/roundInjectionKey.js +3 -0
- package/nuxt/components/skeletonItemProps.js +3 -0
- package/nuxt/components/stepProps.js +3 -0
- package/nuxt/components/stepsProps.js +3 -0
- package/nuxt/components/svgIconProps.js +3 -0
- package/nuxt/components/tableProps.js +3 -0
- package/nuxt/components/timerPickerPanelProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/overlay/index.es.js +84 -125
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +7 -3
- package/pagination/index.es.js +234 -39
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/panel/style.css +1 -1
- package/popover/index.es.js +274 -220
- package/popover/index.umd.js +13 -13
- package/popover/style.css +1 -1
- package/progress/index.es.js +31 -9
- package/progress/index.umd.js +3 -3
- package/progress/style.css +1 -1
- package/radio/index.es.js +7969 -152
- package/radio/index.umd.js +27 -1
- package/radio/style.css +1 -1
- package/rate/index.es.js +46 -14
- package/rate/index.umd.js +1 -1
- package/rate/style.css +1 -1
- package/result/index.es.js +169 -22
- package/result/index.umd.js +1 -1
- package/result/style.css +1 -1
- package/search/index.es.js +3823 -1090
- package/search/index.umd.js +18 -18
- package/search/style.css +1 -1
- package/select/index.es.js +9186 -478
- package/select/index.umd.js +27 -1
- package/select/style.css +1 -1
- package/skeleton/index.es.js +110 -259
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.es.js +143 -146
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +433 -207
- package/splitter/index.umd.js +17 -17
- package/splitter/style.css +1 -1
- package/statistic/index.es.js +34 -16
- package/statistic/index.umd.js +1 -1
- package/statistic/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/steps/index.d.ts +7 -0
- package/steps/index.es.js +386 -0
- package/steps/index.umd.js +1 -0
- package/steps/package.json +7 -0
- package/steps/style.css +1 -0
- package/style.css +1 -1
- package/switch/index.es.js +7802 -59
- package/switch/index.umd.js +27 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +9769 -919
- package/table/index.umd.js +27 -1
- package/table/style.css +1 -1
- package/tabs/index.es.js +309 -96
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +35 -7
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +7922 -78
- package/textarea/index.umd.js +35 -1
- package/textarea/style.css +1 -1
- package/time-picker/index.d.ts +7 -0
- package/time-picker/index.es.js +9549 -0
- package/time-picker/index.umd.js +27 -0
- package/time-picker/package.json +7 -0
- package/time-picker/style.css +1 -0
- package/time-select/index.d.ts +7 -0
- package/time-select/index.es.js +9585 -0
- package/time-select/index.umd.js +27 -0
- package/time-select/package.json +7 -0
- package/time-select/style.css +1 -0
- package/timeline/index.es.js +169 -22
- package/timeline/index.umd.js +1 -1
- package/timeline/style.css +1 -1
- package/tooltip/index.es.js +265 -212
- package/tooltip/index.umd.js +15 -15
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +11343 -795
- package/tree/index.umd.js +27 -1
- package/tree/style.css +1 -1
- package/upload/index.es.js +494 -106
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +22849 -13614
- package/vue-devui.umd.js +30 -23
- package/date-picker/index.es.js +0 -1145
- package/date-picker/index.umd.js +0 -1
- package/date-picker/style.css +0 -1
- package/nuxt/components/DatePicker.js +0 -3
- package/nuxt/components/FormControl.js +0 -3
- package/nuxt/components/FormLabel.js +0 -3
- package/nuxt/components/StickSlider.js +0 -3
- package/nuxt/components/formControlProps.js +0 -3
- package/nuxt/components/overlayEmits.js +0 -3
- package/nuxt/components/overlayProps.js +0 -3
package/splitter/index.es.js
CHANGED
|
@@ -1,154 +1,114 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
3
|
var __publicField = (obj, key, value) => {
|
|
21
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
5
|
return value;
|
|
23
6
|
};
|
|
24
|
-
import { defineComponent,
|
|
7
|
+
import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, provide, Teleport, reactive, getCurrentInstance, resolveComponent, onUpdated } from "vue";
|
|
25
8
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
29
|
-
}
|
|
30
|
-
const CommonOverlay = defineComponent({
|
|
31
|
-
setup(props, ctx) {
|
|
32
|
-
return () => {
|
|
33
|
-
let _slot;
|
|
34
|
-
return createVNode(Teleport, {
|
|
35
|
-
"to": "#d-overlay-anchor"
|
|
36
|
-
}, {
|
|
37
|
-
default: () => [createVNode(Transition, {
|
|
38
|
-
"name": "devui-overlay-fade"
|
|
39
|
-
}, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : {
|
|
40
|
-
default: () => [_slot]
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
const overlayProps = {
|
|
47
|
-
visible: {
|
|
48
|
-
type: Boolean
|
|
49
|
-
},
|
|
50
|
-
backgroundBlock: {
|
|
9
|
+
const fixedOverlayProps = {
|
|
10
|
+
modelValue: {
|
|
51
11
|
type: Boolean,
|
|
52
12
|
default: false
|
|
53
13
|
},
|
|
54
|
-
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
backgroundStyle: {
|
|
59
|
-
type: [String, Object]
|
|
60
|
-
},
|
|
61
|
-
onBackdropClick: {
|
|
62
|
-
type: Function
|
|
63
|
-
},
|
|
64
|
-
backdropClose: {
|
|
14
|
+
lockScroll: {
|
|
65
15
|
type: Boolean,
|
|
66
16
|
default: true
|
|
67
17
|
},
|
|
68
|
-
|
|
18
|
+
closeOnClickOverlay: {
|
|
69
19
|
type: Boolean,
|
|
70
20
|
default: true
|
|
71
21
|
}
|
|
72
22
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
23
|
+
function lockScroll() {
|
|
24
|
+
if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
|
|
25
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
26
|
+
const style = document.documentElement.getAttribute("style");
|
|
27
|
+
document.documentElement.style.position = "fixed";
|
|
28
|
+
document.documentElement.style.top = `-${scrollTop}px`;
|
|
29
|
+
document.documentElement.style.width = document.documentElement.style.width || "100%";
|
|
30
|
+
document.documentElement.style.overflowY = "scroll";
|
|
31
|
+
return () => {
|
|
32
|
+
if (style) {
|
|
33
|
+
document.documentElement.setAttribute("style", style);
|
|
34
|
+
} else {
|
|
35
|
+
document.documentElement.removeAttribute("style");
|
|
36
|
+
}
|
|
37
|
+
document.documentElement.scrollTop = scrollTop;
|
|
38
|
+
};
|
|
77
39
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"devui-overlay-background",
|
|
84
|
-
props.backgroundClass,
|
|
85
|
-
!props.hasBackdrop ? "devui-overlay-background__disabled" : "devui-overlay-background__color"
|
|
86
|
-
];
|
|
87
|
-
});
|
|
88
|
-
const overlayClass = computed(() => {
|
|
89
|
-
return "devui-overlay";
|
|
90
|
-
});
|
|
91
|
-
const handleBackdropClick = (event) => {
|
|
92
|
-
var _a;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
function useFixedOverlay(props, ctx) {
|
|
43
|
+
let lockScrollCb;
|
|
44
|
+
const onClick = (event) => {
|
|
93
45
|
event.preventDefault();
|
|
94
|
-
(
|
|
95
|
-
if (props.
|
|
96
|
-
ctx.emit("update:
|
|
46
|
+
ctx.emit("click", event);
|
|
47
|
+
if (props.closeOnClickOverlay) {
|
|
48
|
+
ctx.emit("update:modelValue", false);
|
|
97
49
|
}
|
|
98
50
|
};
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
body.style.overflowY = "scroll";
|
|
109
|
-
body.style.position = visible ? "fixed" : "";
|
|
110
|
-
body.style.top = `${top}px`;
|
|
111
|
-
} else {
|
|
112
|
-
body.style.overflowY = originOverflow;
|
|
113
|
-
body.style.position = originPosition;
|
|
114
|
-
body.style.top = "";
|
|
115
|
-
window.scrollTo(0, -top);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
onUnmounted(() => {
|
|
120
|
-
document.body.style.overflow = originOverflow;
|
|
121
|
-
});
|
|
51
|
+
const removeBodyAdditions = () => {
|
|
52
|
+
lockScrollCb == null ? void 0 : lockScrollCb();
|
|
53
|
+
};
|
|
54
|
+
watch(() => props.modelValue, (val) => {
|
|
55
|
+
if (val) {
|
|
56
|
+
props.lockScroll && (lockScrollCb = lockScroll());
|
|
57
|
+
} else {
|
|
58
|
+
removeBodyAdditions();
|
|
59
|
+
}
|
|
122
60
|
});
|
|
61
|
+
onUnmounted(removeBodyAdditions);
|
|
62
|
+
return { onClick };
|
|
63
|
+
}
|
|
64
|
+
function createBem(namespace, element, modifier) {
|
|
65
|
+
let cls = namespace;
|
|
66
|
+
if (element) {
|
|
67
|
+
cls += `__${element}`;
|
|
68
|
+
}
|
|
69
|
+
if (modifier) {
|
|
70
|
+
cls += `--${modifier}`;
|
|
71
|
+
}
|
|
72
|
+
return cls;
|
|
73
|
+
}
|
|
74
|
+
function useNamespace(block, needDot = false) {
|
|
75
|
+
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
76
|
+
const b = () => createBem(namespace);
|
|
77
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
78
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
79
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
123
80
|
return {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
81
|
+
b,
|
|
82
|
+
e,
|
|
83
|
+
m,
|
|
84
|
+
em
|
|
128
85
|
};
|
|
129
86
|
}
|
|
130
87
|
var fixedOverlay = "";
|
|
131
88
|
defineComponent({
|
|
132
89
|
name: "DFixedOverlay",
|
|
90
|
+
inheritAttrs: false,
|
|
133
91
|
props: fixedOverlayProps,
|
|
134
|
-
emits:
|
|
92
|
+
emits: ["update:modelValue", "click"],
|
|
135
93
|
setup(props, ctx) {
|
|
136
94
|
const {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
95
|
+
modelValue
|
|
96
|
+
} = toRefs(props);
|
|
97
|
+
const ns2 = useNamespace("fixed-overlay");
|
|
98
|
+
const {
|
|
99
|
+
onClick
|
|
100
|
+
} = useFixedOverlay(props, ctx);
|
|
101
|
+
return () => createVNode(Transition, {
|
|
102
|
+
"name": ns2.m("fade")
|
|
103
|
+
}, {
|
|
104
|
+
default: () => {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
return [modelValue.value && createVNode("div", mergeProps({
|
|
107
|
+
"class": ns2.b()
|
|
108
|
+
}, ctx.attrs, {
|
|
109
|
+
"onClick": onClick
|
|
110
|
+
}), [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])];
|
|
111
|
+
}
|
|
152
112
|
});
|
|
153
113
|
}
|
|
154
114
|
});
|
|
@@ -296,6 +256,7 @@ const FlexibleOverlay = defineComponent({
|
|
|
296
256
|
emit,
|
|
297
257
|
expose
|
|
298
258
|
}) {
|
|
259
|
+
const ns2 = useNamespace("flexible-overlay");
|
|
299
260
|
const {
|
|
300
261
|
arrowRef,
|
|
301
262
|
overlayRef,
|
|
@@ -308,14 +269,70 @@ const FlexibleOverlay = defineComponent({
|
|
|
308
269
|
var _a;
|
|
309
270
|
return props.modelValue && createVNode("div", mergeProps({
|
|
310
271
|
"ref": overlayRef,
|
|
311
|
-
"class":
|
|
272
|
+
"class": ns2.b()
|
|
312
273
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
|
|
313
274
|
"ref": arrowRef,
|
|
314
|
-
"class": "
|
|
275
|
+
"class": ns2.e("arrow")
|
|
315
276
|
}, null)]);
|
|
316
277
|
};
|
|
317
278
|
}
|
|
318
279
|
});
|
|
280
|
+
const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
|
|
281
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
282
|
+
const ns = useNamespace("popper-trigger");
|
|
283
|
+
function wrapContent(content) {
|
|
284
|
+
return h("span", { class: ns.b() }, content);
|
|
285
|
+
}
|
|
286
|
+
function getFirstValidChild(nodes) {
|
|
287
|
+
for (const child of nodes) {
|
|
288
|
+
if (isObject(child)) {
|
|
289
|
+
if (child.type === Comment) {
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if (child.type === "svg" || child.type === Text) {
|
|
293
|
+
return wrapContent(child);
|
|
294
|
+
}
|
|
295
|
+
if (child.type === Fragment) {
|
|
296
|
+
return getFirstValidChild(child.children);
|
|
297
|
+
}
|
|
298
|
+
return child;
|
|
299
|
+
}
|
|
300
|
+
return wrapContent(child);
|
|
301
|
+
}
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
var PopperTrigger = defineComponent({
|
|
305
|
+
name: "DPopperTrigger",
|
|
306
|
+
setup(_, ctx) {
|
|
307
|
+
const {
|
|
308
|
+
slots,
|
|
309
|
+
attrs
|
|
310
|
+
} = ctx;
|
|
311
|
+
return () => {
|
|
312
|
+
var _a;
|
|
313
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots, attrs);
|
|
314
|
+
const triggerRef = inject(POPPER_TRIGGER_TOKEN);
|
|
315
|
+
if (!defaultSlot) {
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
const firstValidChild = getFirstValidChild(defaultSlot);
|
|
319
|
+
if (!firstValidChild) {
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
322
|
+
return withDirectives(cloneVNode(firstValidChild, attrs), [[{
|
|
323
|
+
mounted(el) {
|
|
324
|
+
triggerRef.value = el;
|
|
325
|
+
},
|
|
326
|
+
updated(el) {
|
|
327
|
+
triggerRef.value = el;
|
|
328
|
+
},
|
|
329
|
+
unmounted() {
|
|
330
|
+
triggerRef.value = null;
|
|
331
|
+
}
|
|
332
|
+
}]]);
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
});
|
|
319
336
|
const tooltipProps = {
|
|
320
337
|
content: {
|
|
321
338
|
type: String,
|
|
@@ -336,6 +353,18 @@ const tooltipProps = {
|
|
|
336
353
|
mouseLeaveDelay: {
|
|
337
354
|
type: Number,
|
|
338
355
|
default: 100
|
|
356
|
+
},
|
|
357
|
+
enterable: {
|
|
358
|
+
type: Boolean,
|
|
359
|
+
default: true
|
|
360
|
+
},
|
|
361
|
+
disabled: {
|
|
362
|
+
type: Boolean,
|
|
363
|
+
default: false
|
|
364
|
+
},
|
|
365
|
+
hideAfter: {
|
|
366
|
+
type: Number,
|
|
367
|
+
default: 0
|
|
339
368
|
}
|
|
340
369
|
};
|
|
341
370
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -1049,7 +1078,7 @@ var lodash = { exports: {} };
|
|
|
1049
1078
|
var objectCtorString = funcToString.call(Object2);
|
|
1050
1079
|
var oldDash = root._;
|
|
1051
1080
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1052
|
-
var Buffer2 = moduleExports ? context.Buffer : undefined$1,
|
|
1081
|
+
var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
1053
1082
|
var defineProperty = function() {
|
|
1054
1083
|
try {
|
|
1055
1084
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1060,11 +1089,11 @@ var lodash = { exports: {} };
|
|
|
1060
1089
|
}();
|
|
1061
1090
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1062
1091
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1063
|
-
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
1092
|
+
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1064
1093
|
var metaMap = WeakMap2 && new WeakMap2();
|
|
1065
1094
|
var realNames = {};
|
|
1066
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
1067
|
-
var symbolProto =
|
|
1095
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
|
|
1096
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1068
1097
|
function lodash2(value) {
|
|
1069
1098
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
1070
1099
|
if (value instanceof LodashWrapper) {
|
|
@@ -1080,7 +1109,7 @@ var lodash = { exports: {} };
|
|
|
1080
1109
|
function object() {
|
|
1081
1110
|
}
|
|
1082
1111
|
return function(proto) {
|
|
1083
|
-
if (!
|
|
1112
|
+
if (!isObject2(proto)) {
|
|
1084
1113
|
return {};
|
|
1085
1114
|
}
|
|
1086
1115
|
if (objectCreate) {
|
|
@@ -1419,7 +1448,7 @@ var lodash = { exports: {} };
|
|
|
1419
1448
|
function baseAt(object, paths) {
|
|
1420
1449
|
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1421
1450
|
while (++index2 < length) {
|
|
1422
|
-
result2[index2] = skip ? undefined$1 :
|
|
1451
|
+
result2[index2] = skip ? undefined$1 : get2(object, paths[index2]);
|
|
1423
1452
|
}
|
|
1424
1453
|
return result2;
|
|
1425
1454
|
}
|
|
@@ -1442,7 +1471,7 @@ var lodash = { exports: {} };
|
|
|
1442
1471
|
if (result2 !== undefined$1) {
|
|
1443
1472
|
return result2;
|
|
1444
1473
|
}
|
|
1445
|
-
if (!
|
|
1474
|
+
if (!isObject2(value)) {
|
|
1446
1475
|
return value;
|
|
1447
1476
|
}
|
|
1448
1477
|
var isArr = isArray(value);
|
|
@@ -1518,7 +1547,7 @@ var lodash = { exports: {} };
|
|
|
1518
1547
|
if (typeof func != "function") {
|
|
1519
1548
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1520
1549
|
}
|
|
1521
|
-
return
|
|
1550
|
+
return setTimeout2(function() {
|
|
1522
1551
|
func.apply(undefined$1, args);
|
|
1523
1552
|
}, wait);
|
|
1524
1553
|
}
|
|
@@ -1789,7 +1818,7 @@ var lodash = { exports: {} };
|
|
|
1789
1818
|
return true;
|
|
1790
1819
|
}
|
|
1791
1820
|
function baseIsNative(value) {
|
|
1792
|
-
if (!
|
|
1821
|
+
if (!isObject2(value) || isMasked(value)) {
|
|
1793
1822
|
return false;
|
|
1794
1823
|
}
|
|
1795
1824
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
@@ -1829,7 +1858,7 @@ var lodash = { exports: {} };
|
|
|
1829
1858
|
return result2;
|
|
1830
1859
|
}
|
|
1831
1860
|
function baseKeysIn(object) {
|
|
1832
|
-
if (!
|
|
1861
|
+
if (!isObject2(object)) {
|
|
1833
1862
|
return nativeKeysIn(object);
|
|
1834
1863
|
}
|
|
1835
1864
|
var isProto = isPrototype(object), result2 = [];
|
|
@@ -1864,7 +1893,7 @@ var lodash = { exports: {} };
|
|
|
1864
1893
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
1865
1894
|
}
|
|
1866
1895
|
return function(object) {
|
|
1867
|
-
var objValue =
|
|
1896
|
+
var objValue = get2(object, path);
|
|
1868
1897
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1869
1898
|
};
|
|
1870
1899
|
}
|
|
@@ -1874,7 +1903,7 @@ var lodash = { exports: {} };
|
|
|
1874
1903
|
}
|
|
1875
1904
|
baseFor(source, function(srcValue, key) {
|
|
1876
1905
|
stack || (stack = new Stack());
|
|
1877
|
-
if (
|
|
1906
|
+
if (isObject2(srcValue)) {
|
|
1878
1907
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1879
1908
|
} else {
|
|
1880
1909
|
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
|
|
@@ -1914,7 +1943,7 @@ var lodash = { exports: {} };
|
|
|
1914
1943
|
newValue = objValue;
|
|
1915
1944
|
if (isArguments(objValue)) {
|
|
1916
1945
|
newValue = toPlainObject(objValue);
|
|
1917
|
-
} else if (!
|
|
1946
|
+
} else if (!isObject2(objValue) || isFunction(objValue)) {
|
|
1918
1947
|
newValue = initCloneObject(srcValue);
|
|
1919
1948
|
}
|
|
1920
1949
|
} else {
|
|
@@ -2053,7 +2082,7 @@ var lodash = { exports: {} };
|
|
|
2053
2082
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
2054
2083
|
}
|
|
2055
2084
|
function baseSet(object, path, value, customizer) {
|
|
2056
|
-
if (!
|
|
2085
|
+
if (!isObject2(object)) {
|
|
2057
2086
|
return object;
|
|
2058
2087
|
}
|
|
2059
2088
|
path = castPath(path, object);
|
|
@@ -2067,7 +2096,7 @@ var lodash = { exports: {} };
|
|
|
2067
2096
|
var objValue = nested[key];
|
|
2068
2097
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
2069
2098
|
if (newValue === undefined$1) {
|
|
2070
|
-
newValue =
|
|
2099
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
2071
2100
|
}
|
|
2072
2101
|
}
|
|
2073
2102
|
assignValue(nested, key, newValue);
|
|
@@ -2298,7 +2327,7 @@ var lodash = { exports: {} };
|
|
|
2298
2327
|
end = end === undefined$1 ? length : end;
|
|
2299
2328
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
2300
2329
|
}
|
|
2301
|
-
var
|
|
2330
|
+
var clearTimeout2 = ctxClearTimeout || function(id) {
|
|
2302
2331
|
return root.clearTimeout(id);
|
|
2303
2332
|
};
|
|
2304
2333
|
function cloneBuffer(buffer, isDeep) {
|
|
@@ -2517,7 +2546,7 @@ var lodash = { exports: {} };
|
|
|
2517
2546
|
return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
2518
2547
|
}
|
|
2519
2548
|
var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
|
|
2520
|
-
return
|
|
2549
|
+
return isObject2(result2) ? result2 : thisBinding;
|
|
2521
2550
|
};
|
|
2522
2551
|
}
|
|
2523
2552
|
function createCurry(func, bitmask, arity) {
|
|
@@ -2755,8 +2784,8 @@ var lodash = { exports: {} };
|
|
|
2755
2784
|
return func(number);
|
|
2756
2785
|
};
|
|
2757
2786
|
}
|
|
2758
|
-
var createSet = !(
|
|
2759
|
-
return new
|
|
2787
|
+
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
2788
|
+
return new Set2(values2);
|
|
2760
2789
|
};
|
|
2761
2790
|
function createToPairs(keysFunc) {
|
|
2762
2791
|
return function(object) {
|
|
@@ -2831,7 +2860,7 @@ var lodash = { exports: {} };
|
|
|
2831
2860
|
return objValue;
|
|
2832
2861
|
}
|
|
2833
2862
|
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
|
2834
|
-
if (
|
|
2863
|
+
if (isObject2(objValue) && isObject2(srcValue)) {
|
|
2835
2864
|
stack.set(srcValue, objValue);
|
|
2836
2865
|
baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
|
|
2837
2866
|
stack["delete"](srcValue);
|
|
@@ -3055,7 +3084,7 @@ var lodash = { exports: {} };
|
|
|
3055
3084
|
return result2;
|
|
3056
3085
|
};
|
|
3057
3086
|
var getTag = baseGetTag;
|
|
3058
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
3087
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
3059
3088
|
getTag = function(value) {
|
|
3060
3089
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3061
3090
|
if (ctorString) {
|
|
@@ -3179,7 +3208,7 @@ var lodash = { exports: {} };
|
|
|
3179
3208
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3180
3209
|
}
|
|
3181
3210
|
function isIterateeCall(value, index2, object) {
|
|
3182
|
-
if (!
|
|
3211
|
+
if (!isObject2(object)) {
|
|
3183
3212
|
return false;
|
|
3184
3213
|
}
|
|
3185
3214
|
var type = typeof index2;
|
|
@@ -3222,7 +3251,7 @@ var lodash = { exports: {} };
|
|
|
3222
3251
|
return value === proto;
|
|
3223
3252
|
}
|
|
3224
3253
|
function isStrictComparable(value) {
|
|
3225
|
-
return value === value && !
|
|
3254
|
+
return value === value && !isObject2(value);
|
|
3226
3255
|
}
|
|
3227
3256
|
function matchesStrictComparable(key, srcValue) {
|
|
3228
3257
|
return function(object) {
|
|
@@ -3327,7 +3356,7 @@ var lodash = { exports: {} };
|
|
|
3327
3356
|
return object[key];
|
|
3328
3357
|
}
|
|
3329
3358
|
var setData = shortOut(baseSetData);
|
|
3330
|
-
var
|
|
3359
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3331
3360
|
return root.setTimeout(func, wait);
|
|
3332
3361
|
};
|
|
3333
3362
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4104,7 +4133,7 @@ var lodash = { exports: {} };
|
|
|
4104
4133
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4105
4134
|
}
|
|
4106
4135
|
wait = toNumber(wait) || 0;
|
|
4107
|
-
if (
|
|
4136
|
+
if (isObject2(options)) {
|
|
4108
4137
|
leading = !!options.leading;
|
|
4109
4138
|
maxing = "maxWait" in options;
|
|
4110
4139
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -4119,7 +4148,7 @@ var lodash = { exports: {} };
|
|
|
4119
4148
|
}
|
|
4120
4149
|
function leadingEdge(time) {
|
|
4121
4150
|
lastInvokeTime = time;
|
|
4122
|
-
timerId =
|
|
4151
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4123
4152
|
return leading ? invokeFunc(time) : result2;
|
|
4124
4153
|
}
|
|
4125
4154
|
function remainingWait(time) {
|
|
@@ -4135,7 +4164,7 @@ var lodash = { exports: {} };
|
|
|
4135
4164
|
if (shouldInvoke(time)) {
|
|
4136
4165
|
return trailingEdge(time);
|
|
4137
4166
|
}
|
|
4138
|
-
timerId =
|
|
4167
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
4139
4168
|
}
|
|
4140
4169
|
function trailingEdge(time) {
|
|
4141
4170
|
timerId = undefined$1;
|
|
@@ -4147,7 +4176,7 @@ var lodash = { exports: {} };
|
|
|
4147
4176
|
}
|
|
4148
4177
|
function cancel() {
|
|
4149
4178
|
if (timerId !== undefined$1) {
|
|
4150
|
-
|
|
4179
|
+
clearTimeout2(timerId);
|
|
4151
4180
|
}
|
|
4152
4181
|
lastInvokeTime = 0;
|
|
4153
4182
|
lastArgs = lastCallTime = lastThis = timerId = undefined$1;
|
|
@@ -4165,13 +4194,13 @@ var lodash = { exports: {} };
|
|
|
4165
4194
|
return leadingEdge(lastCallTime);
|
|
4166
4195
|
}
|
|
4167
4196
|
if (maxing) {
|
|
4168
|
-
|
|
4169
|
-
timerId =
|
|
4197
|
+
clearTimeout2(timerId);
|
|
4198
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4170
4199
|
return invokeFunc(lastCallTime);
|
|
4171
4200
|
}
|
|
4172
4201
|
}
|
|
4173
4202
|
if (timerId === undefined$1) {
|
|
4174
|
-
timerId =
|
|
4203
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4175
4204
|
}
|
|
4176
4205
|
return result2;
|
|
4177
4206
|
}
|
|
@@ -4274,7 +4303,7 @@ var lodash = { exports: {} };
|
|
|
4274
4303
|
if (typeof func != "function") {
|
|
4275
4304
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4276
4305
|
}
|
|
4277
|
-
if (
|
|
4306
|
+
if (isObject2(options)) {
|
|
4278
4307
|
leading = "leading" in options ? !!options.leading : leading;
|
|
4279
4308
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
4280
4309
|
}
|
|
@@ -4382,7 +4411,7 @@ var lodash = { exports: {} };
|
|
|
4382
4411
|
return typeof value == "number" && nativeIsFinite(value);
|
|
4383
4412
|
}
|
|
4384
4413
|
function isFunction(value) {
|
|
4385
|
-
if (!
|
|
4414
|
+
if (!isObject2(value)) {
|
|
4386
4415
|
return false;
|
|
4387
4416
|
}
|
|
4388
4417
|
var tag = baseGetTag(value);
|
|
@@ -4394,7 +4423,7 @@ var lodash = { exports: {} };
|
|
|
4394
4423
|
function isLength(value) {
|
|
4395
4424
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
4396
4425
|
}
|
|
4397
|
-
function
|
|
4426
|
+
function isObject2(value) {
|
|
4398
4427
|
var type = typeof value;
|
|
4399
4428
|
return value != null && (type == "object" || type == "function");
|
|
4400
4429
|
}
|
|
@@ -4501,9 +4530,9 @@ var lodash = { exports: {} };
|
|
|
4501
4530
|
if (isSymbol(value)) {
|
|
4502
4531
|
return NAN;
|
|
4503
4532
|
}
|
|
4504
|
-
if (
|
|
4533
|
+
if (isObject2(value)) {
|
|
4505
4534
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
4506
|
-
value =
|
|
4535
|
+
value = isObject2(other) ? other + "" : other;
|
|
4507
4536
|
}
|
|
4508
4537
|
if (typeof value != "string") {
|
|
4509
4538
|
return value === 0 ? value : +value;
|
|
@@ -4597,7 +4626,7 @@ var lodash = { exports: {} };
|
|
|
4597
4626
|
function functionsIn(object) {
|
|
4598
4627
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
4599
4628
|
}
|
|
4600
|
-
function
|
|
4629
|
+
function get2(object, path, defaultValue) {
|
|
4601
4630
|
var result2 = object == null ? undefined$1 : baseGet(object, path);
|
|
4602
4631
|
return result2 === undefined$1 ? defaultValue : result2;
|
|
4603
4632
|
}
|
|
@@ -4724,7 +4753,7 @@ var lodash = { exports: {} };
|
|
|
4724
4753
|
var Ctor = object && object.constructor;
|
|
4725
4754
|
if (isArrLike) {
|
|
4726
4755
|
accumulator = isArr ? new Ctor() : [];
|
|
4727
|
-
} else if (
|
|
4756
|
+
} else if (isObject2(object)) {
|
|
4728
4757
|
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
|
|
4729
4758
|
} else {
|
|
4730
4759
|
accumulator = {};
|
|
@@ -5006,7 +5035,7 @@ var lodash = { exports: {} };
|
|
|
5006
5035
|
}
|
|
5007
5036
|
function truncate(string, options) {
|
|
5008
5037
|
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
|
|
5009
|
-
if (
|
|
5038
|
+
if (isObject2(options)) {
|
|
5010
5039
|
var separator = "separator" in options ? options.separator : separator;
|
|
5011
5040
|
length = "length" in options ? toInteger(options.length) : length;
|
|
5012
5041
|
omission = "omission" in options ? baseToString(options.omission) : omission;
|
|
@@ -5136,13 +5165,13 @@ var lodash = { exports: {} };
|
|
|
5136
5165
|
});
|
|
5137
5166
|
function mixin(object, source, options) {
|
|
5138
5167
|
var props = keys(source), methodNames = baseFunctions(source, props);
|
|
5139
|
-
if (options == null && !(
|
|
5168
|
+
if (options == null && !(isObject2(source) && (methodNames.length || !props.length))) {
|
|
5140
5169
|
options = source;
|
|
5141
5170
|
source = object;
|
|
5142
5171
|
object = this;
|
|
5143
5172
|
methodNames = baseFunctions(source, keys(source));
|
|
5144
5173
|
}
|
|
5145
|
-
var chain2 = !(
|
|
5174
|
+
var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
|
|
5146
5175
|
arrayEach(methodNames, function(methodName) {
|
|
5147
5176
|
var func = source[methodName];
|
|
5148
5177
|
object[methodName] = func;
|
|
@@ -5452,7 +5481,7 @@ var lodash = { exports: {} };
|
|
|
5452
5481
|
lodash2.forInRight = forInRight;
|
|
5453
5482
|
lodash2.forOwn = forOwn;
|
|
5454
5483
|
lodash2.forOwnRight = forOwnRight;
|
|
5455
|
-
lodash2.get =
|
|
5484
|
+
lodash2.get = get2;
|
|
5456
5485
|
lodash2.gt = gt;
|
|
5457
5486
|
lodash2.gte = gte;
|
|
5458
5487
|
lodash2.has = has;
|
|
@@ -5488,7 +5517,7 @@ var lodash = { exports: {} };
|
|
|
5488
5517
|
lodash2.isNil = isNil;
|
|
5489
5518
|
lodash2.isNull = isNull;
|
|
5490
5519
|
lodash2.isNumber = isNumber;
|
|
5491
|
-
lodash2.isObject =
|
|
5520
|
+
lodash2.isObject = isObject2;
|
|
5492
5521
|
lodash2.isObjectLike = isObjectLike;
|
|
5493
5522
|
lodash2.isPlainObject = isPlainObject;
|
|
5494
5523
|
lodash2.isRegExp = isRegExp;
|
|
@@ -5757,7 +5786,7 @@ const TransformOriginMap = {
|
|
|
5757
5786
|
right: "-8px 50%"
|
|
5758
5787
|
};
|
|
5759
5788
|
function useTooltip(origin, props) {
|
|
5760
|
-
const { position, mouseEnterDelay, mouseLeaveDelay } = toRefs(props);
|
|
5789
|
+
const { position, mouseEnterDelay, mouseLeaveDelay, enterable, disabled, hideAfter } = toRefs(props);
|
|
5761
5790
|
const visible = ref(false);
|
|
5762
5791
|
const isEnter = ref(false);
|
|
5763
5792
|
const positionArr = computed(() => typeof position.value === "string" ? [position.value] : position.value);
|
|
@@ -5772,6 +5801,9 @@ function useTooltip(origin, props) {
|
|
|
5772
5801
|
!isEnter.value && (visible.value = false);
|
|
5773
5802
|
}, mouseLeaveDelay.value);
|
|
5774
5803
|
const onMouseenter = () => {
|
|
5804
|
+
if (disabled.value) {
|
|
5805
|
+
return;
|
|
5806
|
+
}
|
|
5775
5807
|
isEnter.value = true;
|
|
5776
5808
|
enter();
|
|
5777
5809
|
};
|
|
@@ -5782,11 +5814,29 @@ function useTooltip(origin, props) {
|
|
|
5782
5814
|
const onPositionChange = (pos) => {
|
|
5783
5815
|
placement.value = pos;
|
|
5784
5816
|
};
|
|
5817
|
+
const quickLeave = () => {
|
|
5818
|
+
isEnter.value = false;
|
|
5819
|
+
visible.value = false;
|
|
5820
|
+
};
|
|
5821
|
+
const onMouseenterOverlay = () => {
|
|
5822
|
+
if (!enterable.value) {
|
|
5823
|
+
quickLeave();
|
|
5824
|
+
} else {
|
|
5825
|
+
onMouseenter();
|
|
5826
|
+
}
|
|
5827
|
+
};
|
|
5785
5828
|
onMounted(() => {
|
|
5786
5829
|
origin.value.addEventListener("mouseenter", onMouseenter);
|
|
5787
5830
|
origin.value.addEventListener("mouseleave", onMouseleave);
|
|
5788
5831
|
});
|
|
5789
|
-
|
|
5832
|
+
let timer;
|
|
5833
|
+
watch(visible, (newVal) => {
|
|
5834
|
+
if (newVal && hideAfter.value) {
|
|
5835
|
+
timer && clearTimeout(timer);
|
|
5836
|
+
timer = setTimeout(quickLeave, hideAfter.value);
|
|
5837
|
+
}
|
|
5838
|
+
});
|
|
5839
|
+
return { visible, placement, positionArr, overlayStyles, onPositionChange, onMouseenter, onMouseleave, onMouseenterOverlay };
|
|
5790
5840
|
}
|
|
5791
5841
|
var tooltip = "";
|
|
5792
5842
|
var DToolTip = defineComponent({
|
|
@@ -5806,38 +5856,43 @@ var DToolTip = defineComponent({
|
|
|
5806
5856
|
placement,
|
|
5807
5857
|
positionArr,
|
|
5808
5858
|
overlayStyles,
|
|
5809
|
-
onPositionChange
|
|
5859
|
+
onPositionChange,
|
|
5860
|
+
onMouseleave,
|
|
5861
|
+
onMouseenterOverlay
|
|
5810
5862
|
} = useTooltip(origin, props);
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5863
|
+
const ns2 = useNamespace("tooltip");
|
|
5864
|
+
provide(POPPER_TRIGGER_TOKEN, origin);
|
|
5865
|
+
return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
|
|
5866
|
+
default: () => {
|
|
5867
|
+
var _a;
|
|
5868
|
+
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
|
|
5869
|
+
}
|
|
5870
|
+
}), createVNode(Teleport, {
|
|
5871
|
+
"to": "body"
|
|
5872
|
+
}, {
|
|
5873
|
+
default: () => [createVNode(Transition, {
|
|
5874
|
+
"name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
|
|
5818
5875
|
}, {
|
|
5819
|
-
default: () => [createVNode(
|
|
5820
|
-
"
|
|
5876
|
+
default: () => [createVNode(FlexibleOverlay, {
|
|
5877
|
+
"modelValue": visible.value,
|
|
5878
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
5879
|
+
"ref": tooltipRef,
|
|
5880
|
+
"class": ns2.b(),
|
|
5881
|
+
"origin": origin.value,
|
|
5882
|
+
"position": positionArr.value,
|
|
5883
|
+
"offset": 6,
|
|
5884
|
+
"show-arrow": true,
|
|
5885
|
+
"style": overlayStyles.value,
|
|
5886
|
+
"onPositionChange": onPositionChange,
|
|
5887
|
+
"onMouseenter": onMouseenterOverlay,
|
|
5888
|
+
"onMouseleave": onMouseleave
|
|
5821
5889
|
}, {
|
|
5822
|
-
default: () => [createVNode(
|
|
5823
|
-
"
|
|
5824
|
-
|
|
5825
|
-
"ref": tooltipRef,
|
|
5826
|
-
"class": "devui-tooltip",
|
|
5827
|
-
"origin": origin.value,
|
|
5828
|
-
"position": positionArr.value,
|
|
5829
|
-
"offset": 6,
|
|
5830
|
-
"show-arrow": true,
|
|
5831
|
-
"style": overlayStyles.value,
|
|
5832
|
-
"onPositionChange": onPositionChange
|
|
5833
|
-
}, {
|
|
5834
|
-
default: () => [createVNode("span", {
|
|
5835
|
-
"innerHTML": content.value
|
|
5836
|
-
}, null)]
|
|
5837
|
-
})]
|
|
5890
|
+
default: () => [createVNode("span", {
|
|
5891
|
+
"innerHTML": content.value
|
|
5892
|
+
}, null)]
|
|
5838
5893
|
})]
|
|
5839
|
-
})]
|
|
5840
|
-
};
|
|
5894
|
+
})]
|
|
5895
|
+
})]);
|
|
5841
5896
|
}
|
|
5842
5897
|
});
|
|
5843
5898
|
function setStyle(element, style) {
|
|
@@ -5950,6 +6005,174 @@ const splitterBarProps = {
|
|
|
5950
6005
|
}
|
|
5951
6006
|
};
|
|
5952
6007
|
var splitterBar = "";
|
|
6008
|
+
function deepAssign(...objects) {
|
|
6009
|
+
const isObject2 = (obj) => obj && typeof obj === "object";
|
|
6010
|
+
return objects.reduce((prev, from) => {
|
|
6011
|
+
Object.keys(from).forEach((key) => {
|
|
6012
|
+
const pVal = prev[key];
|
|
6013
|
+
const oVal = from[key];
|
|
6014
|
+
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
6015
|
+
prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
|
|
6016
|
+
} else if (isObject2(pVal) && isObject2(oVal)) {
|
|
6017
|
+
prev[key] = deepAssign(pVal, oVal);
|
|
6018
|
+
} else {
|
|
6019
|
+
prev[key] = oVal;
|
|
6020
|
+
}
|
|
6021
|
+
});
|
|
6022
|
+
return prev;
|
|
6023
|
+
}, {});
|
|
6024
|
+
}
|
|
6025
|
+
var zhCN = {
|
|
6026
|
+
pagination: {
|
|
6027
|
+
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
6028
|
+
goToText: "\u8DF3\u81F3"
|
|
6029
|
+
},
|
|
6030
|
+
accordion: {
|
|
6031
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
6032
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6033
|
+
},
|
|
6034
|
+
autoCompleteDropdown: {
|
|
6035
|
+
latestInput: "\u6700\u8FD1\u8F93\u5165"
|
|
6036
|
+
},
|
|
6037
|
+
cascaderList: {
|
|
6038
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6039
|
+
},
|
|
6040
|
+
colorPicker: {
|
|
6041
|
+
foundationPanel: "\u57FA\u7840\u9762\u677F",
|
|
6042
|
+
advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
|
|
6043
|
+
},
|
|
6044
|
+
datePickerPro: {
|
|
6045
|
+
ok: "\u786E\u5B9A",
|
|
6046
|
+
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
6047
|
+
month1: "1\u6708",
|
|
6048
|
+
month2: "2\u6708",
|
|
6049
|
+
month3: "3\u6708",
|
|
6050
|
+
month4: "4\u6708",
|
|
6051
|
+
month5: "5\u6708",
|
|
6052
|
+
month6: "6\u6708",
|
|
6053
|
+
month7: "7\u6708",
|
|
6054
|
+
month8: "8\u6708",
|
|
6055
|
+
month9: "9\u6708",
|
|
6056
|
+
month10: "10\u6708",
|
|
6057
|
+
month11: "11\u6708",
|
|
6058
|
+
month12: "12\u6708",
|
|
6059
|
+
year: "\u5E74",
|
|
6060
|
+
startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
6061
|
+
endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
6062
|
+
getWeekDays() {
|
|
6063
|
+
return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
6064
|
+
},
|
|
6065
|
+
getTimeArr() {
|
|
6066
|
+
return ["\u65F6", "\u5206", "\u79D2"];
|
|
6067
|
+
},
|
|
6068
|
+
getYearMonthStr(year, month) {
|
|
6069
|
+
return `${year}\u5E74${month}\u6708`;
|
|
6070
|
+
}
|
|
6071
|
+
},
|
|
6072
|
+
editableSelect: {
|
|
6073
|
+
noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
6074
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6075
|
+
},
|
|
6076
|
+
input: {
|
|
6077
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
6078
|
+
},
|
|
6079
|
+
splitterBar: {
|
|
6080
|
+
collapse: "\u6536\u8D77",
|
|
6081
|
+
expand: "\u5C55\u5F00"
|
|
6082
|
+
},
|
|
6083
|
+
stepsGuide: {
|
|
6084
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
6085
|
+
continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
|
|
6086
|
+
ok: "\u6211\u77E5\u9053\u5566"
|
|
6087
|
+
},
|
|
6088
|
+
table: {
|
|
6089
|
+
selectAll: "\u5168\u9009",
|
|
6090
|
+
ok: "\u786E\u5B9A"
|
|
6091
|
+
},
|
|
6092
|
+
timePopup: {
|
|
6093
|
+
ok: "\u786E\u5B9A"
|
|
6094
|
+
},
|
|
6095
|
+
transfer: {
|
|
6096
|
+
unit: "\u9879",
|
|
6097
|
+
panelUnit: "\u9879",
|
|
6098
|
+
headerUnit: "\u9879",
|
|
6099
|
+
noData: "\u6682\u65E0\u6570\u636E",
|
|
6100
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
|
|
6101
|
+
},
|
|
6102
|
+
tree: {
|
|
6103
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
6104
|
+
newNode: "\u65B0\u8282\u70B9",
|
|
6105
|
+
selectPlaceholder: "\u8BF7\u9009\u62E9"
|
|
6106
|
+
},
|
|
6107
|
+
upload: {
|
|
6108
|
+
placeholder: "\u9009\u62E9\u6587\u4EF6",
|
|
6109
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
6110
|
+
return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
6111
|
+
},
|
|
6112
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
6113
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
6114
|
+
},
|
|
6115
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
6116
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
6117
|
+
},
|
|
6118
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
6119
|
+
return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
6120
|
+
}
|
|
6121
|
+
},
|
|
6122
|
+
search: {
|
|
6123
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
|
|
6124
|
+
},
|
|
6125
|
+
select: {
|
|
6126
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
6127
|
+
noDataText: "\u65E0\u6570\u636E",
|
|
6128
|
+
noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
6129
|
+
loadingText: "\u52A0\u8F7D\u4E2D..."
|
|
6130
|
+
},
|
|
6131
|
+
tagInput: {
|
|
6132
|
+
maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
|
|
6133
|
+
},
|
|
6134
|
+
timeSelect: {
|
|
6135
|
+
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
6136
|
+
}
|
|
6137
|
+
};
|
|
6138
|
+
const lang = ref("zh-CN");
|
|
6139
|
+
let langMessages = reactive({
|
|
6140
|
+
[lang.value]: zhCN
|
|
6141
|
+
});
|
|
6142
|
+
const Locale = {
|
|
6143
|
+
messages() {
|
|
6144
|
+
return langMessages[lang.value];
|
|
6145
|
+
},
|
|
6146
|
+
lang() {
|
|
6147
|
+
return lang.value;
|
|
6148
|
+
},
|
|
6149
|
+
use(newLang, newMessages) {
|
|
6150
|
+
lang.value = newLang;
|
|
6151
|
+
this.add({ [newLang]: newMessages });
|
|
6152
|
+
},
|
|
6153
|
+
add(newMessages = {}) {
|
|
6154
|
+
langMessages = deepAssign(langMessages, newMessages);
|
|
6155
|
+
}
|
|
6156
|
+
};
|
|
6157
|
+
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
6158
|
+
function get(object, path) {
|
|
6159
|
+
const keys = path.split(".");
|
|
6160
|
+
let result = object;
|
|
6161
|
+
keys.forEach((key) => {
|
|
6162
|
+
var _a;
|
|
6163
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
6164
|
+
});
|
|
6165
|
+
return result;
|
|
6166
|
+
}
|
|
6167
|
+
function createI18nTranslate(name, app, newPrefix) {
|
|
6168
|
+
const prefix = newPrefix || camelize(name) + ".";
|
|
6169
|
+
return (path) => {
|
|
6170
|
+
var _a;
|
|
6171
|
+
const messages = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
|
|
6172
|
+
const message = get(messages, prefix + path) || get(messages, path);
|
|
6173
|
+
return message;
|
|
6174
|
+
};
|
|
6175
|
+
}
|
|
5953
6176
|
var DSplitterBar = defineComponent({
|
|
5954
6177
|
name: "DSplitterBar",
|
|
5955
6178
|
components: {
|
|
@@ -5957,9 +6180,12 @@ var DSplitterBar = defineComponent({
|
|
|
5957
6180
|
},
|
|
5958
6181
|
props: splitterBarProps,
|
|
5959
6182
|
setup(props) {
|
|
6183
|
+
const app = getCurrentInstance();
|
|
6184
|
+
const t = createI18nTranslate("DSplitterBar", app);
|
|
6185
|
+
const ns2 = useNamespace("splitter");
|
|
5960
6186
|
const store = inject("splitterStore");
|
|
5961
6187
|
const state = reactive({
|
|
5962
|
-
wrapperClass:
|
|
6188
|
+
wrapperClass: `${ns2.e("bar")} ${ns2.em("bar", props.orientation)} `
|
|
5963
6189
|
});
|
|
5964
6190
|
const domRef = ref();
|
|
5965
6191
|
watch([() => props.splitBarSize, domRef], ([curSplitBarSize, ele]) => {
|
|
@@ -6003,7 +6229,7 @@ var DSplitterBar = defineComponent({
|
|
|
6003
6229
|
const isCollapsed = (_d = (_c = pane == null ? void 0 : pane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed;
|
|
6004
6230
|
const isNearPaneCollapsed = nearPane == null ? void 0 : nearPane.collapsed;
|
|
6005
6231
|
return {
|
|
6006
|
-
"
|
|
6232
|
+
[ns2.e("collapse")]: isCollapsible,
|
|
6007
6233
|
collapsed: isCollapsed,
|
|
6008
6234
|
hidden: isNearPaneCollapsed
|
|
6009
6235
|
};
|
|
@@ -6136,14 +6362,14 @@ var DSplitterBar = defineComponent({
|
|
|
6136
6362
|
const renderCollapsedTip = () => {
|
|
6137
6363
|
var _a, _b, _c, _d;
|
|
6138
6364
|
if (!props || props.index === void 0) {
|
|
6139
|
-
return "
|
|
6365
|
+
return t("collapse");
|
|
6140
6366
|
}
|
|
6141
6367
|
const {
|
|
6142
6368
|
pane,
|
|
6143
6369
|
nearPane
|
|
6144
6370
|
} = queryPanes(props.index, props.index + 1);
|
|
6145
6371
|
const isCollapsed = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsed) || ((_d = (_c = nearPane == null ? void 0 : nearPane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed);
|
|
6146
|
-
return isCollapsed ? "
|
|
6372
|
+
return isCollapsed ? t("expand") : t("collapse");
|
|
6147
6373
|
};
|
|
6148
6374
|
return () => {
|
|
6149
6375
|
return withDirectives(createVNode("div", {
|
|
@@ -6158,9 +6384,7 @@ var DSplitterBar = defineComponent({
|
|
|
6158
6384
|
handleCollapsePrePane();
|
|
6159
6385
|
}
|
|
6160
6386
|
}, null)]
|
|
6161
|
-
}), createVNode(
|
|
6162
|
-
"class": "devui-resize-handle"
|
|
6163
|
-
}, null), props.showCollapseButton && createVNode(DToolTip, {
|
|
6387
|
+
}), props.showCollapseButton && createVNode(DToolTip, {
|
|
6164
6388
|
"content": renderCollapsedTip()
|
|
6165
6389
|
}, {
|
|
6166
6390
|
default: () => [createVNode("div", {
|
|
@@ -6313,6 +6537,7 @@ var Splitter = defineComponent({
|
|
|
6313
6537
|
const state = reactive({
|
|
6314
6538
|
panes: []
|
|
6315
6539
|
});
|
|
6540
|
+
const ns2 = useNamespace("splitter");
|
|
6316
6541
|
state.panes = ((_b = (_a = ctx.slots).DSplitterPane) == null ? void 0 : _b.call(_a)) || [];
|
|
6317
6542
|
store.setPanes({
|
|
6318
6543
|
panes: state.panes
|
|
@@ -6353,7 +6578,7 @@ var Splitter = defineComponent({
|
|
|
6353
6578
|
orientation,
|
|
6354
6579
|
showCollapseButton
|
|
6355
6580
|
} = props;
|
|
6356
|
-
const wrapperClass = [
|
|
6581
|
+
const wrapperClass = [ns2.b(), ns2.m(orientation)];
|
|
6357
6582
|
return createVNode("div", {
|
|
6358
6583
|
"class": wrapperClass,
|
|
6359
6584
|
"ref": domRef
|
|
@@ -6417,6 +6642,7 @@ var SplitterPane = defineComponent({
|
|
|
6417
6642
|
const store = inject("splitterStore");
|
|
6418
6643
|
const domRef = ref();
|
|
6419
6644
|
const orderRef = ref();
|
|
6645
|
+
const ns2 = useNamespace("splitter");
|
|
6420
6646
|
watch([orderRef, domRef], ([order, ele]) => {
|
|
6421
6647
|
if (!ele) {
|
|
6422
6648
|
return;
|
|
@@ -6430,7 +6656,7 @@ var SplitterPane = defineComponent({
|
|
|
6430
6656
|
return;
|
|
6431
6657
|
}
|
|
6432
6658
|
ele.style.flexBasis = curSize;
|
|
6433
|
-
const paneFixedClass = "
|
|
6659
|
+
const paneFixedClass = ns2.em("pane", "fixed");
|
|
6434
6660
|
if (curSize) {
|
|
6435
6661
|
addClass(ele, paneFixedClass);
|
|
6436
6662
|
} else {
|
|
@@ -6478,7 +6704,7 @@ var SplitterPane = defineComponent({
|
|
|
6478
6704
|
if (!ele) {
|
|
6479
6705
|
return;
|
|
6480
6706
|
}
|
|
6481
|
-
const paneHiddenClass = "
|
|
6707
|
+
const paneHiddenClass = ns2.em("pane", "hidden");
|
|
6482
6708
|
if (!collapsed) {
|
|
6483
6709
|
removeClass(ele, paneHiddenClass);
|
|
6484
6710
|
} else {
|
|
@@ -6502,7 +6728,7 @@ var SplitterPane = defineComponent({
|
|
|
6502
6728
|
if (!(ele instanceof HTMLElement)) {
|
|
6503
6729
|
return;
|
|
6504
6730
|
}
|
|
6505
|
-
const flexGrowClass = "
|
|
6731
|
+
const flexGrowClass = ns2.em("pane", "grow");
|
|
6506
6732
|
if (hasClass(ele, flexGrowClass)) {
|
|
6507
6733
|
removeClass(ele, flexGrowClass);
|
|
6508
6734
|
} else if (collapsed) {
|
|
@@ -6517,7 +6743,7 @@ var SplitterPane = defineComponent({
|
|
|
6517
6743
|
return () => {
|
|
6518
6744
|
var _a;
|
|
6519
6745
|
return createVNode("div", {
|
|
6520
|
-
"class": "
|
|
6746
|
+
"class": ns2.e("pane"),
|
|
6521
6747
|
"ref": domRef
|
|
6522
6748
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
6523
6749
|
};
|