vue-devui 1.0.0-rc.9 → 1.0.2
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 +189 -149
- package/alert/index.es.js +12 -7
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +8036 -260
- package/auto-complete/index.umd.js +29 -3
- package/auto-complete/style.css +1 -1
- package/badge/index.es.js +8 -2
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +110 -45
- package/button/index.umd.js +15 -15
- package/button/style.css +1 -1
- package/card/index.es.js +5 -1
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +7778 -81
- 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 +12022 -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 +22 -5
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +92 -123
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +374 -149
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +102 -123
- package/form/index.umd.js +14 -14
- package/form/style.css +1 -1
- package/icon/index.es.js +107 -41
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +8097 -170
- package/input/index.umd.js +27 -1
- package/input/style.css +1 -1
- package/input-number/index.es.js +34 -32
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/layout/index.es.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +51 -51
- 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 +8326 -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 +921 -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 +539 -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 +390 -185
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +148 -79
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- 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/IconGroup.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/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/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/mentionProps.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/paginationInjectionKey.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/tableProps.js +3 -0
- package/nuxt/components/timerPickerPanelProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/overlay/index.es.js +87 -140
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +7 -4
- package/pagination/index.es.js +10180 -129
- package/pagination/index.umd.js +27 -1
- package/pagination/style.css +1 -1
- package/panel/index.es.js +4 -0
- package/panel/index.umd.js +1 -1
- package/panel/style.css +1 -1
- package/popover/index.es.js +111 -164
- package/popover/index.umd.js +16 -16
- package/popover/style.css +1 -1
- package/progress/style.css +1 -1
- package/radio/index.es.js +7860 -58
- package/radio/index.umd.js +27 -1
- package/radio/style.css +1 -1
- package/rate/style.css +1 -1
- package/result/index.es.js +93 -41
- package/result/index.umd.js +1 -1
- package/result/style.css +1 -1
- package/search/index.es.js +3737 -1206
- package/search/index.umd.js +18 -18
- package/search/style.css +1 -1
- package/select/index.es.js +4446 -2499
- package/select/index.umd.js +17 -17
- package/select/style.css +1 -1
- package/skeleton/index.es.js +87 -261
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.es.js +116 -143
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +284 -152
- package/splitter/index.umd.js +16 -16
- 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 +4 -0
- 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 +387 -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 +7785 -60
- package/switch/index.umd.js +27 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +4224 -1502
- package/table/index.umd.js +17 -17
- package/table/style.css +1 -1
- package/tabs/index.es.js +281 -83
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +5 -1
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +3362 -1061
- package/textarea/index.umd.js +19 -19
- 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 +9610 -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 +93 -41
- package/timeline/index.umd.js +1 -1
- package/timeline/style.css +1 -1
- package/tooltip/index.es.js +127 -168
- package/tooltip/index.umd.js +16 -16
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +11045 -607
- package/tree/index.umd.js +27 -1
- package/tree/style.css +1 -1
- package/upload/index.es.js +394 -111
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +19687 -11762
- package/vue-devui.umd.js +24 -23
- package/date-picker/index.es.js +0 -1298
- 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/Loading.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,28 +1,66 @@
|
|
|
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 {
|
|
7
|
+
import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, unref, nextTick, withModifiers, 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";
|
|
9
|
+
const fixedOverlayProps = {
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
},
|
|
14
|
+
lockScroll: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
closeOnClickOverlay: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true
|
|
21
|
+
}
|
|
22
|
+
};
|
|
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
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
function useFixedOverlay(props, ctx) {
|
|
43
|
+
let lockScrollCb;
|
|
44
|
+
const onClick = (event) => {
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
ctx.emit("click", event);
|
|
47
|
+
if (props.closeOnClickOverlay) {
|
|
48
|
+
ctx.emit("update:modelValue", false);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
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
|
+
}
|
|
60
|
+
});
|
|
61
|
+
onUnmounted(removeBodyAdditions);
|
|
62
|
+
return { onClick };
|
|
63
|
+
}
|
|
26
64
|
function createBem(namespace, element, modifier) {
|
|
27
65
|
let cls = namespace;
|
|
28
66
|
if (element) {
|
|
@@ -46,130 +84,31 @@ function useNamespace(block, needDot = false) {
|
|
|
46
84
|
em
|
|
47
85
|
};
|
|
48
86
|
}
|
|
49
|
-
var baseOverlay = "";
|
|
50
|
-
function _isSlot(s) {
|
|
51
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
52
|
-
}
|
|
53
|
-
const CommonOverlay = defineComponent({
|
|
54
|
-
setup(props, ctx) {
|
|
55
|
-
const ns2 = useNamespace("overlay");
|
|
56
|
-
return () => {
|
|
57
|
-
let _slot;
|
|
58
|
-
return createVNode(Teleport, {
|
|
59
|
-
"to": "#d-overlay-anchor"
|
|
60
|
-
}, {
|
|
61
|
-
default: () => [createVNode(Transition, {
|
|
62
|
-
"name": ns2.e("fade")
|
|
63
|
-
}, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : {
|
|
64
|
-
default: () => [_slot]
|
|
65
|
-
})]
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
const overlayProps = {
|
|
71
|
-
visible: {
|
|
72
|
-
type: Boolean
|
|
73
|
-
},
|
|
74
|
-
backgroundBlock: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false
|
|
77
|
-
},
|
|
78
|
-
backgroundClass: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: ""
|
|
81
|
-
},
|
|
82
|
-
backgroundStyle: {
|
|
83
|
-
type: [String, Object]
|
|
84
|
-
},
|
|
85
|
-
onBackdropClick: {
|
|
86
|
-
type: Function
|
|
87
|
-
},
|
|
88
|
-
backdropClose: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true
|
|
91
|
-
},
|
|
92
|
-
hasBackdrop: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: true
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
const fixedOverlayProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
98
|
-
overlayStyle: {
|
|
99
|
-
type: [String, Object],
|
|
100
|
-
default: void 0
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
const overlayEmits = ["update:visible", "backdropClick"];
|
|
104
|
-
function useOverlayLogic(props, ctx) {
|
|
105
|
-
const ns2 = useNamespace("overlay");
|
|
106
|
-
const backgroundClass = computed(() => {
|
|
107
|
-
return [ns2.e("background"), props.backgroundClass, !props.hasBackdrop ? ns2.em("background", "disabled") : ns2.em("background", "color")];
|
|
108
|
-
});
|
|
109
|
-
const overlayClass = computed(() => {
|
|
110
|
-
return ns2.b();
|
|
111
|
-
});
|
|
112
|
-
const handleBackdropClick = (event) => {
|
|
113
|
-
var _a;
|
|
114
|
-
event.preventDefault();
|
|
115
|
-
(_a = props.onBackdropClick) == null ? void 0 : _a.call(props);
|
|
116
|
-
if (props.backdropClose) {
|
|
117
|
-
ctx.emit("update:visible", false);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const handleOverlayBubbleCancel = (event) => event.cancelBubble = true;
|
|
121
|
-
onMounted(() => {
|
|
122
|
-
const body = document.body;
|
|
123
|
-
const originOverflow = body.style.overflow;
|
|
124
|
-
const originPosition = body.style.position;
|
|
125
|
-
watch([() => props.visible, () => props.backgroundBlock], ([visible, backgroundBlock]) => {
|
|
126
|
-
if (backgroundBlock) {
|
|
127
|
-
const top = body.getBoundingClientRect().y;
|
|
128
|
-
if (visible) {
|
|
129
|
-
body.style.overflowY = "scroll";
|
|
130
|
-
body.style.position = visible ? "fixed" : "";
|
|
131
|
-
body.style.top = `${top}px`;
|
|
132
|
-
} else {
|
|
133
|
-
body.style.overflowY = originOverflow;
|
|
134
|
-
body.style.position = originPosition;
|
|
135
|
-
body.style.top = "";
|
|
136
|
-
window.scrollTo(0, -top);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
onUnmounted(() => {
|
|
141
|
-
document.body.style.overflow = originOverflow;
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
return {
|
|
145
|
-
backgroundClass,
|
|
146
|
-
overlayClass,
|
|
147
|
-
handleBackdropClick,
|
|
148
|
-
handleOverlayBubbleCancel
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
87
|
var fixedOverlay = "";
|
|
152
88
|
defineComponent({
|
|
153
89
|
name: "DFixedOverlay",
|
|
90
|
+
inheritAttrs: false,
|
|
154
91
|
props: fixedOverlayProps,
|
|
155
|
-
emits:
|
|
92
|
+
emits: ["update:modelValue", "click"],
|
|
156
93
|
setup(props, ctx) {
|
|
157
94
|
const {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
+
}
|
|
173
112
|
});
|
|
174
113
|
}
|
|
175
114
|
});
|
|
@@ -204,6 +143,10 @@ const flexibleOverlayProps = {
|
|
|
204
143
|
isArrowCenter: {
|
|
205
144
|
type: Boolean,
|
|
206
145
|
default: true
|
|
146
|
+
},
|
|
147
|
+
clickEventBubble: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false
|
|
207
150
|
}
|
|
208
151
|
};
|
|
209
152
|
function getScrollParent(element) {
|
|
@@ -318,6 +261,9 @@ const FlexibleOverlay = defineComponent({
|
|
|
318
261
|
expose
|
|
319
262
|
}) {
|
|
320
263
|
const ns2 = useNamespace("flexible-overlay");
|
|
264
|
+
const {
|
|
265
|
+
clickEventBubble
|
|
266
|
+
} = toRefs(props);
|
|
321
267
|
const {
|
|
322
268
|
arrowRef,
|
|
323
269
|
overlayRef,
|
|
@@ -331,7 +277,10 @@ const FlexibleOverlay = defineComponent({
|
|
|
331
277
|
return props.modelValue && createVNode("div", mergeProps({
|
|
332
278
|
"ref": overlayRef,
|
|
333
279
|
"class": ns2.b()
|
|
334
|
-
}, attrs
|
|
280
|
+
}, attrs, {
|
|
281
|
+
"onClick": withModifiers(() => ({}), [clickEventBubble.value ? "" : "stop"]),
|
|
282
|
+
"onPointerup": withModifiers(() => ({}), ["stop"])
|
|
283
|
+
}), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
|
|
335
284
|
"ref": arrowRef,
|
|
336
285
|
"class": ns2.e("arrow")
|
|
337
286
|
}, null)]);
|
|
@@ -1150,10 +1099,10 @@ var lodash = { exports: {} };
|
|
|
1150
1099
|
}();
|
|
1151
1100
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1152
1101
|
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;
|
|
1153
|
-
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
1102
|
+
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");
|
|
1154
1103
|
var metaMap = WeakMap2 && new WeakMap2();
|
|
1155
1104
|
var realNames = {};
|
|
1156
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
1105
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
|
|
1157
1106
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1158
1107
|
function lodash2(value) {
|
|
1159
1108
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1509,7 +1458,7 @@ var lodash = { exports: {} };
|
|
|
1509
1458
|
function baseAt(object, paths) {
|
|
1510
1459
|
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1511
1460
|
while (++index2 < length) {
|
|
1512
|
-
result2[index2] = skip ? undefined$1 :
|
|
1461
|
+
result2[index2] = skip ? undefined$1 : get2(object, paths[index2]);
|
|
1513
1462
|
}
|
|
1514
1463
|
return result2;
|
|
1515
1464
|
}
|
|
@@ -1954,7 +1903,7 @@ var lodash = { exports: {} };
|
|
|
1954
1903
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
1955
1904
|
}
|
|
1956
1905
|
return function(object) {
|
|
1957
|
-
var objValue =
|
|
1906
|
+
var objValue = get2(object, path);
|
|
1958
1907
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1959
1908
|
};
|
|
1960
1909
|
}
|
|
@@ -2845,8 +2794,8 @@ var lodash = { exports: {} };
|
|
|
2845
2794
|
return func(number);
|
|
2846
2795
|
};
|
|
2847
2796
|
}
|
|
2848
|
-
var createSet = !(
|
|
2849
|
-
return new
|
|
2797
|
+
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
2798
|
+
return new Set2(values2);
|
|
2850
2799
|
};
|
|
2851
2800
|
function createToPairs(keysFunc) {
|
|
2852
2801
|
return function(object) {
|
|
@@ -3145,7 +3094,7 @@ var lodash = { exports: {} };
|
|
|
3145
3094
|
return result2;
|
|
3146
3095
|
};
|
|
3147
3096
|
var getTag = baseGetTag;
|
|
3148
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
3097
|
+
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) {
|
|
3149
3098
|
getTag = function(value) {
|
|
3150
3099
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3151
3100
|
if (ctorString) {
|
|
@@ -4687,7 +4636,7 @@ var lodash = { exports: {} };
|
|
|
4687
4636
|
function functionsIn(object) {
|
|
4688
4637
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
4689
4638
|
}
|
|
4690
|
-
function
|
|
4639
|
+
function get2(object, path, defaultValue) {
|
|
4691
4640
|
var result2 = object == null ? undefined$1 : baseGet(object, path);
|
|
4692
4641
|
return result2 === undefined$1 ? defaultValue : result2;
|
|
4693
4642
|
}
|
|
@@ -5542,7 +5491,7 @@ var lodash = { exports: {} };
|
|
|
5542
5491
|
lodash2.forInRight = forInRight;
|
|
5543
5492
|
lodash2.forOwn = forOwn;
|
|
5544
5493
|
lodash2.forOwnRight = forOwnRight;
|
|
5545
|
-
lodash2.get =
|
|
5494
|
+
lodash2.get = get2;
|
|
5546
5495
|
lodash2.gt = gt;
|
|
5547
5496
|
lodash2.gte = gte;
|
|
5548
5497
|
lodash2.has = has;
|
|
@@ -5840,7 +5789,7 @@ var lodash = { exports: {} };
|
|
|
5840
5789
|
}
|
|
5841
5790
|
}).call(commonjsGlobal);
|
|
5842
5791
|
})(lodash, lodash.exports);
|
|
5843
|
-
const
|
|
5792
|
+
const transformOriginMap = {
|
|
5844
5793
|
top: "50% calc(100% + 8px)",
|
|
5845
5794
|
bottom: "50% -8px",
|
|
5846
5795
|
left: "calc(100% + 8px)",
|
|
@@ -5853,7 +5802,7 @@ function useTooltip(origin, props) {
|
|
|
5853
5802
|
const positionArr = computed(() => typeof position.value === "string" ? [position.value] : position.value);
|
|
5854
5803
|
const placement = ref(positionArr.value[0]);
|
|
5855
5804
|
const overlayStyles = computed(() => ({
|
|
5856
|
-
transformOrigin:
|
|
5805
|
+
transformOrigin: transformOriginMap[placement.value]
|
|
5857
5806
|
}));
|
|
5858
5807
|
const enter = lodash.exports.debounce(() => {
|
|
5859
5808
|
isEnter.value && (visible.value = true);
|
|
@@ -5897,7 +5846,16 @@ function useTooltip(origin, props) {
|
|
|
5897
5846
|
timer = setTimeout(quickLeave, hideAfter.value);
|
|
5898
5847
|
}
|
|
5899
5848
|
});
|
|
5900
|
-
return {
|
|
5849
|
+
return {
|
|
5850
|
+
visible,
|
|
5851
|
+
placement,
|
|
5852
|
+
positionArr,
|
|
5853
|
+
overlayStyles,
|
|
5854
|
+
onPositionChange,
|
|
5855
|
+
onMouseenter,
|
|
5856
|
+
onMouseleave,
|
|
5857
|
+
onMouseenterOverlay
|
|
5858
|
+
};
|
|
5901
5859
|
}
|
|
5902
5860
|
var tooltip = "";
|
|
5903
5861
|
var DToolTip = defineComponent({
|
|
@@ -5922,6 +5880,9 @@ var DToolTip = defineComponent({
|
|
|
5922
5880
|
onMouseenterOverlay
|
|
5923
5881
|
} = useTooltip(origin, props);
|
|
5924
5882
|
const ns2 = useNamespace("tooltip");
|
|
5883
|
+
const className = computed(() => {
|
|
5884
|
+
return [ns2.b(), ns2.m(placement.value)].join(" ");
|
|
5885
|
+
});
|
|
5925
5886
|
provide(POPPER_TRIGGER_TOKEN, origin);
|
|
5926
5887
|
return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
|
|
5927
5888
|
default: () => {
|
|
@@ -5938,7 +5899,7 @@ var DToolTip = defineComponent({
|
|
|
5938
5899
|
"modelValue": visible.value,
|
|
5939
5900
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
5940
5901
|
"ref": tooltipRef,
|
|
5941
|
-
"class":
|
|
5902
|
+
"class": className.value,
|
|
5942
5903
|
"origin": origin.value,
|
|
5943
5904
|
"position": positionArr.value,
|
|
5944
5905
|
"offset": 6,
|
|
@@ -6066,6 +6027,175 @@ const splitterBarProps = {
|
|
|
6066
6027
|
}
|
|
6067
6028
|
};
|
|
6068
6029
|
var splitterBar = "";
|
|
6030
|
+
function deepAssign(...objects) {
|
|
6031
|
+
const isObject2 = (obj) => obj && typeof obj === "object";
|
|
6032
|
+
return objects.reduce((prev, from) => {
|
|
6033
|
+
Object.keys(from).forEach((key) => {
|
|
6034
|
+
const pVal = prev[key];
|
|
6035
|
+
const oVal = from[key];
|
|
6036
|
+
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
6037
|
+
prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
|
|
6038
|
+
} else if (isObject2(pVal) && isObject2(oVal)) {
|
|
6039
|
+
prev[key] = deepAssign(pVal, oVal);
|
|
6040
|
+
} else {
|
|
6041
|
+
prev[key] = oVal;
|
|
6042
|
+
}
|
|
6043
|
+
});
|
|
6044
|
+
return prev;
|
|
6045
|
+
}, {});
|
|
6046
|
+
}
|
|
6047
|
+
var zhCN = {
|
|
6048
|
+
pagination: {
|
|
6049
|
+
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
6050
|
+
goToText: "\u8DF3\u81F3",
|
|
6051
|
+
perPage: "\u6761/\u9875"
|
|
6052
|
+
},
|
|
6053
|
+
accordion: {
|
|
6054
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
6055
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6056
|
+
},
|
|
6057
|
+
autoCompleteDropdown: {
|
|
6058
|
+
latestInput: "\u6700\u8FD1\u8F93\u5165"
|
|
6059
|
+
},
|
|
6060
|
+
cascaderList: {
|
|
6061
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6062
|
+
},
|
|
6063
|
+
colorPicker: {
|
|
6064
|
+
foundationPanel: "\u57FA\u7840\u9762\u677F",
|
|
6065
|
+
advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
|
|
6066
|
+
},
|
|
6067
|
+
datePickerPro: {
|
|
6068
|
+
ok: "\u786E\u5B9A",
|
|
6069
|
+
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
6070
|
+
month1: "1\u6708",
|
|
6071
|
+
month2: "2\u6708",
|
|
6072
|
+
month3: "3\u6708",
|
|
6073
|
+
month4: "4\u6708",
|
|
6074
|
+
month5: "5\u6708",
|
|
6075
|
+
month6: "6\u6708",
|
|
6076
|
+
month7: "7\u6708",
|
|
6077
|
+
month8: "8\u6708",
|
|
6078
|
+
month9: "9\u6708",
|
|
6079
|
+
month10: "10\u6708",
|
|
6080
|
+
month11: "11\u6708",
|
|
6081
|
+
month12: "12\u6708",
|
|
6082
|
+
year: "\u5E74",
|
|
6083
|
+
startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
6084
|
+
endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
6085
|
+
getWeekDays() {
|
|
6086
|
+
return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
6087
|
+
},
|
|
6088
|
+
getTimeArr() {
|
|
6089
|
+
return ["\u65F6", "\u5206", "\u79D2"];
|
|
6090
|
+
},
|
|
6091
|
+
getYearMonthStr(year, month) {
|
|
6092
|
+
return `${year}\u5E74${month}\u6708`;
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
editableSelect: {
|
|
6096
|
+
noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
6097
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
6098
|
+
},
|
|
6099
|
+
input: {
|
|
6100
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
6101
|
+
},
|
|
6102
|
+
splitterBar: {
|
|
6103
|
+
collapse: "\u6536\u8D77",
|
|
6104
|
+
expand: "\u5C55\u5F00"
|
|
6105
|
+
},
|
|
6106
|
+
stepsGuide: {
|
|
6107
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
6108
|
+
continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
|
|
6109
|
+
ok: "\u6211\u77E5\u9053\u5566"
|
|
6110
|
+
},
|
|
6111
|
+
table: {
|
|
6112
|
+
selectAll: "\u5168\u9009",
|
|
6113
|
+
ok: "\u786E\u5B9A"
|
|
6114
|
+
},
|
|
6115
|
+
timePopup: {
|
|
6116
|
+
ok: "\u786E\u5B9A"
|
|
6117
|
+
},
|
|
6118
|
+
transfer: {
|
|
6119
|
+
unit: "\u9879",
|
|
6120
|
+
panelUnit: "\u9879",
|
|
6121
|
+
headerUnit: "\u9879",
|
|
6122
|
+
noData: "\u6682\u65E0\u6570\u636E",
|
|
6123
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
|
|
6124
|
+
},
|
|
6125
|
+
tree: {
|
|
6126
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
6127
|
+
newNode: "\u65B0\u8282\u70B9",
|
|
6128
|
+
selectPlaceholder: "\u8BF7\u9009\u62E9"
|
|
6129
|
+
},
|
|
6130
|
+
upload: {
|
|
6131
|
+
placeholder: "\u9009\u62E9\u6587\u4EF6",
|
|
6132
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
6133
|
+
return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
6134
|
+
},
|
|
6135
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
6136
|
+
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`;
|
|
6137
|
+
},
|
|
6138
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
6139
|
+
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`;
|
|
6140
|
+
},
|
|
6141
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
6142
|
+
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`;
|
|
6143
|
+
}
|
|
6144
|
+
},
|
|
6145
|
+
search: {
|
|
6146
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
|
|
6147
|
+
},
|
|
6148
|
+
select: {
|
|
6149
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
6150
|
+
noDataText: "\u65E0\u6570\u636E",
|
|
6151
|
+
noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
6152
|
+
loadingText: "\u52A0\u8F7D\u4E2D..."
|
|
6153
|
+
},
|
|
6154
|
+
tagInput: {
|
|
6155
|
+
maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
|
|
6156
|
+
},
|
|
6157
|
+
timeSelect: {
|
|
6158
|
+
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
6159
|
+
}
|
|
6160
|
+
};
|
|
6161
|
+
const lang = ref("zh-CN");
|
|
6162
|
+
let langMessages = reactive({
|
|
6163
|
+
[lang.value]: zhCN
|
|
6164
|
+
});
|
|
6165
|
+
const Locale = {
|
|
6166
|
+
messages() {
|
|
6167
|
+
return langMessages[lang.value];
|
|
6168
|
+
},
|
|
6169
|
+
lang() {
|
|
6170
|
+
return lang.value;
|
|
6171
|
+
},
|
|
6172
|
+
use(newLang, newMessages) {
|
|
6173
|
+
lang.value = newLang;
|
|
6174
|
+
this.add({ [newLang]: newMessages });
|
|
6175
|
+
},
|
|
6176
|
+
add(newMessages = {}) {
|
|
6177
|
+
langMessages = deepAssign(langMessages, newMessages);
|
|
6178
|
+
}
|
|
6179
|
+
};
|
|
6180
|
+
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
6181
|
+
function get(object, path) {
|
|
6182
|
+
const keys = path.split(".");
|
|
6183
|
+
let result = object;
|
|
6184
|
+
keys.forEach((key) => {
|
|
6185
|
+
var _a;
|
|
6186
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
6187
|
+
});
|
|
6188
|
+
return result;
|
|
6189
|
+
}
|
|
6190
|
+
function createI18nTranslate(name, app, newPrefix) {
|
|
6191
|
+
const prefix = newPrefix || camelize(name) + ".";
|
|
6192
|
+
return (path) => {
|
|
6193
|
+
var _a;
|
|
6194
|
+
const messages = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
|
|
6195
|
+
const message = get(messages, prefix + path) || get(messages, path);
|
|
6196
|
+
return message;
|
|
6197
|
+
};
|
|
6198
|
+
}
|
|
6069
6199
|
var DSplitterBar = defineComponent({
|
|
6070
6200
|
name: "DSplitterBar",
|
|
6071
6201
|
components: {
|
|
@@ -6073,6 +6203,8 @@ var DSplitterBar = defineComponent({
|
|
|
6073
6203
|
},
|
|
6074
6204
|
props: splitterBarProps,
|
|
6075
6205
|
setup(props) {
|
|
6206
|
+
const app = getCurrentInstance();
|
|
6207
|
+
const t = createI18nTranslate("DSplitterBar", app);
|
|
6076
6208
|
const ns2 = useNamespace("splitter");
|
|
6077
6209
|
const store = inject("splitterStore");
|
|
6078
6210
|
const state = reactive({
|
|
@@ -6253,14 +6385,14 @@ var DSplitterBar = defineComponent({
|
|
|
6253
6385
|
const renderCollapsedTip = () => {
|
|
6254
6386
|
var _a, _b, _c, _d;
|
|
6255
6387
|
if (!props || props.index === void 0) {
|
|
6256
|
-
return "
|
|
6388
|
+
return t("collapse");
|
|
6257
6389
|
}
|
|
6258
6390
|
const {
|
|
6259
6391
|
pane,
|
|
6260
6392
|
nearPane
|
|
6261
6393
|
} = queryPanes(props.index, props.index + 1);
|
|
6262
6394
|
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);
|
|
6263
|
-
return isCollapsed ? "
|
|
6395
|
+
return isCollapsed ? t("expand") : t("collapse");
|
|
6264
6396
|
};
|
|
6265
6397
|
return () => {
|
|
6266
6398
|
return withDirectives(createVNode("div", {
|