vue-devui 1.0.0-rc.9 → 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.
Files changed (200) hide show
  1. package/README.md +163 -149
  2. package/alert/index.es.js +12 -7
  3. package/alert/index.umd.js +1 -1
  4. package/alert/style.css +1 -1
  5. package/auto-complete/index.es.js +8019 -254
  6. package/auto-complete/index.umd.js +29 -3
  7. package/auto-complete/style.css +1 -1
  8. package/badge/index.es.js +8 -2
  9. package/badge/index.umd.js +1 -1
  10. package/badge/style.css +1 -1
  11. package/button/index.es.js +104 -40
  12. package/button/index.umd.js +15 -15
  13. package/button/style.css +1 -1
  14. package/card/index.es.js +5 -1
  15. package/card/index.umd.js +1 -1
  16. package/card/style.css +1 -1
  17. package/checkbox/index.es.js +7772 -81
  18. package/checkbox/index.umd.js +27 -1
  19. package/checkbox/style.css +1 -1
  20. package/{date-picker → collapse}/index.d.ts +0 -0
  21. package/collapse/index.es.js +213 -0
  22. package/collapse/index.umd.js +1 -0
  23. package/{date-picker → collapse}/package.json +1 -1
  24. package/collapse/style.css +1 -0
  25. package/countdown/index.es.js +56 -13
  26. package/countdown/index.umd.js +1 -1
  27. package/date-picker-pro/index.d.ts +7 -0
  28. package/date-picker-pro/index.es.js +12020 -0
  29. package/date-picker-pro/index.umd.js +27 -0
  30. package/date-picker-pro/package.json +7 -0
  31. package/date-picker-pro/style.css +1 -0
  32. package/drawer/index.es.js +1 -1
  33. package/drawer/index.umd.js +1 -1
  34. package/drawer/style.css +1 -1
  35. package/dropdown/index.es.js +77 -121
  36. package/dropdown/index.umd.js +1 -1
  37. package/dropdown/style.css +1 -1
  38. package/editable-select/index.es.js +324 -104
  39. package/editable-select/index.umd.js +1 -1
  40. package/editable-select/style.css +1 -1
  41. package/form/index.es.js +91 -118
  42. package/form/index.umd.js +14 -14
  43. package/form/style.css +1 -1
  44. package/icon/index.es.js +106 -41
  45. package/icon/index.umd.js +1 -1
  46. package/icon/style.css +1 -1
  47. package/image-preview/style.css +1 -1
  48. package/input/index.es.js +8088 -169
  49. package/input/index.umd.js +27 -1
  50. package/input/style.css +1 -1
  51. package/input-number/index.es.js +8 -9
  52. package/input-number/index.umd.js +1 -1
  53. package/input-number/style.css +1 -1
  54. package/layout/index.es.js +1 -1
  55. package/layout/index.umd.js +1 -1
  56. package/loading/style.css +1 -1
  57. package/mention/index.d.ts +7 -0
  58. package/mention/index.es.js +8310 -0
  59. package/mention/index.umd.js +36 -0
  60. package/mention/package.json +7 -0
  61. package/mention/style.css +1 -0
  62. package/menu/index.d.ts +7 -0
  63. package/menu/index.es.js +934 -0
  64. package/menu/index.umd.js +1 -0
  65. package/menu/package.json +7 -0
  66. package/menu/style.css +1 -0
  67. package/message/index.d.ts +7 -0
  68. package/message/index.es.js +538 -0
  69. package/message/index.umd.js +1 -0
  70. package/message/package.json +7 -0
  71. package/message/style.css +1 -0
  72. package/modal/index.es.js +275 -185
  73. package/modal/index.umd.js +1 -1
  74. package/modal/style.css +1 -1
  75. package/notification/index.es.js +143 -72
  76. package/notification/index.umd.js +1 -1
  77. package/notification/style.css +1 -1
  78. package/nuxt/components/Collapse.js +3 -0
  79. package/nuxt/components/CollapseItem.js +3 -0
  80. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  81. package/nuxt/components/DatePickerPro.js +3 -0
  82. package/nuxt/components/IconGroup.js +3 -0
  83. package/nuxt/components/Mention.js +3 -0
  84. package/nuxt/components/Menu.js +3 -0
  85. package/nuxt/components/MenuItem.js +3 -0
  86. package/nuxt/components/Message.js +3 -0
  87. package/nuxt/components/OptionGroup.js +3 -0
  88. package/nuxt/components/RadioButton.js +3 -0
  89. package/nuxt/components/Step.js +3 -0
  90. package/nuxt/components/Steps.js +3 -0
  91. package/nuxt/components/SubMenu.js +3 -0
  92. package/nuxt/components/TABLE_TOKEN.js +3 -0
  93. package/nuxt/components/TimePicker.js +3 -0
  94. package/nuxt/components/TimeSelect.js +3 -0
  95. package/nuxt/components/animationInjectionKey.js +3 -0
  96. package/nuxt/components/collapseItemProps.js +3 -0
  97. package/nuxt/components/collapseProps.js +3 -0
  98. package/nuxt/components/datePickerProCommonProps.js +3 -0
  99. package/nuxt/components/datePickerProPanelProps.js +3 -0
  100. package/nuxt/components/datePickerProProps.js +3 -0
  101. package/nuxt/components/mentionProps.js +3 -0
  102. package/nuxt/components/messageProps.js +3 -0
  103. package/nuxt/components/roundInjectionKey.js +3 -0
  104. package/nuxt/components/skeletonItemProps.js +3 -0
  105. package/nuxt/components/stepProps.js +3 -0
  106. package/nuxt/components/stepsProps.js +3 -0
  107. package/nuxt/components/tableProps.js +3 -0
  108. package/nuxt/components/timerPickerPanelProps.js +3 -0
  109. package/nuxt/components/treeNodeProps.js +3 -0
  110. package/overlay/index.es.js +76 -139
  111. package/overlay/index.umd.js +1 -1
  112. package/overlay/style.css +1 -1
  113. package/package.json +6 -3
  114. package/pagination/index.es.js +175 -7
  115. package/pagination/index.umd.js +1 -1
  116. package/pagination/style.css +1 -1
  117. package/panel/style.css +1 -1
  118. package/popover/index.es.js +101 -162
  119. package/popover/index.umd.js +17 -17
  120. package/popover/style.css +1 -1
  121. package/progress/style.css +1 -1
  122. package/radio/index.es.js +7854 -58
  123. package/radio/index.umd.js +27 -1
  124. package/radio/style.css +1 -1
  125. package/rate/style.css +1 -1
  126. package/result/index.es.js +92 -41
  127. package/result/index.umd.js +1 -1
  128. package/result/style.css +1 -1
  129. package/search/index.es.js +3729 -1206
  130. package/search/index.umd.js +18 -18
  131. package/search/style.css +1 -1
  132. package/select/index.es.js +4426 -2501
  133. package/select/index.umd.js +17 -17
  134. package/select/style.css +1 -1
  135. package/skeleton/index.es.js +87 -261
  136. package/skeleton/index.umd.js +1 -1
  137. package/skeleton/style.css +1 -1
  138. package/slider/index.es.js +116 -143
  139. package/slider/index.umd.js +1 -1
  140. package/slider/style.css +1 -1
  141. package/splitter/index.es.js +256 -147
  142. package/splitter/index.umd.js +16 -16
  143. package/splitter/style.css +1 -1
  144. package/statistic/index.es.js +34 -16
  145. package/statistic/index.umd.js +1 -1
  146. package/statistic/style.css +1 -1
  147. package/status/style.css +1 -1
  148. package/steps/index.d.ts +7 -0
  149. package/steps/index.es.js +386 -0
  150. package/steps/index.umd.js +1 -0
  151. package/steps/package.json +7 -0
  152. package/steps/style.css +1 -0
  153. package/style.css +1 -1
  154. package/switch/index.es.js +7779 -60
  155. package/switch/index.umd.js +27 -1
  156. package/switch/style.css +1 -1
  157. package/table/index.es.js +4092 -1464
  158. package/table/index.umd.js +17 -17
  159. package/table/style.css +1 -1
  160. package/tabs/index.es.js +224 -77
  161. package/tabs/index.umd.js +1 -1
  162. package/tabs/style.css +1 -1
  163. package/tag/index.es.js +5 -1
  164. package/tag/index.umd.js +1 -1
  165. package/tag/style.css +1 -1
  166. package/textarea/index.es.js +3357 -1064
  167. package/textarea/index.umd.js +19 -19
  168. package/textarea/style.css +1 -1
  169. package/time-picker/index.d.ts +7 -0
  170. package/time-picker/index.es.js +9549 -0
  171. package/time-picker/index.umd.js +27 -0
  172. package/time-picker/package.json +7 -0
  173. package/time-picker/style.css +1 -0
  174. package/time-select/index.d.ts +7 -0
  175. package/time-select/index.es.js +9585 -0
  176. package/time-select/index.umd.js +27 -0
  177. package/time-select/package.json +7 -0
  178. package/time-select/style.css +1 -0
  179. package/timeline/index.es.js +92 -41
  180. package/timeline/index.umd.js +1 -1
  181. package/timeline/style.css +1 -1
  182. package/tooltip/index.es.js +100 -163
  183. package/tooltip/index.umd.js +16 -16
  184. package/tooltip/style.css +1 -1
  185. package/tree/index.es.js +11036 -608
  186. package/tree/index.umd.js +27 -1
  187. package/tree/style.css +1 -1
  188. package/upload/index.es.js +389 -105
  189. package/upload/index.umd.js +1 -1
  190. package/upload/style.css +1 -1
  191. package/vue-devui.es.js +17291 -9726
  192. package/vue-devui.umd.js +24 -23
  193. package/date-picker/index.es.js +0 -1298
  194. package/date-picker/index.umd.js +0 -1
  195. package/date-picker/style.css +0 -1
  196. package/nuxt/components/DatePicker.js +0 -3
  197. package/nuxt/components/StickSlider.js +0 -3
  198. package/nuxt/components/formControlProps.js +0 -3
  199. package/nuxt/components/overlayEmits.js +0 -3
  200. package/nuxt/components/overlayProps.js +0 -3
