wt-enjoy-link-antd-repack 4.1.62 → 4.1.63
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,
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqE,MAAM,OAAO,CAAA;;;;;;;;;;;;AAMzF,wBAqIC"}
|
@@ -32,7 +32,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
32
32
|
initialValue = props.initialValue,
|
33
33
|
initSelectValue = props.initSelectValue,
|
34
34
|
dataSource = props.dataSource,
|
35
|
-
|
35
|
+
onChange = props.onChange,
|
36
36
|
onChangeData = props.onChangeData,
|
37
37
|
loading = props.loading,
|
38
38
|
exProps = _objectWithoutProperties(props, _excluded);
|
@@ -69,8 +69,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
69
69
|
useUpdateLayoutEffect(function () {
|
70
70
|
if (selectValue === undefined || selectValue === null) {
|
71
71
|
setOperDataSource([]);
|
72
|
-
if (
|
73
|
-
|
72
|
+
if (onChange) {
|
73
|
+
onChange(undefined, undefined);
|
74
74
|
}
|
75
75
|
if (onChangeData) {
|
76
76
|
onChangeData(undefined, {});
|
@@ -120,32 +120,33 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
120
120
|
scroll: {
|
121
121
|
y: 300,
|
122
122
|
x: true
|
123
|
-
}
|
124
|
-
rowSelection
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
}
|
123
|
+
}
|
124
|
+
// rowSelection={{
|
125
|
+
// checkStrictly: exProps.mode === 'multiple' ? true : false,
|
126
|
+
// selectedRowKeys: selectValue,
|
127
|
+
// onChange: (selectedRowKeys: any[], selectedRows: any) => {
|
128
|
+
// setSelectValue(selectedRowKeys)
|
129
|
+
// const selectKeys: any[] = []
|
130
|
+
// selectedRows.forEach((item: any) => {
|
131
|
+
// selectKeys.push(item[rowKey])
|
132
|
+
// })
|
133
|
+
// if (onChange) {
|
134
|
+
// onChange(selectKeys, selectedRows)
|
135
|
+
// }
|
136
|
+
// if (onChangeData) {
|
137
|
+
// onChangeData(selectKeys, selectedRows)
|
138
|
+
// }
|
139
|
+
// }
|
140
|
+
// }}
|
141
|
+
,
|
141
142
|
onRow: function onRow(record) {
|
142
143
|
return {
|
143
144
|
onDoubleClick: function onDoubleClick() {
|
144
145
|
var _formRef$current;
|
145
|
-
if (exProps.mode === 'multiple') return
|
146
|
+
// if (exProps.mode === 'multiple') return
|
146
147
|
setSelectValue(record[rowLabel]);
|
147
|
-
if (
|
148
|
-
|
148
|
+
if (onChange) {
|
149
|
+
onChange(record[rowKey], record);
|
149
150
|
}
|
150
151
|
if (onChangeData) {
|
151
152
|
onChangeData(record[rowKey], record);
|
@@ -153,8 +154,10 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
153
154
|
(_formRef$current = formRef.current) === null || _formRef$current === void 0 || _formRef$current.blur();
|
154
155
|
}
|
155
156
|
};
|
156
|
-
}
|
157
|
-
rowKey
|
157
|
+
}
|
158
|
+
// rowKey={exProps.mode === 'multiple' ? `${rowLabel}` : rowKey}
|
159
|
+
,
|
160
|
+
rowKey: rowKey,
|
158
161
|
pagination: false,
|
159
162
|
columns: columns,
|
160
163
|
dataSource: operDataSource
|