wt-enjoy-link-antd-repack 4.2.3 → 4.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqE,MAAM,OAAO,CAAA;;;;;;;;;;;;AAMzF,wBAuJC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.tsx"],"names":[],"mappings":"AAIA,OAAO,KAON,MAAM,OAAO,CAAA;;;;;;;;;;;;AAMd,wBAkKC"}
@@ -16,7 +16,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
16
16
  import { SearchOutlined } from '@ant-design/icons';
17
17
  import { useUpdateLayoutEffect } from 'ahooks';
18
18
  import { Tooltip, Typography } from 'antd';
19
- import React, { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react';
19
+ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';
20
20
  import { BiuASelect, BiuCustomTable } from "../../..";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  var Paragraph = Typography.Paragraph;
@@ -92,8 +92,20 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
92
92
  children: selectValue
93
93
  });
94
94
  }, [selectValue]);
95
+ var resetSelectValue = useCallback(function () {
96
+ setSelectValue(undefined);
97
+ setOperDataSource([]);
98
+ if (_onChange) {
99
+ _onChange(undefined, undefined);
100
+ }
101
+ if (onChangeData) {
102
+ onChangeData(undefined, {});
103
+ }
104
+ }, [setSelectValue]);
95
105
  useImperativeHandle(ref, function () {
96
- return _objectSpread({}, formRef.current);
106
+ return _objectSpread(_objectSpread({}, formRef.current), {}, {
107
+ resetSelectValue: resetSelectValue
108
+ });
97
109
  });
98
110
  return /*#__PURE__*/_jsx(Tooltip, {
99
111
  placement: "top",
@@ -138,6 +138,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
138
138
  getClientInfoExtendAttributeList({
139
139
  ownerId: ownerId,
140
140
  attributeType: attributeType,
141
+ //attributeType 属性类型(1 货物属性 2 业务属性)
141
142
  showType: showType,
142
143
  isActive: '1',
143
144
  isDelete: '1'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.2.03",
3
+ "version": "4.2.04",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",