@para-ui/core 4.0.22 → 4.0.25

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 (115) hide show
  1. package/AutoTips/index.js +24 -13
  2. package/Button/index.js +1 -1
  3. package/ButtonGroup/index.js +1 -1
  4. package/Cascader/index.js +7 -6
  5. package/ComboSelect/index.js +2 -2
  6. package/CopyText/index.js +1 -1
  7. package/CycleSelector/index.d.ts +14 -2
  8. package/CycleSelector/index.js +43 -4
  9. package/DatePicker/index.js +1 -1
  10. package/Descriptions/index.js +1 -1
  11. package/Desktop/index.js +1 -1
  12. package/Drawer/index.js +1 -1
  13. package/Dropdown/index.js +1 -1
  14. package/DynamicMultiBox/index.js +2 -2
  15. package/Empty/index.js +0 -6
  16. package/Form/index.js +11 -8
  17. package/FormItem/index.js +3 -3
  18. package/FunctionModal/index.js +3 -3
  19. package/Image/PreviewGroup.d.ts +20 -0
  20. package/Image/index.d.ts +10 -0
  21. package/Image/index.js +1485 -0
  22. package/InputLang/index.js +1 -1
  23. package/Modal/index.js +1 -1
  24. package/MultiBox/index.js +1 -1
  25. package/OperateBtn/index.js +1 -1
  26. package/PageHeader/index.js +1 -1
  27. package/Pagination/index.js +3 -3
  28. package/PopConfirm/index.js +1 -1
  29. package/Popover/index.js +1 -1
  30. package/Querying/index.js +0 -12
  31. package/QuickReply/index.js +1 -1
  32. package/README.md +20 -0
  33. package/Search/index.js +1 -1
  34. package/Select/index.d.ts +2 -0
  35. package/Select/index.js +27 -10
  36. package/SelectInput/index.js +1 -1
  37. package/Selector/index.js +1 -1
  38. package/SelectorPicker/index.js +1 -1
  39. package/SingleBox/index.js +1 -1
  40. package/Slider/index.js +29 -14
  41. package/Slider/interface.d.ts +4 -0
  42. package/Table/index.js +9 -3
  43. package/Tabs/index.js +1 -1
  44. package/TextField/index.js +5 -4
  45. package/TimePicker/index.js +1 -1
  46. package/ToggleButton/index.js +1 -1
  47. package/Transfer/index.js +50 -44
  48. package/Tree/index.js +2 -2
  49. package/Upload/ImgCrop/EasyCrop.d.ts +2 -2
  50. package/Upload/ImgCrop/constants.d.ts +12 -0
  51. package/Upload/ImgCrop/interface.d.ts +10 -0
  52. package/Upload/index.js +506 -128
  53. package/Upload/interface.d.ts +43 -0
  54. package/Upload/util.d.ts +7 -0
  55. package/_verture/Portal-5bd49559.js +1698 -0
  56. package/_verture/{index-066d47d4.js → index-5f205d87.js} +38 -1727
  57. package/_verture/{index-b892f976.js → index-93662604.js} +2 -2
  58. package/_verture/{index-389675ab.js → index-bde7aabe.js} +1 -1
  59. package/index.d.ts +2 -0
  60. package/index.js +18 -12
  61. package/locale/index.js +2 -2
  62. package/package.json +3 -2
  63. package/umd/AutoBox.js +1 -1
  64. package/umd/AutoTips.js +1 -1
  65. package/umd/Breadcrumbs.js +2 -2
  66. package/umd/Button.js +2 -2
  67. package/umd/ButtonGroup.js +2 -2
  68. package/umd/Cascader.js +1 -1
  69. package/umd/ComboSelect.js +3 -3
  70. package/umd/CopyText.js +2 -2
  71. package/umd/CycleSelector.js +3 -3
  72. package/umd/DatePicker.js +2 -2
  73. package/umd/Descriptions.js +2 -2
  74. package/umd/Desktop.js +2 -2
  75. package/umd/Drawer.js +2 -2
  76. package/umd/Dropdown.js +1 -1
  77. package/umd/DynamicMultiBox.js +3 -3
  78. package/umd/Empty.js +1 -1
  79. package/umd/Form.js +4 -4
  80. package/umd/FormItem.js +3 -3
  81. package/umd/FunctionModal.js +6 -6
  82. package/umd/Image.js +42 -0
  83. package/umd/InputLang.js +2 -2
  84. package/umd/Menu.js +1 -1
  85. package/umd/Modal.js +5 -5
  86. package/umd/MultiBox.js +2 -2
  87. package/umd/OperateBtn.js +4 -4
  88. package/umd/PageHeader.js +2 -2
  89. package/umd/Pagination.js +2 -2
  90. package/umd/PopConfirm.js +4 -4
  91. package/umd/PopMenu.js +2 -2
  92. package/umd/Popover.js +1 -1
  93. package/umd/Querying.js +1 -1
  94. package/umd/QuickReply.js +4 -4
  95. package/umd/Search.js +2 -2
  96. package/umd/Select.js +3 -3
  97. package/umd/SelectInput.js +2 -2
  98. package/umd/Selector.js +2 -2
  99. package/umd/SelectorPicker.js +5 -5
  100. package/umd/SingleBox.js +2 -2
  101. package/umd/Slider.js +2 -2
  102. package/umd/Stepper.js +1 -1
  103. package/umd/Table.js +6 -6
  104. package/umd/Tabs.js +4 -4
  105. package/umd/Tag.js +1 -1
  106. package/umd/TextField.js +3 -3
  107. package/umd/TimePicker.js +2 -2
  108. package/umd/Title.js +1 -1
  109. package/umd/ToggleButton.js +2 -2
  110. package/umd/Transfer.js +2 -2
  111. package/umd/Tree.js +1 -1
  112. package/umd/Upload.js +6 -6
  113. package/umd/locale.js +1 -1
  114. /package/_verture/{index-4b965dd7.js → index-0eca82dc.js} +0 -0
  115. /package/_verture/{modalContext-c8cc3107.js → modalContext-c57b51b7.js} +0 -0
