@para-ui/core 3.0.28 → 3.0.30

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.
Files changed (140) hide show
  1. package/AutoBox/index.js +48 -88
  2. package/AutoTips/index.js +25 -32
  3. package/Breadcrumbs/index.js +43 -63
  4. package/Button/SplitButton.d.ts +1 -1
  5. package/Button/index.d.ts +1 -1
  6. package/Button/index.js +88 -118
  7. package/ButtonGroup/index.js +27 -36
  8. package/Carousel/index.d.ts +2 -2
  9. package/Carousel/index.js +27 -28
  10. package/Cascader/index.js +52 -64
  11. package/Checkbox/index.js +23 -39
  12. package/CheckboxGroup/index.js +31 -48
  13. package/Collapse/collapsePanel.d.ts +1 -1
  14. package/Collapse/index.d.ts +1 -1
  15. package/Collapse/index.js +9 -29
  16. package/Collapse/util.d.ts +2 -2
  17. package/CollapseBox/index.js +45 -56
  18. package/CollapseLayout/index.js +35 -54
  19. package/ComboSelect/index.js +222 -349
  20. package/ComboSelect/interface.d.ts +3 -3
  21. package/Container/index.js +17 -20
  22. package/DatePicker/generatePicker/index.d.ts +17 -17
  23. package/DatePicker/index.d.ts +4 -4
  24. package/DatePicker/index.js +111 -167
  25. package/Desktop/index.js +62 -173
  26. package/Drawer/index.js +65 -58
  27. package/Drawer/interface.d.ts +7 -3
  28. package/Dropdown/index.d.ts +1 -1
  29. package/Dropdown/index.js +3 -3
  30. package/Empty/index.js +17 -22
  31. package/Form/index.d.ts +1 -1
  32. package/Form/index.js +38 -80
  33. package/FormItem/index.d.ts +1 -1
  34. package/FormItem/index.js +11 -11
  35. package/FormItem/validateFunction.d.ts +1 -1
  36. package/FunctionModal/index.js +11 -11
  37. package/GlobalContext/index.js +3 -3
  38. package/GlobalContext/usePopupContainer.d.ts +1 -1
  39. package/Help/index.js +11 -11
  40. package/HelperText/index.js +11 -12
  41. package/InputLang/index.js +47 -80
  42. package/InputNumber/index.js +65 -100
  43. package/Label/index.js +15 -16
  44. package/Loading/index.js +6 -7
  45. package/Menu/index.js +148 -328
  46. package/Menu/interface.d.ts +2 -2
  47. package/Menu/verticalMenuList.d.ts +1 -1
  48. package/Message/index.d.ts +1 -1
  49. package/Message/index.js +45 -64
  50. package/Modal/Confirm/index.d.ts +2 -2
  51. package/Modal/index.d.ts +1 -1
  52. package/Modal/index.js +119 -152
  53. package/MultiBox/index.js +44 -76
  54. package/Notification/index.d.ts +2 -2
  55. package/Notification/index.js +51 -72
  56. package/OperateBtn/index.js +42 -70
  57. package/PageHeader/index.js +120 -286
  58. package/PageHeader/interface.d.ts +1 -1
  59. package/Pagination/index.d.ts +2 -2
  60. package/Pagination/index.js +79 -131
  61. package/ParauiProvider/index.js +2 -3
  62. package/PasswordRules/index.js +12 -30
  63. package/PopConfirm/index.d.ts +1 -1
  64. package/PopConfirm/index.js +52 -59
  65. package/Popover/index.js +8 -9
  66. package/Progress/index.d.ts +6 -6
  67. package/Progress/index.js +50 -89
  68. package/Querying/index.js +14 -17
  69. package/README.md +813 -800
  70. package/Radio/index.js +21 -33
  71. package/RadioGroup/index.js +32 -47
  72. package/Search/index.js +44 -66
  73. package/Select/index.js +176 -343
  74. package/SelectInput/index.js +8 -9
  75. package/Selector/index.js +285 -681
  76. package/SelectorPicker/index.js +62 -97
  77. package/SingleBox/index.js +30 -55
  78. package/Slider/index.d.ts +1 -1
  79. package/Slider/index.js +29 -41
  80. package/Slider/interface.d.ts +2 -2
  81. package/Split/index.js +10 -23
  82. package/Status/index.js +8 -7
  83. package/Stepper/index.d.ts +1 -1
  84. package/Stepper/index.js +20 -25
  85. package/Styles/form.scss +5 -5
  86. package/Styles/index.scss +37 -37
  87. package/Styles/normalize.scss +348 -348
  88. package/Styles/scrollbar.scss +223 -223
  89. package/Styles/theme.scss +74 -74
  90. package/Switch/index.d.ts +2 -2
  91. package/Switch/index.js +19 -20
  92. package/Table/index.js +568 -1019
  93. package/Table/interface.d.ts +5 -5
  94. package/Tabs/index.d.ts +3 -3
  95. package/Tabs/index.js +47 -65
  96. package/Tag/TagGroup.d.ts +1 -1
  97. package/Tag/index.d.ts +2 -2
  98. package/Tag/index.js +72 -107
  99. package/TextEditor/index.d.ts +2 -2
  100. package/TextEditor/index.js +81 -105
  101. package/TextField/index.js +141 -220
  102. package/TimePicker/index.d.ts +1 -1
  103. package/TimePicker/index.js +12 -15
  104. package/Timeline/index.js +42 -52
  105. package/Title/index.js +10 -9
  106. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  107. package/ToggleButton/index.js +50 -70
  108. package/Tooltip/index.js +64 -98
  109. package/Tooltip/interface.d.ts +1 -1
  110. package/Transfer/index.d.ts +1 -1
  111. package/Transfer/index.js +114 -137
  112. package/Transfer/useClick.d.ts +1 -1
  113. package/Tree/index.js +10 -10
  114. package/Tree/interface.d.ts +6 -6
  115. package/Upload/Dragger/index.d.ts +1 -1
  116. package/Upload/ImageUpload/index.d.ts +1 -1
  117. package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
  118. package/Upload/index.d.ts +1 -1
  119. package/Upload/index.js +283 -475
  120. package/Upload/interface.d.ts +2 -2
  121. package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
  122. package/_verture/defineProperty-62acccfc.js +34 -0
  123. package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
  124. package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
  125. package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
  126. package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
  127. package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
  128. package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
  129. package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
  130. package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
  131. package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
  132. package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
  133. package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
  134. package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
  135. package/index.d.ts +2 -4
  136. package/index.js +15 -16
  137. package/package.json +167 -168
  138. package/Test/index.d.ts +0 -3
  139. package/Test/index.js +0 -9
  140. package/_verture/defineProperty-0590dc61.js +0 -16
