antd-management-fast-develop 1.1.54 → 1.1.57

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 +96 -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.57",
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,23 @@ 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 listData = refit<%= o.functionSegment %>List({
228
+ withUnlimited: true,
229
+ });
230
+
231
+ const list =
232
+ adjustListDataCallback == null
233
+ ? listData
234
+ : adjustListDataCallback(listData);
235
+
166
236
  return buildFlexRadio({
167
237
  label,
168
238
  defaultValue: null,
169
239
  separator,
170
240
  size,
171
- list: refit<%= o.functionSegment %>List({ withUnlimited: true }),
241
+ list: list,
172
242
  dataConvert: convertOptionOrRadioData,
173
243
  renderItem: null,
174
244
  onChange: onChangeCallback,
@@ -184,19 +254,39 @@ export function renderForm<%= o.functionSegment %>Radio({
184
254
  required = true,
185
255
  name = '<%= o.name %>',
186
256
  innerProps: innerProperties = null,
257
+ hidden = false,
258
+ addonBefore = null,
259
+ addonBeforeStyle = null,
260
+ addonAfter = null,
261
+ addonAfterStyle = null,
262
+ adjustListData: adjustListDataCallback = null,
187
263
  }) {
188
264
  const title = label || unknownLabel;
189
265
 
266
+ const listData = refit<%= o.functionSegment %>List({
267
+ withUnlimited: false,
268
+ });
269
+
270
+ const list =
271
+ adjustListDataCallback == null
272
+ ? listData
273
+ : adjustListDataCallback(listData);
274
+
190
275
  return buildFormRadio({
191
276
  label: title,
192
277
  name,
193
278
  helper,
194
- list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
279
+ list: list,
195
280
  dataConvert: convertOptionOrRadioData,
196
281
  onChange: onChangeCallback,
197
282
  formItemLayout,
198
283
  required,
199
284
  innerProps: innerProperties,
285
+ hidden,
286
+ addonBefore,
287
+ addonBeforeStyle,
288
+ addonAfter,
289
+ addonAfterStyle,
200
290
  });
201
291
  }
202
292
  `;