antd-management-fast-develop 1.1.53 → 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.
- package/package.json +9 -9
- 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.
|
3
|
+
"version": "1.1.55",
|
4
4
|
"description": "",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "",
|
@@ -50,11 +50,11 @@
|
|
50
50
|
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
|
-
"@umijs/max": "^4.0.
|
53
|
+
"@umijs/max": "^4.0.90",
|
54
54
|
"commander": "^11.1.0",
|
55
55
|
"ejs": "^3.1.9",
|
56
56
|
"rimraf": "^5.0.5",
|
57
|
-
"umi": "^4.0.
|
57
|
+
"umi": "^4.0.90"
|
58
58
|
},
|
59
59
|
"devDependencies": {
|
60
60
|
"@babel/core": "^7.23.6",
|
@@ -75,15 +75,15 @@
|
|
75
75
|
"@commitlint/cz-commitlint": "^18.4.3",
|
76
76
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
77
77
|
"@types/jest": "^29.5.11",
|
78
|
-
"@types/node": "^20.10.
|
79
|
-
"@typescript-eslint/parser": "^6.
|
78
|
+
"@types/node": "^20.10.5",
|
79
|
+
"@typescript-eslint/parser": "^6.15.0",
|
80
80
|
"babel-jest": "^29.7.0",
|
81
81
|
"commitizen": "^4.3.0",
|
82
82
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
83
83
|
"cross-env": "^7.0.3",
|
84
84
|
"documentation": "^14.0.2",
|
85
|
-
"easy-soft-develop": "^2.1.
|
86
|
-
"eslint": "^8.
|
85
|
+
"easy-soft-develop": "^2.1.52",
|
86
|
+
"eslint": "^8.56.0",
|
87
87
|
"eslint-config-airbnb": "^19.0.4",
|
88
88
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
89
89
|
"eslint-config-prettier": "^9.1.0",
|
@@ -93,12 +93,12 @@
|
|
93
93
|
"eslint-plugin-import": "^2.29.1",
|
94
94
|
"eslint-plugin-jest": "^27.6.0",
|
95
95
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
96
|
-
"eslint-plugin-prettier": "^5.
|
96
|
+
"eslint-plugin-prettier": "^5.1.2",
|
97
97
|
"eslint-plugin-promise": "^6.1.1",
|
98
98
|
"eslint-plugin-react": "^7.33.2",
|
99
99
|
"eslint-plugin-react-hooks": "^4.6.0",
|
100
100
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
101
|
-
"eslint-plugin-unicorn": "^
|
101
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
102
102
|
"husky": "^8.0.3",
|
103
103
|
"jest": "^29.7.0",
|
104
104
|
"lint-staged": "^15.2.0",
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|
`;
|