x-next 1.18.2 → 1.19.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/catalog.md +3 -2
- package/AI_USAGE/components/alert-api.md +1 -1
- package/AI_USAGE/components/alert.md +1 -1
- package/AI_USAGE/components/bar-chart-api.md +1 -1
- package/AI_USAGE/components/bar-chart.md +1 -1
- package/AI_USAGE/components/boxicons.md +1 -1
- package/AI_USAGE/components/button-api.md +1 -1
- package/AI_USAGE/components/button.md +1 -1
- package/AI_USAGE/components/charts.md +1 -1
- package/AI_USAGE/components/checkbox-api.md +1 -1
- package/AI_USAGE/components/checkbox.md +1 -1
- package/AI_USAGE/components/color-picker-api.md +1 -1
- package/AI_USAGE/components/color-picker.md +1 -1
- package/AI_USAGE/components/config-provider-api.md +1 -1
- package/AI_USAGE/components/config-provider.md +1 -1
- package/AI_USAGE/components/date-picker-api.md +1 -1
- package/AI_USAGE/components/date-picker.md +1 -1
- package/AI_USAGE/components/dialog-api.md +1 -1
- package/AI_USAGE/components/dialog.md +1 -1
- package/AI_USAGE/components/draggable-api.md +1 -1
- package/AI_USAGE/components/draggable.md +1 -1
- package/AI_USAGE/components/drawer-api.md +1 -1
- package/AI_USAGE/components/drawer.md +1 -1
- package/AI_USAGE/components/dropdown-api.md +1 -1
- package/AI_USAGE/components/dropdown.md +1 -1
- package/AI_USAGE/components/empty-api.md +1 -1
- package/AI_USAGE/components/empty.md +1 -1
- package/AI_USAGE/components/finicon.md +1 -1
- package/AI_USAGE/components/form-api.md +1 -1
- package/AI_USAGE/components/form.md +1 -1
- package/AI_USAGE/components/grid-api.md +1 -1
- package/AI_USAGE/components/grid.md +1 -1
- package/AI_USAGE/components/heatmap-api.md +1 -1
- package/AI_USAGE/components/heatmap.md +1 -1
- package/AI_USAGE/components/icon-api.md +1 -1
- package/AI_USAGE/components/icon.md +1 -1
- package/AI_USAGE/components/image-api.md +1 -1
- package/AI_USAGE/components/image.md +1 -1
- package/AI_USAGE/components/input-api.md +1 -1
- package/AI_USAGE/components/input-number-api.md +1 -1
- package/AI_USAGE/components/input-number.md +1 -1
- package/AI_USAGE/components/input-tag-api.md +1 -1
- package/AI_USAGE/components/input-tag.md +1 -1
- package/AI_USAGE/components/input.md +1 -1
- package/AI_USAGE/components/layout-api.md +1 -1
- package/AI_USAGE/components/layout.md +1 -1
- package/AI_USAGE/components/line-chart-api.md +1 -1
- package/AI_USAGE/components/line-chart.md +1 -1
- package/AI_USAGE/components/link-api.md +1 -1
- package/AI_USAGE/components/link.md +1 -1
- package/AI_USAGE/components/menu-api.md +1 -1
- package/AI_USAGE/components/menu.md +1 -1
- package/AI_USAGE/components/message-api.md +1 -1
- package/AI_USAGE/components/message-box-api.md +1 -1
- package/AI_USAGE/components/message-box.md +1 -1
- package/AI_USAGE/components/message.md +1 -1
- package/AI_USAGE/components/network-api.md +1 -1
- package/AI_USAGE/components/network.md +1 -1
- package/AI_USAGE/components/notification-api.md +1 -1
- package/AI_USAGE/components/notification.md +1 -1
- package/AI_USAGE/components/pagination-api.md +1 -1
- package/AI_USAGE/components/pagination.md +1 -1
- package/AI_USAGE/components/pie-chart-api.md +1 -1
- package/AI_USAGE/components/pie-chart.md +1 -1
- package/AI_USAGE/components/popconfirm-api.md +1 -1
- package/AI_USAGE/components/popconfirm.md +1 -1
- package/AI_USAGE/components/popover-api.md +1 -1
- package/AI_USAGE/components/popover.md +1 -1
- package/AI_USAGE/components/popup-api.md +1 -1
- package/AI_USAGE/components/popup.md +1 -1
- package/AI_USAGE/components/progress-api.md +1 -1
- package/AI_USAGE/components/progress.md +1 -1
- package/AI_USAGE/components/radio-api.md +1 -1
- package/AI_USAGE/components/radio.md +1 -1
- package/AI_USAGE/components/rate-api.md +1 -1
- package/AI_USAGE/components/rate.md +1 -1
- package/AI_USAGE/components/resize-box-api.md +1 -1
- package/AI_USAGE/components/resize-box.md +1 -1
- package/AI_USAGE/components/scrollbar-api.md +1 -1
- package/AI_USAGE/components/scrollbar.md +1 -1
- package/AI_USAGE/components/select-api.md +1 -1
- package/AI_USAGE/components/select.md +1 -1
- package/AI_USAGE/components/skeleton-api.md +1 -1
- package/AI_USAGE/components/skeleton.md +1 -1
- package/AI_USAGE/components/slider-api.md +1 -1
- package/AI_USAGE/components/slider.md +1 -1
- package/AI_USAGE/components/space-api.md +1 -1
- package/AI_USAGE/components/space.md +1 -1
- package/AI_USAGE/components/spin-api.md +1 -1
- package/AI_USAGE/components/spin.md +1 -1
- package/AI_USAGE/components/steps-api.md +1 -1
- package/AI_USAGE/components/steps.md +1 -1
- package/AI_USAGE/components/switch-api.md +1 -1
- package/AI_USAGE/components/switch.md +1 -1
- package/AI_USAGE/components/table-api.md +1 -1
- package/AI_USAGE/components/table.md +1 -1
- package/AI_USAGE/components/tabs-api.md +1 -1
- package/AI_USAGE/components/tabs.md +1 -1
- package/AI_USAGE/components/tag-api.md +1 -1
- package/AI_USAGE/components/tag.md +1 -1
- package/AI_USAGE/components/textarea-api.md +1 -1
- package/AI_USAGE/components/textarea.md +1 -1
- package/AI_USAGE/components/time-picker-api.md +1 -1
- package/AI_USAGE/components/time-picker.md +1 -1
- package/AI_USAGE/components/time-range-selector-api.md +1 -1
- package/AI_USAGE/components/time-range-selector.md +1 -1
- package/AI_USAGE/components/timeline-api.md +1 -1
- package/AI_USAGE/components/timeline.md +1 -1
- package/AI_USAGE/components/tooltip-api.md +1 -1
- package/AI_USAGE/components/tooltip.md +1 -1
- package/AI_USAGE/components/transfer-api.md +1 -1
- package/AI_USAGE/components/transfer.md +1 -1
- package/AI_USAGE/components/tree-select-api.md +1 -1
- package/AI_USAGE/components/tree-select.md +1 -1
- package/AI_USAGE/components/trend-chart-api.md +1 -1
- package/AI_USAGE/components/trend-chart.md +1 -1
- package/AI_USAGE/components/trigger-api.md +1 -1
- package/AI_USAGE/components/trigger.md +1 -1
- package/AI_USAGE/components/upload-api.md +1 -1
- package/AI_USAGE/components/upload.md +1 -1
- package/AI_USAGE/components/virtual-list-api.md +135 -0
- package/AI_USAGE/components/virtual-list.md +62 -0
- package/AI_USAGE/components/watermark-api.md +1 -1
- package/AI_USAGE/components/watermark.md +1 -1
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +3 -2
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +180 -3
- package/CHANGELOG.md +17 -0
- package/dist/components/form-select/index.d.ts +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/pagination/page-options.vue.d.ts +3 -3
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/transfer/index.d.ts +3 -3
- package/dist/components/tree-select/index.d.ts +3 -3
- package/dist/components/virtual-list-v2/index.d.ts +1052 -2
- package/dist/components/virtual-list-v2/interface.d.ts +6 -0
- package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +32 -1
- package/dist/es/components/form-select/Select.js +1 -1
- package/dist/es/components/index.js +85 -83
- package/dist/es/components/resize-box/ResizeBox.vue2.js +84 -81
- package/dist/es/components/table/Table.js +1 -1
- package/dist/es/components/transfer/transfer-panel.js +1 -1
- package/dist/es/components/tree-select/TreeSelect.js +1 -1
- package/dist/es/components/virtual-list-v2/index.js +6 -2
- package/dist/es/components/virtual-list-v2/virtual-list.vue.js +18 -17
- package/dist/es/components/virtual-list-v2/virtual-list.vue2.js +97 -70
- package/dist/es/index.js +55 -53
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/types.d.ts +1 -0
- package/package.json +4 -4
- package/volar.d.ts +1 -0
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import d from "./virtual-list.vue2.js";
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
const a =
|
|
6
|
-
return
|
|
2
|
+
import { resolveComponent as p, openBlock as o, createBlock as t, resolveDynamicComponent as s, mergeProps as r, withCtx as n, createElementBlock as m, Fragment as f, renderList as g, normalizeStyle as u, renderSlot as y } from "vue";
|
|
3
|
+
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function S(e, $, z, C, P, b) {
|
|
5
|
+
const a = p("VirtualListItem");
|
|
6
|
+
return o(), t(s(e.displayScrollbar ? "ScrollbarComponent" : e.mergedComponent.container), r({
|
|
7
7
|
ref: "wrapperComRef",
|
|
8
8
|
class: e.className.block,
|
|
9
9
|
style: e.style
|
|
10
10
|
}, e.scrollbarProps, { onScroll: e.onScroll }), {
|
|
11
11
|
default: n(() => [
|
|
12
|
-
(
|
|
12
|
+
(o(), t(s(e.mergedComponent.list), r(e.listAttrs, {
|
|
13
13
|
style: e.paddingPosition === "list" ? {
|
|
14
14
|
paddingTop: `${e.frontPadding}px`,
|
|
15
15
|
paddingBottom: `${e.behindPadding}px`
|
|
16
16
|
} : {}
|
|
17
17
|
}), {
|
|
18
18
|
default: n(() => [
|
|
19
|
-
(
|
|
20
|
-
style: e.paddingPosition === "content" ? {
|
|
19
|
+
(o(), t(s(e.mergedComponent.content), r({ ref: "contentRef" }, e.contentAttrs, {
|
|
20
|
+
style: e.positioned ? { position: "relative", height: `${e.data.length * e.estimatedSize}px` } : e.paddingPosition === "content" ? {
|
|
21
21
|
paddingTop: `${e.frontPadding}px`,
|
|
22
22
|
paddingBottom: `${e.behindPadding}px`
|
|
23
23
|
} : {}
|
|
24
24
|
}), {
|
|
25
25
|
default: n(() => [
|
|
26
|
-
(
|
|
27
|
-
key:
|
|
26
|
+
(o(!0), m(f, null, g(e.renderedItems, ({ item: l, index: i }) => (o(), t(a, {
|
|
27
|
+
key: l[e.itemKey] ?? i,
|
|
28
28
|
"has-item-size": e.hasItemSize,
|
|
29
|
-
"set-item-size": e.setItemSize
|
|
29
|
+
"set-item-size": e.setItemSize,
|
|
30
|
+
style: u(e.positioned ? { position: "absolute", top: `${i * e.estimatedSize}px`, width: "100%" } : void 0)
|
|
30
31
|
}, {
|
|
31
32
|
default: n(() => [
|
|
32
|
-
|
|
33
|
-
item:
|
|
34
|
-
index:
|
|
33
|
+
y(e.$slots, "item", {
|
|
34
|
+
item: l,
|
|
35
|
+
index: i
|
|
35
36
|
})
|
|
36
37
|
]),
|
|
37
38
|
_: 2
|
|
38
|
-
}, 1032, ["has-item-size", "set-item-size"]))), 128))
|
|
39
|
+
}, 1032, ["has-item-size", "set-item-size", "style"]))), 128))
|
|
39
40
|
]),
|
|
40
41
|
_: 3
|
|
41
42
|
}, 16, ["style"]))
|
|
@@ -46,7 +47,7 @@ function c(e, $, C, P, S, h) {
|
|
|
46
47
|
_: 3
|
|
47
48
|
}, 16, ["class", "style", "onScroll"]);
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
+
const I = /* @__PURE__ */ h(d, [["render", S]]);
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
I as default
|
|
52
53
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useSize as
|
|
3
|
-
import
|
|
4
|
-
import { isObject as
|
|
5
|
-
import { getClassNameMixin as
|
|
6
|
-
import { Scrollbar as
|
|
7
|
-
import { useComponentRef as
|
|
8
|
-
import { useScrollbar as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as G, toRefs as R, computed as c, ref as J, watch as H, nextTick as S } from "vue";
|
|
2
|
+
import { useSize as Q } from "./hooks/use-size.js";
|
|
3
|
+
import U from "./virtual-list-item.js";
|
|
4
|
+
import { isObject as W, isNumber as N } from "../../_utils/is.js";
|
|
5
|
+
import { getClassNameMixin as X } from "../../_utils/config.js";
|
|
6
|
+
import { Scrollbar as Y } from "../scrollbar-v2/index.js";
|
|
7
|
+
import { useComponentRef as Z } from "../../_hooks/use-component-ref.js";
|
|
8
|
+
import { useScrollbar as ee } from "../../_hooks/use-scrollbar.js";
|
|
9
|
+
const ce = G({
|
|
10
10
|
name: "VirtualList",
|
|
11
|
-
components: { VirtualListItem:
|
|
11
|
+
components: { VirtualListItem: U, ScrollbarComponent: Y },
|
|
12
12
|
props: {
|
|
13
13
|
height: {
|
|
14
14
|
type: [Number, String],
|
|
@@ -55,86 +55,113 @@ const le = K({
|
|
|
55
55
|
scrollbar: {
|
|
56
56
|
type: [Boolean, Object],
|
|
57
57
|
default: !1
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
preserveScroll: { type: Boolean, default: !1 },
|
|
60
|
+
pinnedKeys: { type: Array, default: void 0 }
|
|
59
61
|
},
|
|
60
62
|
emits: {
|
|
61
|
-
scroll: (
|
|
62
|
-
reachBottom: (
|
|
63
|
+
scroll: (o) => !0,
|
|
64
|
+
reachBottom: (o) => !0,
|
|
65
|
+
rangeChange: (o) => !0
|
|
63
66
|
},
|
|
64
|
-
setup(
|
|
65
|
-
const { data:
|
|
67
|
+
setup(o, { emit: m, expose: B }) {
|
|
68
|
+
const { data: i, itemKey: j, fixedSize: K, estimatedSize: _, buffer: b, height: v } = R(o), { displayScrollbar: w, scrollbarProps: A } = ee(R(o).scrollbar), I = X("virtual-list"), P = c(() => W(o.component) ? {
|
|
66
69
|
container: "div",
|
|
67
70
|
list: "div",
|
|
68
71
|
content: "div",
|
|
69
|
-
...
|
|
72
|
+
...o.component
|
|
70
73
|
} : {
|
|
71
|
-
container:
|
|
74
|
+
container: o.component,
|
|
72
75
|
list: "div",
|
|
73
76
|
content: "div"
|
|
74
|
-
}), { componentRef:
|
|
75
|
-
height:
|
|
77
|
+
}), { componentRef: k, elementRef: a } = Z("containerRef"), x = J(), L = c(() => ({
|
|
78
|
+
height: N(v.value) ? `${v.value}px` : v.value,
|
|
76
79
|
overflow: "auto"
|
|
77
|
-
})),
|
|
78
|
-
() =>
|
|
80
|
+
})), u = c(
|
|
81
|
+
() => i.value.map((l, n) => l[j.value] ?? n)
|
|
79
82
|
), {
|
|
80
|
-
frontPadding:
|
|
81
|
-
behindPadding:
|
|
82
|
-
start:
|
|
83
|
-
end:
|
|
84
|
-
getStartByScroll:
|
|
85
|
-
setItemSize:
|
|
86
|
-
hasItemSize:
|
|
83
|
+
frontPadding: V,
|
|
84
|
+
behindPadding: q,
|
|
85
|
+
start: s,
|
|
86
|
+
end: h,
|
|
87
|
+
getStartByScroll: T,
|
|
88
|
+
setItemSize: $,
|
|
89
|
+
hasItemSize: D,
|
|
87
90
|
setStart: f,
|
|
88
|
-
getScrollOffset:
|
|
89
|
-
} =
|
|
90
|
-
dataKeys:
|
|
91
|
-
contentRef:
|
|
92
|
-
fixedSize:
|
|
93
|
-
estimatedSize:
|
|
94
|
-
buffer:
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
getScrollOffset: O
|
|
92
|
+
} = Q({
|
|
93
|
+
dataKeys: u,
|
|
94
|
+
contentRef: x,
|
|
95
|
+
fixedSize: K,
|
|
96
|
+
estimatedSize: _,
|
|
97
|
+
buffer: b
|
|
98
|
+
}), p = c(() => o.threshold && i.value.length <= o.threshold ? i.value : i.value.slice(s.value, h.value)), z = c(() => o.fixedSize && o.pinnedKeys !== void 0), E = c(() => {
|
|
99
|
+
const l = o.threshold && i.value.length <= o.threshold ? 0 : s.value, n = p.value.map((e, r) => ({ item: e, index: l + r }));
|
|
100
|
+
if (z.value) {
|
|
101
|
+
const e = new Set(n.map((r) => r.index));
|
|
102
|
+
for (const r of o.pinnedKeys ?? []) {
|
|
103
|
+
const t = u.value.indexOf(r);
|
|
104
|
+
t >= 0 && !e.has(t) && (e.add(t), n.push({ item: i.value[t], index: t }));
|
|
105
|
+
}
|
|
106
|
+
n.sort((r, t) => r.index - t.index);
|
|
107
|
+
}
|
|
108
|
+
return n;
|
|
109
|
+
});
|
|
110
|
+
H([s, h], () => m("rangeChange", { start: s.value, end: h.value }), { immediate: !0 }), H(u, (l, n) => {
|
|
111
|
+
if (o.preserveScroll) {
|
|
112
|
+
S(() => {
|
|
113
|
+
if (a.value) {
|
|
114
|
+
const e = a.value;
|
|
115
|
+
e.scrollTop = Math.min(e.scrollTop, Math.max(0, e.scrollHeight - e.clientHeight)), f(T(e.scrollTop));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
l.length >= n.length && n.every((e, r) => l[r] === e) || (f(0), a.value && (a.value.scrollTop = 0));
|
|
98
121
|
});
|
|
99
|
-
const
|
|
100
|
-
const { scrollTop:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
})), m("scroll",
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
106
|
-
if (
|
|
107
|
-
|
|
122
|
+
const F = (l) => {
|
|
123
|
+
const { scrollTop: n, scrollHeight: e, clientHeight: r } = l.target, t = T(n);
|
|
124
|
+
t !== s.value && (f(t), S(() => {
|
|
125
|
+
g(n);
|
|
126
|
+
})), m("scroll", l), Math.floor(e - (n + r)) <= 0 && m("reachBottom", l);
|
|
127
|
+
}, g = (l) => {
|
|
128
|
+
if (a.value)
|
|
129
|
+
if (N(l))
|
|
130
|
+
a.value.scrollTop = l;
|
|
108
131
|
else {
|
|
109
|
-
const { align:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
132
|
+
const { align: n = "top" } = l, e = l.index ?? u.value.indexOf(l.key ?? "");
|
|
133
|
+
if (e < 0 || !i.value.length) return;
|
|
134
|
+
const r = Math.min(Math.floor(e), i.value.length - 1), t = a.value, d = O(r), y = O(r + 1), C = n === "bottom" ? y - t.clientHeight : n === "auto" ? d < t.scrollTop ? d : y > t.scrollTop + t.clientHeight ? y - t.clientHeight : t.scrollTop : d;
|
|
135
|
+
f(r - b.value), a.value.scrollTop = Math.max(0, C), S(() => {
|
|
136
|
+
if (a.value) {
|
|
137
|
+
const M = Math.max(0, C);
|
|
138
|
+
M !== a.value.scrollTop && (a.value.scrollTop = M);
|
|
114
139
|
}
|
|
115
140
|
});
|
|
116
141
|
}
|
|
117
142
|
};
|
|
118
|
-
return {
|
|
119
|
-
className:
|
|
120
|
-
containerRef:
|
|
121
|
-
wrapperComRef:
|
|
122
|
-
displayScrollbar:
|
|
123
|
-
scrollbarProps:
|
|
124
|
-
contentRef:
|
|
125
|
-
frontPadding:
|
|
126
|
-
currentList:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
143
|
+
return B({ scrollTo: g, containerRef: a, currentList: p }), {
|
|
144
|
+
className: I,
|
|
145
|
+
containerRef: a,
|
|
146
|
+
wrapperComRef: k,
|
|
147
|
+
displayScrollbar: w,
|
|
148
|
+
scrollbarProps: A,
|
|
149
|
+
contentRef: x,
|
|
150
|
+
frontPadding: V,
|
|
151
|
+
currentList: p,
|
|
152
|
+
positioned: z,
|
|
153
|
+
renderedItems: E,
|
|
154
|
+
behindPadding: q,
|
|
155
|
+
onScroll: F,
|
|
156
|
+
setItemSize: $,
|
|
157
|
+
hasItemSize: D,
|
|
158
|
+
start: s,
|
|
159
|
+
scrollTo: g,
|
|
160
|
+
style: L,
|
|
161
|
+
mergedComponent: P
|
|
135
162
|
};
|
|
136
163
|
}
|
|
137
164
|
});
|
|
138
165
|
export {
|
|
139
|
-
|
|
166
|
+
ce as default
|
|
140
167
|
};
|
package/dist/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as r from "./components/index.js";
|
|
3
3
|
import { Icon as p } from "./icons/index.js";
|
|
4
4
|
import { setupDirectives as m } from "./directives/index.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as c } from "./components/dialog/use.js";
|
|
6
6
|
import { default as u } from "./components/message/warp.js";
|
|
7
7
|
import { default as g } from "./components/message-box/MessageBox.js";
|
|
8
8
|
import { default as T } from "./components/notification/warp.js";
|
|
@@ -17,14 +17,14 @@ import { useDraggable as F } from "./components/draggable/useDraggable.js";
|
|
|
17
17
|
import { vDraggable as z } from "./components/draggable/directive.js";
|
|
18
18
|
import { Watermark as K } from "./components/watermark/index.js";
|
|
19
19
|
import { default as W } from "./locale/en-US.js";
|
|
20
|
-
import { default as
|
|
21
|
-
import { Alert as
|
|
22
|
-
import { BarChart as
|
|
20
|
+
import { default as V } from "./locale/zh-CN.js";
|
|
21
|
+
import { Alert as Y } from "./components/alert/index.js";
|
|
22
|
+
import { BarChart as q } from "./components/bar-chart/index.js";
|
|
23
23
|
import { Button as $, ButtonGroup as oo } from "./components/button/index.js";
|
|
24
24
|
import { Checkbox as ro, CheckboxGroup as to } from "./components/form-checkbox/index.js";
|
|
25
25
|
import { Col as mo, Grid as ao, GridItem as fo, Row as no } from "./components/grid/index.js";
|
|
26
26
|
import { ColorPicker as io } from "./components/color-picker/index.js";
|
|
27
|
-
import { ConfigProvider as
|
|
27
|
+
import { ConfigProvider as co } from "./components/config-provider/index.js";
|
|
28
28
|
import { DatePicker as uo, MonthPicker as go, QuarterPicker as Io, RangePicker as To, WeekPicker as So, YearPicker as Po } from "./components/date-picker/index.js";
|
|
29
29
|
import { Draggable as Co } from "./components/draggable/index.js";
|
|
30
30
|
import { Drawer as ko } from "./components/drawer/index.js";
|
|
@@ -33,13 +33,13 @@ import { Empty as vo } from "./components/empty/index.js";
|
|
|
33
33
|
import { Form as Bo, FormItem as Eo } from "./components/form/index.js";
|
|
34
34
|
import { Heatmap as Ro } from "./components/heatmap/index.js";
|
|
35
35
|
import { Image as Fo, ImagePreview as jo, ImagePreviewAction as zo, ImagePreviewGroup as Ho } from "./components/image/index.js";
|
|
36
|
-
import { Input as Uo, InputGroup as Wo, InputPassword as Qo, InputSearch as
|
|
37
|
-
import { InputNumber as
|
|
38
|
-
import { InputTag as
|
|
36
|
+
import { Input as Uo, InputGroup as Wo, InputPassword as Qo, InputSearch as Vo } from "./components/form-input/index.js";
|
|
37
|
+
import { InputNumber as Yo } from "./components/form-input-number/index.js";
|
|
38
|
+
import { InputTag as qo } from "./components/form-input-tag/index.js";
|
|
39
39
|
import { Layout as $o, LayoutContent as oe, LayoutFooter as ee, LayoutHeader as re, LayoutSidebar as te } from "./components/layout/index.js";
|
|
40
40
|
import { LineChart as me } from "./components/line-chart/index.js";
|
|
41
41
|
import { Link as fe } from "./components/link/index.js";
|
|
42
|
-
import { Menu as xe, MenuItem as ie, MenuItemGroup as
|
|
42
|
+
import { Menu as xe, MenuItem as ie, MenuItemGroup as se, MenuSubMenu as ce } from "./components/menu/index.js";
|
|
43
43
|
import { Network as ue } from "./components/network/index.js";
|
|
44
44
|
import { Pagination as ge } from "./components/pagination/index.js";
|
|
45
45
|
import { PieChart as Te } from "./components/pie-chart/index.js";
|
|
@@ -54,13 +54,13 @@ import { Scrollbar as Ee } from "./components/scrollbar-v2/index.js";
|
|
|
54
54
|
import { Select as Re, SelectDropdown as _e, SelectOption as Fe, SelectOptionGroup as je } from "./components/form-select/index.js";
|
|
55
55
|
import { Skeleton as He, SkeletonLine as Ke, SkeletonShape as Ue } from "./components/skeleton/index.js";
|
|
56
56
|
import { Slider as Qe } from "./components/form-slider/index.js";
|
|
57
|
-
import { Space as
|
|
58
|
-
import { Spin as
|
|
59
|
-
import { Step as
|
|
57
|
+
import { Space as Xe } from "./components/space/index.js";
|
|
58
|
+
import { Spin as Ze } from "./components/spin/index.js";
|
|
59
|
+
import { Step as Je, Steps as $e } from "./components/steps/index.js";
|
|
60
60
|
import { Switch as er } from "./components/form-switch/index.js";
|
|
61
61
|
import { TABLE_LOCALE_EN_US as tr, TABLE_LOCALE_ZH_CN as pr, formatLocaleText as mr } from "./components/table/locale.js";
|
|
62
62
|
import { TabPane as fr, Tabs as nr } from "./components/tabs/index.js";
|
|
63
|
-
import { Table as ir, TableColumn as
|
|
63
|
+
import { Table as ir, TableColumn as sr } from "./components/table/index.js";
|
|
64
64
|
import { Tag as lr } from "./components/tag/index.js";
|
|
65
65
|
import { default as dr } from "./components/table/table-tbody.js";
|
|
66
66
|
import { default as Ir } from "./components/table/table-td.js";
|
|
@@ -78,14 +78,15 @@ import { TreeSelect as Fr, TreeSelectDropdown as jr } from "./components/tree-se
|
|
|
78
78
|
import { TrendChart as Hr } from "./components/trend-chart/index.js";
|
|
79
79
|
import { Trigger as Ur } from "./components/trigger/index.js";
|
|
80
80
|
import { Upload as Qr } from "./components/upload/index.js";
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
81
|
+
import { VirtualList as Xr } from "./components/virtual-list-v2/index.js";
|
|
82
|
+
import { addIcon as Zr, hasIcon as qr, registerIcons as Jr, removeIcon as $r } from "./icons/registry.js";
|
|
83
|
+
import { canonicalIconNames as et, publicIconAliases as rt, publicIconNames as tt, searchPublicIcons as pt } from "./icons/public/lucide-names.js";
|
|
84
|
+
import { configProviderInjectionKey as at } from "./components/config-provider/context.js";
|
|
85
|
+
import { finiconCategories as nt, finiconIconsMeta as xt } from "./icons/public/finicon-meta.js";
|
|
86
|
+
import { finiconIconNames as st, finiconIcons as ct, registerFiniconIcons as lt } from "./icons/public/finicon.js";
|
|
87
|
+
import { formInjectionKey as dt, formItemInjectionKey as gt } from "./components/form/context.js";
|
|
88
|
+
import { registerPublicIcons as Tt } from "./icons/public/lucide.js";
|
|
89
|
+
import { vWatermark as Pt } from "./components/watermark/directive.js";
|
|
89
90
|
const x = {
|
|
90
91
|
install: function(o) {
|
|
91
92
|
m(o), o.use(p), Object.keys(r).forEach((t) => {
|
|
@@ -95,17 +96,17 @@ const x = {
|
|
|
95
96
|
}
|
|
96
97
|
};
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
Y as Alert,
|
|
100
|
+
q as BarChart,
|
|
100
101
|
$ as Button,
|
|
101
102
|
oo as ButtonGroup,
|
|
102
103
|
ro as Checkbox,
|
|
103
104
|
to as CheckboxGroup,
|
|
104
105
|
mo as Col,
|
|
105
106
|
io as ColorPicker,
|
|
106
|
-
|
|
107
|
+
co as ConfigProvider,
|
|
107
108
|
uo as DatePicker,
|
|
108
|
-
|
|
109
|
+
c as Dialog,
|
|
109
110
|
P as DialogComponent,
|
|
110
111
|
Co as Draggable,
|
|
111
112
|
ko as Drawer,
|
|
@@ -127,10 +128,10 @@ export {
|
|
|
127
128
|
Ho as ImagePreviewGroup,
|
|
128
129
|
Uo as Input,
|
|
129
130
|
Wo as InputGroup,
|
|
130
|
-
|
|
131
|
+
Yo as InputNumber,
|
|
131
132
|
Qo as InputPassword,
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
Vo as InputSearch,
|
|
134
|
+
qo as InputTag,
|
|
134
135
|
A as LOCALES,
|
|
135
136
|
$o as Layout,
|
|
136
137
|
oe as LayoutContent,
|
|
@@ -141,8 +142,8 @@ export {
|
|
|
141
142
|
fe as Link,
|
|
142
143
|
xe as Menu,
|
|
143
144
|
ie as MenuItem,
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
se as MenuItemGroup,
|
|
146
|
+
ce as MenuSubMenu,
|
|
146
147
|
u as Message,
|
|
147
148
|
g as MessageBox,
|
|
148
149
|
C as MessageComponent,
|
|
@@ -172,16 +173,16 @@ export {
|
|
|
172
173
|
Ke as SkeletonLine,
|
|
173
174
|
Ue as SkeletonShape,
|
|
174
175
|
Qe as Slider,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
Xe as Space,
|
|
177
|
+
Ze as Spin,
|
|
178
|
+
Je as Step,
|
|
178
179
|
$e as Steps,
|
|
179
180
|
er as Switch,
|
|
180
181
|
tr as TABLE_LOCALE_EN_US,
|
|
181
182
|
pr as TABLE_LOCALE_ZH_CN,
|
|
182
183
|
fr as TabPane,
|
|
183
184
|
ir as Table,
|
|
184
|
-
|
|
185
|
+
sr as TableColumn,
|
|
185
186
|
nr as Tabs,
|
|
186
187
|
lr as Tag,
|
|
187
188
|
dr as Tbody,
|
|
@@ -201,39 +202,40 @@ export {
|
|
|
201
202
|
Hr as TrendChart,
|
|
202
203
|
Ur as Trigger,
|
|
203
204
|
Qr as Upload,
|
|
205
|
+
Xr as VirtualList,
|
|
204
206
|
K as Watermark,
|
|
205
207
|
So as WeekPicker,
|
|
206
208
|
Po as YearPicker,
|
|
207
|
-
|
|
209
|
+
Zr as addIcon,
|
|
208
210
|
M as applyThemeColor,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
et as canonicalIconNames,
|
|
212
|
+
at as configProviderInjectionKey,
|
|
211
213
|
x as default,
|
|
212
214
|
W as enUS,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
nt as finiconCategories,
|
|
216
|
+
st as finiconIconNames,
|
|
217
|
+
ct as finiconIcons,
|
|
218
|
+
xt as finiconIconsMeta,
|
|
219
|
+
dt as formInjectionKey,
|
|
220
|
+
gt as formItemInjectionKey,
|
|
219
221
|
mr as formatLocaleText,
|
|
220
222
|
B as formatMessage,
|
|
221
223
|
N as generatePalette,
|
|
222
224
|
E as getGlobalLocale,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
225
|
+
qr as hasIcon,
|
|
226
|
+
rt as publicIconAliases,
|
|
227
|
+
tt as publicIconNames,
|
|
228
|
+
lt as registerFiniconIcons,
|
|
229
|
+
Jr as registerIcons,
|
|
230
|
+
Tt as registerPublicIcons,
|
|
231
|
+
$r as removeIcon,
|
|
232
|
+
pt as searchPublicIcons,
|
|
231
233
|
O as setGlobalLocale,
|
|
232
234
|
F as useDraggable,
|
|
233
235
|
y as useFormItem,
|
|
234
236
|
R as useLocale,
|
|
235
237
|
D as useResizeObserver,
|
|
236
238
|
z as vDraggable,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
Pt as vWatermark,
|
|
240
|
+
V as zhCN
|
|
239
241
|
};
|