@unicom-cloud/ui 0.8.91 → 0.8.92
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/Upload.js +4 -4
- package/color-picker/Mode.js +6 -7
- package/index.js +171 -171
- package/package.json +1 -1
- package/tree/Node.js +5 -5
- package/tree/Tree.js +287 -283
- package/types/common/empty/index.d.ts +1 -1
- package/types/common/icons/file/index.d.ts +1 -1
- package/types/common/space/index.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/message/index.d.ts +1 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +2 -2
- package/types/pc/tree/index.d.ts +1 -1
- package/types/pc/tree/interface.d.ts +5 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/constant.d.ts +4 -0
- package/types/pc/upload/index.d.ts +2 -0
- package/types/pc/upload/interface.d.ts +0 -3
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +1 -1
- package/upload/Upload.js +52 -53
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +9 -0
- package/upload/index.js +4 -4
- package/upload/interface.js +1 -9
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/version/index.js +1 -1
package/Upload.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as t } from "./upload/Upload.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { STATUS as a } from "./upload/constant.js";
|
|
3
|
+
import { FileList as p } from "./upload/list/index.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
a as UPLOAD_STATUS,
|
|
6
|
+
p as UploadList,
|
|
7
7
|
t as default
|
|
8
8
|
};
|
package/color-picker/Mode.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, g = (r) => i(r) === t.Single, A = (r) => i(r) === t.Gradient, o = (r) => Array.isArray(i(r)), s = (r) => o(r) ? t.Gradient : r, c = (r, n, e) => r && Array.isArray(r) ? t.Gradient : r && typeof r == "string" ? t.Single : n && Array.isArray(n) ? t.Gradient : n && typeof n == "string" ? t.Single : s(e);
|
|
1
|
+
const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, s = (r) => i(r) === ColorPickerMode.Single, c = (r) => i(r) === ColorPickerMode.Gradient, t = (r) => Array.isArray(i(r)), n = (r) => t(r) ? ColorPickerMode.Gradient : r, M = (r, e, o) => r && Array.isArray(r) ? ColorPickerMode.Gradient : r && typeof r == "string" ? ColorPickerMode.Single : e && Array.isArray(e) ? ColorPickerMode.Gradient : e && typeof e == "string" ? ColorPickerMode.Single : n(o);
|
|
3
2
|
export {
|
|
4
|
-
|
|
3
|
+
n as getInitialActiveMode,
|
|
5
4
|
i as getMode,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
M as getModeByValue,
|
|
6
|
+
c as isGradientMode,
|
|
7
|
+
t as isMultiMode,
|
|
8
|
+
s as isSingleMode
|
|
10
9
|
};
|
package/index.js
CHANGED
|
@@ -174,87 +174,87 @@ import { default as Wf, TreeSelectTreeNode as jf } from "./tree-select/Select.js
|
|
|
174
174
|
import { default as qf } from "./trigger/index.js";
|
|
175
175
|
import { default as Kf } from "./typography/index.js";
|
|
176
176
|
import { default as Qf } from "./upload/Upload.js";
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import { default as fl } from "./
|
|
181
|
-
import { default as pl } from "./
|
|
182
|
-
import { default as ul } from "./
|
|
183
|
-
import { default as il } from "./
|
|
184
|
-
import { default as nl } from "./
|
|
185
|
-
import { default as Tl } from "./
|
|
186
|
-
import { default as Cl } from "./
|
|
187
|
-
import { default as yl } from "./calendar/
|
|
188
|
-
import { default as Rl } from "./
|
|
189
|
-
import { default as Pl } from "./card/
|
|
190
|
-
import { default as kl } from "./
|
|
191
|
-
import { default as Al } from "./checkbox/
|
|
192
|
-
import { default as vl } from "./checkbox/
|
|
193
|
-
import { default as Bl } from "./
|
|
194
|
-
import { default as Nl
|
|
195
|
-
import { default as wl } from "./
|
|
196
|
-
import { default as Gl } from "./
|
|
197
|
-
import { default as Ul } from "./
|
|
198
|
-
import { default as Wl } from "./form/
|
|
199
|
-
import { default as zl } from "./form/
|
|
200
|
-
import { default as Yl } from "./form/
|
|
201
|
-
import { default as Jl } from "./form/
|
|
202
|
-
import { default as Xl } from "./form/hook/
|
|
203
|
-
import { default as $l } from "./form/hook/
|
|
204
|
-
import { default as tp } from "./form/hook/
|
|
205
|
-
import { default as rp
|
|
206
|
-
import { default as fp } from "./grid/
|
|
207
|
-
import { default as pp
|
|
208
|
-
import { default as dp } from "./
|
|
209
|
-
import { default as xp } from "./
|
|
210
|
-
import { default as cp } from "./image/
|
|
211
|
-
import { default as Sp } from "./
|
|
212
|
-
import { default as gp } from "./input/
|
|
213
|
-
import { default as bp } from "./input/
|
|
214
|
-
import { default as Ip } from "./input/
|
|
215
|
-
import { default as hp
|
|
216
|
-
import { default as Ap } from "./
|
|
217
|
-
import { default as vp } from "./layout/
|
|
218
|
-
import { default as Bp } from "./layout/
|
|
219
|
-
import { default as Np } from "./layout/
|
|
220
|
-
import { default as Fp } from "./
|
|
221
|
-
import { default as Vp } from "./
|
|
222
|
-
import { default as _p } from "./menu/
|
|
223
|
-
import { default as Hp
|
|
224
|
-
import { default as zp } from "./
|
|
225
|
-
import { default as Yp } from "./
|
|
226
|
-
import { default as Jp } from "./
|
|
227
|
-
import { default as Xp } from "./
|
|
228
|
-
import { default as $p } from "./resize-box/
|
|
229
|
-
import { default as tm } from "./
|
|
230
|
-
import { default as rm } from "./select/
|
|
231
|
-
import { default as sm } from "./
|
|
232
|
-
import { default as lm
|
|
233
|
-
import { default as um } from "./
|
|
234
|
-
import { default as im } from "./table/summary/
|
|
235
|
-
import { default as nm } from "./table/summary/
|
|
236
|
-
import { default as Tm } from "./table/
|
|
237
|
-
import { default as Cm } from "./table/hook/
|
|
238
|
-
import { default as ym } from "./table/hook/
|
|
239
|
-
import { default as Rm } from "./table/hook/
|
|
240
|
-
import { default as Pm } from "./table/hook/
|
|
241
|
-
import { default as km } from "./table/hook/
|
|
242
|
-
import { default as Am } from "./table/hook/
|
|
243
|
-
import { default as vm } from "./table/hook/
|
|
244
|
-
import { default as Bm
|
|
245
|
-
import { default as Lm } from "./
|
|
246
|
-
import { default as wm } from "./
|
|
247
|
-
import { default as Gm } from "./typography/
|
|
248
|
-
import { default as Um } from "./typography/
|
|
249
|
-
import { default as Wm } from "./typography/
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import { default as Jm } from "@unicom-cloud/icons/
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
177
|
+
import { STATUS as Zf } from "./upload/constant.js";
|
|
178
|
+
import { default as el } from "./verification-code/VerificationCode.js";
|
|
179
|
+
import { VERSION as ol, VERSION_BUILD_DATE as rl, VERSION_BUILD_TIME as al } from "./version/index.js";
|
|
180
|
+
import { default as fl } from "./virtual-list/VirtualList.js";
|
|
181
|
+
import { default as pl } from "./watermark/Watermark.js";
|
|
182
|
+
import { default as ul } from "./anchor/Link.js";
|
|
183
|
+
import { default as il } from "./avatar/Group.js";
|
|
184
|
+
import { default as nl } from "./badge/Count.js";
|
|
185
|
+
import { default as Tl } from "./breadcrumb/Item.js";
|
|
186
|
+
import { default as Cl } from "./button/Group.js";
|
|
187
|
+
import { default as yl } from "./calendar/Month.js";
|
|
188
|
+
import { default as Rl } from "./calendar/Year.js";
|
|
189
|
+
import { default as Pl } from "./card/Grid.js";
|
|
190
|
+
import { default as kl } from "./card/Meta.js";
|
|
191
|
+
import { default as Al } from "./checkbox/Group.js";
|
|
192
|
+
import { default as vl } from "./checkbox/GroupBlock.js";
|
|
193
|
+
import { default as Bl } from "./checkbox/useCheckbox.js";
|
|
194
|
+
import { default as Nl } from "./collapse/Item.js";
|
|
195
|
+
import { default as Fl, ConfigProviderDefaultProps as wl } from "./config-provider/context.js";
|
|
196
|
+
import { default as Gl } from "./date-picker/RangePicker.js";
|
|
197
|
+
import { default as Ul } from "./dropdown/Button.js";
|
|
198
|
+
import { default as Wl } from "./form/Control.js";
|
|
199
|
+
import { default as zl } from "./form/FormItem.js";
|
|
200
|
+
import { default as Yl } from "./form/FormList.js";
|
|
201
|
+
import { default as Jl } from "./form/FormProvider.js";
|
|
202
|
+
import { default as Xl } from "./form/hook/useForm.js";
|
|
203
|
+
import { default as $l } from "./form/hook/useContext.js";
|
|
204
|
+
import { default as tp } from "./form/hook/useState.js";
|
|
205
|
+
import { default as rp } from "./form/hook/useWatch.js";
|
|
206
|
+
import { default as sp, default as fp } from "./grid/Col.js";
|
|
207
|
+
import { default as pp } from "./grid/GridItem.js";
|
|
208
|
+
import { default as up, default as dp } from "./grid/Row.js";
|
|
209
|
+
import { default as xp } from "./icon/addFromIconFontCn.js";
|
|
210
|
+
import { default as cp } from "./image/ImagePreview.js";
|
|
211
|
+
import { default as Sp } from "./image/ImagePreviewGroup.js";
|
|
212
|
+
import { default as gp } from "./input/Button.js";
|
|
213
|
+
import { default as bp } from "./input/Group.js";
|
|
214
|
+
import { default as Ip } from "./input/Password.js";
|
|
215
|
+
import { default as hp } from "./input/Search.js";
|
|
216
|
+
import { default as Dp, default as Ap } from "./input/Textarea.js";
|
|
217
|
+
import { default as vp } from "./layout/Content.js";
|
|
218
|
+
import { default as Bp } from "./layout/Footer.js";
|
|
219
|
+
import { default as Np } from "./layout/Header.js";
|
|
220
|
+
import { default as Fp } from "./layout/Sider.js";
|
|
221
|
+
import { default as Vp } from "./list/Item.js";
|
|
222
|
+
import { default as _p } from "./menu/Item.js";
|
|
223
|
+
import { default as Hp } from "./menu/ItemGroup.js";
|
|
224
|
+
import { default as jp, default as zp } from "./menu/sub-menu/index.js";
|
|
225
|
+
import { default as Yp } from "./message/useMessage.js";
|
|
226
|
+
import { default as Jp } from "./notification/useNotification.js";
|
|
227
|
+
import { default as Xp } from "./radio/GroupBlock.js";
|
|
228
|
+
import { default as $p } from "./resize-box/Split.js";
|
|
229
|
+
import { default as tm } from "./resize-box/SplitGroup.js";
|
|
230
|
+
import { default as rm } from "./select/Option.js";
|
|
231
|
+
import { default as sm } from "./select/OptGroup.js";
|
|
232
|
+
import { default as lm } from "./statistic/Countdown.js";
|
|
233
|
+
import { default as mm, default as um } from "./steps/Step.js";
|
|
234
|
+
import { default as im } from "./table/summary/index.js";
|
|
235
|
+
import { default as nm } from "./table/summary/Cell.js";
|
|
236
|
+
import { default as Tm } from "./table/summary/Row.js";
|
|
237
|
+
import { default as Cm } from "./table/hook/useColumns.js";
|
|
238
|
+
import { default as ym } from "./table/hook/useComponent.js";
|
|
239
|
+
import { default as Rm } from "./table/hook/useExpand.js";
|
|
240
|
+
import { default as Pm } from "./table/hook/useRowSelection.js";
|
|
241
|
+
import { default as km } from "./table/hook/useSorter.js";
|
|
242
|
+
import { default as Am } from "./table/hook/useStickyClassNames.js";
|
|
243
|
+
import { default as vm } from "./table/hook/useStickyOffsets.js";
|
|
244
|
+
import { default as Bm } from "./table/hook/useThResizable.js";
|
|
245
|
+
import { default as Nm, default as Lm } from "./tabs/TabPane.js";
|
|
246
|
+
import { default as wm } from "./timeline/Item.js";
|
|
247
|
+
import { default as Gm } from "./typography/Ellipsis.js";
|
|
248
|
+
import { default as Um } from "./typography/Paragraph.js";
|
|
249
|
+
import { default as Wm } from "./typography/Text.js";
|
|
250
|
+
import { default as zm } from "./typography/Title.js";
|
|
251
|
+
import { FileList as Ym } from "./upload/list/index.js";
|
|
252
|
+
import { default as Jm } from "@unicom-cloud/icons/context";
|
|
253
|
+
import { default as Xm } from "@unicom-cloud/icons/useProps";
|
|
254
|
+
import { Panel as $m } from "./color-picker/Panel.js";
|
|
255
|
+
import { SpaceVertical as tu } from "./components/common/space/index.js";
|
|
256
|
+
import { defaultComponent as ru } from "./table/constant.js";
|
|
257
|
+
import { default as su } from "./tree/Node.js";
|
|
258
258
|
import { UI_PC_KEY as lu, UI_PC_THEME_DARK_CLASS_NAME as pu } from "@unicom-cloud/utils/constant/ui";
|
|
259
259
|
import { NOOP as uu } from "./components/common/utils/constant.js";
|
|
260
260
|
import { isArguments as iu, isArray as xu, isArrayBuffer as nu, isArrayLike as cu, isArrayLikeObject as Tu, isBlob as Su, isBoolean as Cu, isBuffer as gu, isColor as yu, isColor2 as bu, isDate as Ru, isElement as Iu, isEmpty as Pu, isEmptyArray as hu, isEmptyObject as ku, isEmptyValue as Du, isEqual as Au, isEqualWith as Eu, isError as vu, isFile as Mu, isFinite as Bu, isFunction as Ou, isInteger as Nu, isJSON as Lu, isLength as Fu, isMap as wu, isMatch as Vu, isMatchWith as Gu, isNaN as _u, isNative as Uu, isNil as Hu, isNull as Wu, isNumber as ju, isObject as zu, isObjectLike as qu, isPlainObject as Yu, isPromise as Ku, isReadableByteStreamControllerSupported as Ju, isReadableStream as Qu, isReadableStreamDefaultControllerSupported as Xu, isReadableStreamSupported as Zu, isReadableStreamSymbolAsyncIteratorSupported as $u, isRegExp as ed, isSafeInteger as td, isSet as od, isString as rd, isSymbol as ad, isTypedArray as sd, isUndefined as fd, isValidColor as ld, isWeakMap as pd, isWeakSet as md } from "@unicom-cloud/utils/is";
|
|
@@ -264,52 +264,52 @@ export {
|
|
|
264
264
|
_r as Affix,
|
|
265
265
|
Hr as Alert,
|
|
266
266
|
jr as Anchor,
|
|
267
|
-
|
|
267
|
+
ul as AnchorLink,
|
|
268
268
|
qr as AutoComplete,
|
|
269
269
|
Yr as AutoCompleteOptGroup,
|
|
270
270
|
Kr as AutoCompleteOption,
|
|
271
271
|
Qr as Avatar,
|
|
272
|
-
|
|
272
|
+
il as AvatarGroup,
|
|
273
273
|
ea as BADGE_COLORS,
|
|
274
274
|
ta as BADGE_STATUS,
|
|
275
275
|
fa as BUTTON_STATUS,
|
|
276
276
|
la as BUTTON_TYPE,
|
|
277
277
|
Zr as BackTop,
|
|
278
278
|
oa as Badge,
|
|
279
|
-
|
|
279
|
+
nl as BadgeCount,
|
|
280
280
|
aa as Breadcrumb,
|
|
281
|
-
|
|
281
|
+
Tl as BreadcrumbItem,
|
|
282
282
|
pa as Button,
|
|
283
|
-
|
|
283
|
+
Cl as ButtonGroup,
|
|
284
284
|
Ro as COMPONENT_NAMES,
|
|
285
285
|
wo as CSSTransition,
|
|
286
286
|
ua as Calendar,
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
yl as CalendarMonth,
|
|
288
|
+
Rl as CalendarYear,
|
|
289
289
|
ia as Card,
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
Pl as CardGrid,
|
|
291
|
+
kl as CardMeta,
|
|
292
292
|
na as Carousel,
|
|
293
293
|
Ta as Cascader,
|
|
294
294
|
Ca as Checkbox,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
Al as CheckboxGroup,
|
|
296
|
+
vl as CheckboxGroupBlock,
|
|
297
|
+
sp as Col,
|
|
298
298
|
ya as Collapse,
|
|
299
|
-
|
|
299
|
+
Nl as CollapseItem,
|
|
300
300
|
Gs as ColorPicker,
|
|
301
|
-
|
|
301
|
+
$m as ColorPickerPanel,
|
|
302
302
|
Ra as Comment,
|
|
303
303
|
Pa as ConfigConsumer,
|
|
304
|
-
|
|
304
|
+
Fl as ConfigContext,
|
|
305
305
|
ha as ConfigProvider,
|
|
306
|
-
|
|
306
|
+
wl as ConfigProviderDefaultProps,
|
|
307
307
|
ze as ContextHolderElement,
|
|
308
308
|
Da as Copy,
|
|
309
309
|
Ea as DatePicker,
|
|
310
310
|
va as DatePickerMonth,
|
|
311
311
|
Ma as DatePickerQuarter,
|
|
312
|
-
|
|
312
|
+
Gl as DatePickerRange,
|
|
313
313
|
Ba as DatePickerWeek,
|
|
314
314
|
Oa as DatePickerYear,
|
|
315
315
|
Fr as DefaultValidateMessage,
|
|
@@ -319,46 +319,46 @@ export {
|
|
|
319
319
|
Ua as Divider,
|
|
320
320
|
Wa as Drawer,
|
|
321
321
|
za as Dropdown,
|
|
322
|
-
|
|
322
|
+
Ul as DropdownButton,
|
|
323
323
|
Ya as Empty,
|
|
324
324
|
Ja as Form,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
Wl as FormControl,
|
|
326
|
+
zl as FormItem,
|
|
327
|
+
Yl as FormList,
|
|
328
|
+
Jl as FormProvider,
|
|
329
329
|
Xa as Grid,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
fp as GridCol,
|
|
331
|
+
pp as GridItem,
|
|
332
|
+
up as GridRow,
|
|
333
333
|
$a as Icon,
|
|
334
|
-
|
|
334
|
+
Jm as IconContext,
|
|
335
335
|
ts as IconFile,
|
|
336
336
|
Us as IconHover,
|
|
337
337
|
rs as Image,
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
cp as ImagePreview,
|
|
339
|
+
Sp as ImagePreviewGroup,
|
|
340
340
|
ss as Input,
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
gp as InputButton,
|
|
342
|
+
bp as InputGroup,
|
|
343
343
|
ls as InputNumber,
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
Ip as InputPassword,
|
|
345
|
+
hp as InputSearch,
|
|
346
346
|
ms as InputTag,
|
|
347
|
-
|
|
347
|
+
Dp as InputTextArea,
|
|
348
348
|
ds as Layout,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
vp as LayoutContent,
|
|
350
|
+
Bp as LayoutFooter,
|
|
351
|
+
Np as LayoutHeader,
|
|
352
|
+
Fp as LayoutSider,
|
|
353
353
|
xs as Link,
|
|
354
354
|
cs as List,
|
|
355
|
-
|
|
355
|
+
Vp as ListItem,
|
|
356
356
|
Ws as Loading,
|
|
357
357
|
Ss as Mentions,
|
|
358
358
|
gs as Menu,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
_p as MenuItem,
|
|
360
|
+
Hp as MenuItemGroup,
|
|
361
|
+
jp as MenuSubMenu,
|
|
362
362
|
bs as Message,
|
|
363
363
|
Is as Modal,
|
|
364
364
|
uu as NOOP,
|
|
@@ -372,77 +372,77 @@ export {
|
|
|
372
372
|
ws as Progress,
|
|
373
373
|
zs as Radio,
|
|
374
374
|
Ys as RadioGroup,
|
|
375
|
-
|
|
375
|
+
Xp as RadioGroupBlock,
|
|
376
376
|
Ks as RadioGroupContext,
|
|
377
377
|
Qs as Rate,
|
|
378
378
|
Go as ReplaceTransition,
|
|
379
379
|
Zs as ResizeBox,
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
$p as ResizeBoxSplit,
|
|
381
|
+
tm as ResizeBoxSplitGroup,
|
|
382
382
|
ef as Result,
|
|
383
|
-
|
|
383
|
+
dp as Row,
|
|
384
384
|
Or as Schema,
|
|
385
385
|
of as Select,
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
rm as SelectOption,
|
|
387
|
+
sm as SelectOptionGroup,
|
|
388
388
|
af as Skeleton,
|
|
389
389
|
ff as Slider,
|
|
390
390
|
pf as Space,
|
|
391
|
-
|
|
391
|
+
tu as SpaceVertical,
|
|
392
392
|
uf as SpaceVertical_,
|
|
393
393
|
df as Space_,
|
|
394
394
|
nf as SpeechSynthesis,
|
|
395
395
|
Tf as Spin,
|
|
396
396
|
Cf as Statistic,
|
|
397
|
-
|
|
397
|
+
lm as StatisticCountdown,
|
|
398
398
|
yf as Steps,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
mm as StepsItem,
|
|
400
|
+
um as StepsStep,
|
|
401
|
+
zp as SubMenu,
|
|
402
402
|
Rf as SuspenseFallbackTest,
|
|
403
403
|
Pf as Switch,
|
|
404
404
|
Uo as SwitchTransition,
|
|
405
|
-
|
|
405
|
+
Nm as TabPane,
|
|
406
406
|
kf as Table,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
407
|
+
im as TableSummary,
|
|
408
|
+
nm as TableSummaryCell,
|
|
409
|
+
Tm as TableSummaryRow,
|
|
410
410
|
Af as Tabs,
|
|
411
|
-
|
|
411
|
+
Lm as TabsTabPane,
|
|
412
412
|
vf as Tag,
|
|
413
|
-
|
|
413
|
+
Ap as TextArea,
|
|
414
414
|
Bf as TimePicker,
|
|
415
415
|
Of as TimePickerRange,
|
|
416
416
|
Lf as Timeline,
|
|
417
|
-
|
|
417
|
+
wm as TimelineItem,
|
|
418
418
|
Le as TinyColor,
|
|
419
419
|
wf as Tooltip,
|
|
420
420
|
Gf as Transfer,
|
|
421
421
|
Wo as Transition,
|
|
422
422
|
zo as TransitionGroup,
|
|
423
423
|
Uf as Tree,
|
|
424
|
-
|
|
424
|
+
su as TreeNode,
|
|
425
425
|
Wf as TreeSelect,
|
|
426
426
|
jf as TreeSelectTreeNode,
|
|
427
427
|
qf as Trigger,
|
|
428
428
|
Kf as Typography,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
Gm as TypographyEllipsis,
|
|
430
|
+
Um as TypographyParagraph,
|
|
431
|
+
Wm as TypographyText,
|
|
432
|
+
zm as TypographyTitle,
|
|
433
433
|
lu as UI_PC_KEY,
|
|
434
434
|
pu as UI_PC_THEME_DARK_CLASS_NAME,
|
|
435
|
-
|
|
435
|
+
Zf as UPLOAD_STATUS,
|
|
436
436
|
Qf as Upload,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
437
|
+
Ym as UploadList,
|
|
438
|
+
ol as VERSION,
|
|
439
|
+
rl as VERSION_BUILD_DATE,
|
|
440
|
+
al as VERSION_BUILD_TIME,
|
|
441
|
+
el as VerificationCode,
|
|
442
|
+
fl as VirtualList,
|
|
443
|
+
pl as Watermark,
|
|
444
444
|
lo as add,
|
|
445
|
-
|
|
445
|
+
xp as addFromIconFontCn,
|
|
446
446
|
No as callbackOriginRef,
|
|
447
447
|
Et as camelCase,
|
|
448
448
|
Mt as capitalize,
|
|
@@ -626,7 +626,7 @@ export {
|
|
|
626
626
|
Me as stringInputToObject,
|
|
627
627
|
co as subtract,
|
|
628
628
|
Id as supportRef,
|
|
629
|
-
|
|
629
|
+
ru as tableDefaultComponent,
|
|
630
630
|
to as throttle,
|
|
631
631
|
Tr as throttleByRaf,
|
|
632
632
|
To as times,
|
|
@@ -636,15 +636,15 @@ export {
|
|
|
636
636
|
kr as tween,
|
|
637
637
|
ro as uniq,
|
|
638
638
|
so as upperFirst,
|
|
639
|
-
|
|
639
|
+
Bl as useCheckbox,
|
|
640
640
|
p as useComputedState,
|
|
641
641
|
u as useCreate,
|
|
642
642
|
i as useForceUpdate,
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
643
|
+
Xl as useForm,
|
|
644
|
+
$l as useFormContext,
|
|
645
|
+
tp as useFormState,
|
|
646
|
+
rp as useFormWatch,
|
|
647
|
+
Xm as useIconProps,
|
|
648
648
|
n as useId,
|
|
649
649
|
y as useInView,
|
|
650
650
|
T as useIntersectionObserver,
|
|
@@ -656,8 +656,8 @@ export {
|
|
|
656
656
|
v as useMedia,
|
|
657
657
|
B as useMergeProps,
|
|
658
658
|
N as useMergeValue,
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
Yp as useMessage,
|
|
660
|
+
Jp as useNotification,
|
|
661
661
|
F as useOnlineStatus,
|
|
662
662
|
V as useOverflowHidden,
|
|
663
663
|
_ as useOverrideRef,
|
|
@@ -668,14 +668,14 @@ export {
|
|
|
668
668
|
Q as useResizeObserver,
|
|
669
669
|
Z as useStateCallback,
|
|
670
670
|
ee as useStateWithPromise,
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
671
|
+
Cm as useTableColumns,
|
|
672
|
+
ym as useTableComponent,
|
|
673
|
+
Rm as useTableExpand,
|
|
674
|
+
Pm as useTableRowSelection,
|
|
675
|
+
km as useTableSorter,
|
|
676
|
+
Am as useTableStickyClassNames,
|
|
677
|
+
vm as useTableStickyOffsets,
|
|
678
|
+
Bm as useTableThResizable,
|
|
679
679
|
oe as useUpdateEffect,
|
|
680
680
|
a as useVerificationCode,
|
|
681
681
|
ae as useWatch,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.92","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/pc/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/tree/Node.js
CHANGED
|
@@ -4,7 +4,7 @@ import G from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
|
4
4
|
import J from "@unicom-cloud/icons/IconUiFile";
|
|
5
5
|
import K from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import u from "lodash/isFunction";
|
|
7
|
-
import Q, { forwardRef as W, useContext as
|
|
7
|
+
import Q, { forwardRef as W, useContext as _, useRef as X, useState as Z, useCallback as I } from "react";
|
|
8
8
|
import ee from "../checkbox/Checkbox.js";
|
|
9
9
|
import "../config-provider/ConfigProvider.js";
|
|
10
10
|
import ae from "../icon-hover/index.js";
|
|
@@ -14,7 +14,7 @@ import ie from "./Animation.js";
|
|
|
14
14
|
import { TreeContext as oe } from "./Context.js";
|
|
15
15
|
import te from "../config-provider/context.js";
|
|
16
16
|
function re(i, U) {
|
|
17
|
-
const a =
|
|
17
|
+
const a = _(oe), { getPrefixCls: $ } = _(te), x = X(), [t, f] = Z({
|
|
18
18
|
isAllowDrop: !0,
|
|
19
19
|
isDragOver: !1,
|
|
20
20
|
dragPosition: 0,
|
|
@@ -81,7 +81,7 @@ function re(i, U) {
|
|
|
81
81
|
), n ? /* @__PURE__ */ s(ae, { prefix: o, children: e }) : e;
|
|
82
82
|
}, D = I(
|
|
83
83
|
ne((e) => {
|
|
84
|
-
var
|
|
84
|
+
var C;
|
|
85
85
|
const n = x.current;
|
|
86
86
|
if (!n)
|
|
87
87
|
return;
|
|
@@ -91,7 +91,7 @@ function re(i, U) {
|
|
|
91
91
|
isAllowDrop: V,
|
|
92
92
|
isDragOver: !0,
|
|
93
93
|
dragPosition: k
|
|
94
|
-
}), (
|
|
94
|
+
}), (C = a.onNodeDragOver) == null || C.call(a, e, i, k);
|
|
95
95
|
}),
|
|
96
96
|
[a.onNodeDragOver]
|
|
97
97
|
);
|
|
@@ -154,7 +154,7 @@ function re(i, U) {
|
|
|
154
154
|
[`${o}-title-block`]: i.blockNode
|
|
155
155
|
}),
|
|
156
156
|
onClick: (e) => {
|
|
157
|
-
const { onSelect: n,
|
|
157
|
+
const { onSelect: n, onNodeSelect: r, actionOnClick: h } = a;
|
|
158
158
|
if (!i.disabled) {
|
|
159
159
|
const l = [].concat(h);
|
|
160
160
|
T && l.indexOf("select") > -1 && (n == null || n(m, e)), l.indexOf("expand") > -1 && A(), p && l.indexOf("check") > -1 && E(!i.checked, e), r == null || r(m, i.dataRef, i);
|