@zat-design/sisyphus-react 3.5.1-beta.16 → 3.5.1-beta.18

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 (35) hide show
  1. package/es/ProEnum/components/Group.d.ts +1 -1
  2. package/es/ProEnum/components/Group.js +3 -1
  3. package/es/ProEnum/components/Tag.d.ts +1 -1
  4. package/es/ProEnum/components/Tag.js +3 -1
  5. package/es/ProEnum/index.js +1 -0
  6. package/es/ProEnum/propsType.d.ts +1 -0
  7. package/es/ProForm/components/combination/FormList/components/BlockFields.js +3 -1
  8. package/es/ProForm/components/combination/FormList/components/LineFields.js +3 -1
  9. package/es/ProForm/components/combination/FormList/propsType.d.ts +1 -0
  10. package/es/ProForm/components/combination/Group/index.js +3 -1
  11. package/es/ProForm/components/combination/ProCombination/index.js +3 -1
  12. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -0
  13. package/es/ProForm/components/combination/ProNumberRange/index.js +3 -1
  14. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -6
  15. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -2
  16. package/es/ProUpload/index.js +1 -0
  17. package/es/ProUpload/propsType.d.ts +4 -3
  18. package/lib/ProEnum/components/Group.d.ts +1 -1
  19. package/lib/ProEnum/components/Group.js +3 -1
  20. package/lib/ProEnum/components/Tag.d.ts +1 -1
  21. package/lib/ProEnum/components/Tag.js +3 -1
  22. package/lib/ProEnum/index.js +1 -0
  23. package/lib/ProEnum/propsType.d.ts +1 -0
  24. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +3 -1
  25. package/lib/ProForm/components/combination/FormList/components/LineFields.js +3 -1
  26. package/lib/ProForm/components/combination/FormList/propsType.d.ts +1 -0
  27. package/lib/ProForm/components/combination/Group/index.js +3 -1
  28. package/lib/ProForm/components/combination/ProCombination/index.js +3 -1
  29. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -0
  30. package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -1
  31. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -6
  32. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -2
  33. package/lib/ProUpload/index.js +1 -0
  34. package/lib/ProUpload/propsType.d.ts +4 -3
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ProEnum } from '../propsType';
2
- interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
2
+ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'> {
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  disabled?: boolean;
@@ -10,7 +10,8 @@ var Group = function Group(props) {
10
10
  fieldLabel = props.fieldLabel,
11
11
  disabled = props.disabled,
12
12
  _props$allowClear = props.allowClear,
13
- allowClear = _props$allowClear === void 0 ? true : _props$allowClear;
13
+ allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
14
+ id = props.id;
14
15
  var _useState = useState(false),
15
16
  _useState2 = _slicedToArray(_useState, 2),
16
17
  refresh = _useState2[0],
@@ -41,6 +42,7 @@ var Group = function Group(props) {
41
42
  });
42
43
  }