package/Transfer/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-f8047a75.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
1
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import { useRef, useState, useEffect, useCallback } from 'react';
5
5
  import clsx from 'clsx';
@@ -8,8 +8,8 @@ import NavigateBefore from '@para-ui/icons/Left';
8
8
  import Right from '@para-ui/icons/Right';
9
9
  import ExpandLess from '@para-ui/icons/Up';
10
10
  import Down from '@para-ui/icons/Down';
11
- import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
12
- import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
11
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
12
+ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
13
13
  import { Search } from '../Search/index.js';
14
14
  import SearchIcon from '@para-ui/icons/Search';
15
15
  import AutoTips from '../AutoTips/index.js';
@@ -22,9 +22,9 @@ import '@para-ui/icons/Forbid';
22
22
  import '../Tooltip/index.js';
23
23
  import 'rc-tooltip';
24
24
  import 'rc-tooltip/lib/placements';
25
- import '../_verture/index-bbed73a3.js';
25
+ import '../_verture/index-be4faaee.js';
26
26
  import 'rc-dropdown';
27
- import '../_verture/usePopupContainer-b8ab7cab.js';
27
+ import '../_verture/usePopupContainer-87febeb9.js';
28
28
  import 'dayjs';
29
29
  import '@paraview/lib';
30
30
  import '@para-ui/core/GlobalContext';
