szld-libs 0.3.73 → 0.3.74

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.
@@ -179,30 +179,33 @@ function useUniversalTable() {
179
179
  height: 32,
180
180
  borderColor: "#D9D9D9"
181
181
  };
182
- formItems.push({
183
- dataIndex: "btns",
184
- valueType: "btns",
185
- valueProps: [
186
- {
187
- btnType: "submit",
188
- title: searchText,
189
- type: "primary",
190
- shape: "default",
191
- style: { ...defaultSearchStyle, ...styles == null ? void 0 : styles.searchStyle },
192
- onClick: (values) => handleSearch(values, selListData)
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
- btnType: "reset",
196
- title: resetText,
197
- style: { ...defaultResetStyle, ...styles == null ? void 0 : styles.resetStyle },
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
- 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)
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
- 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"
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: [] };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.73",
4
+ "version": "0.3.74",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",