@vavt/react-ui 1.0.4 → 1.1.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/dist/{DatePicker-CoHW85qm.cjs → DatePicker-D3tdU7GY.cjs} +1 -1
- package/dist/{DatePicker-B-F5q_s_.js → DatePicker-D75NqBYX.js} +1 -1
- package/dist/{DateTimePicker-CAkdoY--.cjs → DateTimePicker-CCe5NUkC.cjs} +1 -1
- package/dist/{DateTimePicker-BSBZZ7xV.js → DateTimePicker-CG-yv54X.js} +1 -1
- package/dist/{Drawer-D45miZ27.cjs → Drawer-CeBlbSjY.cjs} +1 -1
- package/dist/{Drawer-C0toQ-fQ.js → Drawer-CgaSQfT_.js} +1 -1
- package/dist/Form-BfXRwX6y.js +353 -0
- package/dist/Form-QpWOfQpR.cjs +1 -0
- package/dist/{MessageBox-B4Qo1vs2.js → MessageBox-DlAv_jQm.js} +1 -1
- package/dist/{MessageBox-CTJfdU29.cjs → MessageBox-nHLRzRJS.cjs} +1 -1
- package/dist/Modal-CAZ8vap0.cjs +1 -0
- package/dist/Modal-DnLKpKvW.js +238 -0
- package/dist/{Table-B9NTkptC.js → Table-BFqTvxt1.js} +10 -10
- package/dist/{Table-Bqjey5fw.cjs → Table-D4csqW47.cjs} +1 -1
- package/dist/Upload-CIOunhpr.cjs +1 -0
- package/dist/{Upload-DZC_bt6G.js → Upload-CVIzg2Px.js} +65 -64
- package/dist/base.css +1 -1
- package/dist/cjs/DatePicker.cjs +1 -1
- package/dist/cjs/DateTimePicker.cjs +1 -1
- package/dist/cjs/Drawer.cjs +1 -1
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/MessageBox.cjs +1 -1
- package/dist/cjs/Modal.cjs +1 -1
- package/dist/cjs/Table.cjs +1 -1
- package/dist/cjs/Upload.cjs +1 -1
- package/dist/cjs/global.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/register.cjs +1 -1
- package/dist/css/Alert.css +1 -1
- package/dist/css/Announcement.css +1 -1
- package/dist/css/Button.css +1 -1
- package/dist/css/Card.css +1 -1
- package/dist/css/Checkbox.css +1 -1
- package/dist/css/Cron.css +1 -1
- package/dist/css/DatePicker.css +1 -1
- package/dist/css/DateTimePicker.css +1 -1
- package/dist/css/Drawer.css +1 -1
- package/dist/css/Dropdown.css +1 -1
- package/dist/css/Empty.css +1 -1
- package/dist/css/Form.css +1 -1
- package/dist/css/Input.css +1 -1
- package/dist/css/MessageBox.css +1 -1
- package/dist/css/Modal.css +1 -1
- package/dist/css/NumberInput.css +1 -1
- package/dist/css/Progress.css +1 -1
- package/dist/css/Radio.css +1 -1
- package/dist/css/Select.css +1 -1
- package/dist/css/Sidebar.css +1 -1
- package/dist/css/Switch.css +1 -1
- package/dist/css/Tag.css +1 -1
- package/dist/css/Textarea.css +1 -1
- package/dist/css/TimePicker.css +1 -1
- package/dist/css/Tooltip.css +1 -1
- package/dist/css/Upload.css +1 -1
- package/dist/date-picker-BH--Nh7g.js +612 -0
- package/dist/date-picker-pwA2wCag.cjs +1 -0
- package/dist/{dialog-shell-DehX3PNh.js → dialog-shell-CdYlPT9f.js} +12 -12
- package/dist/dialog-shell-CzeGytVj.cjs +1 -0
- package/dist/es/DatePicker.mjs +1 -1
- package/dist/es/DateTimePicker.mjs +1 -1
- package/dist/es/Drawer.mjs +1 -1
- package/dist/es/Form.mjs +1 -1
- package/dist/es/MessageBox.mjs +1 -1
- package/dist/es/Modal.mjs +1 -1
- package/dist/es/Table.mjs +1 -1
- package/dist/es/Upload.mjs +1 -1
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +22 -22
- package/dist/es/register.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/registry-BO2ao8Jc.cjs +1 -0
- package/dist/{registry-q6UdMOyj.js → registry-macDoSyW.js} +34 -34
- package/dist/style/Form.cjs +1 -0
- package/dist/style/Form.mjs +1 -0
- package/dist/style/Modal.cjs +1 -0
- package/dist/style/Modal.mjs +1 -0
- package/dist/types/Form/type.d.cts +3 -1
- package/dist/types/Form/type.d.ts +3 -1
- package/dist/types/Modal/type.d.cts +3 -3
- package/dist/types/Modal/type.d.ts +3 -3
- package/dist/types/Upload/type.d.cts +4 -0
- package/dist/types/Upload/type.d.ts +4 -0
- package/package.json +1 -1
- package/dist/Form-7un_DeDk.cjs +0 -1
- package/dist/Form-CwgaAZWr.js +0 -323
- package/dist/Modal-i_Do8GsG.cjs +0 -1
- package/dist/Modal-otJ_9ldu.js +0 -210
- package/dist/Upload-bxJz2avf.cjs +0 -1
- package/dist/date-picker-BsiNrLZC.js +0 -592
- package/dist/date-picker-DNN0BiRA.cjs +0 -1
- package/dist/dialog-shell-DT1EoKQG.cjs +0 -1
- package/dist/registry-BGNWNSiC.cjs +0 -1
package/dist/Modal-otJ_9ldu.js
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./effect-nifYL_rH.js";
|
|
2
|
-
import { n as t, t as n } from "./state-oH-YwB7_.js";
|
|
3
|
-
import { t as r } from "./client-pj_wzx28.js";
|
|
4
|
-
import { n as i } from "./refs-D5IYOBaf.js";
|
|
5
|
-
import { t as a } from "./content-Dllrr-7G.js";
|
|
6
|
-
import { n as o, t as s } from "./number-BN2jHM6Z.js";
|
|
7
|
-
import { t as ee } from "./id-CHixuHb7.js";
|
|
8
|
-
import { n as te, r as ne, t as re } from "./layer-DDm97-sb.js";
|
|
9
|
-
import { n as ie, r as ae, t as oe } from "./dialog-shell-DehX3PNh.js";
|
|
10
|
-
import { X as se } from "lucide-react";
|
|
11
|
-
import { forwardRef as c, useCallback as l, useEffect as u, useMemo as ce, useRef as d, useState as le } from "react";
|
|
12
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
13
|
-
//#region components/Modal/Modal.tsx
|
|
14
|
-
var ue = -24, m = c((c, m) => {
|
|
15
|
-
let { open: h, defaultOpen: g = !1, title: _, width: de = 520, offsetY: v = ue, center: fe = !1, mask: pe = !0, closeOnClickOverlay: me = !0, closeOnPressEscape: he = !0, showClose: y = !0, lockScroll: ge = !0, destroyOnClose: b = !1, draggable: x = !0, fullscreen: S = !1, zIndex: _e, header: C, footer: w, className: ve, style: T, children: ye, onClick: be, onChange: xe, onOpen: E, onClose: D, onAfterClose: Se, "aria-label": Ce, "aria-labelledby": we, "aria-describedby": Te, ...Ee } = c, O = r(), De = typeof T?.zIndex == "number" ? T.zIndex : void 0, k = ne({
|
|
16
|
-
defaultZIndex: te.modal,
|
|
17
|
-
zIndex: _e ?? De,
|
|
18
|
-
withMask: !0
|
|
19
|
-
}), A = d(null), Oe = ce(() => i(A, m), [m]), ke = n(c, "open"), [j, Ae] = t({
|
|
20
|
-
value: !!h,
|
|
21
|
-
defaultValue: g,
|
|
22
|
-
controlled: ke,
|
|
23
|
-
onChange: xe
|
|
24
|
-
}), [je, M] = le(!1), N = d({
|
|
25
|
-
x: 0,
|
|
26
|
-
y: 0
|
|
27
|
-
}), P = d(!1), F = d(!1), I = d({
|
|
28
|
-
x: 0,
|
|
29
|
-
y: 0
|
|
30
|
-
}), L = d(null), R = d(!1), z = ee("vl-modal-title"), B = l(() => Ae(!1), [Ae]), { isTopLayer: V } = ae({
|
|
31
|
-
active: O && j,
|
|
32
|
-
containerRef: A,
|
|
33
|
-
closeOnPressEscape: he,
|
|
34
|
-
lockScroll: ge,
|
|
35
|
-
onRequestClose: B
|
|
36
|
-
}), H = l((e) => {
|
|
37
|
-
A.current && (A.current.style.visibility = e ? "visible" : "hidden");
|
|
38
|
-
}, []), U = l((e, t) => {
|
|
39
|
-
N.current = {
|
|
40
|
-
x: e,
|
|
41
|
-
y: t
|
|
42
|
-
}, A.current && (A.current.style.left = `${e}px`, A.current.style.top = `${t}px`);
|
|
43
|
-
}, []), W = l((e, t) => {
|
|
44
|
-
let n = e.getBoundingClientRect();
|
|
45
|
-
return {
|
|
46
|
-
rect: n,
|
|
47
|
-
maxX: Math.max(t, window.innerWidth - n.width - t),
|
|
48
|
-
maxY: Math.max(t, window.innerHeight - n.height - t)
|
|
49
|
-
};
|
|
50
|
-
}, []), G = l(() => {
|
|
51
|
-
let e = A.current;
|
|
52
|
-
if (!e) return;
|
|
53
|
-
if (S) {
|
|
54
|
-
U(0, 0);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
let { rect: t, maxX: n, maxY: r } = W(e, 16), i = (window.innerHeight - t.height) / 2 + v;
|
|
58
|
-
U(Math.round(s((window.innerWidth - t.width) / 2, 16, n)), Math.round(s(i, 16, r)));
|
|
59
|
-
}, [
|
|
60
|
-
S,
|
|
61
|
-
W,
|
|
62
|
-
v,
|
|
63
|
-
U
|
|
64
|
-
]), K = l(() => {
|
|
65
|
-
let e = A.current;
|
|
66
|
-
if (!e) return;
|
|
67
|
-
let { maxX: t, maxY: n } = W(e, 8);
|
|
68
|
-
U(Math.round(s(N.current.x, 8, t)), Math.round(s(N.current.y, 8, n)));
|
|
69
|
-
}, [W, U]), q = l((e, t) => {
|
|
70
|
-
let n = A.current;
|
|
71
|
-
if (!n || S) return;
|
|
72
|
-
let { maxX: r, maxY: i } = W(n, 8), a = s(e - I.current.x, 8, r), o = s(t - I.current.y, 8, i);
|
|
73
|
-
U(Math.round(a), Math.round(o)), P.current = !0;
|
|
74
|
-
}, [
|
|
75
|
-
S,
|
|
76
|
-
W,
|
|
77
|
-
U
|
|
78
|
-
]), J = d(q);
|
|
79
|
-
e(() => {
|
|
80
|
-
J.current = q;
|
|
81
|
-
}, [q]);
|
|
82
|
-
let Y = l((e) => {
|
|
83
|
-
F.current && J.current(e.clientX, e.clientY);
|
|
84
|
-
}, []), X = l(() => {
|
|
85
|
-
window.removeEventListener("pointermove", Y), L.current?.(), L.current = null;
|
|
86
|
-
}, [Y]), Z = l(() => {
|
|
87
|
-
F.current && (F.current = !1, M(!1), X());
|
|
88
|
-
}, [X]), Me = (e) => {
|
|
89
|
-
if (!x || S || !j || !V() || e.button !== 0 || e.target.closest(".vl-modal__close")) return;
|
|
90
|
-
let t = A.current;
|
|
91
|
-
if (!t) return;
|
|
92
|
-
let n = t.getBoundingClientRect();
|
|
93
|
-
I.current = {
|
|
94
|
-
x: e.clientX - n.left,
|
|
95
|
-
y: e.clientY - n.top
|
|
96
|
-
}, F.current = !0, M(!0), L.current = ie(), window.addEventListener("pointermove", Y), window.addEventListener("pointerup", Z, { once: !0 });
|
|
97
|
-
};
|
|
98
|
-
u(() => {
|
|
99
|
-
let e = R.current;
|
|
100
|
-
j && !e ? E?.() : !j && e && D?.(), R.current = j;
|
|
101
|
-
}, [
|
|
102
|
-
j,
|
|
103
|
-
E,
|
|
104
|
-
D
|
|
105
|
-
]), e(() => {
|
|
106
|
-
!j || !O || (H(!1), S ? U(0, 0) : !b && P.current ? K() : G(), H(!0));
|
|
107
|
-
}, [
|
|
108
|
-
j,
|
|
109
|
-
O,
|
|
110
|
-
S,
|
|
111
|
-
b,
|
|
112
|
-
G,
|
|
113
|
-
K,
|
|
114
|
-
U,
|
|
115
|
-
H
|
|
116
|
-
]), u(() => {
|
|
117
|
-
j || Z();
|
|
118
|
-
}, [j, Z]), u(() => {
|
|
119
|
-
if (!j) return;
|
|
120
|
-
let e = () => {
|
|
121
|
-
F.current || (P.current ? K() : G());
|
|
122
|
-
};
|
|
123
|
-
return window.addEventListener("resize", e, { passive: !0 }), () => window.removeEventListener("resize", e);
|
|
124
|
-
}, [
|
|
125
|
-
j,
|
|
126
|
-
G,
|
|
127
|
-
K
|
|
128
|
-
]), u(() => () => {
|
|
129
|
-
window.removeEventListener("pointerup", Z), X();
|
|
130
|
-
}, [Z, X]);
|
|
131
|
-
let Ne = () => {
|
|
132
|
-
me && V() && B();
|
|
133
|
-
}, Pe = (e) => {
|
|
134
|
-
e.stopPropagation(), be?.(e);
|
|
135
|
-
}, Fe = [
|
|
136
|
-
"vl-modal",
|
|
137
|
-
je ? "is-dragging" : "",
|
|
138
|
-
fe ? "is-center" : "",
|
|
139
|
-
S ? "is-fullscreen" : "",
|
|
140
|
-
ve || ""
|
|
141
|
-
].filter(Boolean).join(" "), Ie = ["vl-modal__header", x && !S ? "is-draggable" : ""].filter(Boolean).join(" "), Q = { ...T };
|
|
142
|
-
k.zIndex !== void 0 && (Q.zIndex = k.zIndex), S ? (Q.width = "100vw", Q.height = "100vh") : Q.width = o(de) ?? "520px";
|
|
143
|
-
let Le = C ?? (_ ? /* @__PURE__ */ f("div", {
|
|
144
|
-
id: z,
|
|
145
|
-
className: "vl-modal__title",
|
|
146
|
-
children: _
|
|
147
|
-
}) : null), $ = we ?? (!C && _ ? z : void 0), Re = Ce ?? ($ ? void 0 : typeof _ == "string" ? _ : "对话框");
|
|
148
|
-
return /* @__PURE__ */ f(re, {
|
|
149
|
-
layer: k.layer,
|
|
150
|
-
children: /* @__PURE__ */ p(oe, {
|
|
151
|
-
clientReady: O,
|
|
152
|
-
open: j,
|
|
153
|
-
mask: pe,
|
|
154
|
-
destroyOnClose: b,
|
|
155
|
-
maskTransitionName: "vl-modal-mask",
|
|
156
|
-
transitionName: "vl-modal",
|
|
157
|
-
maskClassName: "vl-modal__mask",
|
|
158
|
-
panelClassName: Fe,
|
|
159
|
-
panelStyle: Q,
|
|
160
|
-
maskStyle: k.maskZIndex === void 0 ? void 0 : { zIndex: k.maskZIndex },
|
|
161
|
-
panelRef: Oe,
|
|
162
|
-
role: "dialog",
|
|
163
|
-
ariaLabel: Re,
|
|
164
|
-
ariaLabelledBy: $,
|
|
165
|
-
ariaDescribedBy: Te,
|
|
166
|
-
onMaskClick: Ne,
|
|
167
|
-
onPanelClick: Pe,
|
|
168
|
-
onAfterLeave: () => {
|
|
169
|
-
Z(), b && (P.current = !1), Se?.();
|
|
170
|
-
},
|
|
171
|
-
panelProps: Ee,
|
|
172
|
-
children: [
|
|
173
|
-
a(Le) || y ? /* @__PURE__ */ f("div", {
|
|
174
|
-
className: Ie,
|
|
175
|
-
onPointerDown: Me,
|
|
176
|
-
children: /* @__PURE__ */ p("div", {
|
|
177
|
-
className: "vl-modal__headerInner",
|
|
178
|
-
children: [/* @__PURE__ */ f("div", {
|
|
179
|
-
className: "vl-modal__headerMain",
|
|
180
|
-
children: Le
|
|
181
|
-
}), y ? /* @__PURE__ */ f("button", {
|
|
182
|
-
type: "button",
|
|
183
|
-
className: "vl-modal__close",
|
|
184
|
-
"aria-label": "关闭对话框",
|
|
185
|
-
onClick: B,
|
|
186
|
-
children: /* @__PURE__ */ f(se, {
|
|
187
|
-
size: 20,
|
|
188
|
-
"aria-hidden": "true"
|
|
189
|
-
})
|
|
190
|
-
}) : null]
|
|
191
|
-
})
|
|
192
|
-
}) : null,
|
|
193
|
-
/* @__PURE__ */ f("div", {
|
|
194
|
-
className: "vl-modal__body",
|
|
195
|
-
children: ye
|
|
196
|
-
}),
|
|
197
|
-
a(w) ? /* @__PURE__ */ f("div", {
|
|
198
|
-
className: "vl-modal__footer",
|
|
199
|
-
children: w
|
|
200
|
-
}) : null
|
|
201
|
-
]
|
|
202
|
-
})
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
m.displayName = "VlModal";
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region components/Modal/index.ts
|
|
208
|
-
var h = m, g = m;
|
|
209
|
-
//#endregion
|
|
210
|
-
export { h as n, g as t };
|
package/dist/Upload-bxJz2avf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./state-ZBA75xZ_.cjs"),t=require("./content-DCGQZQp8.cjs"),n=require("./number-B7qJF_ZY.cjs"),r=require("./id-CF0zOP1G.cjs");let i=require("lucide-react"),a=require("react"),o=require("react/jsx-runtime");var s=[],c=0,l=()=>`vl-upload-${++c}`,u=e=>({uid:l(),name:e.name,size:e.size,type:e.type,status:`ready`,file:e}),d=e=>(e.file?.type??e.type??``).startsWith(`image/`),f=(0,a.forwardRef)((c,l)=>{let{value:f,defaultValue:p=s,accept:m,multiple:h=!1,disabled:g=!1,drag:_=!1,maxCount:v,listType:y=`text`,showFileList:b=!0,uploadText:x=`选择文件`,tip:S,beforeUpload:C,onChange:w,onRemove:T,onPreview:E,onExceed:D,id:O,"aria-describedby":k,"aria-labelledby":A,"aria-invalid":j,"aria-busy":M,className:ee,children:te,...ne}=c,N=(0,a.useRef)(null),P=r.t(`vl-upload`,O),F=r.t(`vl-upload-tip`),I=e.t(c,`value`),[L,R]=e.n({value:f??s,defaultValue:p,controlled:I,onChange:w}),[z,B]=(0,a.useState)(!1),[V,H]=(0,a.useState)(``),U=(0,a.useRef)(L),W=(0,a.useRef)(L);W.current!==L&&(U.current=L,W.current=L);let G=(e,t)=>{U.current=e,W.current=e,R(e),t&&H(t)},K=async e=>{if(e.length===0)return;let t=U.current,n=h?v===void 0?e.length:Math.max(0,v-t.length):1,r=e.slice(0,n);if(r.length<e.length&&D?.(e.slice(r.length),t),r.length===0)return;let i=[];for(let e of r){if(C){let t;try{t=!!await C(e,r)}catch{t=!1}if(!t)continue}i.push(u(e))}if(i.length===0)return;let a=h?U.current:s,o=h&&v!==void 0?Math.max(0,v-a.length):i.length,c=i.slice(0,o);if(c.length<i.length){let e=i.slice(c.length).map(e=>e.file).filter(e=>e!==void 0);e.length>0&&D?.(e,a)}if(c.length===0)return;let l=c.map(e=>e.name).join(`、`);G([...a,...c],`已添加 ${l}`)},q=(0,a.useRef)(Promise.resolve()),J=e=>{g||e.length===0||(q.current=q.current.then(()=>K(e)).catch(()=>void 0))},Y=h&&v!==void 0&&L.length>=v,X=g||Y,re=()=>{X||N.current?.click()},ie=e=>{J(Array.from(e.target.files??[])),e.target.value=``},Z=(0,a.useRef)(0),ae=e=>{e.preventDefault(),Z.current+=1,g||B(!0)},oe=()=>{Z.current=Math.max(0,Z.current-1),Z.current===0&&B(!1)},se=e=>{e.preventDefault(),Z.current=0,B(!1),J(Array.from(e.dataTransfer.files))},ce=(e,t)=>{e.stopPropagation();let n=U.current.filter(e=>e.uid!==t.uid);G(n,`已移除 ${t.name}`),T?.(t,n)},le=[`vl-upload`,_?`is-drag`:``,z?`is-dragover`:``,g?`is-disabled`:``,Y?`is-full`:``,y===`picture`?`list-picture`:``,ee||``].filter(Boolean).join(` `),Q=t.t(S),$=[k,Q?F:void 0].filter(Boolean).join(` `)||void 0,ue=e=>y===`picture`?e.url?(0,o.jsx)(`img`,{src:e.url,alt:``,className:`vl-upload__thumbnail`}):d(e)?(0,o.jsx)(i.FileImage,{"aria-hidden":`true`}):(0,o.jsx)(i.File,{"aria-hidden":`true`}):(0,o.jsx)(i.Paperclip,{"aria-hidden":`true`}),de=te??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.UploadCloud,{className:`vl-upload__icon`,"aria-hidden":`true`}),(0,o.jsx)(`span`,{className:`vl-upload__text`,children:x})]});return(0,o.jsxs)(`div`,{ref:l,className:le,..._?{onDragEnter:ae,onDragOver:e=>e.preventDefault(),onDragLeave:oe,onDrop:se}:void 0,...ne,children:[(0,o.jsx)(`input`,{ref:N,className:`vl-upload__input`,type:`file`,accept:m,multiple:h,disabled:g,tabIndex:-1,"aria-hidden":`true`,onChange:ie}),(0,o.jsx)(`button`,{type:`button`,id:P,className:`vl-upload__trigger`,disabled:X,"aria-describedby":$,"aria-labelledby":A,"aria-invalid":j,"aria-busy":M,onClick:re,children:de}),Q?(0,o.jsx)(`div`,{id:F,className:`vl-upload__tip`,children:S}):null,(0,o.jsx)(`div`,{className:`vl-upload__status`,role:`status`,"aria-live":`polite`,children:V}),b&&L.length>0?(0,o.jsx)(`ul`,{className:`vl-upload__list`,children:L.map(e=>(0,o.jsxs)(`li`,{className:`vl-upload__item is-${e.status??`ready`}`,children:[ue(e),E?(0,o.jsx)(`button`,{type:`button`,className:`vl-upload__name`,title:e.name,onClick:()=>E(e),children:e.name}):(0,o.jsx)(`span`,{className:`vl-upload__name is-static`,title:e.name,children:e.name}),e.status===`error`&&e.error?(0,o.jsx)(`span`,{className:`vl-upload__error`,children:e.error}):null,(0,o.jsx)(`button`,{type:`button`,className:`vl-upload__remove`,"aria-label":`移除 ${e.name}`,onClick:t=>ce(t,e),children:(0,o.jsx)(i.Trash2,{"aria-hidden":`true`})}),e.status===`uploading`&&typeof e.percent==`number`?(0,o.jsx)(`div`,{className:`vl-upload__progress`,role:`progressbar`,"aria-valuenow":n.t(Math.round(e.percent),0,100),"aria-valuemin":0,"aria-valuemax":100,"aria-label":`${e.name} 上传进度`,children:(0,o.jsx)(`div`,{className:`vl-upload__progress-bar`,style:{width:`${n.t(e.percent,0,100)}%`}})}):null]},e.uid))}):null]})});f.displayName=`VlUpload`;var p=f,m=f;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|