@@ -37,7 +37,7 @@ import '@para-ui/icons/PreviewOpen';
37
37
  import '@para-ui/icons/CloseCircle';
38
38
  import '../Loading/index.js';
39
39
  import '../HelperText/index.js';
40
- import '../_verture/useGlobalProps-af9a2af6.js';
40
+ import '../_verture/useGlobalProps-1b846a65.js';
41
41
 
42
42
  var en = {
43
43
  left: 'Left',
@@ -74,18 +74,15 @@ var useClick = function useClick(callback, doubleCallback) {
74
74
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
75
75
  args[_key] = arguments[_key];
76
76
  }
77
-
78
77
  clickRef.current.clickCount += 1;
79
78
  clickRef.current.time = Date.now();
80
79
  clickRef.current.timer = setTimeout(function () {
81
80
  if (Date.now() - clickRef.current.time <= 200 && clickRef.current.clickCount === 2) {
82
81
  doubleCallback && doubleCallback.apply(null, args);
83
82
  }
84
-
85
83
  if (clickRef.current.clickCount === 1) {
86
84
  callback && callback.apply(null, args);
87
85
  }
88
-
89
86
  clearTimeout(clickRef.current.timer);
90
87
  clickRef.current.clickCount = 0;
91
88
  }, 200);
@@ -3114,32 +3111,29 @@ Sortable.mount(Remove, Revert);
3114
3111
 
3115
3112
  var Box = function Box(props) {
3116
3113
  var title = props.title,
3117
- data = props.data,
3118
- onSearch = props.onSearch,
3119
- onchange = props.onchange,
3120
- onMove = props.onMove,
3121
- queryAll = props.queryAll,
3122
- inverse = props.inverse,
3123
- direction = props.direction,
3124
- fluctuationPosition = props.fluctuationPosition,
3125
- fluctuationOrther = props.fluctuationOrther,
3126
- onEndSort = props.onEndSort,
3127
- multiple = props.multiple,
3128
- rightIcon = props.rightIcon,
3129
- style = props.style,
3130
- customKey = props.customKey;
3114
+ data = props.data,
3115
+ onSearch = props.onSearch,
3116
+ onchange = props.onchange,
3117
+ onMove = props.onMove,
3118
+ queryAll = props.queryAll,
3119
+ inverse = props.inverse,
3120
+ direction = props.direction,
3121
+ fluctuationPosition = props.fluctuationPosition,
3122
+ fluctuationOrther = props.fluctuationOrther,
3123
+ onEndSort = props.onEndSort,
3124
+ multiple = props.multiple,
3125
+ rightIcon = props.rightIcon,
3126
+ style = props.style,
3127
+ customKey = props.customKey;
3131
3128
  var intl = useFormatMessage('Transfer', localeJson);
3132
-
3133
3129
  var _useState = useState([]),
3134
- _useState2 = _slicedToArray(_useState, 2),
3135
- checkCount = _useState2[0],
3136
- setCheckCount = _useState2[1];
3137
-
3130
+ _useState2 = _slicedToArray(_useState, 2),
3131
+ checkCount = _useState2[0],
3132
+ setCheckCount = _useState2[1];
3138
3133
  var _useState3 = useState(0),
3139
- _useState4 = _slicedToArray(_useState3, 2),
3140
- disabledCount = _useState4[0],
3141
- setDisabledCount = _useState4[1];
3142
-
3134
+ _useState4 = _slicedToArray(_useState3, 2),
3135
+ disabledCount = _useState4[0],
3136
+ setDisabledCount = _useState4[1];
3143
3137
  var ref = useRef();
3144
3138
  useEffect(function () {
3145
3139
  var arr = [];
@@ -3148,7 +3142,6 @@ var Box = function Box(props) {
3148
3142
  if (item.checked && !item.hide) {
3149
3143
  arr.push(index);
3150
3144
  }
3151
-
3152
3145
  if (item.disabled || item.hide) {
3153
3146
  count++;
3154
3147
  }
@@ -3267,74 +3260,64 @@ styleInject(css_248z);
3267
3260
 
3268
3261
  var Transfer = function Transfer(props) {
3269
3262
  var _a, _b, _c, _d;
3270
-
3271
3263
  var intl = useFormatMessage('Transfer', localeJson);
3272
3264
  var _props$data = props.data,
3273
- data = _props$data === void 0 ? [] : _props$data,
3274
- value = props.value,
3275
- _props$customKey = props.customKey,
3276
- customKey = _props$customKey === void 0 ? 'key' : _props$customKey,
3277
- onChange = props.onChange,
3278
- _props$titles = props.titles,
3279
- titles = _props$titles === void 0 ? [intl({
3280
- id: 'left'
3281
- }), intl({
3282
- id: 'right'
3283
- })] : _props$titles,
3284
- className = props.className,
3285
- _props$style = props.style,
3286
- style = _props$style === void 0 ? {
3287
- width: '298px'
3288
- } : _props$style,
3289
- onSort = props.onSort,
3290
- _props$trim = props.trim,
3291
- trim = _props$trim === void 0 ? false : _props$trim,
3292
- _props$multiple = props.multiple,
3293
- multiple = _props$multiple === void 0 ? true : _props$multiple,
3294
- rightIcon = props.rightIcon,
3295
- _props$render = props.render,
3296
- render = _props$render === void 0 ? function (item) {} : _props$render;
3297
-
3265
+ data = _props$data === void 0 ? [] : _props$data,
3266
+ value = props.value,
3267
+ _props$customKey = props.customKey,
3268
+ customKey = _props$customKey === void 0 ? 'key' : _props$customKey,
3269
+ onChange = props.onChange,
3270
+ _props$titles = props.titles,
3271
+ titles = _props$titles === void 0 ? [intl({
3272
+ id: 'left'
3273
+ }), intl({
3274
+ id: 'right'
3275
+ })] : _props$titles,
3276
+ className = props.className,
3277
+ _props$style = props.style,
3278
+ style = _props$style === void 0 ? {
3279
+ width: '298px'
3280
+ } : _props$style,
3281
+ onSort = props.onSort,
3282
+ _props$trim = props.trim,
3283
+ trim = _props$trim === void 0 ? false : _props$trim,
3284
+ _props$multiple = props.multiple,
3285
+ multiple = _props$multiple === void 0 ? true : _props$multiple,
3286
+ rightIcon = props.rightIcon,
3287
+ _props$render = props.render,
3288
+ render = _props$render === void 0 ? function (item) {} : _props$render;
3298
3289
  var _useState = useState({}),
3299
- _useState2 = _slicedToArray(_useState, 2),
3300
- transData = _useState2[0],
3301
- setTransData = _useState2[1];
3302
-
3290
+ _useState2 = _slicedToArray(_useState, 2),
3291
+ transData = _useState2[0],
3292
+ setTransData = _useState2[1];
3303
3293
  var _useState3 = useState([]),
3304
- _useState4 = _slicedToArray(_useState3, 2),
3305
- leftData = _useState4[0],
3306
- setLeftData = _useState4[1];
3307
-
3294
+ _useState4 = _slicedToArray(_useState3, 2),
3295
+ leftData = _useState4[0],
3296
+ setLeftData = _useState4[1];
3308
3297
  var _useState5 = useState([]),
3309
- _useState6 = _slicedToArray(_useState5, 2),
3310
- rightData = _useState6[0],
3311
- setRightData = _useState6[1];
3312
-
3298
+ _useState6 = _slicedToArray(_useState5, 2),
3299
+ rightData = _useState6[0],
3300
+ setRightData = _useState6[1];
3313
3301
  var _useState7 = useState([]),
3314
- _useState8 = _slicedToArray(_useState7, 2),
3315
- leftCount = _useState8[0],
3316
- setLeftCount = _useState8[1];
3317
-
3302
+ _useState8 = _slicedToArray(_useState7, 2),
3303
+ leftCount = _useState8[0],
3304
+ setLeftCount = _useState8[1];
3318
3305
  var _useState9 = useState([]),
3319
- _useState10 = _slicedToArray(_useState9, 2),
3320
- rightCount = _useState10[0],
3321
- setRightCount = _useState10[1];
3322
-
3306
+ _useState10 = _slicedToArray(_useState9, 2),
3307
+ rightCount = _useState10[0],
3308
+ setRightCount = _useState10[1];
3323
3309
  var _useState11 = useState(),
3324
- _useState12 = _slicedToArray(_useState11, 2),
3325
- fluctuationPosition = _useState12[0],
3326
- setFluctuationPosition = _useState12[1];
3327
-
3310
+ _useState12 = _slicedToArray(_useState11, 2),
3311
+ fluctuationPosition = _useState12[0];
3312
+ _useState12[1];
3328
3313
  var _useState13 = useState(),
3329
- _useState14 = _slicedToArray(_useState13, 2),
3330
- fluctuationOrther = _useState14[0],
3331
- setFluctuationOrther = _useState14[1];
3332
-
3314
+ _useState14 = _slicedToArray(_useState13, 2),
3315
+ fluctuationOrther = _useState14[0];
3316
+ _useState14[1];
3333
3317
  var _useState15 = useState(false),
3334
- _useState16 = _slicedToArray(_useState15, 2),
3335
- animationsLock = _useState16[0],
3336
- setAnimationLock = _useState16[1];
3337
-
3318
+ _useState16 = _slicedToArray(_useState15, 2),
3319
+ animationsLock = _useState16[0],
3320
+ setAnimationLock = _useState16[1];
3338
3321
  var onchange = useCallback(function (e, bol, index, direction, multiple) {
3339
3322
  if (direction === 'left') {
3340
3323
  !multiple && leftData.forEach(function (item) {
@@ -3376,10 +3359,8 @@ var Transfer = function Transfer(props) {
3376
3359
  setRightData(_toConsumableArray(rightData));
3377
3360
  }
3378
3361
  }, [leftData, rightData]);
3379
-
3380
3362
  var onMove = function onMove(direction) {
3381
3363
  var newData = [];
3382
-
3383
3364
  if (direction === 'left') {
3384
3365
  newData = _toConsumableArray(rightData);
3385
3366
  newData.forEach(function (item) {
@@ -3399,7 +3380,6 @@ var Transfer = function Transfer(props) {
3399
3380
  }
3400
3381
  });
3401
3382
  }
3402
-
3403
3383
  setLeftData(_toConsumableArray(leftData));
3404
3384
  setRightData(_toConsumableArray(rightData));
3405
3385
  var rArr = [];
@@ -3407,60 +3387,61 @@ var Transfer = function Transfer(props) {
3407
3387
  rArr.push(item[customKey]);
3408
3388
  });
3409
3389
  onChange === null || onChange === void 0 ? void 0 : onChange(rArr);
3410
- }; // 上下移动
3411
-
3412
-
3390
+ };
3391
+ // 上下移动
3413
3392
  var fluctuation = function fluctuation(direction) {
3414
3393
  setAnimationLock(true);
3415
-
3394
+ console.log(rightCount);
3416
3395
  if (direction == 'up') {
3417
- setFluctuationPosition(rightCount[0] - 1);
3418
- setFluctuationOrther(rightCount[0]);
3419
- setTimeout(function () {
3420
- setRightData(function (pre) {
3421
- setFluctuationPosition(undefined);
3422
- setFluctuationOrther(undefined);
3423
- pre.splice.apply(pre, [rightCount[0] - 1, 0].concat(_toConsumableArray(pre.splice(rightCount[0], 1))));
3424
- setAnimationLock(false);
3425
- var rArr = [];
3426
- pre.forEach(function (item) {
3427
- rArr.push(item[customKey]);
3428
- });
3429
- onSort === null || onSort === void 0 ? void 0 : onSort([].concat(rArr));
3430
- onChange === null || onChange === void 0 ? void 0 : onChange([].concat(rArr));
3431
- return _toConsumableArray(pre);
3396
+ // setFluctuationPosition(rightCount[0] - 1)
3397
+ // setFluctuationOrther(rightCount[0])
3398
+ // setTimeout(() => {
3399
+ setRightData(function (pre) {
3400
+ // setFluctuationPosition(undefined)
3401
+ // setFluctuationOrther(undefined)
3402
+ rightCount.forEach(function (item) {
3403
+ pre.splice.apply(pre, [item - 1, 0].concat(_toConsumableArray(pre.splice(item, 1))));
3432
3404
  });
3433
- }, 400);
3405
+ setAnimationLock(false);
3406
+ var rArr = [];
3407
+ pre.forEach(function (item) {
3408
+ rArr.push(item[customKey]);
3409
+ });
3410
+ onSort === null || onSort === void 0 ? void 0 : onSort([].concat(rArr));
3411
+ onChange === null || onChange === void 0 ? void 0 : onChange([].concat(rArr));
3412
+ return _toConsumableArray(pre);
3413
+ });
3414
+ // }, 400)
3434
3415
  } else {
3435
- setFluctuationPosition(rightCount[0]);
3436
- setFluctuationOrther(rightCount[0] + 1);
3437
- setTimeout(function () {
3438
- setRightData(function (pre) {
3439
- setFluctuationPosition(undefined);
3440
- setFluctuationOrther(undefined);
3441
- pre.splice.apply(pre, [rightCount[0] + 1, 0].concat(_toConsumableArray(pre.splice(rightCount[0], 1))));
3442
- setAnimationLock(false);
3443
- var rArr = [];
3444
- pre.forEach(function (item) {
3445
- rArr.push(item[customKey]);
3446
- });
3447
- onSort === null || onSort === void 0 ? void 0 : onSort([].concat(rArr));
3448
- onChange === null || onChange === void 0 ? void 0 : onChange([].concat(rArr));
3449
- return _toConsumableArray(pre);
3416
+ // setFluctuationPosition(rightCount[0])
3417
+ // setFluctuationOrther(rightCount[0] + 1)
3418
+ // setTimeout(() => {
3419
+ setRightData(function (pre) {
3420
+ // setFluctuationPosition(undefined)
3421
+ // setFluctuationOrther(undefined)
3422
+ rightCount.forEach(function (item) {
3423
+ pre.splice.apply(pre, [item + 1, 0].concat(_toConsumableArray(pre.splice(item, 1))));
3424
+ });
3425
+ setAnimationLock(false);
3426
+ var rArr = [];
3427
+ pre.forEach(function (item) {
3428
+ rArr.push(item[customKey]);
3450
3429
  });
3451
- }, 400);
3430
+ onSort === null || onSort === void 0 ? void 0 : onSort([].concat(rArr));
3431
+ onChange === null || onChange === void 0 ? void 0 : onChange([].concat(rArr));
3432
+ return _toConsumableArray(pre);
3433
+ });
3434
+ // }, 400)
3452
3435
  }
3453
3436
  };
3454
3437
 
3455
3438
  var onSearch = function onSearch(e, direction) {
3456
3439
  var str = trim ? e.toUpperCase().trim() : e.toUpperCase();
3457
-
3458
3440
  if (direction === 'left') {
3459
3441
  leftData.forEach(function (item) {
3460
3442
  item.hide = false;
3461
3443
  var name = (item.name || '').toUpperCase();
3462
3444
  var description = (item.description || '').toUpperCase();
3463
-
3464
3445
  if (!(name.indexOf(str) !== -1 || description.indexOf(str) !== -1)) {
3465
3446
  item.hide = true;
3466
3447
  }
@@ -3471,7 +3452,6 @@ var Transfer = function Transfer(props) {
3471
3452
  item.hide = false;
3472
3453
  var name = (item.name || '').toUpperCase();
3473
3454
  var description = (item.description || '').toUpperCase();
3474
-
3475
3455
  if (!(name.indexOf(str) !== -1 || description.indexOf(str) !== -1)) {
3476
3456
  item.hide = true;
3477
3457
  }
@@ -3479,7 +3459,6 @@ var Transfer = function Transfer(props) {
3479
3459
  setRightData(_toConsumableArray(rightData));
3480
3460
  }
3481
3461
  };
3482
-
3483
3462
  var onEndSort = useCallback(function (oldIndex, newIndex) {
3484
3463
  setRightData(function (pre) {
3485
3464
  pre.splice.apply(pre, [newIndex, 0].concat(_toConsumableArray(pre.splice(oldIndex, 1))));
@@ -3512,11 +3491,9 @@ var Transfer = function Transfer(props) {
3512
3491
  delete transData[item];
3513
3492
  }
3514
3493
  });
3515
-
3516
3494
  for (var key in transData) {
3517
3495
  lData.push(transData[key]);
3518
3496
  }
3519
-
3520
3497
  setRightData([].concat(rData));
3521
3498
  setLeftData([].concat(lData));
3522
3499
  }, [value, transData]);
@@ -1,3 +1,3 @@
1
- declare type Iclick = Function;
1
+ type Iclick = Function;
2
2
  export declare const useClick: (callback: Iclick, doubleCallback: Function) => (...args: unknown[]) => void;
3
3
  export {};
package/Tree/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { T as Tree } from '../_verture/index-31ce5a11.js';
2
- export { T as default } from '../_verture/index-31ce5a11.js';
3
- import '../_verture/toConsumableArray-f8047a75.js';
4
- import '../_verture/slicedToArray-d7722f4b.js';
5
- import '../_verture/defineProperty-0590dc61.js';
6
- import '../_verture/index-342379c6.js';
1
+ import { T as Tree } from '../_verture/index-92144ad3.js';
2
+ export { T as default } from '../_verture/index-92144ad3.js';
3
+ import '../_verture/toConsumableArray-87c7d895.js';
4
+ import '../_verture/slicedToArray-77980792.js';
5
+ import '../_verture/defineProperty-62acccfc.js';
6
+ import '../_verture/typeof-498dd2b1.js';
7
+ import '../_verture/index-06fea29b.js';
7
8
  import '../_verture/tslib.es6-55ed4bd2.js';
8
9
  import 'react/jsx-runtime';
9
10
  import 'react';
10
11
  import 'rc-tree';
11
12
  import 'clsx';
12
- import '../_verture/typeof-498dd2b1.js';
13
13
  import '@para-ui/icons/LoadingF';
14
14
  import '@para-ui/icons/Document';
15
15
  import '@para-ui/icons/DownTriangleF';
@@ -19,7 +19,7 @@ import '../Help/index.js';
19
19
  import '../Tooltip/index.js';
20
20
  import 'rc-tooltip';
21
21
  import 'rc-tooltip/lib/placements';
22
- import '../_verture/constant-bf34e6fa.js';
22
+ import '../_verture/constant-66aa48a1.js';
23
23
  import '../_verture/style-inject.es-300983ab.js';
24
24
  import '@para-ui/icons/Help';
25
25
  import 'react-dom';
@@ -28,10 +28,10 @@ import '@para-ui/icons/PlusCircle';
28
28
  import '@para-ui/icons/Delete';
29
29
  import '@para-ui/icons/Forbid';
30
30
  import '@paraview/lib';
31
- import '../_verture/useFormatMessage-f4452258.js';
31
+ import '../_verture/useFormatMessage-703f8b20.js';
32
32
  import '@para-ui/core/GlobalContext';
33
33
  import '@para-ui/icons/MoreCircle';
34
34
  import '../Empty/index.js';
35
- import '../_verture/useGlobalProps-af9a2af6.js';
35
+ import '../_verture/useGlobalProps-1b846a65.js';
36
36
  import '../Loading/index.js';
37
37
  import '../AutoTips/index.js';
@@ -7,21 +7,21 @@ import { ReactNode } from "react";
7
7
  import { TreeProps as RcTreeProps } from 'rc-tree';
8
8
  import { DataNode, EventDataNode, Key } from "rc-tree/lib/interface";
9
9
  import { EmptyProps } from "../Empty";
10
- declare type HasAction = (nodeData: DataNode) => boolean;
11
- declare type ActionItem = boolean | {
10
+ type HasAction = (nodeData: DataNode) => boolean;
11
+ type ActionItem = boolean | {
12
12
  text: string;
13
13
  icon?: ReactNode;
14
14
  show?: HasAction;
15
15
  } | HasAction;
16
- export declare type CustomActionItem = {
16
+ export type CustomActionItem = {
17
17
  action: string;
18
18
  text: string;
19
19
  icon: ReactNode;
20
20
  show?: HasAction;
21
21
  };
22
- export declare type ActionType = 'add' | 'edit' | 'enable' | 'del' | string;
22
+ export type ActionType = 'add' | 'edit' | 'enable' | 'del' | string;
23
23
  export type { DataNode };
24
- export declare type IActions = boolean | {
24
+ export type IActions = boolean | {
25
25
  /** 新增 */
26
26
  add?: ActionItem;
27
27
  /** 编辑 */
@@ -33,7 +33,7 @@ export declare type IActions = boolean | {
33
33
  /** 自定义actions */
34
34
  customizeActions?: CustomActionItem[];
35
35
  };
36
- export declare type ICheckedKeys = Key[] | {
36
+ export type ICheckedKeys = Key[] | {
37
37
  checked: Key[];
38
38
  halfChecked: Key[];
39
39
  };
@@ -5,6 +5,6 @@
5
5
  */
6
6
  import { FunctionComponent } from "react";
7
7
  import { UploadProps } from "../index";
8
- export declare type DraggerProps = Omit<UploadProps, 'type'>;
8
+ export type DraggerProps = Omit<UploadProps, 'type'>;
9
9
  declare const Dragger: FunctionComponent<DraggerProps>;
10
10
  export default Dragger;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { UploadProps } from '../interface';
3
3
  import './index.scss';
4
- export declare type ImageUploadProps = Omit<UploadProps, 'type'> & {
4
+ export type ImageUploadProps = Omit<UploadProps, 'type'> & {
5
5
  /** 默认图片 showUploadList为false时有效 */
6
6
  defaultImage?: {
7
7
  /** 图片地址 */
@@ -3,7 +3,7 @@ import Cropper from 'react-easy-crop';
3
3
  import type { Dispatch, SetStateAction, ForwardedRef } from 'react';
4
4
  import type { Area } from 'react-easy-crop/types';
5
5
  import type { ImgCropProps } from './interface';
6
- export declare type EasyCropHandle = {
6
+ export type EasyCropHandle = {
7
7
  rotateVal: number;
8
8
  setZoomVal: Dispatch<SetStateAction<number>>;
9
9
  setRotateVal: Dispatch<SetStateAction<number>>;
package/Upload/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import Dragger, { DraggerProps } from "./Dragger";
5
5
  import ImgCrop, { ImgCropProps } from "./ImgCrop";
6
6
  import './index.scss';
7
7
  declare const InternalUpload: FunctionComponent<UploadProps>;
8
- declare type MergedUploadType = typeof InternalUpload & {
8
+ type MergedUploadType = typeof InternalUpload & {
9
9
  ImageUpload: typeof ImageUpload;
10
10
  Dragger: typeof Dragger;
11
11
  ImgCrop: typeof ImgCrop;