@@ -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 { defineComponent, createVNode, Teleport, Transition, renderSlot, isVNode, computed, onMounted, watch, onUnmounted, ref, unref, nextTick, mergeProps, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, toRefs, provide, reactive, resolveComponent, onUpdated } from "vue";
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";
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: overlayEmits,
92
+ emits: ["update:modelValue", "click"],
156
93
  setup(props, ctx) {
157
94
  const {
158
- backgroundClass,
159
- overlayClass,
160
- handleBackdropClick,
161
- handleOverlayBubbleCancel
162
- } = useOverlayLogic(props, ctx);
163
- return () => createVNode(CommonOverlay, null, {
164
- default: () => [props.visible && createVNode("div", {
165
- "class": backgroundClass.value,
166
- "style": props.backgroundStyle,
167
- "onClick": handleBackdropClick
168
- }, [createVNode("div", {
169
- "class": overlayClass.value,
170
- "style": props.overlayStyle,
171
- "onClick": handleOverlayBubbleCancel
172
- }, [renderSlot(ctx.slots, "default")])])]
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
  });
@@ -1150,10 +1089,10 @@ var lodash = { exports: {} };
1150
1089
  }();
1151
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;
1152
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;
1153
- var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
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");
1154
1093
  var metaMap = WeakMap2 && new WeakMap2();
