x-next 1.10.0 → 1.11.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 (182) hide show
  1. package/AI_CODING.md +97 -0
  2. package/AI_USAGE/catalog.md +111 -0
  3. package/AI_USAGE/components/alert.md +33 -0
  4. package/AI_USAGE/components/bar-chart.md +46 -0
  5. package/AI_USAGE/components/button.md +35 -0
  6. package/AI_USAGE/components/checkbox.md +34 -0
  7. package/AI_USAGE/components/color-picker.md +36 -0
  8. package/AI_USAGE/components/config-provider.md +58 -0
  9. package/AI_USAGE/components/date-picker.md +34 -0
  10. package/AI_USAGE/components/dialog.md +37 -0
  11. package/AI_USAGE/components/dropdown.md +38 -0
  12. package/AI_USAGE/components/empty.md +30 -0
  13. package/AI_USAGE/components/input.md +32 -0
  14. package/AI_USAGE/components/line-chart.md +45 -0
  15. package/AI_USAGE/components/message-box.md +39 -0
  16. package/AI_USAGE/components/message.md +36 -0
  17. package/AI_USAGE/components/notification.md +37 -0
  18. package/AI_USAGE/components/pagination.md +32 -0
  19. package/AI_USAGE/components/pie-chart.md +55 -0
  20. package/AI_USAGE/components/popconfirm.md +33 -0
  21. package/AI_USAGE/components/popover.md +35 -0
  22. package/AI_USAGE/components/progress.md +32 -0
  23. package/AI_USAGE/components/radio.md +35 -0
  24. package/AI_USAGE/components/rate.md +30 -0
  25. package/AI_USAGE/components/select.md +38 -0
  26. package/AI_USAGE/components/slider.md +34 -0
  27. package/AI_USAGE/components/steps.md +33 -0
  28. package/AI_USAGE/components/switch.md +32 -0
  29. package/AI_USAGE/components/tabs.md +33 -0
  30. package/AI_USAGE/components/textarea.md +31 -0
  31. package/AI_USAGE/components/time-picker.md +34 -0
  32. package/AI_USAGE/components/upload.md +60 -0
  33. package/AI_USAGE/core.md +37 -0
  34. package/AI_USAGE/index.md +52 -0
  35. package/AI_USAGE/recipes/form-on-demand.md +42 -0
  36. package/AI_USAGE.md +173 -46
  37. package/CHANGELOG.md +36 -1
  38. package/README.md +15 -2
  39. package/dist/_container/resize-trigger.vue.d.ts +1 -1
  40. package/dist/_hooks/use-dialog-focus.d.ts +7 -0
  41. package/dist/_hooks/use-pointer-drag.d.ts +6 -0
  42. package/dist/_hooks/use-popup-close.d.ts +11 -0
  43. package/dist/_hooks/use-popup-theme.d.ts +5 -0
  44. package/dist/_utils/palette.d.ts +2 -0
  45. package/dist/components/_components/picker/input-range.vue.d.ts +1 -3
  46. package/dist/components/_components/picker/input.vue.d.ts +1 -3
  47. package/dist/components/_components/select-view/select-view.d.ts +9 -0
  48. package/dist/components/alert/Alert.vue.d.ts +1 -1
  49. package/dist/components/alert/index.d.ts +3 -3
  50. package/dist/components/bar-chart/BarChart.d.ts +3 -3
  51. package/dist/components/bar-chart/index.d.ts +9 -9
  52. package/dist/components/color-picker/ColorPicker.d.ts +2 -1
  53. package/dist/components/color-picker/index.d.ts +2 -0
  54. package/dist/components/color-picker/panel.d.ts +6 -0
  55. package/dist/components/config-provider/context.d.ts +7 -1
  56. package/dist/components/date-picker/DatePicker.vue.d.ts +9 -12
  57. package/dist/components/date-picker/index.d.ts +19 -27
  58. package/dist/components/drawer/index.d.ts +51 -9
  59. package/dist/components/drawer/src/Drawer.vue.d.ts +19 -4
  60. package/dist/components/dropdown/Dropdown.vue.d.ts +6 -3
  61. package/dist/components/dropdown/DropdownButton.vue.d.ts +6 -3
  62. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +6 -3
  63. package/dist/components/dropdown/dropdown-panel.vue.d.ts +6 -3
  64. package/dist/components/dropdown/index.d.ts +36 -18
  65. package/dist/components/form-select/Select.d.ts +18 -5
  66. package/dist/components/form-select/SelectDropdown.vue.d.ts +6 -3
  67. package/dist/components/form-select/SelectOption.vue.d.ts +1 -0
  68. package/dist/components/form-select/SelectOptionGroup.vue.d.ts +1 -0
  69. package/dist/components/form-select/hooks/use-options.d.ts +1 -1
  70. package/dist/components/form-select/hooks/use-select.d.ts +1 -1
  71. package/dist/components/form-select/index.d.ts +57 -17
  72. package/dist/components/form-select/interface.d.ts +8 -0
  73. package/dist/components/form-slider/Slider.vue.d.ts +1 -1
  74. package/dist/components/form-slider/index.d.ts +3 -3
  75. package/dist/components/form-textarea/Textarea.vue.d.ts +2 -4
  76. package/dist/components/form-textarea/index.d.ts +6 -12
  77. package/dist/components/image/Image.vue.d.ts +2 -4
  78. package/dist/components/image/index.d.ts +6 -12
  79. package/dist/components/layout/LayoutSidebar.vue.d.ts +5 -5
  80. package/dist/components/layout/index.d.ts +10 -10
  81. package/dist/components/line-chart/LineChart.d.ts +3 -3
  82. package/dist/components/line-chart/index.d.ts +9 -9
  83. package/dist/components/menu/Menu.d.ts +6 -3
  84. package/dist/components/menu/base-menu.vue.d.ts +6 -3
  85. package/dist/components/menu/index.d.ts +12 -6
  86. package/dist/components/menu/sub-menu-pop.vue.d.ts +6 -3
  87. package/dist/components/network/Network.vue.d.ts +1 -1
  88. package/dist/components/network/index.d.ts +3 -3
  89. package/dist/components/pagination/page-options.vue.d.ts +60 -32
  90. package/dist/components/pie-chart/PieChart.d.ts +1 -1
  91. package/dist/components/pie-chart/index.d.ts +3 -3
  92. package/dist/components/resize-box/ResizeBox.vue.d.ts +2 -2
  93. package/dist/components/resize-box/index.d.ts +5 -5
  94. package/dist/components/scrollbar-v2/Scrollbar.vue.d.ts +2 -1
  95. package/dist/components/scrollbar-v2/index.d.ts +6 -3
  96. package/dist/components/table/Table.d.ts +1 -1
  97. package/dist/components/table/index.d.ts +3 -3
  98. package/dist/components/tabs/Tabs.d.ts +1 -1
  99. package/dist/components/tabs/index.d.ts +3 -3
  100. package/dist/components/time-picker/TimeColumn.vue.d.ts +6 -3
  101. package/dist/components/time-picker/TimePanel.vue.d.ts +6 -3
  102. package/dist/components/time-picker/TimePicker.vue.d.ts +9 -12
  103. package/dist/components/time-picker/index.d.ts +19 -27
  104. package/dist/components/trend-chart/components/TrendChart.d.ts +5 -5
  105. package/dist/components/trend-chart/components/trend-chart-curve.d.ts +1 -1
  106. package/dist/components/trend-chart/index.d.ts +14 -14
  107. package/dist/components/trigger/interface.d.ts +2 -0
  108. package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +7 -4
  109. package/dist/es/_hooks/use-dialog-focus.js +69 -0
  110. package/dist/es/_hooks/use-pointer-drag.js +18 -0
  111. package/dist/es/_hooks/use-popup-close.js +27 -0
  112. package/dist/es/_hooks/use-popup-manager.js +26 -24
  113. package/dist/es/_hooks/use-popup-theme.js +18 -0
  114. package/dist/es/_hooks/use-teleport-container.js +9 -10
  115. package/dist/es/_utils/palette.js +57 -52
  116. package/dist/es/components/_components/select-view/select-view.js +89 -78
  117. package/dist/es/components/button/Button.js +1 -1
  118. package/dist/es/components/color-picker/ColorPicker.js +131 -102
  119. package/dist/es/components/color-picker/gradient-slider.js +38 -40
  120. package/dist/es/components/color-picker/panel.js +221 -192
  121. package/dist/es/components/color-picker/sv-panel.js +51 -50
  122. package/dist/es/components/config-provider/ConfigProvider.js +58 -41
  123. package/dist/es/components/dialog/Dialog.js +133 -186
  124. package/dist/es/components/drawer/src/Drawer.vue.js +59 -51
  125. package/dist/es/components/drawer/src/Drawer.vue2.js +117 -107
  126. package/dist/es/components/form/FormItem.vue.js +12 -12
  127. package/dist/es/components/form-input-tag/InputTag.js +1 -1
  128. package/dist/es/components/form-select/Select.js +348 -300
  129. package/dist/es/components/form-select/SelectDropdown.vue.js +7 -7
  130. package/dist/es/components/form-select/SelectOption.vue.js +22 -17
  131. package/dist/es/components/form-select/SelectOption.vue2.js +59 -51
  132. package/dist/es/components/form-select/SelectOptionGroup.vue.js +17 -13
  133. package/dist/es/components/form-select/SelectOptionGroup.vue2.js +8 -5
  134. package/dist/es/components/form-select/hooks/use-options.js +40 -40
  135. package/dist/es/components/form-select/hooks/use-select.js +76 -71
  136. package/dist/es/components/form-switch/Switch.vue.js +24 -24
  137. package/dist/es/components/image/Image.vue.js +12 -12
  138. package/dist/es/components/link/Link.vue.js +6 -6
  139. package/dist/es/components/menu/sub-menu-inline.vue.js +11 -11
  140. package/dist/es/components/menu/sub-menu-pop.vue.js +12 -12
  141. package/dist/es/components/notification/Notification.js +59 -59
  142. package/dist/es/components/resize-box/ResizeBox.vue.js +19 -22
  143. package/dist/es/components/skeleton/Skeleton.vue.js +9 -9
  144. package/dist/es/components/tag/Tag.vue.js +7 -7
  145. package/dist/es/components/trigger/Trigger.js +171 -163
  146. package/dist/es/style.css +1 -1
  147. package/dist/index.cjs +3 -3
  148. package/dist/index.umd.js +3 -3
  149. package/dist/style/bar-chart.js +1 -0
  150. package/dist/style/base.css +1 -1
  151. package/dist/style/button.css +1 -1
  152. package/dist/style/color-picker.css +1 -1
  153. package/dist/style/color-picker.js +4 -0
  154. package/dist/style/date-picker.js +4 -0
  155. package/dist/style/dependencies.json +296 -0
  156. package/dist/style/dialog.js +2 -0
  157. package/dist/style/drawer.js +3 -0
  158. package/dist/style/dropdown.js +5 -0
  159. package/dist/style/form-checkbox.css +1 -1
  160. package/dist/style/form-input-number.js +2 -0
  161. package/dist/style/form-input.css +1 -1
  162. package/dist/style/form-input.js +1 -0
  163. package/dist/style/form-select.js +5 -0
  164. package/dist/style/form-slider.js +5 -0
  165. package/dist/style/form.js +3 -0
  166. package/dist/style/heatmap.js +1 -0
  167. package/dist/style/image.js +2 -0
  168. package/dist/style/layout.js +1 -0
  169. package/dist/style/line-chart.js +1 -0
  170. package/dist/style/menu.js +3 -0
  171. package/dist/style/message-box.js +3 -0
  172. package/dist/style/pagination.js +9 -0
  173. package/dist/style/pie-chart.js +1 -0
  174. package/dist/style/popconfirm.js +3 -0
  175. package/dist/style/popover.js +1 -0
  176. package/dist/style/popup.js +2 -0
  177. package/dist/style/table.js +12 -0
  178. package/dist/style/time-picker.js +3 -0
  179. package/dist/style/tooltip.js +1 -0
  180. package/dist/style/upload.js +4 -0
  181. package/dist/style.css +1 -1
  182. package/package.json +17 -7
