szld-libs 0.3.73 → 0.3.75
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.
- package/dist/szld-components.es.js +3 -2
- package/dist/szld-components.umd.js +38 -38
- package/es/components/DynamicForm/selectModelBackfillFormItem/index.js +2 -1
- package/es/hooks/useUniversalTable.js +26 -23
- package/lib/components/DynamicForm/selectModelBackfillFormItem/index.js +2 -1
- package/lib/hooks/useUniversalTable.js +26 -23
- package/package.json +1 -1
|
@@ -179,30 +179,33 @@ function useUniversalTable() {
|
|
|
179
179
|
height: 32,
|
|
180
180
|
borderColor: "#D9D9D9"
|
|
181
181
|
};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
182
|
+
if (selListData == null ? void 0 : selListData.length) {
|
|
183
|
+
formItems.push({
|
|
184
|
+
dataIndex: "btns",
|
|
185
|
+
valueType: "btns",
|
|
186
|
+
valueProps: [
|
|
187
|
+
{
|
|
188
|
+
btnType: "submit",
|
|
189
|
+
title: searchText,
|
|
190
|
+
type: "primary",
|
|
191
|
+
shape: "default",
|
|
192
|
+
style: { ...defaultSearchStyle, ...styles == null ? void 0 : styles.searchStyle },
|
|
193
|
+
onClick: (values) => handleSearch(values, selListData)
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
btnType: "reset",
|
|
197
|
+
title: resetText,
|
|
198
|
+
style: { ...defaultResetStyle, ...styles == null ? void 0 : styles.resetStyle },
|
|
199
|
+
onClick: () => handleReset(selListData)
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
colProps: {
|
|
203
|
+
flex: "none"
|
|
193
204
|
},
|
|
194
|
-
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
onClick: () => handleReset(selListData)
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
colProps: {
|
|
202
|
-
flex: "none"
|
|
203
|
-
},
|
|
204
|
-
formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
|
|
205
|
-
});
|
|
205
|
+
formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
;
|
|
206
209
|
return { formItems, selList: selListData };
|
|
207
210
|
} catch (error) {
|
|
208
211
|
return { formItems: [], selList: [] };
|
|
@@ -180,30 +180,33 @@ function useUniversalTable() {
|
|
|
180
180
|
height: 32,
|
|
181
181
|
borderColor: "#D9D9D9"
|
|
182
182
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
183
|
+
if (selListData == null ? void 0 : selListData.length) {
|
|
184
|
+
formItems.push({
|
|
185
|
+
dataIndex: "btns",
|
|
186
|
+
valueType: "btns",
|
|
187
|
+
valueProps: [
|
|
188
|
+
{
|
|
189
|
+
btnType: "submit",
|
|
190
|
+
title: searchText,
|
|
191
|
+
type: "primary",
|
|
192
|
+
shape: "default",
|
|
193
|
+
style: { ...defaultSearchStyle, ...styles == null ? void 0 : styles.searchStyle },
|
|
194
|
+
onClick: (values) => handleSearch(values, selListData)
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
btnType: "reset",
|
|
198
|
+
title: resetText,
|
|
199
|
+
style: { ...defaultResetStyle, ...styles == null ? void 0 : styles.resetStyle },
|
|
200
|
+
onClick: () => handleReset(selListData)
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
colProps: {
|
|
204
|
+
flex: "none"
|
|
194
205
|
},
|
|
195
|
-
{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
onClick: () => handleReset(selListData)
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
colProps: {
|
|
203
|
-
flex: "none"
|
|
204
|
-
},
|
|
205
|
-
formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
|
|
206
|
-
});
|
|
206
|
+
formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
;
|
|
207
210
|
return { formItems, selList: selListData };
|
|
208
211
|
} catch (error) {
|
|
209
212
|
return { formItems: [], selList: [] };
|