antd-management-fast-develop 1.1.54 → 1.1.55

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/template.js +98 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-develop",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
package/src/template.js CHANGED
@@ -78,15 +78,35 @@ export function renderSearch<%= o.functionSegment %>Select({
78
78
  label = '<%= o.label %>',
79
79
  name = '<%= o.name %>',
80
80
  helper = null,
81
+ hidden = false,
82
+ addonBefore = null,
83
+ addonBeforeStyle = null,
84
+ addonAfter = null,
85
+ addonAfterStyle = null,
86
+ adjustListData: adjustListDataCallback = null,
81
87
  }) {
82
88
  const title = label || unknownLabel;
83
89
 
90
+ const listData = refit<%= o.functionSegment %>List({
91
+ withUnlimited,
92
+ });
93
+
94
+ const list =
95
+ adjustListDataCallback == null
96
+ ? listData
97
+ : adjustListDataCallback(listData);
98
+
84
99
  return buildSearchFormSelect({
85
100
  label: title,
86
101
  name,
87
102
  helper,
88
- list: refit<%= o.functionSegment %>List({ withUnlimited }),
103
+ list: list,
89
104
  dataConvert: convertOptionOrRadioData,
105
+ hidden,
106
+ addonBefore,
107
+ addonBeforeStyle,
108
+ addonAfter,
109
+ addonAfterStyle,
90
110
  });
91
111
  }
92
112
 
@@ -97,14 +117,24 @@ export function renderCustom<%= o.functionSegment %>Select({
97
117
  size = 'middle',
98
118
  onChange: onChangeCallback,
99
119
  innerProps: innerProperties = null,
120
+ adjustListData: adjustListDataCallback = null,
100
121
  }) {
122
+ const listData = refit<%= o.functionSegment %>List({
123
+ withUnlimited: true,
124
+ });
125
+
126
+ const list =
127
+ adjustListDataCallback == null
128
+ ? listData
129
+ : adjustListDataCallback(listData);
130
+
101
131
  return buildFlexSelect({
102
132
  style,
103
133
  label,
104
134
  defaultValue: null,
105
135
  separator,
106
136
  size,
107
- list: refit<%= o.functionSegment %>List({ withUnlimited: true }),
137
+ list: list,
108
138
  dataConvert: convertOptionOrRadioData,
109
139
  renderItem: null,
110
140
  onChange: onChangeCallback,
@@ -119,13 +149,23 @@ export function render<%= o.functionSegment %>DropDown({
119
149
  size = 'middle',
120
150
  onClick: onClickCallback,
121
151
  innerProps: innerProperties = null,
152
+ adjustListData: adjustListDataCallback = null,
122
153
  }) {
154
+ const listData = refit<%= o.functionSegment %>List({
155
+ withUnlimited: false,
156
+ });
157
+
158
+ const list =
159
+ adjustListDataCallback == null
160
+ ? listData
161
+ : adjustListDataCallback(listData);
162
+
123
163
  return buildDropdownMenu({
124
164
  label,
125
165
  placement,
126
166
  icon,
127
167
  size,
128
- list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
168
+ list: list,
129
169
  dataConvert: null,
130
170
  onClick: onClickCallback,
131
171
  innerProps: innerProperties || null,
@@ -140,19 +180,39 @@ export function renderForm<%= o.functionSegment %>Select({
140
180
  required = true,
141
181
  name = '<%= o.name %>',
142
182
  innerProps: innerProperties = null,
183
+ adjustListData: adjustListDataCallback = null,
184
+ hidden = false,
185
+ addonBefore = null,
186
+ addonBeforeStyle = null,
187
+ addonAfter = null,
188
+ addonAfterStyle = null,
143
189
  }) {
144
190
  const title = label || unknownLabel;
145
191
 
192
+ const listData = refit<%= o.functionSegment %>List({
193
+ withUnlimited: false,
194
+ });
195
+
196
+ const list =
197
+ adjustListDataCallback == null
198
+ ? listData
199
+ : adjustListDataCallback(listData);
200
+
146
201
  return buildFormSelect({
147
202
  label: title,
148
203
  name,
149
204
  helper,
150
- list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
205
+ list: list,
151
206
  dataConvert: convertOptionOrRadioData,
152
207
  onChange: onChangeCallback,
153
208
  formItemLayout,
154
209
  required,
155
210
  innerProps: innerProperties,
211
+ hidden,
212
+ addonBefore,
213
+ addonBeforeStyle,
214
+ addonAfter,
215
+ addonAfterStyle,
156
216
  });
157
217
  }
158
218
 
@@ -162,13 +222,25 @@ export function renderCustom<%= o.functionSegment %>Radio({
162
222
  size = 'middle',
163
223
  onChange: onChangeCallback,
164
224
  innerProps: innerProperties = null,
225
+ adjustListData: adjustListDataCallback = null,
165
226
  }) {
227
+ const title = label || unknownLabel;
228
+
229
+ const listData = refit<%= o.functionSegment %>List({
230
+ withUnlimited: true,
231
+ });
232
+
233
+ const list =
234
+ adjustListDataCallback == null
235
+ ? listData
236
+ : adjustListDataCallback(listData);
237
+
166
238
  return buildFlexRadio({
167
239
  label,
168
240
  defaultValue: null,
169
241
  separator,
170
242
  size,
171
- list: refit<%= o.functionSegment %>List({ withUnlimited: true }),
243
+ list: list,
172
244
  dataConvert: convertOptionOrRadioData,
173
245
  renderItem: null,
174
246
  onChange: onChangeCallback,
@@ -184,19 +256,39 @@ export function renderForm<%= o.functionSegment %>Radio({
184
256
  required = true,
185
257
  name = '<%= o.name %>',
186
258
  innerProps: innerProperties = null,
259
+ hidden = false,
260
+ addonBefore = null,
261
+ addonBeforeStyle = null,
262
+ addonAfter = null,
263
+ addonAfterStyle = null,
264
+ adjustListData: adjustListDataCallback = null,
187
265
  }) {
188
266
  const title = label || unknownLabel;
189
267
 
268
+ const listData = refit<%= o.functionSegment %>List({
269
+ withUnlimited: false,
270
+ });
271
+
272
+ const list =
273
+ adjustListDataCallback == null
274
+ ? listData
275
+ : adjustListDataCallback(listData);
276
+
190
277
  return buildFormRadio({
191
278
  label: title,
192
279
  name,
193
280
  helper,
194
- list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
281
+ list: list,
195
282
  dataConvert: convertOptionOrRadioData,
196
283
  onChange: onChangeCallback,
197
284
  formItemLayout,
198
285
  required,
199
286
  innerProps: innerProperties,
287
+ hidden,
288
+ addonBefore,
289
+ addonBeforeStyle,
290
+ addonAfter,
291
+ addonAfterStyle,
200
292
  });
201
293
  }
202
294
  `;