package/AutoTips/index.js CHANGED
@@ -64,6 +64,17 @@ const AutoTipsMultiline = props => {
64
64
  lineArr.push(children.slice(linePos, i));
65
65
  linePos = i;
66
66
  addWidth = offsetWidth; // 重置宽度
67
+ // 最后一个字
68
+ if (i === singleWordRefs.current.length - 1) {
69
+ if (lineArr.length < constData.current.line) {
70
+ // 没超出行数
71
+ lineArr.push(children.slice(linePos, children.length));
72
+ } else {
73
+ showTooltip = true;
74
+ setTTips(constData.current.tips || children);
75
+ lineArr.push(children.slice(linePos, children.length));
76
+ }
77
+ }
67
78
  } else {
68
79
  // 超出
69
80
  showTooltip = true;
@@ -215,20 +226,20 @@ const AutoTips = props => {
215
226
  if (className) str += " ".concat(className);
216
227
  return str;
217
228
  };
218
- return jsx("div", Object.assign({
219
- ref: tipsElm,
220
- className: handClass(),
221
- onMouseOver: mouseHover,
222
- style: style
229
+ return jsx(Tooltip, Object.assign({
230
+ arrow: arrow,
231
+ title: tTips,
232
+ placement: placement,
233
+ interactive: interactive,
234
+ boundariesElement: 'viewport',
235
+ overlayClassName: "".concat($prefixCls, "-auto-tips-tooltip"),
236
+ maxWidth: tipMaxWidth
223
237
  }, {
224
- children: jsx(Tooltip, Object.assign({
225
- arrow: arrow,
226
- title: tTips,
227
- placement: placement,
228
- interactive: interactive,
229
- boundariesElement: 'viewport',
230
- overlayClassName: "".concat($prefixCls, "-auto-tips-tooltip"),
231
- maxWidth: tipMaxWidth
238
+ children: jsx("div", Object.assign({
239
+ ref: tipsElm,
240
+ className: handClass(),
241
+ onMouseOver: mouseHover,
242
+ style: style
232
243
  }, {
233
244
  children: jsx("div", Object.assign({
234
245
  className: "auto-tips-content",
package/Button/index.js CHANGED
@@ -7,7 +7,7 @@ import { Tooltip } from '../Tooltip/index.js';
7
7
  import Down from '@para-ui/icons/Down';
8
8
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
9
9
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
- import { D as Dropdown } from '../_verture/index-389675ab.js';
10
+ import { D as Dropdown } from '../_verture/index-bde7aabe.js';
11
11
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
12
12
  import AutoTips from '../AutoTips/index.js';
13
13
  import 'rc-tooltip';
@@ -9,7 +9,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
9
9
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
10
  import '@para-ui/icons/LoadingF';
11
11
  import '@para-ui/icons/Down';
12
- import '../_verture/index-389675ab.js';
12
+ import '../_verture/index-bde7aabe.js';
13
13
  import 'rc-dropdown';
14
14
  import '../_verture/usePopupContainer-635f66f4.js';
15
15
  import 'dayjs';
package/Cascader/index.js CHANGED
@@ -1,14 +1,15 @@
1
- import { C as Cascader } from '../_verture/index-066d47d4.js';
2
- export { C as default } from '../_verture/index-066d47d4.js';
1
+ import { C as Cascader } from '../_verture/index-5f205d87.js';
2
+ export { C as default } from '../_verture/index-5f205d87.js';
3
3
  import '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import 'react/jsx-runtime';
5
- import '../_verture/toConsumableArray-8f4c9589.js';
6
- import '../_verture/unsupportedIterableToArray-cb478f24.js';
7
- import '../_verture/defineProperty-6f62bb2a.js';
8
- import '../_verture/typeof-adeedc13.js';
5
+ import '../_verture/Portal-5bd49559.js';
9
6
  import '../_verture/slicedToArray-a8206399.js';
7
+ import '../_verture/unsupportedIterableToArray-cb478f24.js';
10
8
  import 'react';
11
9
  import 'react-dom';
10
+ import '../_verture/typeof-adeedc13.js';
11
+ import '../_verture/toConsumableArray-8f4c9589.js';
12
+ import '../_verture/defineProperty-6f62bb2a.js';
12
13
  import 'rc-motion';
13
14
  import 'clsx';
14
15
  import '../_verture/typeof-6ec38efd.js';
@@ -6,9 +6,9 @@ import SearchIcon from '@para-ui/icons/Search';
6
6
  import CloseIcon from '@para-ui/icons/Close';
7
7
  import CloseCircleF from '@para-ui/icons/CloseCircleF';
8
8
  import Table from '../Table/index.js';
9
- import { T as Tree } from '../_verture/index-b892f976.js';
9
+ import { T as Tree } from '../_verture/index-93662604.js';
10
10
  import { Button } from '../Button/index.js';
11
- import { D as Dropdown } from '../_verture/index-389675ab.js';
11
+ import { D as Dropdown } from '../_verture/index-bde7aabe.js';
12
12
  import { Popover } from '../Popover/index.js';
13
13
  import AutoTips from '../AutoTips/index.js';
14
14
  import { Tooltip } from '../Tooltip/index.js';
package/CopyText/index.js CHANGED
@@ -22,7 +22,7 @@ import '@para-ui/icons/Forbid';
22
22
  import '../HelperText/index.js';
23
23
  import '../_verture/useGlobalProps-4ae1a007.js';
24
24
  import '../_verture/index-ca413216.js';
25
- import '../_verture/index-389675ab.js';
25
+ import '../_verture/index-bde7aabe.js';
26
26
  import 'rc-dropdown';
27
27
  import '../_verture/usePopupContainer-635f66f4.js';
28
28
  import 'dayjs';
@@ -9,7 +9,7 @@ import { HelperTextDetailProps } from "../HelperText";
9
9
  import './index.scss';
10
10
  export interface CycleSelectorValueProps {
11
11
  /** 开始时间 */
12
- startTime?: string;
12
+ startTime?: string | number;
13
13
  /** 周期类型:0:不重复,1:每天重复,2:每周重复,3:每月重复,4:每年重复,5:自定义 */
14
14
  cycleType?: number;
15
15
  /** 周期频率 */
@@ -25,7 +25,7 @@ export interface CycleSelectorValueProps {
25
25
  /** 当结束方式是限定次数,限定的重复执行次数 */
26
26
  limitNum?: number;
27
27
  /** 当结束方式是限定时间,结束执行的日期 */
28
- endTime?: string;
28
+ endTime?: string | number;
29
29
  }
30
30
  declare type DisabledTimes = {
31
31
  disabledHours?: () => number[];
@@ -37,12 +37,24 @@ export interface CycleSelectorProps extends HelperTextDetailProps {
37
37
  className?: string;
38
38
  style?: React.CSSProperties;
39
39
  value: CycleSelectorValueProps;
40
+ /** 时间格式
41
+ * undefined:YYYY-MM-DD HH:mm:ss
42
+ * zone: YYYY-MM-DD[T]HH:mm:ss[Z]
43
+ * stamp: 时间戳
44
+ * */
45
+ timeType?: 'zone' | 'stamp';
46
+ /** 提示文本自定义渲染 */
47
+ tipRender?: () => React.ReactNode;
40
48
  /** 禁用 */
41
49
  disabled?: boolean;
42
50
  /** 禁用日期 */
43
51
  disabledDate?: (date: Dayjs) => boolean;
44
52
  /** 禁用时间 */
45
53
  disabledTime?: DisabledTime<Dayjs>;
54
+ /** 显示弹窗
55
+ * 不传:组件里面控制
56
+ * */
57
+ showPopover?: boolean;
46
58
  onChange: (val: CycleSelectorValueProps) => void;
47
59
  }
48
60
  declare const CycleSelector: FunctionComponent<CycleSelectorProps>;
@@ -33,7 +33,7 @@ import 'rc-picker';
33
33
  import '@para-ui/icons/CloseCircleF';
34
34
  import '@para-ui/icons/Calendar';
35
35
  import '@para-ui/icons/Time';
36
- import '../_verture/index-389675ab.js';
36
+ import '../_verture/index-bde7aabe.js';
37
37
  import 'rc-dropdown';
38
38
  import '../_verture/usePopupContainer-635f66f4.js';
39
39
  import 'rc-picker/lib/locale/en_US';
@@ -235,6 +235,9 @@ const CycleSelector = props => {
235
235
  helperText,
236
236
  disabledDate,
237
237
  disabledTime,
238
+ timeType,
239
+ tipRender,
240
+ showPopover,
238
241
  onChange
239
242
  } = props;
240
243
  const {
@@ -300,10 +303,36 @@ const CycleSelector = props => {
300
303
  useEffect(() => {
301
304
  const valC = value ? Object.assign({}, value) : {};
302
305
  if (!valC.startTime) valC.cycleType = 0;
306
+ if (valC.startTime) valC.startTime = handleTimeEnter(valC.startTime, 'YYYY-MM-DD HH:mm');
307
+ if (valC.endTime) valC.endTime = handleTimeEnter(valC.endTime, 'YYYY-MM-DD');
303
308
  setValueCom(valC);
304
309
  constData.current.valueCom = valC;
305
310
  handleSelectData();
306
311
  }, [value, language]);
312
+ useEffect(() => {
313
+ if (showPopover !== undefined) {
314
+ if (showPopover) handlePopoverDefaultValue();
315
+ }
316
+ }, [showPopover]);
317
+ // 出参
318
+ const handleTimeOut = val => {
319
+ if (!val) return '';
320
+ if (timeType === 'zone') {
321
+ // 时区
322
+ return new Date(val).toISOString();
323
+ }
324
+ if (timeType === 'stamp') {
325
+ // 时间戳
326
+ return new Date(val).getTime();
327
+ }
328
+ return val;
329
+ };
330
+ // 入参
331
+ const handleTimeEnter = (val, format) => {
332
+ if (!val) return '';
333
+ const timeVal = new Date(val).toLocaleString();
334
+ return dayjs(timeVal).format(format);
335
+ };
307
336
  // 处理下拉框选择
308
337
  const handleSelectData = () => {
309
338
  var _a, _b;
@@ -434,7 +463,10 @@ const CycleSelector = props => {
434
463
  delete constData.current.valueCom.limitNum;
435
464
  delete constData.current.valueCom.executionDay;
436
465
  }
437
- onChange(cancel ? Object.assign({}, constData.current.value) : Object.assign({}, constData.current.valueCom));
466
+ const val = cancel ? Object.assign({}, constData.current.value) : Object.assign({}, constData.current.valueCom);
467
+ if (val.startTime) val.startTime = handleTimeOut(val.startTime);
468
+ if (val.endTime) val.endTime = handleTimeOut(val.endTime);
469
+ onChange(val);
438
470
  };
439
471
  const onVisibleChange = bol => {
440
472
  if (!bol) cancelPopover();
@@ -450,6 +482,7 @@ const CycleSelector = props => {
450
482
  const text = [];
451
483
  const everyText1 = intl('every') + value.frequency + intl(value.frequencyUnit);
452
484
  const timeText = (_a = constData.current.timeDetail) === null || _a === void 0 ? void 0 : _a.hm;
485
+ if (tipRender) return tipRender();
453
486
  if (value.frequencyUnit === 'week') {
454
487
  const arr = [];
455
488
  let str;
@@ -494,7 +527,7 @@ const CycleSelector = props => {
494
527
  }
495
528
  if (value.endType === 1) {
496
529
  text.push(intl('text3', {
497
- date: value.endTime
530
+ date: handleTimeEnter(value.endTime, 'YYYY-MM-DD')
498
531
  }));
499
532
  }
500
533
  return jsxs("p", Object.assign({
@@ -748,13 +781,19 @@ const CycleSelector = props => {
748
781
  }
749
782
  }*/
750
783
  };
784
+ const handleOpen = () => {
785
+ if (showPopover !== undefined) {
786
+ return showPopover;
787
+ }
788
+ return open;
789
+ };
751
790
  return jsxs("div", Object.assign({
752
791
  className: clsx("".concat($prefixCls, "-cycle-selector"), className),
753
792
  style: style
754
793
  }, {
755
794
  children: [jsx(Popover, Object.assign({
756
795
  content: handleContent(),
757
- open: open,
796
+ open: handleOpen(),
758
797
  placement: "bottomRight",
759
798
  overlayClassName: "".concat($prefixCls, "-cycle-selector-popover"),
760
799
  onVisibleChange: onVisibleChange
@@ -10,7 +10,7 @@ import RCPicker, { RangePicker } from 'rc-picker';
10
10
  import CloseCircleF from '@para-ui/icons/CloseCircleF';
11
11
  import DateIcon from '@para-ui/icons/Calendar';
12
12
  import TimeIcon from '@para-ui/icons/Time';
13
- import { m as mergedLocale, g as getTimeProps, a as getPlaceholder, f as formatPickerValue, b as getPopupContainer, i as isolationPopupPollution, c as getRangePlaceholder } from '../_verture/index-389675ab.js';
13
+ import { m as mergedLocale, g as getTimeProps, a as getPlaceholder, f as formatPickerValue, b as getPopupContainer, i as isolationPopupPollution, c as getRangePlaceholder } from '../_verture/index-bde7aabe.js';
14
14
  import CalendarLocale from 'rc-picker/lib/locale/en_US';
15
15
  import CalendarLocale$1 from 'rc-picker/lib/locale/zh_CN';
16
16
  import { G as GlobalContext } from '../_verture/index-ca413216.js';
@@ -24,7 +24,7 @@ import 'react-transition-group';
24
24
  import '../_verture/util-82646c4f.js';
25
25
  import '@para-ui/icons/LoadingF';
26
26
  import '@para-ui/icons/Down';
27
- import '../_verture/index-389675ab.js';
27
+ import '../_verture/index-bde7aabe.js';
28
28
  import 'rc-dropdown';
29
29
  import '../_verture/usePopupContainer-635f66f4.js';
30
30
  import 'dayjs';
package/Desktop/index.js CHANGED
@@ -23,7 +23,7 @@ import '@para-ui/icons/LoadingF';
23
23
  import '../HelperText/index.js';
24
24
  import '../_verture/useGlobalProps-4ae1a007.js';
25
25
  import '../_verture/index-ca413216.js';
26
- import '../_verture/index-389675ab.js';
26
+ import '../_verture/index-bde7aabe.js';
27
27
  import 'rc-dropdown';
28
28
  import '../_verture/usePopupContainer-635f66f4.js';
29
29
  import 'dayjs';
package/Drawer/index.js CHANGED
@@ -15,7 +15,7 @@ import 'rc-tooltip';
15
15
  import 'rc-tooltip/lib/placements';
16
16
  import '@para-ui/icons/Forbid';
17
17
  import '@para-ui/icons/Down';
18
- import '../_verture/index-389675ab.js';
18
+ import '../_verture/index-bde7aabe.js';
19
19
  import 'rc-dropdown';
20
20
  import '../_verture/usePopupContainer-635f66f4.js';
21
21
  import 'dayjs';
package/Dropdown/index.js CHANGED
@@ -4,7 +4,7 @@ import 'rc-dropdown';
4
4
  import '../_verture/constant-5317fc89.js';
5
5
  import '../_verture/usePopupContainer-635f66f4.js';
6
6
  import 'clsx';
7
- export { D as Dropdown, D as default } from '../_verture/index-389675ab.js';
7
+ export { D as Dropdown, D as default } from '../_verture/index-bde7aabe.js';
8
8
  import '@paraview/lib';
9
9
  import 'dayjs';
10
10
  import '../_verture/style-inject.es-300983ab.js';
@@ -38,7 +38,7 @@ import '../Loading/index.js';
38
38
  import '@para-ui/icons/LoadingF';
39
39
  import '../_verture/useGlobalProps-4ae1a007.js';
40
40
  import '../_verture/index-ca413216.js';
41
- import '../_verture/index-389675ab.js';
41
+ import '../_verture/index-bde7aabe.js';
42
42
  import 'rc-dropdown';
43
43
  import 'dayjs';
44
44
  import '../Empty/index.js';
@@ -70,7 +70,7 @@ import 'rc-pagination';
70
70
  import '@para-ui/icons/Right';
71
71
  import '@para-ui/icons/DoubleLeft';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-b892f976.js';
73
+ import '../_verture/index-93662604.js';
74
74
  import 'rc-tree';
75
75
  import '../_verture/typeof-adeedc13.js';
76
76
  import '@para-ui/icons/Document';
package/Empty/index.js CHANGED
@@ -390,12 +390,6 @@ const LargeNull = () => {
390
390
  rx: "3.014",
391
391
  transform: "translate(220.555 180.535)",
392
392
  fill: "#dde7ff"
393
- }), jsx("path", {
394
- id: "\u8DEF\u5F84_17905",
395
- "data-name": "\u8DEF\u5F84 17905",
396
- d: "M20.358,21.966l-9.43-10.172v2.289H9.107V9.83H20.241a3.922,3.922,0,1,1,0,7.843h-.65L17.9,15.846h2.328a2.088,2.088,0,0,0,0-4.175H13.288L21.2,20.184l1.613,1.782Zm-4.774-4.3h-4.65v4.305H9.1V15.859h4.767l1.7,1.834Z",
397
- transform: "translate(217.487 107.367)",
398
- fill: "#3666d6"
399
393
  }), jsxs("g", Object.assign({
400
394
  id: "\u7EC4_20029",
401
395
  "data-name": "\u7EC4 20029",
package/Form/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { DeepClone } from '@paraview/lib';
3
3
  import React__default from 'react';
4
- import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-4b965dd7.js';
4
+ import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-0eca82dc.js';
5
5
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
6
6
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
7
7
  import '../TextField/index.js';
@@ -24,7 +24,7 @@ import '@para-ui/icons/LoadingF';
24
24
  import '../HelperText/index.js';
25
25
  import '../_verture/useGlobalProps-4ae1a007.js';
26
26
  import '../_verture/index-ca413216.js';
27
- import '../_verture/index-389675ab.js';
27
+ import '../_verture/index-bde7aabe.js';
28
28
  import 'rc-dropdown';
29
29
  import '../_verture/usePopupContainer-635f66f4.js';
30
30
  import 'dayjs';
@@ -69,7 +69,7 @@ import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleLeft';
71
71
  import '@para-ui/icons/DoubleRight';
72
- import '../_verture/index-b892f976.js';
72
+ import '../_verture/index-93662604.js';
73
73
  import 'rc-tree';
74
74
  import '../_verture/typeof-adeedc13.js';
75
75
  import '@para-ui/icons/Document';
@@ -306,10 +306,8 @@ const Form = props => {
306
306
  };
307
307
  }
308
308
  }, [form]);
309
- return jsx("form", Object.assign({}, FormProps, {
310
- className: "".concat($prefixCls, "-form")
311
- }, {
312
- children: jsx("div", Object.assign({
309
+ const cRender = React__default.useMemo(() => {
310
+ return jsx("div", Object.assign({
313
311
  className: "form-content ".concat(className)
314
312
  }, {
315
313
  children: itemsConfig && itemsConfig.length > 0 && itemsConfig.map((item, idx) => {
@@ -330,7 +328,12 @@ const Form = props => {
330
328
  setValue: setValue
331
329
  }), "form-item-".concat(idx, "-").concat(refresh));
332
330
  })
333
- }))
331
+ }));
332
+ }, [className, itemsConfig, onChange, refresh, labelWidth, type, disabled, disOnlySpace, requiredElement, disRequiredElement, labelProps, helperTextProps]);
333
+ return jsx("form", Object.assign({}, FormProps, {
334
+ className: "".concat($prefixCls, "-form")
335
+ }, {
336
+ children: cRender
334
337
  }));
335
338
  };
336
339
 
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-4b965dd7.js';
3
+ export { F as default } from '../_verture/index-0eca82dc.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-5317fc89.js';
@@ -21,7 +21,7 @@ import '@para-ui/icons/LoadingF';
21
21
  import '../HelperText/index.js';
22
22
  import '../_verture/useGlobalProps-4ae1a007.js';
23
23
  import '../_verture/index-ca413216.js';
24
- import '../_verture/index-389675ab.js';
24
+ import '../_verture/index-bde7aabe.js';
25
25
  import 'rc-dropdown';
26
26
  import '../_verture/usePopupContainer-635f66f4.js';
27
27
  import 'dayjs';
@@ -69,7 +69,7 @@ import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleLeft';
71
71
  import '@para-ui/icons/DoubleRight';
72
- import '../_verture/index-b892f976.js';
72
+ import '../_verture/index-93662604.js';
73
73
  import 'rc-tree';
74
74
  import '../_verture/typeof-adeedc13.js';
75
75
  import '@para-ui/icons/Document';
@@ -1,5 +1,5 @@
1
- import { u as useModal } from '../_verture/modalContext-c8cc3107.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-c8cc3107.js';
1
+ import { u as useModal } from '../_verture/modalContext-c57b51b7.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-c57b51b7.js';
3
3
  import '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -15,7 +15,7 @@ import '../_verture/constant-5317fc89.js';
15
15
  import '@para-ui/icons/Forbid';
16
16
  import '../_verture/style-inject.es-300983ab.js';
17
17
  import '@para-ui/icons/Down';
18
- import '../_verture/index-389675ab.js';
18
+ import '../_verture/index-bde7aabe.js';
19
19
  import 'rc-dropdown';
20
20
  import '../_verture/usePopupContainer-635f66f4.js';
21
21
  import 'dayjs';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @author lisq
3
+ * @date 2023/12/25 15:00
4
+ * @description 预览图片组
5
+ */
6
+ import * as React from 'react';
7
+ import type { GroupConsumerProps } from 'rc-image/lib/PreviewGroup';
8
+ export declare const icons: {
9
+ rotateLeft: import("react/jsx-runtime").JSX.Element;
10
+ rotateRight: import("react/jsx-runtime").JSX.Element;
11
+ zoomIn: import("react/jsx-runtime").JSX.Element;
12
+ zoomOut: import("react/jsx-runtime").JSX.Element;
13
+ close: import("react/jsx-runtime").JSX.Element;
14
+ left: import("react/jsx-runtime").JSX.Element;
15
+ right: import("react/jsx-runtime").JSX.Element;
16
+ flipX: import("react/jsx-runtime").JSX.Element;
17
+ flipY: import("react/jsx-runtime").JSX.Element;
18
+ };
19
+ declare const InternalPreviewGroup: React.FC<GroupConsumerProps>;
20
+ export default InternalPreviewGroup;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import type { ImageProps } from 'rc-image';
3
+ import PreviewGroup from './PreviewGroup';
4
+ import './index.scss';
5
+ export interface CompositionImage<P> extends React.FC<P> {
6
+ PreviewGroup: typeof PreviewGroup;
7
+ }
8
+ declare const Image: CompositionImage<ImageProps>;
9
+ export type { ImageProps };
10
+ export default Image;