1155
1094
  var realNames = {};
1156
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
1095
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
1157
1096
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1158
1097
  function lodash2(value) {
1159
1098
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1509,7 +1448,7 @@ var lodash = { exports: {} };
1509
1448
  function baseAt(object, paths) {
1510
1449
  var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
1511
1450
  while (++index2 < length) {
1512
- result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
1451
+ result2[index2] = skip ? undefined$1 : get2(object, paths[index2]);
1513
1452
  }
1514
1453
  return result2;
1515
1454
  }
@@ -1954,7 +1893,7 @@ var lodash = { exports: {} };
1954
1893
  return matchesStrictComparable(toKey(path), srcValue);
1955
1894
  }
1956
1895
  return function(object) {
1957
- var objValue = get(object, path);
1896
+ var objValue = get2(object, path);
1958
1897
  return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1959
1898
  };
1960
1899
  }
@@ -2845,8 +2784,8 @@ var lodash = { exports: {} };
2845
2784
  return func(number);
2846
2785
  };
2847
2786
  }
2848
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
2849
- return new Set(values2);
2787
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
2788
+ return new Set2(values2);
2850
2789
  };
2851
2790
  function createToPairs(keysFunc) {
2852
2791
  return function(object) {
@@ -3145,7 +3084,7 @@ var lodash = { exports: {} };
3145
3084
  return result2;
3146
3085
  };
3147
3086
  var getTag = baseGetTag;
3148
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
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) {
3149
3088
  getTag = function(value) {
3150
3089
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3151
3090
  if (ctorString) {
@@ -4687,7 +4626,7 @@ var lodash = { exports: {} };
4687
4626
  function functionsIn(object) {
4688
4627
  return object == null ? [] : baseFunctions(object, keysIn(object));
4689
4628
  }
4690
- function get(object, path, defaultValue) {
4629
+ function get2(object, path, defaultValue) {
4691
4630
  var result2 = object == null ? undefined$1 : baseGet(object, path);
4692
4631
  return result2 === undefined$1 ? defaultValue : result2;
4693
4632
  }
@@ -5542,7 +5481,7 @@ var lodash = { exports: {} };
5542
5481
  lodash2.forInRight = forInRight;
5543
5482
  lodash2.forOwn = forOwn;
5544
5483
  lodash2.forOwnRight = forOwnRight;
5545
- lodash2.get = get;
5484
+ lodash2.get = get2;
5546
5485
  lodash2.gt = gt;
5547
5486
  lodash2.gte = gte;
5548
5487
  lodash2.has = has;
@@ -6066,6 +6005,174 @@ const splitterBarProps = {
6066
6005
  }
6067
6006
  };
6068
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
+ }
6069
6176
  var DSplitterBar = defineComponent({
6070
6177
  name: "DSplitterBar",
6071
6178
  components: {
@@ -6073,6 +6180,8 @@ var DSplitterBar = defineComponent({
6073
6180
  },
6074
6181
  props: splitterBarProps,
6075
6182
  setup(props) {
6183
+ const app = getCurrentInstance();
6184
+ const t = createI18nTranslate("DSplitterBar", app);
6076
6185
  const ns2 = useNamespace("splitter");
6077
6186
  const store = inject("splitterStore");
6078
6187
  const state = reactive({
@@ -6253,14 +6362,14 @@ var DSplitterBar = defineComponent({
6253
6362
  const renderCollapsedTip = () => {
6254
6363
  var _a, _b, _c, _d;
6255
6364
  if (!props || props.index === void 0) {
6256
- return "\u6536\u8D77";
6365
+ return t("collapse");
6257
6366
  }
6258
6367
  const {
6259
6368
  pane,
6260
6369
  nearPane
6261
6370
  } = queryPanes(props.index, props.index + 1);
6262
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);
6263
- return isCollapsed ? "\u5C55\u5F00" : "\u6536\u8D77";
6372
+ return isCollapsed ? t("expand") : t("collapse");
6264
6373
  };
6265
6374
  return () => {
6266
6375
  return withDirectives(createVNode("div", {