@@ -1,130 +1,135 @@
1
- import { ref as X, watch as U, nextTick as Z, provide as $, reactive as p } from "vue";
2
- import { getRelativeRect as R } from "../../../_utils/dom.js";
3
- import { useOptions as F } from "./use-options.js";
1
+ import { ref as X, watch as W, nextTick as Z, provide as $, reactive as R } from "vue";
2
+ import { getRelativeRect as F } from "../../../_utils/dom.js";
3
+ import { useOptions as L } from "./use-options.js";
4
4
  import { KEYBOARD_KEY as a } from "../../../_utils/keyboard.js";
5
- import { selectInjectionKey as L } from "../context.js";
5
+ import { selectInjectionKey as p } from "../context.js";
6
6
  import { isUndefined as f } from "../../../_utils/is.js";
7
7
  const le = ({
8
- multiple: B,
9
- options: H,
8
+ multiple: U,
9
+ options: B,
10
10
  extraOptions: Y,
11
- inputValue: T,
12
- filterOption: E,
11
+ inputValue: v,
12
+ filterOption: T,
13
13
  showExtraOptions: j,
14
14
  component: M,
15
15
  valueKey: h,
16
16
  fieldNames: q,
17
- loading: m,
18
- disabled: y,
19
- popupVisible: c,
17
+ loading: k,
18
+ disabled: K,
19
+ popupVisible: u,
20
20
  valueKeys: x,
21
- dropdownRef: K,
21
+ dropdownRef: g,
22
22
  optionRefs: O,
23
- virtualListRef: v,
24
- onSelect: k,
23
+ virtualListRef: s,
24
+ onSelect: d,
25
25
  onPopupVisibleChange: i,
26
26
  getOptionId: z,
27
27
  enterToOpen: C = !0,
28
- defaultActiveFirstOption: g
28
+ defaultActiveFirstOption: E
29
29
  }) => {
30
30
  const {
31
31
  validOptions: G,
32
32
  optionInfoMap: D,
33
33
  validOptionInfos: J,
34
- enabledOptionKeys: l,
34
+ enabledOptionKeys: c,
35
35
  getNextSlotOptionIndex: P,
36
36
  addSlotOptionInfo: S,
37
37
  removeSlotOptionInfo: _
38
- } = F({
39
- options: H,
38
+ } = L({
39
+ options: B,
40
40
  extraOptions: Y,
41
- inputValue: T,
42
- filterOption: E,
41
+ inputValue: v,
42
+ filterOption: T,
43
43
  showExtraOptions: j,
44
44
  valueKey: h,
45
45
  fieldNames: q
46
- }), t = X();
47
- let u;
48
- const w = () => {
49
- const e = l.value, r = x.value[x.value.length - 1];
50
- return e.includes(r) ? r : u ? u === "up" ? e[e.length - 1] : e[0] : (g == null ? void 0 : g.value) ?? !0 ? e[0] : void 0;
46
+ }), r = X();
47
+ let n;
48
+ const I = () => {
49
+ const e = c.value, t = x.value[x.value.length - 1];
50
+ return e.includes(t) ? t : n ? n === "up" ? e[e.length - 1] : e[0] : (E == null ? void 0 : E.value) ?? !0 ? e[0] : void 0;
51
51
  };
52
- U(l, (e) => {
53
- c.value && u ? t.value = w() : (f(t.value) || !e.includes(t.value)) && (t.value = e[0]);
52
+ W(c, (e) => {
53
+ (u.value && n || f(r.value) || !e.includes(r.value)) && (r.value = I());
54
54
  });
55
- const A = (e) => {
56
- t.value = e;
57
- }, N = (e) => {
58
- const r = l.value.length;
59
- if (r === 0)
55
+ const w = (e) => {
56
+ r.value = e;
57
+ }, A = (e) => {
58
+ const t = c.value.length;
59
+ if (t === 0)
60
60
  return;
61
- if (f(t.value))
62
- return e === "down" ? l.value[0] : l.value[r - 1];
63
- const o = l.value.indexOf(t.value), n = (r + o + (e === "up" ? -1 : 1)) % r;
64
- return l.value[n];
65
- }, I = (e) => {
66
- var d;
67
- v != null && v.value && v.value.scrollTo({ key: e });
68
- const r = D.get(e), o = (d = K == null ? void 0 : K.value) == null ? void 0 : d.wrapperRef, n = (O == null ? void 0 : O.value[e]) ?? (r == null ? void 0 : r.ref);
69
- if (!o || !n || o.scrollHeight === o.offsetHeight)
61
+ if (f(r.value))
62
+ return e === "down" ? c.value[0] : c.value[t - 1];
63
+ const o = c.value.indexOf(r.value), l = (t + o + (e === "up" ? -1 : 1)) % t;
64
+ return c.value[l];
65
+ }, m = (e) => {
66
+ var N;
67
+ s != null && s.value && s.value.scrollTo({ key: e });
68
+ const t = D.get(e), o = (N = g == null ? void 0 : g.value) == null ? void 0 : N.wrapperRef, l = (O == null ? void 0 : O.value[e]) ?? (t == null ? void 0 : t.ref);
69
+ if (!o || !l || o.scrollHeight === o.offsetHeight)
70
70
  return;
71
- const s = R(n, o), W = o.scrollTop;
72
- s.top < 0 ? o.scrollTo(0, W + s.top) : s.bottom < 0 && o.scrollTo(0, W - s.bottom);
71
+ const y = F(l, o), H = o.scrollTop;
72
+ y.top < 0 ? o.scrollTo(0, H + y.top) : y.bottom < 0 && o.scrollTo(0, H - y.bottom);
73
73
  };
74
- U(
75
- c,
74
+ W(
75
+ u,
76
76
  (e) => {
77
- e ? (t.value = w(), Z(() => {
78
- u = void 0, c.value && !f(t.value) && I(t.value);
79
- })) : u = void 0;
77
+ e ? (r.value = I(), Z(() => {
78
+ n = void 0, u.value && !f(r.value) && m(r.value);
79
+ })) : n = void 0;
80
80
  },
81
81
  { immediate: !0 }
82
82
  );
83
83
  const Q = (e) => {
84
- if (y != null && y.value || e.isComposing || e.keyCode === 229 || e.ctrlKey || e.altKey || e.metaKey)
84
+ if (K != null && K.value || e.isComposing || e.keyCode === 229 || e.ctrlKey || e.altKey || e.metaKey)
85
85
  return;
86
86
  if (e.key === a.TAB) {
87
- u = void 0, c.value && i(!1);
87
+ n = void 0, u.value && i(!1);
88
88
  return;
89
89
  }
90
90
  if (e.shiftKey)
91
91
  return;
92
- const r = () => {
92
+ const t = () => {
93
93
  e.stopPropagation(), e.preventDefault();
94
94
  };
95
95
  if (e.key === a.ESC) {
96
- u = void 0, c.value && (r(), i(!1));
96
+ n = void 0, u.value && (t(), i(!1));
97
97
  return;
98
98
  }
99
- if (!(m != null && m.value)) {
99
+ if (!(k != null && k.value)) {
100
+ if (u.value && !(v != null && v.value) && (e.key === "Home" || e.key === "End")) {
101
+ const o = c.value, l = e.key === "Home" ? o[0] : o[o.length - 1];
102
+ f(l) || (t(), r.value = l, m(l));
103
+ return;
104
+ }
100
105
  if (e.key === a.ENTER) {
101
- c.value ? !f(t.value) && l.value.includes(t.value) && (r(), k(t.value, e)) : C && (u = void 0, r(), i(!0));
106
+ u.value ? !f(r.value) && c.value.includes(r.value) && (t(), d(r.value, e)) : C && (n = void 0, t(), i(!0));
102
107
  return;
103
108
  }
104
109
  if (e.key === a.ARROW_DOWN || e.key === a.ARROW_UP) {
105
110
  const o = e.key === a.ARROW_UP ? "up" : "down";
106
- if (r(), !c.value)
107
- u = o, i(!0);
111
+ if (t(), !u.value)
112
+ n = o, i(!0);
108
113
  else {
109
- const n = N(o);
110
- f(n) || (t.value = n, I(n));
114
+ const l = A(o);
115
+ f(l) || (r.value = l, m(l));
111
116
  }
112
117
  }
113
118
  }
114
119
  };
115
120
  return $(
116
- L,
117
- p({
118
- multiple: B,
121
+ p,
122
+ R({
123
+ multiple: U,
119
124
  valueKey: h,
120
- inputValue: T,
121
- filterOption: E,
125
+ inputValue: v,
126
+ filterOption: T,
122
127
  component: M,
123
128
  valueKeys: x,
124
- activeKey: t,
129
+ activeKey: r,
125
130
  getOptionId: z,
126
- setActiveKey: A,
127
- onSelect: k,
131
+ setActiveKey: w,
132
+ onSelect: d,
128
133
  getNextSlotOptionIndex: P,
129
134
  addSlotOptionInfo: S,
130
135
  removeSlotOptionInfo: _
@@ -133,13 +138,13 @@ const le = ({
133
138
  validOptions: G,
134
139
  optionInfoMap: D,
135
140
  validOptionInfos: J,
136
- enabledOptionKeys: l,
137
- activeKey: t,
138
- setActiveKey: A,
141
+ enabledOptionKeys: c,
142
+ activeKey: r,
143
+ setActiveKey: w,
139
144
  addSlotOptionInfo: S,
140
145
  removeSlotOptionInfo: _,
141
- getNextActiveKey: N,
142
- scrollIntoView: I,
146
+ getNextActiveKey: A,
147
+ scrollIntoView: m,
143
148
  handleKeyDown: Q
144
149
  };
145
150
  };
@@ -1,10 +1,10 @@
1
- import c from "./Switch.vue2.js";
2
- import { resolveComponent as h, openBlock as l, createElementBlock as m, mergeProps as p, createElementVNode as d, normalizeClass as a, createBlock as u, Fragment as k, renderSlot as s, createTextVNode as r, toDisplayString as t, createCommentVNode as y } from "vue";
3
- import f from "../../_virtual/_plugin-vue_export-helper.js";
4
- const C = ["aria-checked", "disabled"];
5
- function $(e, o, g, w, N, b) {
6
- const i = h("icon-loading");
7
- return l(), m("button", p(e.formControlAttrs, {
1
+ import h from "./Switch.vue2.js";
2
+ import { resolveComponent as k, openBlock as d, createElementBlock as i, mergeProps as p, createElementVNode as l, normalizeClass as a, createBlock as u, Fragment as m, renderSlot as s, createTextVNode as r, toDisplayString as t, createCommentVNode as f } from "vue";
3
+ import C from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const y = ["aria-checked", "disabled"];
5
+ function $(e, o, v, g, w, N) {
6
+ const c = k("icon-loading");
7
+ return d(), i("button", p(e.formControlAttrs, {
8
8
  type: "button",
9
9
  role: "switch",
10
10
  "aria-checked": e.computedCheck,
@@ -17,40 +17,40 @@ function $(e, o, g, w, N, b) {
17
17
  onBlur: o[3] || (o[3] = (...n) => e.handleBlur && e.handleBlur(...n)),
18
18
  ref: "switchRef"
19
19
  }), [
20
- d("span", {
20
+ l("span", {
21
21
  class: a(e.className.element("handle"))
22
22
  }, [
23
- d("span", {
23
+ l("span", {
24
24
  class: a(e.className.element("handle-icon"))
25
25
  }, [
26
- e.computedLoading ? (l(), u(i, { key: 0 })) : (l(), m(k, { key: 1 }, [
27
- e.computedCheck ? s(e.$slots, "checked-icon", { key: 0 }) : s(e.$slots, "unchecked-icon", { key: 1 })
26
+ e.computedLoading ? (d(), u(c, { key: 0 })) : (d(), i(m, { key: 1 }, [
27
+ e.computedCheck ? s(e.$slots, "checked-icon", {}, void 0, void 0, 0) : s(e.$slots, "unchecked-icon", {}, void 0, void 0, 1)
28
28
  ], 64))
29
29
  ], 2)
30
30
  ], 2),
31
- e.showText ? (l(), m(k, { key: 0 }, [
32
- d("span", {
31
+ e.showText ? (d(), i(m, { key: 0 }, [
32
+ l("span", {
33
33
  class: a(e.className.element("text-holder"))
34
34
  }, [
35
- e.computedCheck ? s(e.$slots, "checked", { key: 0 }, () => [
35
+ e.computedCheck ? s(e.$slots, "checked", {}, () => [
36
36
  r(t(e.checkedText), 1)
37
- ]) : s(e.$slots, "unchecked", { key: 1 }, () => [
37
+ ], void 0, 0) : s(e.$slots, "unchecked", {}, () => [
38
38
  r(t(e.uncheckedText), 1)
39
- ])
39
+ ], void 0, 1)
40
40
  ], 2),
41
- d("span", {
41
+ l("span", {
42
42
  class: a(e.className.element("text"))
43
43
  }, [
44
- e.computedCheck ? s(e.$slots, "checked", { key: 0 }, () => [
44
+ e.computedCheck ? s(e.$slots, "checked", {}, () => [
45
45
  r(t(e.checkedText), 1)
46
- ]) : s(e.$slots, "unchecked", { key: 1 }, () => [
46
+ ], void 0, 0) : s(e.$slots, "unchecked", {}, () => [
47
47
  r(t(e.uncheckedText), 1)
48
- ])
48
+ ], void 0, 1)
49
49
  ], 2)
50
- ], 64)) : y("", !0)
51
- ], 16, C);
50
+ ], 64)) : f("", !0)
51
+ ], 16, y);
52
52
  }
53
- const S = /* @__PURE__ */ f(c, [["render", $]]);
53
+ const F = /* @__PURE__ */ C(h, [["render", $]]);
54
54
  export {
55
- S as default
55
+ F as default
56
56
  };
@@ -1,9 +1,9 @@
1
- import C from "./Image.vue2.js";
2
- import { resolveComponent as m, openBlock as i, createElementBlock as d, normalizeStyle as p, normalizeClass as o, mergeProps as t, renderSlot as l, createElementVNode as a, createVNode as g, toDisplayString as v, createCommentVNode as n, createBlock as y, createSlots as w, withCtx as P } from "vue";
1
+ import k from "./Image.vue2.js";
2
+ import { resolveComponent as m, openBlock as i, createElementBlock as d, normalizeStyle as p, normalizeClass as o, mergeProps as t, renderSlot as l, createElementVNode as a, createVNode as g, toDisplayString as v, createCommentVNode as n, createBlock as w, createSlots as y, withCtx as P } from "vue";
3
3
  import u from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const N = ["title", "src", "alt", "role", "tabindex", "aria-label", "aria-haspopup"];
5
5
  function L(e, r, $, S, E, V) {
6
- const I = m("IconImageClose"), b = m("IconLoading"), f = m("ImageFooter"), k = m("ImagePreview");
6
+ const I = m("IconImageClose"), b = m("IconLoading"), f = m("ImageFooter"), C = m("ImagePreview");
7
7
  return i(), d("div", {
8
8
  class: o(e.wrapperClassNames),
9
9
  style: p(e.wrapperStyles)
@@ -31,7 +31,7 @@ function L(e, r, $, S, E, V) {
31
31
  class: o(e.className.element("overlay")),
32
32
  style: p(e.overlayStyles)
33
33
  }, [
34
- e.isError ? l(e.$slots, "error", { key: 0 }, () => [
34
+ e.isError ? l(e.$slots, "error", {}, () => [
35
35
  a("div", {
36
36
  class: o(e.className.element("error"))
37
37
  }, [
@@ -46,8 +46,8 @@ function L(e, r, $, S, E, V) {
46
46
  class: o(e.className.element("error-alt"))
47
47
  }, v(e.alt || e.description || e.t("imagePreview.loadError")), 3)
48
48
  ], 2)
49
- ]) : n("", !0),
50
- e.isLoading && (e.showLoader || e.$slots.loader) ? l(e.$slots, "loader", { key: 1 }, () => [
49
+ ], void 0, 0) : n("", !0),
50
+ e.isLoading && (e.showLoader || e.$slots.loader) ? l(e.$slots, "loader", {}, () => [
51
51
  a("div", {
52
52
  class: o([e.className.element("loader")])
53
53
  }, [
@@ -60,15 +60,15 @@ function L(e, r, $, S, E, V) {
60
60
  }, v(e.t("imagePreview.loading")), 3)
61
61
  ], 2)
62
62
  ], 2)
63
- ]) : n("", !0)
63
+ ], void 0, 1) : n("", !0)
64
64
  ], 6)),
65
- e.showFooter ? (i(), y(f, {
65
+ e.showFooter ? (i(), w(f, {
66
66
  key: 1,
67
67
  class: o(e.footerClass),
68
68
  "prefix-cls": e.className.block,
69
69
  title: e.title,
70
70
  description: e.description
71
- }, w({ _: 2 }, [
71
+ }, y({ _: 2 }, [
72
72
  e.$slots.extra ? {
73
73
  name: "extra",
74
74
  fn: P(() => [
@@ -77,14 +77,14 @@ function L(e, r, $, S, E, V) {
77
77
  key: "0"
78
78
  } : void 0
79
79
  ]), 1032, ["class", "prefix-cls", "title", "description"])) : n("", !0),
80
- e.mergePreview && (e.isLoaded || e.mergedPreviewVisible) ? (i(), y(k, t({
80
+ e.mergePreview && (e.isLoaded || e.mergedPreviewVisible) ? (i(), w(C, t({
81
81
  key: 2,
82
82
  src: e.src
83
83
  }, e.previewProps, {
84
84
  visible: e.mergedPreviewVisible,
85
85
  "render-to-body": e.renderToBody,
86
86
  onClose: e.onPreviewClose
87
- }), w({ _: 2 }, [
87
+ }), y({ _: 2 }, [
88
88
  e.$slots["preview-actions"] ? {
89
89
  name: "actions",
90
90
  fn: P(() => [
@@ -95,7 +95,7 @@ function L(e, r, $, S, E, V) {
95
95
  ]), 1040, ["src", "visible", "render-to-body", "onClose"])) : n("", !0)
96
96
  ], 6);
97
97
  }
98
- const K = /* @__PURE__ */ u(C, [["render", L]]);
98
+ const K = /* @__PURE__ */ u(k, [["render", L]]);
99
99
  export {
100
100
  K as default
101
101
  };
@@ -1,10 +1,10 @@
1
1
  import m from "./Link.vue2.js";
2
- import { resolveComponent as l, openBlock as a, createElementBlock as i, normalizeClass as r, createBlock as p, renderSlot as s, createVNode as f, createCommentVNode as k } from "vue";
2
+ import { resolveComponent as i, openBlock as a, createElementBlock as l, normalizeClass as r, createBlock as p, renderSlot as s, createVNode as f, createCommentVNode as k } from "vue";
3
3
  import c from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const u = ["href", "role", "aria-disabled", "aria-busy", "tabindex"];
5
5
  function b(e, o, y, g, C, $) {
6
- const d = l("icon-loading"), t = l("icon-link");
7
- return a(), i("a", {
6
+ const d = i("icon-loading"), t = i("icon-link");
7
+ return a(), l("a", {
8
8
  href: e.mergedHref,
9
9
  class: r(e.cls),
10
10
  role: e.role,
@@ -14,13 +14,13 @@ function b(e, o, y, g, C, $) {
14
14
  onClick: o[0] || (o[0] = (...n) => e.handleClick && e.handleClick(...n)),
15
15
  onKeydown: o[1] || (o[1] = (...n) => e.handleKeyDown && e.handleKeyDown(...n))
16
16
  }, [
17
- e.loading || e.showIcon ? (a(), i("span", {
17
+ e.loading || e.showIcon ? (a(), l("span", {
18
18
  key: 0,
19
19
  class: r(e.className.element("icon"))
20
20
  }, [
21
- e.loading ? (a(), p(d, { key: 0 })) : s(e.$slots, "icon", { key: 1 }, () => [
21
+ e.loading ? (a(), p(d, { key: 0 })) : s(e.$slots, "icon", {}, () => [
22
22
  f(t)
23
- ])
23
+ ], void 0, 1)
24
24
  ], 2)) : k("", !0),
25
25
  s(e.$slots, "default")
26
26
  ], 42, u);
@@ -1,10 +1,10 @@
1
1
  import $ from "./sub-menu-inline.vue2.js";
2
- import { resolveComponent as a, openBlock as r, createElementBlock as d, normalizeClass as n, createElementVNode as s, createVNode as t, Fragment as C, renderSlot as i, createTextVNode as p, toDisplayString as u, withCtx as v, withDirectives as b, vShow as k } from "vue";
3
- import w from "../../_virtual/_plugin-vue_export-helper.js";
4
- const y = ["tabindex", "aria-expanded", "aria-disabled"];
5
- function P(e, o, S, h, E, H) {
2
+ import { resolveComponent as a, openBlock as d, createElementBlock as r, normalizeClass as n, createElementVNode as s, createVNode as t, Fragment as C, renderSlot as i, createTextVNode as p, toDisplayString as u, withCtx as v, withDirectives as b, vShow as w } from "vue";
3
+ import k from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const P = ["tabindex", "aria-expanded", "aria-disabled"];
5
+ function y(e, o, S, h, E, H) {
6
6
  const m = a("MenuIndent"), f = a("ExpandTransition");
7
- return r(), d("div", {
7
+ return d(), r("div", {
8
8
  class: n(e.classNames)
9
9
  }, [
10
10
  s("div", {
@@ -25,7 +25,7 @@ function P(e, o, S, h, E, H) {
25
25
  onKeydown: o[1] || (o[1] = (...l) => e.onHeaderKeydown && e.onHeaderKeydown(...l))
26
26
  }, [
27
27
  t(m, { level: e.level }, null, 8, ["level"]),
28
- e.$slots.icon ? (r(), d(C, { key: 0 }, [
28
+ e.$slots.icon ? (d(), r(C, { key: 0 }, [
29
29
  s("span", {
30
30
  class: n(`${e.menuPrefixCls}-icon`)
31
31
  }, [
@@ -38,9 +38,9 @@ function P(e, o, S, h, E, H) {
38
38
  p(u(e.title), 1)
39
39
  ])
40
40
  ], 2)
41
- ], 64)) : i(e.$slots, "title", { key: 1 }, () => [
41
+ ], 64)) : i(e.$slots, "title", {}, () => [
42
42
  p(u(e.title), 1)
43
- ]),
43
+ ], void 0, 1),
44
44
  s("span", {
45
45
  class: n([
46
46
  `${e.menuPrefixCls}-icon-suffix`,
@@ -51,7 +51,7 @@ function P(e, o, S, h, E, H) {
51
51
  }, [
52
52
  i(e.$slots, "expand-icon-down")
53
53
  ], 2)
54
- ], 42, y),
54
+ ], 42, P),
55
55
  t(f, null, {
56
56
  default: v(() => [
57
57
  b(s("div", {
@@ -59,14 +59,14 @@ function P(e, o, S, h, E, H) {
59
59
  }, [
60
60
  i(e.$slots, "default")
61
61
  ], 2), [
62
- [k, e.isOpen]
62
+ [w, e.isOpen]
63
63
  ])
64
64
  ]),
65
65
  _: 3
66
66
  })
67
67
  ], 2);
68
68
  }
69
- const M = /* @__PURE__ */ w($, [["render", P]]);
69
+ const M = /* @__PURE__ */ k($, [["render", y]]);
70
70
  export {
71
71
  M as default
72
72
  };
@@ -1,10 +1,10 @@
1
- import $ from "./sub-menu-pop.vue2.js";
2
- import { resolveComponent as i, openBlock as d, createBlock as c, mergeProps as u, withCtx as o, createElementVNode as l, createVNode as r, createElementBlock as m, Fragment as k, normalizeClass as t, renderSlot as n, createTextVNode as f, toDisplayString as g, createCommentVNode as h, normalizeStyle as P, createSlots as v } from "vue";
1
+ import c from "./sub-menu-pop.vue2.js";
2
+ import { resolveComponent as i, openBlock as d, createBlock as v, mergeProps as u, withCtx as o, createElementVNode as l, createVNode as r, createElementBlock as m, Fragment as y, normalizeClass as t, renderSlot as n, createTextVNode as f, toDisplayString as g, createCommentVNode as k, normalizeStyle as h, createSlots as P } from "vue";
3
3
  import w from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const I = ["aria-expanded", "aria-disabled", "tabindex"];
5
5
  function M(e, s, V, N, S, B) {
6
- const C = i("MenuIndent"), p = i("RenderFunction"), b = i("Menu"), y = i("Trigger");
7
- return d(), c(y, u({
6
+ const C = i("MenuIndent"), p = i("RenderFunction"), b = i("Menu"), $ = i("Trigger");
7
+ return d(), v($, u({
8
8
  trigger: "hover",
9
9
  class: e.triggerClassNames,
10
10
  position: e.needPopOnBottom ? "bl" : "rt",
@@ -28,9 +28,9 @@ function M(e, s, V, N, S, B) {
28
28
  "selected-keys": e.selectedKeys,
29
29
  theme: e.menuContext.theme,
30
30
  "trigger-props": e.menuContext.triggerProps,
31
- style: P(e.popupMenuStyles),
31
+ style: h(e.popupMenuStyles),
32
32
  onMenuItemClick: e.onMenuItemClick
33
- }, v({
33
+ }, P({
34
34
  default: o(() => [
35
35
  n(e.$slots, "default")
36
36
  ]),
@@ -75,7 +75,7 @@ function M(e, s, V, N, S, B) {
75
75
  onKeydown: s[1] || (s[1] = (...a) => e.onKeydown && e.onKeydown(...a))
76
76
  }), [
77
77
  r(C, { level: e.level }, null, 8, ["level"]),
78
- e.$slots.icon ? (d(), m(k, { key: 0 }, [
78
+ e.$slots.icon ? (d(), m(y, { key: 0 }, [
79
79
  l("span", {
80
80
  class: t(`${e.menuPrefixCls}-icon`)
81
81
  }, [
@@ -88,24 +88,24 @@ function M(e, s, V, N, S, B) {
88
88
  f(g(e.title), 1)
89
89
  ])
90
90
  ], 2)
91
- ], 64)) : n(e.$slots, "title", { key: 1 }, () => [
91
+ ], 64)) : n(e.$slots, "title", {}, () => [
92
92
  f(g(e.title), 1)
93
- ]),
93
+ ], void 0, 1),
94
94
  l("span", {
95
95
  class: t(`${e.menuPrefixCls}-icon-suffix`)
96
96
  }, [
97
- e.needPopOnBottom ? n(e.$slots, "expand-icon-down", { key: 0 }) : n(e.$slots, "expand-icon-right", { key: 1 })
97
+ e.needPopOnBottom ? n(e.$slots, "expand-icon-down", {}, void 0, void 0, 0) : n(e.$slots, "expand-icon-right", {}, void 0, void 0, 1)
98
98
  ], 2),
99
99
  e.isSelected && e.mode === "horizontal" ? (d(), m("div", {
100
100
  key: 2,
101
101
  class: t(`${e.menuPrefixCls}-selected-label`)
102
- }, null, 2)) : h("", !0)
102
+ }, null, 2)) : k("", !0)
103
103
  ], 16, I)
104
104
  ]),
105
105
  _: 3
106
106
  }, 16, ["class", "position", "disabled", "popup-visible", "onPopupVisibleChange"]);
107
107
  }
108
- const D = /* @__PURE__ */ w($, [["render", M]]);
108
+ const D = /* @__PURE__ */ w(c, [["render", M]]);
109
109
  export {
110
110
  D as default
111
111
  };