43
44
  return _jsx("div", {
45
+ id: id,
44
46
  className: classNames('pro-enum-group-root', disabled ? 'pro-enum-group-root-disabled' : ''),
45
47
  children: dataSource.map(function (item, index) {
46
48
  return _jsx("div", {
@@ -1,5 +1,5 @@
1
1
  import { ProEnum } from '../propsType';
2
- interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
2
+ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'> {
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  }
@@ -7,7 +7,8 @@ var ProEnumTag = function ProEnumTag(props) {
7
7
  onChange = props.onChange,
8
8
  dataSource = props.dataSource,
9
9
  fieldValue = props.fieldValue,
10
- fieldLabel = props.fieldLabel;
10
+ fieldLabel = props.fieldLabel,
11
+ id = props.id;
11
12
  var _useState = useState(),
12
13
  _useState2 = _slicedToArray(_useState, 2),
13
14
  checked = _useState2[0],
@@ -25,6 +26,7 @@ var ProEnumTag = function ProEnumTag(props) {
25
26
  });
26
27
  }
27
28
  return _jsx("div", {
29
+ id: id,
28
30
  className: "pro-enum-tag-root",
29
31
  children: dataSource.map(function (item) {
30
32
  return _jsx("div", {
@@ -204,6 +204,7 @@ var ProEnum = function ProEnum(props) {
204
204
  }));
205
205
  case 'Tag':
206
206
  return _jsx(ProEnumTag, {
207
+ id: enumProps.id,
207
208
  value: value,
208
209
  onChange: onChange,
209
210
  fieldLabel: label,
@@ -76,6 +76,7 @@ export interface ProEnum {
76
76
  labelInValue?: boolean;
77
77
  otherProps?: ProFormOtherProps;
78
78
  allowClear?: boolean;
79
+ id?: string;
79
80
  }
80
81
  export type PropProSelectsMap = {
81
82
  type?: 'ProSelect';
@@ -28,7 +28,8 @@ var BlockFields = function BlockFields(props) {
28
28
  isView = props.isView,
29
29
  _props$level = props.level,
30
30
  level = _props$level === void 0 ? '2' : _props$level,
31
- towCollapse = props.towCollapse;
31
+ towCollapse = props.towCollapse,
32
+ id = props.id;
32
33
  var _title = useMemo(function () {
33
34
  if (isFunction(title)) {
34
35
  var record = form.getFieldValue(namePath);
@@ -40,6 +41,7 @@ var BlockFields = function BlockFields(props) {
40
41
  return _jsx(_Space, {
41
42
  direction: "vertical",
42
43
  className: cls,
44
+ id: id,
43
45
  children: _jsx(ProCollapse, {
44
46
  title: _title,
45
47
  index: index,
@@ -25,7 +25,8 @@ var LineFields = function LineFields(props) {
25
25
  disabled = props.disabled,
26
26
  isView = props.isView,
27
27
  draggable = props.draggable,
28
- className = props.className;
28
+ className = props.className,
29
+ id = props.id;
29
30
  var isLess = mode === 'less';
30
31
  var _useSortable = useSortable({
31
32
  id: field.key,
@@ -51,6 +52,7 @@ var LineFields = function LineFields(props) {
51
52
  className: classnames,
52
53
  ref: setNodeRef,
53
54
  style: style,
55
+ id: id,
54
56
  children: [!disabled && draggable && _jsx("div", _objectSpread(_objectSpread(_objectSpread({}, attributes), listeners), {}, {
55
57
  className: "pro-form-list-drag-handle",
56
58
  ref: setActivatorNodeRef,
@@ -54,6 +54,7 @@ export interface FormListProps {
54
54
  warnings: React.ReactNode[];
55
55
  };
56
56
  draggable?: boolean;
57
+ id?: string;
57
58
  }
58
59
  export type PropsWithRef = FormListProps & React.RefAttributes<FormListRef>;
59
60
  export interface FormListRef {
@@ -26,7 +26,8 @@ var Group = function Group(props) {
26
26
  value = props.value,
27
27
  onChange = props.onChange,
28
28
  otherProps = props.otherProps,
29
- disabled = props.disabled;
29
+ disabled = props.disabled,
30
+ id = props.id;
30
31
  var contextProps = ProForm.useFieldProps() || {};
31
32
  var names = contextProps.names,
32
33
  name = contextProps.name,
@@ -65,6 +66,7 @@ var Group = function Group(props) {
65
66
  }, "".concat(className), className));
66
67
  return _jsx("div", {
67
68
  className: _className,
69
+ id: id,
68
70
  children: space.compact || (space === null || space === void 0 ? void 0 : space.separator) ? _jsx(_Space.Compact, {
69
71
  children: columns.map(function (column, index) {
70
72
  return _jsx(ComRender, _objectSpread(_objectSpread({
@@ -50,7 +50,8 @@ export var ProCombination = function ProCombination(props) {
50
50
  }, {
51
51
  renderType: 'Input'
52
52
  }] : _props$childProps,
53
- separator = props.separator;
53
+ separator = props.separator,
54
+ id = props.id;
54
55
  var _ref = ProForm.useFieldProps() || {},
55
56
  _ref$isView = _ref.isView,
56
57
  isView = _ref$isView === void 0 ? false : _ref$isView,
@@ -165,6 +166,7 @@ export var ProCombination = function ProCombination(props) {
165
166
  return _jsxs(_Input.Group, {
166
167
  compact: true,
167
168
  className: className,
169
+ id: id,
168
170
  children: [_jsx(BeforeCom, _objectSpread(_objectSpread({
169
171
  disabled: disabled
170
172
  }, beforeProps), {}, {
@@ -59,4 +59,5 @@ export interface ProCombinationProps {
59
59
  */
60
60
  separator?: string;
61
61
  otherProps?: ProFormOtherProps;
62
+ id?: string;
62
63
  }
@@ -35,7 +35,8 @@ var ProNumberRange = function ProNumberRange(props) {
35
35
  addonAfter = props.addonAfter,
36
36
  _props$separator = props.separator,
37
37
  separator = _props$separator === void 0 ? '~' : _props$separator,
38
- inValueType = props.valueType;
38
+ inValueType = props.valueType,
39
+ id = props.id;
39
40
  var _ref = ProForm.useFieldProps() || {},
40
41
  isViewCon = _ref.isView,
41
42
  viewEmpty = _ref.viewEmpty,
@@ -173,6 +174,7 @@ var ProNumberRange = function ProNumberRange(props) {
173
174
  compact: true,
174
175
  className: cls,
175
176
  children: [_jsx(_InputNumber, _objectSpread(_objectSpread({
177
+ id: id,
176
178
  className: "range-left",
177
179
  value: (value === null || value === void 0 ? void 0 : value[0]) || range[0],
178
180
  placeholder: "".concat(locale.ProForm.inputPlaceholder),
@@ -57,14 +57,14 @@ export interface ProNumberRangeProps {
57
57
  */
58
58
  decimal?: number;
59
59
  /**
60
- * @description 带标签的 input,设置前置标签
61
- * @default '-'
62
- */
60
+ * @description 带标签的 input,设置前置标签
61
+ * @default '-'
62
+ */
63
63
  addonBefore?: React.ReactNode | string;
64
64
  /**
65
- * @description 带标签的 input,设置后置标签
66
- * @default '-'
67
- */
65
+ * @description 带标签的 input,设置后置标签
66
+ * @default '-'
67
+ */
68
68
  addonAfter?: React.ReactNode | string;
69
69
  /**
70
70
  * @description InputNumber属性
@@ -76,4 +76,5 @@ export interface ProNumberRangeProps {
76
76
  separator?: React.ReactNode | string;
77
77
  childProps?: any[];
78
78
  otherProps?: ProFormOtherProps;
79
+ id?: string;
79
80
  }
@@ -52,9 +52,9 @@ var OpenMenu = function OpenMenu(props) {
52
52
  }
53
53
  var menuDeep = function menuDeep(data) {
54
54
  data.forEach(function (item) {
55
- var _item$children;
55
+ var _item$keyIdPath, _item$keyIdPath2, _item$children;
56
56
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
57
- var isFirstMenu = item.keyIdPath.length === 1 || sideMenu && item.keyIdPath.length === 2;
57
+ var isFirstMenu = ((_item$keyIdPath = item.keyIdPath) === null || _item$keyIdPath === void 0 ? void 0 : _item$keyIdPath.length) === 1 || sideMenu && ((_item$keyIdPath2 = item.keyIdPath) === null || _item$keyIdPath2 === void 0 ? void 0 : _item$keyIdPath2.length) === 2;
58
58
  // 第一级菜单显示icon
59
59
  item.label = _jsxs("div", {
60
60
  className: classnames({
@@ -299,6 +299,7 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
299
299
  }
300
300
  }, [value]);
301
301
  return _jsxs("div", {
302
+ id: residueProps.id,
302
303
  className: "pro-upload ".concat(className !== null && className !== void 0 ? className : ''),
303
304
  children: [uploadType === 'drag' && _jsx(DragRender, _objectSpread({}, baseProps)), uploadType === 'button' && _jsx(ButtonRender, _objectSpread({}, baseProps)), uploadType === 'image' && _jsx(ImageRender, _objectSpread({}, baseProps))]
304
305
  });
@@ -18,9 +18,9 @@ export interface fieldNamesProps {
18
18
  }
19
19
  export interface ProUploadProps {
20
20
  /**
21
- * @description 顶部的内容(button类型的上传不适用)
22
- * @default -
23
- */
21
+ * @description 顶部的内容(button类型的上传不适用)
22
+ * @default -
23
+ */
24
24
  headerRender?: React.ReactNode | (() => React.ReactNode);
25
25
  /**
26
26
  * @description 是否过滤掉file对象中的originFileObj
@@ -194,6 +194,7 @@ export interface ProUploadProps {
194
194
  * @default false
195
195
  */
196
196
  isConfirmDelete?: boolean;
197
+ id?: string;
197
198
  }
198
199
  export interface DraggableUploadListItemProps {
199
200
  file: UploadFile<any>;
@@ -1,5 +1,5 @@
1
1
  import { ProEnum } from '../propsType';
2
- interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
2
+ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'> {
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  disabled?: boolean;
@@ -17,7 +17,8 @@ var Group = function Group(props) {
17
17
  fieldLabel = props.fieldLabel,
18
18
  disabled = props.disabled,
19
19
  _props$allowClear = props.allowClear,
20
- allowClear = _props$allowClear === void 0 ? true : _props$allowClear;
20
+ allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
21
+ id = props.id;
21
22
  var _useState = (0, _react.useState)(false),
22
23
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
23
24
  refresh = _useState2[0],
@@ -48,6 +49,7 @@ var Group = function Group(props) {
48
49
  });
49
50
  }
50
51
  return (0, _jsxRuntime.jsx)("div", {
52
+ id: id,
51
53
  className: (0, _classnames.default)('pro-enum-group-root', disabled ? 'pro-enum-group-root-disabled' : ''),
52
54
  children: dataSource.map(function (item, index) {
53
55
  return (0, _jsxRuntime.jsx)("div", {
@@ -1,5 +1,5 @@
1
1
  import { ProEnum } from '../propsType';
2
- interface Props extends Pick<ProEnum, 'value' | 'onChange' | 'dataSource'> {
2
+ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'> {
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  }
@@ -14,7 +14,8 @@ var ProEnumTag = function ProEnumTag(props) {
14
14
  onChange = props.onChange,
15
15
  dataSource = props.dataSource,
16
16
  fieldValue = props.fieldValue,
17
- fieldLabel = props.fieldLabel;
17
+ fieldLabel = props.fieldLabel,
18
+ id = props.id;
18
19
  var _useState = (0, _react.useState)(),
19
20
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
20
21
  checked = _useState2[0],
@@ -32,6 +33,7 @@ var ProEnumTag = function ProEnumTag(props) {
32
33
  });
33
34
  }
34
35
  return (0, _jsxRuntime.jsx)("div", {
36
+ id: id,
35
37
  className: "pro-enum-tag-root",
36
38
  children: dataSource.map(function (item) {
37
39
  return (0, _jsxRuntime.jsx)("div", {
@@ -205,6 +205,7 @@ var ProEnum = function ProEnum(props) {
205
205
  }));
206
206
  case 'Tag':
207
207
  return (0, _jsxRuntime.jsx)(_Tag.default, {
208
+ id: enumProps.id,
208
209
  value: value,
209
210
  onChange: onChange,
210
211
  fieldLabel: label,
@@ -76,6 +76,7 @@ export interface ProEnum {
76
76
  labelInValue?: boolean;
77
77
  otherProps?: ProFormOtherProps;
78
78
  allowClear?: boolean;
79
+ id?: string;
79
80
  }
80
81
  export type PropProSelectsMap = {
81
82
  type?: 'ProSelect';
@@ -32,7 +32,8 @@ var BlockFields = function BlockFields(props) {
32
32
  isView = props.isView,
33
33
  _props$level = props.level,
34
34
  level = _props$level === void 0 ? '2' : _props$level,
35
- towCollapse = props.towCollapse;
35
+ towCollapse = props.towCollapse,
36
+ id = props.id;
36
37
  var _title = (0, _react.useMemo)(function () {
37
38
  if ((0, _lodash.isFunction)(title)) {
38
39
  var record = form.getFieldValue(namePath);
@@ -44,6 +45,7 @@ var BlockFields = function BlockFields(props) {
44
45
  return (0, _jsxRuntime.jsx)(_antd.Space, {
45
46
  direction: "vertical",
46
47
  className: cls,
48
+ id: id,
47
49
  children: (0, _jsxRuntime.jsx)(_ProCollapse.default, {
48
50
  title: _title,
49
51
  index: index,
@@ -31,7 +31,8 @@ var LineFields = function LineFields(props) {
31
31
  disabled = props.disabled,
32
32
  isView = props.isView,
33
33
  draggable = props.draggable,
34
- className = props.className;
34
+ className = props.className,
35
+ id = props.id;
35
36
  var isLess = mode === 'less';
36
37
  var _useSortable = (0, _sortable.useSortable)({
37
38
  id: field.key,
@@ -57,6 +58,7 @@ var LineFields = function LineFields(props) {
57
58
  className: classnames,
58
59
  ref: setNodeRef,
59
60
  style: style,
61
+ id: id,
60
62
  children: [!disabled && draggable && (0, _jsxRuntime.jsx)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, attributes), listeners), {}, {
61
63
  className: "pro-form-list-drag-handle",
62
64
  ref: setActivatorNodeRef,
@@ -54,6 +54,7 @@ export interface FormListProps {
54
54
  warnings: React.ReactNode[];
55
55
  };
56
56
  draggable?: boolean;
57
+ id?: string;
57
58
  }
58
59
  export type PropsWithRef = FormListProps & React.RefAttributes<FormListRef>;
59
60
  export interface FormListRef {
@@ -32,7 +32,8 @@ var Group = function Group(props) {
32
32
  value = props.value,
33
33
  onChange = props.onChange,
34
34
  otherProps = props.otherProps,
35
- disabled = props.disabled;
35
+ disabled = props.disabled,
36
+ id = props.id;
36
37
  var contextProps = _ProForm.default.useFieldProps() || {};
37
38
  var names = contextProps.names,
38
39
  name = contextProps.name,
@@ -71,6 +72,7 @@ var Group = function Group(props) {
71
72
  }, "".concat(className), className));
72
73
  return (0, _jsxRuntime.jsx)("div", {
73
74
  className: _className,
75
+ id: id,
74
76
  children: space.compact || (space === null || space === void 0 ? void 0 : space.separator) ? (0, _jsxRuntime.jsx)(_antd.Space.Compact, {
75
77
  children: columns.map(function (column, index) {
76
78
  return (0, _jsxRuntime.jsx)(_ComRender.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
@@ -54,7 +54,8 @@ var ProCombination = exports.ProCombination = function ProCombination(props) {
54
54
  }, {
55
55
  renderType: 'Input'
56
56
  }] : _props$childProps,
57
- separator = props.separator;
57
+ separator = props.separator,
58
+ id = props.id;
58
59
  var _ref = _ProForm.default.useFieldProps() || {},
59
60
  _ref$isView = _ref.isView,
60
61
  isView = _ref$isView === void 0 ? false : _ref$isView,
@@ -169,6 +170,7 @@ var ProCombination = exports.ProCombination = function ProCombination(props) {
169
170
  return (0, _jsxRuntime.jsxs)(_antd.Input.Group, {
170
171
  compact: true,
171
172
  className: className,
173
+ id: id,
172
174
  children: [(0, _jsxRuntime.jsx)(BeforeCom, (0, _objectSpread2.default)((0, _objectSpread2.default)({
173
175
  disabled: disabled
174
176
  }, beforeProps), {}, {
@@ -59,4 +59,5 @@ export interface ProCombinationProps {
59
59
  */
60
60
  separator?: string;
61
61
  otherProps?: ProFormOtherProps;
62
+ id?: string;
62
63
  }
@@ -39,7 +39,8 @@ var ProNumberRange = function ProNumberRange(props) {
39
39
  addonAfter = props.addonAfter,
40
40
  _props$separator = props.separator,
41
41
  separator = _props$separator === void 0 ? '~' : _props$separator,
42
- inValueType = props.valueType;
42
+ inValueType = props.valueType,
43
+ id = props.id;
43
44
  var _ref = _ProForm.default.useFieldProps() || {},
44
45
  isViewCon = _ref.isView,
45
46
  viewEmpty = _ref.viewEmpty,
@@ -177,6 +178,7 @@ var ProNumberRange = function ProNumberRange(props) {
177
178
  compact: true,
178
179
  className: cls,
179
180
  children: [(0, _jsxRuntime.jsx)(_antd.InputNumber, (0, _objectSpread2.default)((0, _objectSpread2.default)({
181
+ id: id,
180
182
  className: "range-left",
181
183
  value: (value === null || value === void 0 ? void 0 : value[0]) || range[0],
182
184
  placeholder: "".concat(_locale.default.ProForm.inputPlaceholder),
@@ -57,14 +57,14 @@ export interface ProNumberRangeProps {
57
57
  */
58
58
  decimal?: number;
59
59
  /**
60
- * @description 带标签的 input,设置前置标签
61
- * @default '-'
62
- */
60
+ * @description 带标签的 input,设置前置标签
61
+ * @default '-'
62
+ */
63
63
  addonBefore?: React.ReactNode | string;
64
64
  /**
65
- * @description 带标签的 input,设置后置标签
66
- * @default '-'
67
- */
65
+ * @description 带标签的 input,设置后置标签
66
+ * @default '-'
67
+ */
68
68
  addonAfter?: React.ReactNode | string;
69
69
  /**
70
70
  * @description InputNumber属性
@@ -76,4 +76,5 @@ export interface ProNumberRangeProps {
76
76
  separator?: React.ReactNode | string;
77
77
  childProps?: any[];
78
78
  otherProps?: ProFormOtherProps;
79
+ id?: string;
79
80
  }
@@ -58,9 +58,9 @@ var OpenMenu = function OpenMenu(props) {
58
58
  }
59
59
  var menuDeep = function menuDeep(data) {
60
60
  data.forEach(function (item) {
61
- var _item$children;
61
+ var _item$keyIdPath, _item$keyIdPath2, _item$children;
62
62
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
63
- var isFirstMenu = item.keyIdPath.length === 1 || sideMenu && item.keyIdPath.length === 2;
63
+ var isFirstMenu = ((_item$keyIdPath = item.keyIdPath) === null || _item$keyIdPath === void 0 ? void 0 : _item$keyIdPath.length) === 1 || sideMenu && ((_item$keyIdPath2 = item.keyIdPath) === null || _item$keyIdPath2 === void 0 ? void 0 : _item$keyIdPath2.length) === 2;
64
64
  // 第一级菜单显示icon
65
65
  item.label = (0, _jsxRuntime.jsxs)("div", {
66
66
  className: (0, _classnames2.default)({
@@ -306,6 +306,7 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
306
306
  }
307
307
  }, [value]);
308
308
  return (0, _jsxRuntime.jsxs)("div", {
309
+ id: residueProps.id,
309
310
  className: "pro-upload ".concat(className !== null && className !== void 0 ? className : ''),
310
311
  children: [uploadType === 'drag' && (0, _jsxRuntime.jsx)(_DragRender.default, (0, _objectSpread2.default)({}, baseProps)), uploadType === 'button' && (0, _jsxRuntime.jsx)(_ButtonRender.default, (0, _objectSpread2.default)({}, baseProps)), uploadType === 'image' && (0, _jsxRuntime.jsx)(_ImageRender.default, (0, _objectSpread2.default)({}, baseProps))]
311
312
  });
@@ -18,9 +18,9 @@ export interface fieldNamesProps {
18
18
  }
19
19
  export interface ProUploadProps {
20
20
  /**
21
- * @description 顶部的内容(button类型的上传不适用)
22
- * @default -
23
- */
21
+ * @description 顶部的内容(button类型的上传不适用)
22
+ * @default -
23
+ */
24
24
  headerRender?: React.ReactNode | (() => React.ReactNode);
25
25
  /**
26
26
  * @description 是否过滤掉file对象中的originFileObj
@@ -194,6 +194,7 @@ export interface ProUploadProps {
194
194
  * @default false
195
195
  */
196
196
  isConfirmDelete?: boolean;
197
+ id?: string;
197
198
  }
198
199
  export interface DraggableUploadListItemProps {
199
200
  file: UploadFile<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.5.1-beta.16",
3
+ "version": "3.5.1-beta.18",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",