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.
- package/AI_CODING.md +97 -0
- package/AI_USAGE/catalog.md +111 -0
- package/AI_USAGE/components/alert.md +33 -0
- package/AI_USAGE/components/bar-chart.md +46 -0
- package/AI_USAGE/components/button.md +35 -0
- package/AI_USAGE/components/checkbox.md +34 -0
- package/AI_USAGE/components/color-picker.md +36 -0
- package/AI_USAGE/components/config-provider.md +58 -0
- package/AI_USAGE/components/date-picker.md +34 -0
- package/AI_USAGE/components/dialog.md +37 -0
- package/AI_USAGE/components/dropdown.md +38 -0
- package/AI_USAGE/components/empty.md +30 -0
- package/AI_USAGE/components/input.md +32 -0
- package/AI_USAGE/components/line-chart.md +45 -0
- package/AI_USAGE/components/message-box.md +39 -0
- package/AI_USAGE/components/message.md +36 -0
- package/AI_USAGE/components/notification.md +37 -0
- package/AI_USAGE/components/pagination.md +32 -0
- package/AI_USAGE/components/pie-chart.md +55 -0
- package/AI_USAGE/components/popconfirm.md +33 -0
- package/AI_USAGE/components/popover.md +35 -0
- package/AI_USAGE/components/progress.md +32 -0
- package/AI_USAGE/components/radio.md +35 -0
- package/AI_USAGE/components/rate.md +30 -0
- package/AI_USAGE/components/select.md +38 -0
- package/AI_USAGE/components/slider.md +34 -0
- package/AI_USAGE/components/steps.md +33 -0
- package/AI_USAGE/components/switch.md +32 -0
- package/AI_USAGE/components/tabs.md +33 -0
- package/AI_USAGE/components/textarea.md +31 -0
- package/AI_USAGE/components/time-picker.md +34 -0
- package/AI_USAGE/components/upload.md +60 -0
- package/AI_USAGE/core.md +37 -0
- package/AI_USAGE/index.md +52 -0
- package/AI_USAGE/recipes/form-on-demand.md +42 -0
- package/AI_USAGE.md +173 -46
- package/CHANGELOG.md +36 -1
- package/README.md +15 -2
- package/dist/_container/resize-trigger.vue.d.ts +1 -1
- package/dist/_hooks/use-dialog-focus.d.ts +7 -0
- package/dist/_hooks/use-pointer-drag.d.ts +6 -0
- package/dist/_hooks/use-popup-close.d.ts +11 -0
- package/dist/_hooks/use-popup-theme.d.ts +5 -0
- package/dist/_utils/palette.d.ts +2 -0
- package/dist/components/_components/picker/input-range.vue.d.ts +1 -3
- package/dist/components/_components/picker/input.vue.d.ts +1 -3
- package/dist/components/_components/select-view/select-view.d.ts +9 -0
- package/dist/components/alert/Alert.vue.d.ts +1 -1
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/bar-chart/BarChart.d.ts +3 -3
- package/dist/components/bar-chart/index.d.ts +9 -9
- package/dist/components/color-picker/ColorPicker.d.ts +2 -1
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/color-picker/panel.d.ts +6 -0
- package/dist/components/config-provider/context.d.ts +7 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts +9 -12
- package/dist/components/date-picker/index.d.ts +19 -27
- package/dist/components/drawer/index.d.ts +51 -9
- package/dist/components/drawer/src/Drawer.vue.d.ts +19 -4
- package/dist/components/dropdown/Dropdown.vue.d.ts +6 -3
- package/dist/components/dropdown/DropdownButton.vue.d.ts +6 -3
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +6 -3
- package/dist/components/dropdown/dropdown-panel.vue.d.ts +6 -3
- package/dist/components/dropdown/index.d.ts +36 -18
- package/dist/components/form-select/Select.d.ts +18 -5
- package/dist/components/form-select/SelectDropdown.vue.d.ts +6 -3
- package/dist/components/form-select/SelectOption.vue.d.ts +1 -0
- package/dist/components/form-select/SelectOptionGroup.vue.d.ts +1 -0
- package/dist/components/form-select/hooks/use-options.d.ts +1 -1
- package/dist/components/form-select/hooks/use-select.d.ts +1 -1
- package/dist/components/form-select/index.d.ts +57 -17
- package/dist/components/form-select/interface.d.ts +8 -0
- package/dist/components/form-slider/Slider.vue.d.ts +1 -1
- package/dist/components/form-slider/index.d.ts +3 -3
- package/dist/components/form-textarea/Textarea.vue.d.ts +2 -4
- package/dist/components/form-textarea/index.d.ts +6 -12
- package/dist/components/image/Image.vue.d.ts +2 -4
- package/dist/components/image/index.d.ts +6 -12
- package/dist/components/layout/LayoutSidebar.vue.d.ts +5 -5
- package/dist/components/layout/index.d.ts +10 -10
- package/dist/components/line-chart/LineChart.d.ts +3 -3
- package/dist/components/line-chart/index.d.ts +9 -9
- package/dist/components/menu/Menu.d.ts +6 -3
- package/dist/components/menu/base-menu.vue.d.ts +6 -3
- package/dist/components/menu/index.d.ts +12 -6
- package/dist/components/menu/sub-menu-pop.vue.d.ts +6 -3
- package/dist/components/network/Network.vue.d.ts +1 -1
- package/dist/components/network/index.d.ts +3 -3
- package/dist/components/pagination/page-options.vue.d.ts +60 -32
- package/dist/components/pie-chart/PieChart.d.ts +1 -1
- package/dist/components/pie-chart/index.d.ts +3 -3
- package/dist/components/resize-box/ResizeBox.vue.d.ts +2 -2
- package/dist/components/resize-box/index.d.ts +5 -5
- package/dist/components/scrollbar-v2/Scrollbar.vue.d.ts +2 -1
- package/dist/components/scrollbar-v2/index.d.ts +6 -3
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/time-picker/TimeColumn.vue.d.ts +6 -3
- package/dist/components/time-picker/TimePanel.vue.d.ts +6 -3
- package/dist/components/time-picker/TimePicker.vue.d.ts +9 -12
- package/dist/components/time-picker/index.d.ts +19 -27
- package/dist/components/trend-chart/components/TrendChart.d.ts +5 -5
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +1 -1
- package/dist/components/trend-chart/index.d.ts +14 -14
- package/dist/components/trigger/interface.d.ts +2 -0
- package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +7 -4
- package/dist/es/_hooks/use-dialog-focus.js +69 -0
- package/dist/es/_hooks/use-pointer-drag.js +18 -0
- package/dist/es/_hooks/use-popup-close.js +27 -0
- package/dist/es/_hooks/use-popup-manager.js +26 -24
- package/dist/es/_hooks/use-popup-theme.js +18 -0
- package/dist/es/_hooks/use-teleport-container.js +9 -10
- package/dist/es/_utils/palette.js +57 -52
- package/dist/es/components/_components/select-view/select-view.js +89 -78
- package/dist/es/components/button/Button.js +1 -1
- package/dist/es/components/color-picker/ColorPicker.js +131 -102
- package/dist/es/components/color-picker/gradient-slider.js +38 -40
- package/dist/es/components/color-picker/panel.js +221 -192
- package/dist/es/components/color-picker/sv-panel.js +51 -50
- package/dist/es/components/config-provider/ConfigProvider.js +58 -41
- package/dist/es/components/dialog/Dialog.js +133 -186
- package/dist/es/components/drawer/src/Drawer.vue.js +59 -51
- package/dist/es/components/drawer/src/Drawer.vue2.js +117 -107
- package/dist/es/components/form/FormItem.vue.js +12 -12
- package/dist/es/components/form-input-tag/InputTag.js +1 -1
- package/dist/es/components/form-select/Select.js +348 -300
- package/dist/es/components/form-select/SelectDropdown.vue.js +7 -7
- package/dist/es/components/form-select/SelectOption.vue.js +22 -17
- package/dist/es/components/form-select/SelectOption.vue2.js +59 -51
- package/dist/es/components/form-select/SelectOptionGroup.vue.js +17 -13
- package/dist/es/components/form-select/SelectOptionGroup.vue2.js +8 -5
- package/dist/es/components/form-select/hooks/use-options.js +40 -40
- package/dist/es/components/form-select/hooks/use-select.js +76 -71
- package/dist/es/components/form-switch/Switch.vue.js +24 -24
- package/dist/es/components/image/Image.vue.js +12 -12
- package/dist/es/components/link/Link.vue.js +6 -6
- package/dist/es/components/menu/sub-menu-inline.vue.js +11 -11
- package/dist/es/components/menu/sub-menu-pop.vue.js +12 -12
- package/dist/es/components/notification/Notification.js +59 -59
- package/dist/es/components/resize-box/ResizeBox.vue.js +19 -22
- package/dist/es/components/skeleton/Skeleton.vue.js +9 -9
- package/dist/es/components/tag/Tag.vue.js +7 -7
- package/dist/es/components/trigger/Trigger.js +171 -163
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/style/bar-chart.js +1 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/color-picker.css +1 -1
- package/dist/style/color-picker.js +4 -0
- package/dist/style/date-picker.js +4 -0
- package/dist/style/dependencies.json +296 -0
- package/dist/style/dialog.js +2 -0
- package/dist/style/drawer.js +3 -0
- package/dist/style/dropdown.js +5 -0
- package/dist/style/form-checkbox.css +1 -1
- package/dist/style/form-input-number.js +2 -0
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-input.js +1 -0
- package/dist/style/form-select.js +5 -0
- package/dist/style/form-slider.js +5 -0
- package/dist/style/form.js +3 -0
- package/dist/style/heatmap.js +1 -0
- package/dist/style/image.js +2 -0
- package/dist/style/layout.js +1 -0
- package/dist/style/line-chart.js +1 -0
- package/dist/style/menu.js +3 -0
- package/dist/style/message-box.js +3 -0
- package/dist/style/pagination.js +9 -0
- package/dist/style/pie-chart.js +1 -0
- package/dist/style/popconfirm.js +3 -0
- package/dist/style/popover.js +1 -0
- package/dist/style/popup.js +2 -0
- package/dist/style/table.js +12 -0
- package/dist/style/time-picker.js +3 -0
- package/dist/style/tooltip.js +1 -0
- package/dist/style/upload.js +4 -0
- package/dist/style.css +1 -1
- package/package.json +17 -7
|
@@ -1,130 +1,135 @@
|
|
|
1
|
-
import { ref as X, watch as
|
|
2
|
-
import { getRelativeRect as
|
|
3
|
-
import { useOptions as
|
|
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
|
|
5
|
+
import { selectInjectionKey as p } from "../context.js";
|
|
6
6
|
import { isUndefined as f } from "../../../_utils/is.js";
|
|
7
7
|
const le = ({
|
|
8
|
-
multiple:
|
|
9
|
-
options:
|
|
8
|
+
multiple: U,
|
|
9
|
+
options: B,
|
|
10
10
|
extraOptions: Y,
|
|
11
|
-
inputValue:
|
|
12
|
-
filterOption:
|
|
11
|
+
inputValue: v,
|
|
12
|
+
filterOption: T,
|
|
13
13
|
showExtraOptions: j,
|
|
14
14
|
component: M,
|
|
15
15
|
valueKey: h,
|
|
16
16
|
fieldNames: q,
|
|
17
|
-
loading:
|
|
18
|
-
disabled:
|
|
19
|
-
popupVisible:
|
|
17
|
+
loading: k,
|
|
18
|
+
disabled: K,
|
|
19
|
+
popupVisible: u,
|
|
20
20
|
valueKeys: x,
|
|
21
|
-
dropdownRef:
|
|
21
|
+
dropdownRef: g,
|
|
22
22
|
optionRefs: O,
|
|
23
|
-
virtualListRef:
|
|
24
|
-
onSelect:
|
|
23
|
+
virtualListRef: s,
|
|
24
|
+
onSelect: d,
|
|
25
25
|
onPopupVisibleChange: i,
|
|
26
26
|
getOptionId: z,
|
|
27
27
|
enterToOpen: C = !0,
|
|
28
|
-
defaultActiveFirstOption:
|
|
28
|
+
defaultActiveFirstOption: E
|
|
29
29
|
}) => {
|
|
30
30
|
const {
|
|
31
31
|
validOptions: G,
|
|
32
32
|
optionInfoMap: D,
|
|
33
33
|
validOptionInfos: J,
|
|
34
|
-
enabledOptionKeys:
|
|
34
|
+
enabledOptionKeys: c,
|
|
35
35
|
getNextSlotOptionIndex: P,
|
|
36
36
|
addSlotOptionInfo: S,
|
|
37
37
|
removeSlotOptionInfo: _
|
|
38
|
-
} =
|
|
39
|
-
options:
|
|
38
|
+
} = L({
|
|
39
|
+
options: B,
|
|
40
40
|
extraOptions: Y,
|
|
41
|
-
inputValue:
|
|
42
|
-
filterOption:
|
|
41
|
+
inputValue: v,
|
|
42
|
+
filterOption: T,
|
|
43
43
|
showExtraOptions: j,
|
|
44
44
|
valueKey: h,
|
|
45
45
|
fieldNames: q
|
|
46
|
-
}),
|
|
47
|
-
let
|
|
48
|
-
const
|
|
49
|
-
const e =
|
|
50
|
-
return e.includes(
|
|
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
|
-
|
|
53
|
-
|
|
52
|
+
W(c, (e) => {
|
|
53
|
+
(u.value && n || f(r.value) || !e.includes(r.value)) && (r.value = I());
|
|
54
54
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
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(
|
|
62
|
-
return e === "down" ?
|
|
63
|
-
const o =
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
if (!o || !
|
|
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
|
|
72
|
-
|
|
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
|
-
|
|
75
|
-
|
|
74
|
+
W(
|
|
75
|
+
u,
|
|
76
76
|
(e) => {
|
|
77
|
-
e ? (
|
|
78
|
-
|
|
79
|
-
})) :
|
|
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 (
|
|
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
|
-
|
|
87
|
+
n = void 0, u.value && i(!1);
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
if (e.shiftKey)
|
|
91
91
|
return;
|
|
92
|
-
const
|
|
92
|
+
const t = () => {
|
|
93
93
|
e.stopPropagation(), e.preventDefault();
|
|
94
94
|
};
|
|
95
95
|
if (e.key === a.ESC) {
|
|
96
|
-
|
|
96
|
+
n = void 0, u.value && (t(), i(!1));
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
if (!(
|
|
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
|
-
|
|
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 (
|
|
107
|
-
|
|
111
|
+
if (t(), !u.value)
|
|
112
|
+
n = o, i(!0);
|
|
108
113
|
else {
|
|
109
|
-
const
|
|
110
|
-
f(
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
multiple:
|
|
121
|
+
p,
|
|
122
|
+
R({
|
|
123
|
+
multiple: U,
|
|
119
124
|
valueKey: h,
|
|
120
|
-
inputValue:
|
|
121
|
-
filterOption:
|
|
125
|
+
inputValue: v,
|
|
126
|
+
filterOption: T,
|
|
122
127
|
component: M,
|
|
123
128
|
valueKeys: x,
|
|
124
|
-
activeKey:
|
|
129
|
+
activeKey: r,
|
|
125
130
|
getOptionId: z,
|
|
126
|
-
setActiveKey:
|
|
127
|
-
onSelect:
|
|
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:
|
|
137
|
-
activeKey:
|
|
138
|
-
setActiveKey:
|
|
141
|
+
enabledOptionKeys: c,
|
|
142
|
+
activeKey: r,
|
|
143
|
+
setActiveKey: w,
|
|
139
144
|
addSlotOptionInfo: S,
|
|
140
145
|
removeSlotOptionInfo: _,
|
|
141
|
-
getNextActiveKey:
|
|
142
|
-
scrollIntoView:
|
|
146
|
+
getNextActiveKey: A,
|
|
147
|
+
scrollIntoView: m,
|
|
143
148
|
handleKeyDown: Q
|
|
144
149
|
};
|
|
145
150
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function $(e, o, g, w, N
|
|
6
|
-
const
|
|
7
|
-
return
|
|
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
|
-
|
|
20
|
+
l("span", {
|
|
21
21
|
class: a(e.className.element("handle"))
|
|
22
22
|
}, [
|
|
23
|
-
|
|
23
|
+
l("span", {
|
|
24
24
|
class: a(e.className.element("handle-icon"))
|
|
25
25
|
}, [
|
|
26
|
-
e.computedLoading ? (
|
|
27
|
-
e.computedCheck ? s(e.$slots, "checked-icon", {
|
|
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 ? (
|
|
32
|
-
|
|
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", {
|
|
35
|
+
e.computedCheck ? s(e.$slots, "checked", {}, () => [
|
|
36
36
|
r(t(e.checkedText), 1)
|
|
37
|
-
]) : s(e.$slots, "unchecked", {
|
|
37
|
+
], void 0, 0) : s(e.$slots, "unchecked", {}, () => [
|
|
38
38
|
r(t(e.uncheckedText), 1)
|
|
39
|
-
])
|
|
39
|
+
], void 0, 1)
|
|
40
40
|
], 2),
|
|
41
|
-
|
|
41
|
+
l("span", {
|
|
42
42
|
class: a(e.className.element("text"))
|
|
43
43
|
}, [
|
|
44
|
-
e.computedCheck ? s(e.$slots, "checked", {
|
|
44
|
+
e.computedCheck ? s(e.$slots, "checked", {}, () => [
|
|
45
45
|
r(t(e.checkedText), 1)
|
|
46
|
-
]) : s(e.$slots, "unchecked", {
|
|
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)) :
|
|
51
|
-
], 16,
|
|
50
|
+
], 64)) : f("", !0)
|
|
51
|
+
], 16, y);
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const F = /* @__PURE__ */ C(h, [["render", $]]);
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
F as default
|
|
56
56
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
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
|
|
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"),
|
|
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", {
|
|
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", {
|
|
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(),
|
|
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
|
-
},
|
|
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(),
|
|
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
|
-
}),
|
|
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(
|
|
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
|
|
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 =
|
|
7
|
-
return 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(),
|
|
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", {
|
|
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
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function
|
|
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
|
|
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 ? (
|
|
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", {
|
|
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,
|
|
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
|
-
[
|
|
62
|
+
[w, e.isOpen]
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
65
|
_: 3
|
|
66
66
|
})
|
|
67
67
|
], 2);
|
|
68
68
|
}
|
|
69
|
-
const M = /* @__PURE__ */
|
|
69
|
+
const M = /* @__PURE__ */ k($, [["render", y]]);
|
|
70
70
|
export {
|
|
71
71
|
M as default
|
|
72
72
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as i, openBlock as d, createBlock as
|
|
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"),
|
|
7
|
-
return d(),
|
|
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:
|
|
31
|
+
style: h(e.popupMenuStyles),
|
|
32
32
|
onMenuItemClick: e.onMenuItemClick
|
|
33
|
-
},
|
|
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(
|
|
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", {
|
|
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", {
|
|
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)) :
|
|
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(
|
|
108
|
+
const D = /* @__PURE__ */ w(c, [["render", M]]);
|
|
109
109
|
export {
|
|
110
110
|
D as default
|
|
111
111
|
};
|