x-next 1.5.0 → 1.7.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_USAGE.md +57 -4
- package/CHANGELOG.md +72 -0
- package/dist/_utils/color.d.ts +53 -0
- package/dist/components/color-picker/ColorPicker.d.ts +239 -0
- package/dist/components/color-picker/gradient-slider.d.ts +52 -0
- package/dist/components/color-picker/index.d.ts +238 -0
- package/dist/components/color-picker/panel.d.ts +721 -0
- package/dist/components/color-picker/sv-panel.d.ts +48 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +3 -3
- package/dist/components/date-picker/index.d.ts +6 -6
- package/dist/components/draggable/Draggable.d.ts +1 -1
- package/dist/components/draggable/index.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +6 -6
- package/dist/components/drawer/src/Drawer.vue.d.ts +3 -3
- package/dist/components/dropdown/Dropdown.vue.d.ts +34 -4
- package/dist/components/dropdown/DropdownButton.vue.d.ts +35 -5
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +34 -4
- package/dist/components/dropdown/dropdown-panel.vue.d.ts +30 -0
- package/dist/components/dropdown/index.d.ts +209 -29
- package/dist/components/form/FormItem.vue.d.ts +12 -12
- package/dist/components/form/form-item-label.vue.d.ts +3 -3
- package/dist/components/form/index.d.ts +24 -24
- package/dist/components/form-select/Select.d.ts +3 -3
- package/dist/components/form-select/SelectDropdown.vue.d.ts +30 -0
- package/dist/components/form-select/index.d.ts +66 -6
- package/dist/components/form-slider/Slider.vue.d.ts +3 -3
- package/dist/components/form-slider/index.d.ts +6 -6
- package/dist/components/form-slider/slider-button.vue.d.ts +3 -3
- package/dist/components/grid/Row.vue.d.ts +3 -3
- package/dist/components/grid/index.d.ts +9 -9
- package/dist/components/heatmap/Heatmap.d.ts +311 -0
- package/dist/components/heatmap/helpers/matrix.d.ts +58 -0
- package/dist/components/heatmap/index.d.ts +372 -0
- package/dist/components/heatmap/interface.d.ts +57 -0
- package/dist/components/image/Image.vue.d.ts +125 -17
- package/dist/components/image/ImagePreview.vue.d.ts +97 -7
- package/dist/components/image/ImagePreviewAction.d.ts +3 -3
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +100 -7
- package/dist/components/image/hooks/use-image-drag.d.ts +2 -2
- package/dist/components/image/index.d.ts +712 -124
- package/dist/components/image/interface.d.ts +9 -1
- package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/components/menu/sub-menu-pop.vue.d.ts +3 -3
- package/dist/components/network/Network.vue.d.ts +1 -1
- package/dist/components/network/index.d.ts +3 -3
- package/dist/components/network/utils.d.ts +2 -0
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +9 -0
- package/dist/components/pagination/page-jumper.vue.d.ts +6 -0
- package/dist/components/pagination/page-options.vue.d.ts +6 -6
- package/dist/components/popconfirm/src/popup.vue.d.ts +3 -3
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popup/Popup.d.ts +1 -1
- package/dist/components/popup/index.d.ts +3 -3
- package/dist/components/skeleton/SkeletonShape.vue.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +6 -6
- package/dist/components/space/Space.d.ts +1 -1
- package/dist/components/space/index.d.ts +3 -3
- package/dist/components/spin/Spin.d.ts +38 -0
- package/dist/components/spin/index.d.ts +30 -0
- 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/TimePicker.vue.d.ts +3 -3
- package/dist/components/time-picker/index.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/trigger/Trigger.d.ts +1 -1
- package/dist/components/trigger/index.d.ts +3 -3
- package/dist/components/upload/Upload.d.ts +372 -0
- package/dist/components/upload/context.d.ts +28 -0
- package/dist/components/upload/index.d.ts +656 -0
- package/dist/components/upload/interface.d.ts +110 -0
- package/dist/components/upload/props.d.ts +321 -0
- package/dist/components/upload/upload-list-item.d.ts +15 -0
- package/dist/components/upload/upload-list.d.ts +11 -0
- package/dist/components/upload/upload-picture-item.d.ts +20 -0
- package/dist/components/upload/upload-trigger.d.ts +8 -0
- package/dist/components/upload/utils.d.ts +48 -0
- package/dist/components/watermark/Watermark.d.ts +1 -1
- package/dist/components/watermark/index.d.ts +3 -3
- package/dist/es/_styles/palette-aliases.js +10 -4
- package/dist/es/_utils/color.js +73 -0
- package/dist/es/components/button/Button.js +2 -2
- package/dist/es/components/color-picker/ColorPicker.js +239 -0
- package/dist/es/components/color-picker/gradient-slider.js +79 -0
- package/dist/es/components/color-picker/index.js +8 -0
- package/dist/es/components/color-picker/panel.js +307 -0
- package/dist/es/components/color-picker/sv-panel.js +99 -0
- package/dist/es/components/dropdown/dropdown-panel.vue.js +17 -17
- package/dist/es/components/form-input/Input.js +7 -7
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +2 -2
- package/dist/es/components/form-input-number/InputNumber.js +12 -12
- package/dist/es/components/heatmap/Heatmap.js +334 -0
- package/dist/es/components/heatmap/helpers/matrix.js +106 -0
- package/dist/es/components/heatmap/index.js +8 -0
- package/dist/es/components/image/Image.vue.js +55 -45
- package/dist/es/components/image/Image.vue2.js +113 -92
- package/dist/es/components/image/ImagePreview.vue.js +66 -53
- package/dist/es/components/image/ImagePreview.vue2.js +219 -171
- package/dist/es/components/image/ImagePreviewAction.js +12 -15
- package/dist/es/components/image/ImagePreviewGroup.vue.js +21 -20
- package/dist/es/components/image/ImagePreviewGroup.vue2.js +45 -39
- package/dist/es/components/image/hooks/use-image-drag.js +16 -14
- package/dist/es/components/index.js +123 -117
- package/dist/es/components/menu/sub-menu-pop.vue2.js +12 -12
- package/dist/es/components/network/Network.vue2.js +72 -72
- package/dist/es/components/network/utils.js +44 -35
- package/dist/es/components/pagination/Pagination.js +113 -104
- package/dist/es/components/pagination/page-item-ellipsis.vue.js +13 -12
- package/dist/es/components/pagination/page-item-ellipsis.vue2.js +19 -15
- package/dist/es/components/pagination/page-jumper.vue.js +13 -12
- package/dist/es/components/pagination/page-jumper.vue2.js +7 -4
- package/dist/es/components/pagination/page-options.vue.js +4 -3
- package/dist/es/components/pagination/page-options.vue2.js +17 -15
- package/dist/es/components/skeleton/Skeleton.vue.js +11 -9
- package/dist/es/components/skeleton/SkeletonLine.vue.js +9 -8
- package/dist/es/components/skeleton/SkeletonShape.vue.js +8 -7
- package/dist/es/components/spin/Spin.js +124 -60
- package/dist/es/components/table/Table.js +3 -1
- package/dist/es/components/trigger/Trigger.js +19 -19
- package/dist/es/components/upload/Upload.js +420 -0
- package/dist/es/components/upload/context.js +4 -0
- package/dist/es/components/upload/index.js +8 -0
- package/dist/es/components/upload/props.js +321 -0
- package/dist/es/components/upload/upload-list-item.js +138 -0
- package/dist/es/components/upload/upload-list.js +48 -0
- package/dist/es/components/upload/upload-picture-item.js +109 -0
- package/dist/es/components/upload/upload-trigger.js +89 -0
- package/dist/es/components/upload/utils.js +195 -0
- package/dist/es/icons/_self/empty-better.js +25 -8
- package/dist/es/icons/_self/upload-icons.js +103 -0
- package/dist/es/index.js +168 -162
- package/dist/es/locale/en-US.js +39 -1
- package/dist/es/locale/zh-CN.js +39 -1
- package/dist/es/style.css +1 -1
- package/dist/icons/_self/upload-icons.d.ts +523 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +60 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/color-picker.css +1 -0
- package/dist/style/color-picker.js +2 -0
- package/dist/style/date-picker.css +1 -1
- package/dist/style/empty.css +1 -1
- package/dist/style/form-checkbox.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/heatmap.css +1 -0
- package/dist/style/heatmap.js +2 -0
- package/dist/style/image.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/skeleton.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/upload.css +1 -0
- package/dist/style/upload.js +2 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
- package/volar.d.ts +3 -0
- package/dist/es/_hooks/use-popup-overflow-hidden.js +0 -29
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, toRefs as D, reactive as b, computed as r, ref as E, watch as F, provide as H } from "vue";
|
|
2
2
|
import C from "../../_hooks/use-merge-state.js";
|
|
3
|
-
import
|
|
4
|
-
import { PreviewGroupInjectionKey as
|
|
3
|
+
import J from "./ImagePreview.vue.js";
|
|
4
|
+
import { PreviewGroupInjectionKey as Q } from "./context.js";
|
|
5
5
|
import { isArray as A, isUndefined as s } from "../../_utils/is.js";
|
|
6
|
-
|
|
6
|
+
import { useLocale as W } from "../../locale/index.js";
|
|
7
|
+
const re = /* @__PURE__ */ q({
|
|
7
8
|
name: "ImagePreviewGroup",
|
|
8
9
|
components: {
|
|
9
|
-
ImagePreview:
|
|
10
|
+
ImagePreview: J
|
|
10
11
|
},
|
|
11
12
|
inheritAttrs: !1,
|
|
12
13
|
props: {
|
|
@@ -120,21 +121,23 @@ const $ = /* @__PURE__ */ T({
|
|
|
120
121
|
emit: m
|
|
121
122
|
}) {
|
|
122
123
|
const {
|
|
124
|
+
t: U
|
|
125
|
+
} = W(), {
|
|
123
126
|
srcList: n,
|
|
124
|
-
visible:
|
|
125
|
-
defaultVisible:
|
|
126
|
-
current:
|
|
127
|
+
visible: M,
|
|
128
|
+
defaultVisible: S,
|
|
129
|
+
current: L,
|
|
127
130
|
defaultCurrent: N,
|
|
128
131
|
infinite: w
|
|
129
|
-
} =
|
|
130
|
-
value:
|
|
132
|
+
} = D(B), [h, O] = C(S.value, b({
|
|
133
|
+
value: M
|
|
131
134
|
})), g = (e) => {
|
|
132
135
|
e !== h.value && (m("visible-change", e), m("update:visible", e), O(e));
|
|
133
136
|
}, k = r(() => new Map(A(n == null ? void 0 : n.value) ? n == null ? void 0 : n.value.map((e, t) => [t, {
|
|
134
137
|
url: e,
|
|
135
138
|
canPreview: !0
|
|
136
|
-
}]) : [])), x = r(() => A(n == null ? void 0 : n.value)), c =
|
|
137
|
-
function
|
|
139
|
+
}]) : [])), x = r(() => A(n == null ? void 0 : n.value)), c = E(/* @__PURE__ */ new Map()), f = r(() => x.value ? k.value : c.value), z = r(() => Array.from(c.value.keys())), d = r(() => Array.from(f.value.keys())), o = r(() => d.value.length);
|
|
140
|
+
function R(e, t, u) {
|
|
138
141
|
return c.value.set(e, {
|
|
139
142
|
url: t,
|
|
140
143
|
canPreview: u
|
|
@@ -142,21 +145,21 @@ const $ = /* @__PURE__ */ T({
|
|
|
142
145
|
c.value.delete(e);
|
|
143
146
|
};
|
|
144
147
|
}
|
|
145
|
-
const [a,
|
|
146
|
-
value:
|
|
148
|
+
const [a, _] = C(N.value, b({
|
|
149
|
+
value: L
|
|
147
150
|
})), v = (e) => {
|
|
148
|
-
e !== a.value && (m("change", e), m("update:current", e),
|
|
149
|
-
},
|
|
151
|
+
e !== a.value && (m("change", e), m("update:current", e), _(e));
|
|
152
|
+
}, j = r(() => d.value[a.value]), G = (e) => {
|
|
150
153
|
const t = d.value.indexOf(e);
|
|
151
154
|
t >= 0 && t !== a.value && v(t);
|
|
152
|
-
},
|
|
155
|
+
}, V = r(() => {
|
|
153
156
|
var e;
|
|
154
|
-
return (e = f.value.get(
|
|
157
|
+
return (e = f.value.get(j.value)) == null ? void 0 : e.url;
|
|
155
158
|
});
|
|
156
|
-
|
|
157
|
-
[
|
|
159
|
+
F(
|
|
160
|
+
[o, a],
|
|
158
161
|
() => {
|
|
159
|
-
if (
|
|
162
|
+
if (o.value === 0) {
|
|
160
163
|
g(!1);
|
|
161
164
|
return;
|
|
162
165
|
}
|
|
@@ -164,64 +167,67 @@ const $ = /* @__PURE__ */ T({
|
|
|
164
167
|
v(0);
|
|
165
168
|
return;
|
|
166
169
|
}
|
|
167
|
-
a.value >=
|
|
170
|
+
a.value >= o.value && v(o.value - 1);
|
|
168
171
|
},
|
|
169
172
|
// 自动收集模式须等子图片注册;显式列表在 setup 时即可检查边界。
|
|
170
173
|
{
|
|
171
174
|
immediate: x.value
|
|
172
175
|
}
|
|
173
|
-
),
|
|
174
|
-
registerImageUrl:
|
|
176
|
+
), H(Q, b({
|
|
177
|
+
registerImageUrl: R,
|
|
175
178
|
preview: (e) => {
|
|
176
179
|
if (x.value) {
|
|
177
|
-
const u = c.value.get(e),
|
|
178
|
-
|
|
180
|
+
const u = c.value.get(e), i = u != null && u.canPreview ? z.value.indexOf(e) : -1;
|
|
181
|
+
i >= 0 && i < o.value && (v(i), g(!0));
|
|
179
182
|
return;
|
|
180
183
|
}
|
|
181
184
|
const t = f.value.get(e);
|
|
182
|
-
t != null && t.canPreview && (
|
|
185
|
+
t != null && t.canPreview && (G(e), g(!0));
|
|
183
186
|
}
|
|
184
187
|
}));
|
|
185
188
|
const y = r(() => {
|
|
186
|
-
const e = (u,
|
|
189
|
+
const e = (u, i) => {
|
|
187
190
|
var p;
|
|
188
|
-
for (let l = u; l <=
|
|
191
|
+
for (let l = u; l <= i; l++) {
|
|
189
192
|
const P = d.value[l];
|
|
190
193
|
if ((p = f.value.get(P)) != null && p.canPreview)
|
|
191
194
|
return l;
|
|
192
195
|
}
|
|
193
|
-
}, t = e(a.value + 1,
|
|
196
|
+
}, t = e(a.value + 1, o.value - 1);
|
|
194
197
|
return s(t) && w.value ? e(0, a.value - 1) : t;
|
|
195
198
|
}), I = r(() => {
|
|
196
|
-
const e = (u,
|
|
199
|
+
const e = (u, i) => {
|
|
197
200
|
var p;
|
|
198
|
-
for (let l = u; l >=
|
|
201
|
+
for (let l = u; l >= i; l--) {
|
|
199
202
|
const P = d.value[l];
|
|
200
203
|
if ((p = f.value.get(P)) != null && p.canPreview)
|
|
201
204
|
return l;
|
|
202
205
|
}
|
|
203
206
|
}, t = e(a.value - 1, 0);
|
|
204
|
-
return s(t) && w.value ? e(
|
|
205
|
-
}),
|
|
207
|
+
return s(t) && w.value ? e(o.value - 1, a.value + 1) : t;
|
|
208
|
+
}), K = r(() => s(I.value) ? void 0 : () => {
|
|
206
209
|
!s(I.value) && v(I.value);
|
|
207
|
-
}),
|
|
210
|
+
}), T = r(() => s(y.value) ? void 0 : () => {
|
|
208
211
|
!s(y.value) && v(y.value);
|
|
209
212
|
});
|
|
210
213
|
return {
|
|
214
|
+
t: U,
|
|
215
|
+
currentIndex: a,
|
|
216
|
+
imageCount: o,
|
|
211
217
|
mergedVisible: h,
|
|
212
|
-
currentUrl:
|
|
218
|
+
currentUrl: V,
|
|
213
219
|
prevIndex: I,
|
|
214
220
|
nextIndex: y,
|
|
215
221
|
onClose() {
|
|
216
222
|
g(!1);
|
|
217
223
|
},
|
|
218
224
|
groupArrowProps: b({
|
|
219
|
-
onPrev:
|
|
220
|
-
onNext:
|
|
225
|
+
onPrev: K,
|
|
226
|
+
onNext: T
|
|
221
227
|
})
|
|
222
228
|
};
|
|
223
229
|
}
|
|
224
230
|
});
|
|
225
231
|
export {
|
|
226
|
-
|
|
232
|
+
re as default
|
|
227
233
|
};
|
|
@@ -2,39 +2,41 @@ import { toRefs as E, ref as x, watchEffect as R, watch as X, nextTick as Y } fr
|
|
|
2
2
|
import { on as s, off as f } from "../../../_utils/dom.js";
|
|
3
3
|
import h from "../utils/get-fix-translate.js";
|
|
4
4
|
function B(D) {
|
|
5
|
-
const { wrapperEl: v, imageEl:
|
|
6
|
-
let i = 0, c = 0,
|
|
5
|
+
const { wrapperEl: v, imageEl: l, scale: n } = E(D), t = x([0, 0]), o = x(!1);
|
|
6
|
+
let i = 0, c = 0, r = [0, 0];
|
|
7
7
|
const T = () => {
|
|
8
|
-
if (!v.value || !
|
|
9
|
-
const e = v.value.getBoundingClientRect(),
|
|
8
|
+
if (!v.value || !l.value) return;
|
|
9
|
+
const e = v.value.getBoundingClientRect(), a = l.value.getBoundingClientRect(), [u, d] = h(
|
|
10
10
|
e,
|
|
11
|
-
|
|
11
|
+
a,
|
|
12
12
|
t.value[0],
|
|
13
13
|
t.value[1],
|
|
14
14
|
n.value
|
|
15
15
|
);
|
|
16
|
-
(
|
|
16
|
+
(u !== t.value[0] || d !== t.value[1]) && (t.value = [u, d]);
|
|
17
17
|
}, p = (e) => {
|
|
18
18
|
e.preventDefault && e.preventDefault();
|
|
19
|
-
const
|
|
20
|
-
t.value = [
|
|
19
|
+
const a = r[0] + (e.pageX - i) / n.value, u = r[1] + (e.pageY - c) / n.value;
|
|
20
|
+
t.value = [a, u];
|
|
21
21
|
}, g = (e) => {
|
|
22
|
-
e.preventDefault && e.preventDefault(),
|
|
22
|
+
e.preventDefault && e.preventDefault(), o.value = !1, w();
|
|
23
23
|
}, m = (e) => {
|
|
24
|
-
e.target === e.currentTarget && (e.preventDefault && e.preventDefault(),
|
|
24
|
+
e.target === e.currentTarget && (e.preventDefault && e.preventDefault(), o.value = !0, i = e.pageX, c = e.pageY, r = [...t.value], s(window, "mousemove", p, !1), s(window, "mouseup", g, !1));
|
|
25
25
|
};
|
|
26
26
|
function w() {
|
|
27
27
|
typeof window > "u" || (f(window, "mousemove", p, !1), f(window, "mouseup", g, !1));
|
|
28
28
|
}
|
|
29
29
|
return R((e) => {
|
|
30
|
-
typeof window > "u"
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
if (typeof window > "u") return;
|
|
31
|
+
const a = l.value;
|
|
32
|
+
a && s(a, "mousedown", m), e(() => {
|
|
33
|
+
a && f(a, "mousedown", m), o.value = !1, w();
|
|
34
|
+
});
|
|
33
35
|
}), X([n], () => {
|
|
34
36
|
Y(() => T());
|
|
35
37
|
}), {
|
|
36
38
|
translate: t,
|
|
37
|
-
moving:
|
|
39
|
+
moving: o,
|
|
38
40
|
resetTranslate() {
|
|
39
41
|
t.value = [0, 0];
|
|
40
42
|
}
|
|
@@ -4,159 +4,165 @@ import { ConfigProvider as x } from "./config-provider/index.js";
|
|
|
4
4
|
import { Dialog as n } from "./dialog/index.js";
|
|
5
5
|
import { Drawer as u } from "./drawer/index.js";
|
|
6
6
|
import { Dropdown as c, DropdownButton as d, DropdownGroup as T, DropdownOption as S, DropdownSubmenu as g } from "./dropdown/index.js";
|
|
7
|
-
import { Empty as
|
|
8
|
-
import { DatePicker as b, MonthPicker as s, QuarterPicker as w, RangePicker as L, WeekPicker as
|
|
7
|
+
import { Empty as I } from "./empty/index.js";
|
|
8
|
+
import { DatePicker as b, MonthPicker as s, QuarterPicker as w, RangePicker as L, WeekPicker as C, YearPicker as D } from "./date-picker/index.js";
|
|
9
9
|
import { Form as G, FormItem as h } from "./form/index.js";
|
|
10
10
|
import { Checkbox as M, CheckboxGroup as R } from "./form-checkbox/index.js";
|
|
11
11
|
import { Input as B, InputGroup as E, InputPassword as _, InputSearch as N } from "./form-input/index.js";
|
|
12
12
|
import { InputNumber as j } from "./form-input-number/index.js";
|
|
13
|
-
import { InputTag as
|
|
14
|
-
import { Radio as
|
|
15
|
-
import { Select as
|
|
13
|
+
import { InputTag as H } from "./form-input-tag/index.js";
|
|
14
|
+
import { Radio as W, RadioGroup as U } from "./form-radio/index.js";
|
|
15
|
+
import { Select as Q, SelectDropdown as Y, SelectOption as Z, SelectOptionGroup as q } from "./form-select/index.js";
|
|
16
16
|
import { Slider as V } from "./form-slider/index.js";
|
|
17
17
|
import { Switch as $ } from "./form-switch/index.js";
|
|
18
18
|
import { Textarea as ro } from "./form-textarea/index.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
19
|
+
import { ColorPicker as to } from "./color-picker/index.js";
|
|
20
|
+
import { Draggable as mo } from "./draggable/index.js";
|
|
21
|
+
import { Col as xo, Grid as ao, GridItem as no, Row as io } from "./grid/index.js";
|
|
22
|
+
import { Heatmap as lo } from "./heatmap/index.js";
|
|
23
|
+
import { Image as To, ImagePreview as So, ImagePreviewAction as go, ImagePreviewGroup as Po } from "./image/index.js";
|
|
24
|
+
import { Layout as ko, LayoutContent as bo, LayoutFooter as so, LayoutHeader as wo, LayoutSidebar as Lo } from "./layout/index.js";
|
|
25
|
+
import { Link as Do } from "./link/index.js";
|
|
26
|
+
import { Menu as Go, MenuItem as ho, MenuItemGroup as vo, MenuSubMenu as Mo } from "./menu/index.js";
|
|
27
|
+
import { Message as Ao } from "./message/index.js";
|
|
28
|
+
import { Network as Eo } from "./network/index.js";
|
|
29
|
+
import { Notification as No } from "./notification/index.js";
|
|
30
|
+
import { Pagination as jo } from "./pagination/index.js";
|
|
31
|
+
import { Popconfirm as Ho } from "./popconfirm/index.js";
|
|
32
|
+
import { Popover as Wo } from "./popover/index.js";
|
|
33
|
+
import { Popup as zo } from "./popup/index.js";
|
|
34
|
+
import { Progress as Yo } from "./progress/index.js";
|
|
35
|
+
import { Rate as qo } from "./rate/index.js";
|
|
36
|
+
import { ResizeBox as Vo } from "./resize-box/index.js";
|
|
37
|
+
import { Scrollbar as $o } from "./scrollbar-v2/index.js";
|
|
38
|
+
import { Skeleton as rr, SkeletonLine as er, SkeletonShape as tr } from "./skeleton/index.js";
|
|
39
|
+
import { Space as mr } from "./space/index.js";
|
|
40
|
+
import { Spin as xr } from "./spin/index.js";
|
|
41
|
+
import { Step as nr, Steps as ir } from "./steps/index.js";
|
|
42
|
+
import { Table as lr, TableColumn as cr } from "./table/index.js";
|
|
43
|
+
import { TabPane as Tr, Tabs as Sr } from "./tabs/index.js";
|
|
44
|
+
import { Tag as Pr } from "./tag/index.js";
|
|
45
|
+
import { TimePicker as kr } from "./time-picker/index.js";
|
|
46
|
+
import { TimeRangeSelector as sr } from "./time-range-selector/index.js";
|
|
47
|
+
import { Timeline as Lr } from "./timeline/index.js";
|
|
48
|
+
import { TimelineItem as Dr } from "./timeline-item/index.js";
|
|
49
|
+
import { Tooltip as Gr } from "./tooltip/index.js";
|
|
50
|
+
import { TrendChart as vr } from "./trend-chart/index.js";
|
|
51
|
+
import { Trigger as Rr } from "./trigger/index.js";
|
|
52
|
+
import { Upload as Br } from "./upload/index.js";
|
|
53
|
+
import { Watermark as _r } from "./watermark/index.js";
|
|
54
|
+
import { TABLE_LOCALE_EN_US as Or, TABLE_LOCALE_ZH_CN as jr, formatLocaleText as Fr } from "./table/locale.js";
|
|
55
|
+
import { default as Kr } from "./table/table-tbody.js";
|
|
56
|
+
import { default as Ur } from "./table/table-td.js";
|
|
57
|
+
import { default as Qr } from "./table/table-th.js";
|
|
58
|
+
import { default as Zr } from "./table/table-thead.js";
|
|
59
|
+
import { default as Jr } from "./table/table-tr.js";
|
|
60
|
+
import { configProviderInjectionKey as Xr } from "./config-provider/context.js";
|
|
61
|
+
import { formInjectionKey as oe, formItemInjectionKey as re } from "./form/context.js";
|
|
62
|
+
import { vDraggable as te } from "./draggable/directive.js";
|
|
63
|
+
import { vWatermark as me } from "./watermark/directive.js";
|
|
61
64
|
export {
|
|
62
65
|
e as Alert,
|
|
63
66
|
p as Button,
|
|
64
67
|
m as ButtonGroup,
|
|
65
68
|
M as Checkbox,
|
|
66
69
|
R as CheckboxGroup,
|
|
67
|
-
|
|
70
|
+
xo as Col,
|
|
71
|
+
to as ColorPicker,
|
|
68
72
|
x as ConfigProvider,
|
|
69
73
|
b as DatePicker,
|
|
70
74
|
n as Dialog,
|
|
71
|
-
|
|
75
|
+
mo as Draggable,
|
|
72
76
|
u as Drawer,
|
|
73
77
|
c as Dropdown,
|
|
74
78
|
d as DropdownButton,
|
|
75
79
|
T as DropdownGroup,
|
|
76
80
|
S as DropdownOption,
|
|
77
81
|
g as DropdownSubmenu,
|
|
78
|
-
|
|
82
|
+
I as Empty,
|
|
79
83
|
G as Form,
|
|
80
84
|
h as FormItem,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
ao as Grid,
|
|
86
|
+
no as GridItem,
|
|
87
|
+
lo as Heatmap,
|
|
88
|
+
To as Image,
|
|
89
|
+
So as ImagePreview,
|
|
90
|
+
go as ImagePreviewAction,
|
|
91
|
+
Po as ImagePreviewGroup,
|
|
87
92
|
B as Input,
|
|
88
93
|
E as InputGroup,
|
|
89
94
|
j as InputNumber,
|
|
90
95
|
_ as InputPassword,
|
|
91
96
|
N as InputSearch,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
H as InputTag,
|
|
98
|
+
ko as Layout,
|
|
99
|
+
bo as LayoutContent,
|
|
100
|
+
so as LayoutFooter,
|
|
101
|
+
wo as LayoutHeader,
|
|
102
|
+
Lo as LayoutSidebar,
|
|
103
|
+
Do as Link,
|
|
104
|
+
Go as Menu,
|
|
105
|
+
ho as MenuItem,
|
|
106
|
+
vo as MenuItemGroup,
|
|
107
|
+
Mo as MenuSubMenu,
|
|
108
|
+
Ao as Message,
|
|
104
109
|
s as MonthPicker,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Eo as Network,
|
|
111
|
+
No as Notification,
|
|
112
|
+
jo as Pagination,
|
|
113
|
+
Ho as Popconfirm,
|
|
114
|
+
Wo as Popover,
|
|
115
|
+
zo as Popup,
|
|
116
|
+
Yo as Progress,
|
|
112
117
|
w as QuarterPicker,
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
W as Radio,
|
|
119
|
+
U as RadioGroup,
|
|
115
120
|
L as RangePicker,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
qo as Rate,
|
|
122
|
+
Vo as ResizeBox,
|
|
123
|
+
io as Row,
|
|
124
|
+
$o as Scrollbar,
|
|
125
|
+
Q as Select,
|
|
121
126
|
Y as SelectDropdown,
|
|
122
127
|
Z as SelectOption,
|
|
123
128
|
q as SelectOptionGroup,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
rr as Skeleton,
|
|
130
|
+
er as SkeletonLine,
|
|
131
|
+
tr as SkeletonShape,
|
|
127
132
|
V as Slider,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
mr as Space,
|
|
134
|
+
xr as Spin,
|
|
135
|
+
nr as Step,
|
|
136
|
+
ir as Steps,
|
|
132
137
|
$ as Switch,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
Or as TABLE_LOCALE_EN_US,
|
|
139
|
+
jr as TABLE_LOCALE_ZH_CN,
|
|
140
|
+
Tr as TabPane,
|
|
141
|
+
lr as Table,
|
|
142
|
+
cr as TableColumn,
|
|
143
|
+
Sr as Tabs,
|
|
144
|
+
Pr as Tag,
|
|
145
|
+
Kr as Tbody,
|
|
146
|
+
Ur as Td,
|
|
142
147
|
ro as Textarea,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
148
|
+
Qr as Th,
|
|
149
|
+
Zr as Thead,
|
|
150
|
+
kr as TimePicker,
|
|
151
|
+
sr as TimeRangeSelector,
|
|
152
|
+
Lr as Timeline,
|
|
153
|
+
Dr as TimelineItem,
|
|
154
|
+
Gr as Tooltip,
|
|
155
|
+
Jr as Tr,
|
|
156
|
+
vr as TrendChart,
|
|
157
|
+
Rr as Trigger,
|
|
158
|
+
Br as Upload,
|
|
159
|
+
_r as Watermark,
|
|
160
|
+
C as WeekPicker,
|
|
161
|
+
D as YearPicker,
|
|
162
|
+
Xr as configProviderInjectionKey,
|
|
163
|
+
oe as formInjectionKey,
|
|
164
|
+
re as formItemInjectionKey,
|
|
165
|
+
Fr as formatLocaleText,
|
|
166
|
+
te as vDraggable,
|
|
167
|
+
me as vWatermark
|
|
162
168
|
};
|
|
@@ -40,16 +40,16 @@ const Q = S({
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
setup(s) {
|
|
43
|
-
const { key: l } = N(), { level: a } = _(), { selectable: u, disabled: p, isChildrenSelected: C, popupMaxHeight: x } = B(s), t = V(), { onSubMenuClick: r, onMenuItemClick: n } = t, m = o(() => t.prefixCls),
|
|
44
|
-
() => u.value &&
|
|
43
|
+
const { key: l } = N(), { level: a } = _(), { selectable: u, disabled: p, isChildrenSelected: C, popupMaxHeight: x } = B(s), t = V(), { onSubMenuClick: r, onMenuItemClick: n } = t, m = o(() => t.prefixCls), f = o(() => t.mode), v = o(() => t.selectedKeys || []), i = o(() => `${m.value}-pop`), d = o(
|
|
44
|
+
() => u.value && v.value.includes(l.value) || C.value
|
|
45
45
|
), M = o(() => [
|
|
46
46
|
`${i.value}`,
|
|
47
47
|
`${i.value}-header`,
|
|
48
48
|
{
|
|
49
|
-
[`${m.value}-selected`]:
|
|
49
|
+
[`${m.value}-selected`]: d.value
|
|
50
50
|
}
|
|
51
|
-
]), h = o(() =>
|
|
52
|
-
|
|
51
|
+
]), h = o(() => f.value === "horizontal" && !t.inTrigger), g = P(!1), c = (e) => {
|
|
52
|
+
g.value = e;
|
|
53
53
|
}, y = w("trigger"), k = o(() => {
|
|
54
54
|
var e;
|
|
55
55
|
return [
|
|
@@ -63,14 +63,14 @@ const Q = S({
|
|
|
63
63
|
}), b = o(() => I(t.triggerProps || {}, ["class"]));
|
|
64
64
|
return {
|
|
65
65
|
menuPrefixCls: m,
|
|
66
|
-
mode:
|
|
66
|
+
mode: f,
|
|
67
67
|
level: a,
|
|
68
68
|
classNames: M,
|
|
69
|
-
isSelected:
|
|
69
|
+
isSelected: d,
|
|
70
70
|
disabled: p,
|
|
71
|
-
selectedKeys:
|
|
71
|
+
selectedKeys: v,
|
|
72
72
|
needPopOnBottom: h,
|
|
73
|
-
popVisible:
|
|
73
|
+
popVisible: g,
|
|
74
74
|
className: y,
|
|
75
75
|
triggerClassNames: k,
|
|
76
76
|
triggerProps: b,
|
|
@@ -83,13 +83,13 @@ const Q = S({
|
|
|
83
83
|
p.value || s._internalSkipCollect || (r && r(l.value, a.value), u.value && n && n(l.value));
|
|
84
84
|
},
|
|
85
85
|
onKeydown: (e) => {
|
|
86
|
-
p.value || s._internalSkipCollect || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r && r(l.value, a.value), u.value && n && n(l.value));
|
|
86
|
+
p.value || s._internalSkipCollect || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r && r(l.value, a.value), c(!0), u.value && n && n(l.value));
|
|
87
87
|
},
|
|
88
88
|
onMenuItemClick: (e) => {
|
|
89
|
-
n && n(e),
|
|
89
|
+
n && n(e), c(!1);
|
|
90
90
|
},
|
|
91
91
|
onVisibleChange: (e) => {
|
|
92
|
-
|
|
92
|
+
c(e);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
}
|