general-basic-form 2.1.7 → 2.1.8
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/README.md +43 -57
- package/dist/index.js +3932 -3543
- package/dist/index.umd.cjs +47 -47
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -172,28 +172,18 @@ parametersType 类型介绍
|
|
|
172
172
|
defPageSize:10, //默认的每页显示个数
|
|
173
173
|
queryWhenReady:false,//初始化完成后自动触发查找数据函数
|
|
174
174
|
formItem: [
|
|
175
|
-
|
|
176
|
-
label: '',
|
|
177
|
-
prop: 'bsName35',
|
|
178
|
-
type: 'divider',
|
|
179
|
-
setting: {
|
|
180
|
-
},
|
|
181
|
-
template: {
|
|
182
|
-
default: () => {
|
|
183
|
-
return "123123123";
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
},
|
|
175
|
+
|
|
187
176
|
{ label: "款式名称",
|
|
188
177
|
prop: "bsName",
|
|
189
178
|
type: "input",
|
|
179
|
+
legend: '这是一个可选的标题',
|
|
190
180
|
setting: {
|
|
191
181
|
placeholder: '请输入手机验证码',
|
|
192
182
|
style: 'width: 100%',
|
|
193
183
|
required: true,
|
|
194
184
|
},
|
|
195
185
|
fieldSetting: {
|
|
196
|
-
orientation: 'responsive'
|
|
186
|
+
orientation: 'responsive',//表单布局-响应式
|
|
197
187
|
},
|
|
198
188
|
rules: [
|
|
199
189
|
{
|
|
@@ -210,6 +200,8 @@ parametersType 类型介绍
|
|
|
210
200
|
},
|
|
211
201
|
},
|
|
212
202
|
],
|
|
203
|
+
separator: true, //分割线
|
|
204
|
+
|
|
213
205
|
//template: {
|
|
214
206
|
// suffix: () => {
|
|
215
207
|
// return <svg-icon icon-class="baifenbi" />;
|
|
@@ -224,6 +216,7 @@ parametersType 类型介绍
|
|
|
224
216
|
'段落1',
|
|
225
217
|
'段落2',
|
|
226
218
|
],
|
|
219
|
+
separator: "text", //文字分割线
|
|
227
220
|
setting: {
|
|
228
221
|
ndim: 3, // 多维数组,注意要和columns的长度相等,输出为对象数组
|
|
229
222
|
columns: [
|
|
@@ -238,12 +231,13 @@ parametersType 类型介绍
|
|
|
238
231
|
},
|
|
239
232
|
},
|
|
240
233
|
{
|
|
241
|
-
prop: '
|
|
234
|
+
prop: 'days',
|
|
242
235
|
label: '套餐名称',
|
|
243
236
|
type: 'input',
|
|
244
237
|
setting: {
|
|
245
238
|
required: true,
|
|
246
239
|
placeholder: '请输入套餐名称',
|
|
240
|
+
type: 'number'
|
|
247
241
|
},
|
|
248
242
|
},
|
|
249
243
|
{
|
|
@@ -262,7 +256,7 @@ parametersType 类型介绍
|
|
|
262
256
|
],
|
|
263
257
|
},
|
|
264
258
|
fieldSetting: {
|
|
265
|
-
className: 'col-span-4
|
|
259
|
+
className: 'col-span-4',
|
|
266
260
|
},
|
|
267
261
|
rules: [
|
|
268
262
|
{
|
|
@@ -270,7 +264,7 @@ parametersType 类型介绍
|
|
|
270
264
|
console.log(value);
|
|
271
265
|
for (let i = 0; i < value.length; i++) {
|
|
272
266
|
const element = value[i];
|
|
273
|
-
if (!Number(element.days)
|
|
267
|
+
if (!Number(element.days)) {
|
|
274
268
|
callback(new Error('请输入数字'));
|
|
275
269
|
return;
|
|
276
270
|
}
|
|
@@ -299,7 +293,6 @@ parametersType 类型介绍
|
|
|
299
293
|
rules: [
|
|
300
294
|
{
|
|
301
295
|
validator: (rule, value, callback) => {
|
|
302
|
-
console.log(value);
|
|
303
296
|
for (let i = 0; i < value.length; i++) {
|
|
304
297
|
const element = value[i];
|
|
305
298
|
if (!element) {
|
|
@@ -312,17 +305,21 @@ parametersType 类型介绍
|
|
|
312
305
|
},
|
|
313
306
|
],
|
|
314
307
|
},
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
308
|
+
{
|
|
309
|
+
prop: 'level',
|
|
310
|
+
label: '等级',
|
|
311
|
+
type: 'select',
|
|
312
|
+
option: [
|
|
313
|
+
{ label: 'Y3', value: 'Y3' },
|
|
314
|
+
{ label: 'Y4', value: 'Y4' },
|
|
315
|
+
{ label: 'Y5', value: 'Y5' },
|
|
316
|
+
],
|
|
317
|
+
setting: {
|
|
318
|
+
placeholder: '请选择等级',
|
|
319
|
+
required: true,
|
|
320
|
+
multiple: true,
|
|
321
|
+
},
|
|
322
|
+
},
|
|
326
323
|
{
|
|
327
324
|
label: "创建时间",
|
|
328
325
|
prop: "create_time",
|
|
@@ -331,20 +328,6 @@ parametersType 类型介绍
|
|
|
331
328
|
"range-separator": "至",
|
|
332
329
|
}
|
|
333
330
|
},
|
|
334
|
-
{
|
|
335
|
-
label: "二次工艺成本价格(人民币分)",
|
|
336
|
-
prop: "spCost",
|
|
337
|
-
type: "input-number",
|
|
338
|
-
"controls-position": "right",
|
|
339
|
-
min: 0,
|
|
340
|
-
rules: [
|
|
341
|
-
{
|
|
342
|
-
required: true,
|
|
343
|
-
message: "请输入二次工艺成本价格",
|
|
344
|
-
trigger: "blur",
|
|
345
|
-
},
|
|
346
|
-
],
|
|
347
|
-
},
|
|
348
331
|
{
|
|
349
332
|
label: '',
|
|
350
333
|
prop: 'bsName2',
|
|
@@ -402,18 +385,24 @@ parametersType 类型介绍
|
|
|
402
385
|
}
|
|
403
386
|
]
|
|
404
387
|
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
388
|
+
{
|
|
389
|
+
prop: 'level',
|
|
390
|
+
label: '多选',
|
|
391
|
+
legend: 标题',
|
|
392
|
+
type: 'checkbox',
|
|
393
|
+
gap: 3,
|
|
394
|
+
option: [
|
|
395
|
+
{ label: 'Y3', value: 'Y3' },
|
|
396
|
+
{ label: 'Y4', value: 'Y4' },
|
|
397
|
+
{ label: 'Y5', value: 'Y5' },
|
|
398
|
+
],
|
|
399
|
+
fieldSetting: {
|
|
400
|
+
className: 'col-span-4',
|
|
401
|
+
},
|
|
402
|
+
setting: {
|
|
403
|
+
placeholder: '请选择等级',
|
|
404
|
+
},
|
|
410
405
|
},
|
|
411
|
-
option: [
|
|
412
|
-
{ value: '是', label: 'true' },
|
|
413
|
-
{ value: '否', label: 'false' }
|
|
414
|
-
],
|
|
415
|
-
rules: []
|
|
416
|
-
},
|
|
417
406
|
{
|
|
418
407
|
label: '受访人',
|
|
419
408
|
prop: 'contactors',
|
|
@@ -544,10 +533,7 @@ parametersType 类型介绍
|
|
|
544
533
|
_/
|
|
545
534
|
"date-picker" = "date-picker",
|
|
546
535
|
/\*\*
|
|
547
|
-
|
|
548
|
-
- @return {_}
|
|
549
|
-
_/
|
|
550
|
-
"input-number" = "input-number",
|
|
536
|
+
|
|
551
537
|
/\*\*
|
|
552
538
|
- @description: 单选框
|
|
553
539
|
- @return {_}
|