@varlet/ui 3.3.16 → 3.4.0
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/es/auto-complete/AutoComplete.mjs +352 -0
- package/es/auto-complete/AutoCompleteSfc.css +0 -0
- package/es/auto-complete/autoComplete.css +1 -0
- package/es/auto-complete/index.mjs +11 -0
- package/es/auto-complete/props.mjs +63 -0
- package/es/auto-complete/provide.mjs +0 -0
- package/es/auto-complete/style/index.mjs +11 -0
- package/es/checkbox-group/CheckboxGroup.mjs +3 -5
- package/es/checkbox-group/props.mjs +4 -1
- package/es/field-decorator/FieldDecorator.mjs +8 -8
- package/es/field-decorator/props.mjs +1 -1
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/input/Input.mjs +12 -13
- package/es/input/props.mjs +21 -2
- package/es/menu-option/MenuOption.mjs +5 -2
- package/es/menu-option/menuOption.css +1 -1
- package/es/menu-select/MenuSelect.mjs +3 -5
- package/es/menu-select/props.mjs +4 -1
- package/es/radio-group/RadioGroup.mjs +4 -6
- package/es/radio-group/props.mjs +4 -1
- package/es/select/Select.mjs +3 -5
- package/es/select/props.mjs +4 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/varlet.esm.js +13599 -13253
- package/highlight/web-types.en-US.json +239 -10
- package/highlight/web-types.zh-CN.json +239 -10
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +15289 -14861
- package/package.json +8 -8
- package/types/autoComplete.d.ts +84 -0
- package/types/checkbox.d.ts +2 -2
- package/types/index.d.ts +2 -0
- package/types/input.d.ts +1 -0
- package/types/styleVars.d.ts +1 -0
- package/umd/varlet.js +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -300,6 +300,235 @@
|
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
},
|
|
303
|
+
{
|
|
304
|
+
"name": "var-auto-complete",
|
|
305
|
+
"attributes": [
|
|
306
|
+
{
|
|
307
|
+
"name": "v-model",
|
|
308
|
+
"description": "The value of the binding",
|
|
309
|
+
"default": "-",
|
|
310
|
+
"value": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"kind": "expression"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "variant",
|
|
317
|
+
"description": "Input variants, The optional value is `standard` `outlined`",
|
|
318
|
+
"default": "standard",
|
|
319
|
+
"value": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"kind": "expression"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "size",
|
|
326
|
+
"description": "Input size, The optional value is `normal` `small`",
|
|
327
|
+
"default": "normal",
|
|
328
|
+
"value": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"kind": "expression"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "placeholder",
|
|
335
|
+
"description": "placeholder",
|
|
336
|
+
"default": "-",
|
|
337
|
+
"value": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"kind": "expression"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "options",
|
|
344
|
+
"description": "Specifies options",
|
|
345
|
+
"default": "[]",
|
|
346
|
+
"value": {
|
|
347
|
+
"type": "AutoCompleteOption[]",
|
|
348
|
+
"kind": "expression"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "label-key",
|
|
353
|
+
"description": "As the key that uniquely identifies label",
|
|
354
|
+
"default": "label",
|
|
355
|
+
"value": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"kind": "expression"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "value-key",
|
|
362
|
+
"description": "As the key that uniquely identifies value",
|
|
363
|
+
"default": "value",
|
|
364
|
+
"value": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"kind": "expression"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "maxlength",
|
|
371
|
+
"description": "Maxlength",
|
|
372
|
+
"default": "-",
|
|
373
|
+
"value": {
|
|
374
|
+
"type": "string | number",
|
|
375
|
+
"kind": "expression"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "readonly",
|
|
380
|
+
"description": "Whether the readonly",
|
|
381
|
+
"default": "false",
|
|
382
|
+
"value": {
|
|
383
|
+
"type": "boolean",
|
|
384
|
+
"kind": "expression"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "disabled",
|
|
389
|
+
"description": "Whether the disabled",
|
|
390
|
+
"default": "false",
|
|
391
|
+
"value": {
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"kind": "expression"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "validate-trigger",
|
|
398
|
+
"description": "Timing to trigger validation, The optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
|
|
399
|
+
"default": "['onInput', 'onClear', 'onChange']",
|
|
400
|
+
"value": {
|
|
401
|
+
"type": "AutoCompleteValidateTrigger[]",
|
|
402
|
+
"kind": "expression"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "rules",
|
|
407
|
+
"description": "The validation rules, return `true` to indicate that the validation passed,The remaining values are converted to text as user prompts",
|
|
408
|
+
"default": "-",
|
|
409
|
+
"value": {
|
|
410
|
+
"type": "Array<(v: string) => any>",
|
|
411
|
+
"kind": "expression"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "enterkeyhint",
|
|
416
|
+
"description": "Customize the enter key style, See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)",
|
|
417
|
+
"default": "-",
|
|
418
|
+
"value": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"kind": "expression"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "clearable",
|
|
425
|
+
"description": "Whether the clearable",
|
|
426
|
+
"default": "false",
|
|
427
|
+
"value": {
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"kind": "expression"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "line",
|
|
434
|
+
"description": "Whether to display a dividing line",
|
|
435
|
+
"default": "true",
|
|
436
|
+
"value": {
|
|
437
|
+
"type": "boolean",
|
|
438
|
+
"kind": "expression"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "hint",
|
|
443
|
+
"description": "Whether to use placeholder as hint",
|
|
444
|
+
"default": "true",
|
|
445
|
+
"value": {
|
|
446
|
+
"type": "boolean",
|
|
447
|
+
"kind": "expression"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "text-color",
|
|
452
|
+
"description": "Text color",
|
|
453
|
+
"default": "-",
|
|
454
|
+
"value": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"kind": "expression"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "focus-color",
|
|
461
|
+
"description": "The primary color in focus",
|
|
462
|
+
"default": "-",
|
|
463
|
+
"value": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"kind": "expression"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "blur-color",
|
|
470
|
+
"description": "The primary color in blur",
|
|
471
|
+
"default": "-",
|
|
472
|
+
"value": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"kind": "expression"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "get-show",
|
|
479
|
+
"description": "Determine whether the menu is displayed according to the input value",
|
|
480
|
+
"default": "-",
|
|
481
|
+
"value": {
|
|
482
|
+
"type": "(v: string) => boolean",
|
|
483
|
+
"kind": "expression"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"events": [
|
|
488
|
+
{
|
|
489
|
+
"name": "focus",
|
|
490
|
+
"description": "Triggered while focusing"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "blur",
|
|
494
|
+
"description": "Triggered when out of focus"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "click",
|
|
498
|
+
"description": "Triggered on Click"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "clear",
|
|
502
|
+
"description": "Triggered on Clearance"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "input",
|
|
506
|
+
"description": "Triggered on input"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "change",
|
|
510
|
+
"description": "Triggered on change"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"slots": [
|
|
514
|
+
{
|
|
515
|
+
"name": "prepend-icon",
|
|
516
|
+
"description": "Prepend Icon"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "append-icon",
|
|
520
|
+
"description": "Append Icon"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "clear-icon",
|
|
524
|
+
"description": "Clear Icon"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "extra-message",
|
|
528
|
+
"description": "Extra message"
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
},
|
|
303
532
|
{
|
|
304
533
|
"name": "var-avatar",
|
|
305
534
|
"attributes": [
|
|
@@ -1471,7 +1700,7 @@
|
|
|
1471
1700
|
{
|
|
1472
1701
|
"name": "options",
|
|
1473
1702
|
"description": "Specifies options",
|
|
1474
|
-
"default": "
|
|
1703
|
+
"default": "[]",
|
|
1475
1704
|
"value": {
|
|
1476
1705
|
"type": "CheckboxGroupOption[]",
|
|
1477
1706
|
"kind": "expression"
|
|
@@ -2124,7 +2353,7 @@
|
|
|
2124
2353
|
"description": "Timing to trigger validation,Optional value is `onInputChange` `onLazyChange` `onIncrement` `onDecrement`",
|
|
2125
2354
|
"default": "['onIncrement', 'onDecrement', 'onInputChange', 'onLazyChange']",
|
|
2126
2355
|
"value": {
|
|
2127
|
-
"type": "
|
|
2356
|
+
"type": "CounterValidateTrigger[]",
|
|
2128
2357
|
"kind": "expression"
|
|
2129
2358
|
}
|
|
2130
2359
|
},
|
|
@@ -3857,7 +4086,7 @@
|
|
|
3857
4086
|
"description": "Timing to trigger validation, The optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
|
|
3858
4087
|
"default": "['onInput', 'onClear']",
|
|
3859
4088
|
"value": {
|
|
3860
|
-
"type": "
|
|
4089
|
+
"type": "InputValidateTrigger[]",
|
|
3861
4090
|
"kind": "expression"
|
|
3862
4091
|
}
|
|
3863
4092
|
},
|
|
@@ -4681,7 +4910,7 @@
|
|
|
4681
4910
|
{
|
|
4682
4911
|
"name": "options",
|
|
4683
4912
|
"description": "Specifies options",
|
|
4684
|
-
"default": "
|
|
4913
|
+
"default": "[]",
|
|
4685
4914
|
"value": {
|
|
4686
4915
|
"type": "MenuSelectOption[]",
|
|
4687
4916
|
"kind": "expression"
|
|
@@ -5740,7 +5969,7 @@
|
|
|
5740
5969
|
{
|
|
5741
5970
|
"name": "options",
|
|
5742
5971
|
"description": "Specifies options",
|
|
5743
|
-
"default": "
|
|
5972
|
+
"default": "[]",
|
|
5744
5973
|
"value": {
|
|
5745
5974
|
"type": "RadioGroupOption[]",
|
|
5746
5975
|
"kind": "expression"
|
|
@@ -6058,7 +6287,7 @@
|
|
|
6058
6287
|
{
|
|
6059
6288
|
"name": "options",
|
|
6060
6289
|
"description": "Specifies options",
|
|
6061
|
-
"default": "
|
|
6290
|
+
"default": "[]",
|
|
6062
6291
|
"value": {
|
|
6063
6292
|
"type": "SelectOption[]",
|
|
6064
6293
|
"kind": "expression"
|
|
@@ -6087,7 +6316,7 @@
|
|
|
6087
6316
|
"description": "Timing to trigger validation, optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose`",
|
|
6088
6317
|
"default": "['onChange', 'onClear', 'onClose']",
|
|
6089
6318
|
"value": {
|
|
6090
|
-
"type": "
|
|
6319
|
+
"type": "SelectValidateTrigger[]",
|
|
6091
6320
|
"kind": "expression"
|
|
6092
6321
|
}
|
|
6093
6322
|
},
|
|
@@ -7140,7 +7369,7 @@
|
|
|
7140
7369
|
"description": "Timing to trigger verification, optional values are `onChange` `onLazyChange`",
|
|
7141
7370
|
"default": "['onChange', 'onLazyChange']",
|
|
7142
7371
|
"value": {
|
|
7143
|
-
"type": "
|
|
7372
|
+
"type": "SwitchValidateTrigger[]",
|
|
7144
7373
|
"kind": "expression"
|
|
7145
7374
|
}
|
|
7146
7375
|
},
|
|
@@ -7936,7 +8165,7 @@
|
|
|
7936
8165
|
"description": "Timing to trigger validation. The optional value is `onChange` `onRemove`",
|
|
7937
8166
|
"default": "['onChange', 'onRemove']",
|
|
7938
8167
|
"value": {
|
|
7939
|
-
"type": "
|
|
8168
|
+
"type": "UploaderValidateTrigger[]",
|
|
7940
8169
|
"kind": "expression"
|
|
7941
8170
|
}
|
|
7942
8171
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -300,6 +300,235 @@
|
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
},
|
|
303
|
+
{
|
|
304
|
+
"name": "var-auto-complete",
|
|
305
|
+
"attributes": [
|
|
306
|
+
{
|
|
307
|
+
"name": "v-model",
|
|
308
|
+
"description": "绑定的值",
|
|
309
|
+
"default": "-",
|
|
310
|
+
"value": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"kind": "expression"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "variant",
|
|
317
|
+
"description": "输入框风格, 可选值为 `standard` `outlined`",
|
|
318
|
+
"default": "standard",
|
|
319
|
+
"value": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"kind": "expression"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "size",
|
|
326
|
+
"description": "输入框尺寸,可选值 `normal` `small`",
|
|
327
|
+
"default": "normal",
|
|
328
|
+
"value": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"kind": "expression"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "placeholder",
|
|
335
|
+
"description": "占位符",
|
|
336
|
+
"default": "-",
|
|
337
|
+
"value": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"kind": "expression"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "options",
|
|
344
|
+
"description": "指定可选项",
|
|
345
|
+
"default": "[]",
|
|
346
|
+
"value": {
|
|
347
|
+
"type": "AutoCompleteOption[]",
|
|
348
|
+
"kind": "expression"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "label-key",
|
|
353
|
+
"description": "作为 label 唯一标识的键名",
|
|
354
|
+
"default": "label",
|
|
355
|
+
"value": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"kind": "expression"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "value-key",
|
|
362
|
+
"description": "作为 value 唯一标识的键名",
|
|
363
|
+
"default": "value",
|
|
364
|
+
"value": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"kind": "expression"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "maxlength",
|
|
371
|
+
"description": "最大长度",
|
|
372
|
+
"default": "-",
|
|
373
|
+
"value": {
|
|
374
|
+
"type": "string | number",
|
|
375
|
+
"kind": "expression"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "readonly",
|
|
380
|
+
"description": "是否只读",
|
|
381
|
+
"default": "false",
|
|
382
|
+
"value": {
|
|
383
|
+
"type": "boolean",
|
|
384
|
+
"kind": "expression"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "disabled",
|
|
389
|
+
"description": "是否禁用",
|
|
390
|
+
"default": "false",
|
|
391
|
+
"value": {
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"kind": "expression"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "validate-trigger",
|
|
398
|
+
"description": "触发验证的时机,可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
|
|
399
|
+
"default": "['onInput', 'onClear', 'onChange']",
|
|
400
|
+
"value": {
|
|
401
|
+
"type": "AutoCompleteValidateTrigger[]",
|
|
402
|
+
"kind": "expression"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "rules",
|
|
407
|
+
"description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
|
|
408
|
+
"default": "-",
|
|
409
|
+
"value": {
|
|
410
|
+
"type": "Array<(v: string) => any>",
|
|
411
|
+
"kind": "expression"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "enterkeyhint",
|
|
416
|
+
"description": "定制回车键样式,参见 [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)",
|
|
417
|
+
"default": "-",
|
|
418
|
+
"value": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"kind": "expression"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "clearable",
|
|
425
|
+
"description": "是否可清除",
|
|
426
|
+
"default": "false",
|
|
427
|
+
"value": {
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"kind": "expression"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "line",
|
|
434
|
+
"description": "是否显示分割线",
|
|
435
|
+
"default": "true",
|
|
436
|
+
"value": {
|
|
437
|
+
"type": "boolean",
|
|
438
|
+
"kind": "expression"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "hint",
|
|
443
|
+
"description": "是否使用占位符作为提示",
|
|
444
|
+
"default": "true",
|
|
445
|
+
"value": {
|
|
446
|
+
"type": "boolean",
|
|
447
|
+
"kind": "expression"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "text-color",
|
|
452
|
+
"description": "文字颜色",
|
|
453
|
+
"default": "-",
|
|
454
|
+
"value": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"kind": "expression"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "focus-color",
|
|
461
|
+
"description": "聚焦时的主要颜色",
|
|
462
|
+
"default": "-",
|
|
463
|
+
"value": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"kind": "expression"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "blur-color",
|
|
470
|
+
"description": "失焦时的主要颜色",
|
|
471
|
+
"default": "-",
|
|
472
|
+
"value": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"kind": "expression"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "get-show",
|
|
479
|
+
"description": "根据输入值决定是否显示菜单",
|
|
480
|
+
"default": "-",
|
|
481
|
+
"value": {
|
|
482
|
+
"type": "(v: string) => boolean",
|
|
483
|
+
"kind": "expression"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"events": [
|
|
488
|
+
{
|
|
489
|
+
"name": "focus",
|
|
490
|
+
"description": "聚焦时触发"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "blur",
|
|
494
|
+
"description": "失焦时触发"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "click",
|
|
498
|
+
"description": "点击时触发"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "clear",
|
|
502
|
+
"description": "清除时触发"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "input",
|
|
506
|
+
"description": "输入时触发"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "change",
|
|
510
|
+
"description": "更新时触发"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"slots": [
|
|
514
|
+
{
|
|
515
|
+
"name": "prepend-icon",
|
|
516
|
+
"description": "前置图标"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "append-icon",
|
|
520
|
+
"description": "后置图标"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "clear-icon",
|
|
524
|
+
"description": "清除图标"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "extra-message",
|
|
528
|
+
"description": "附加信息"
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
},
|
|
303
532
|
{
|
|
304
533
|
"name": "var-avatar",
|
|
305
534
|
"attributes": [
|
|
@@ -1630,7 +1859,7 @@
|
|
|
1630
1859
|
{
|
|
1631
1860
|
"name": "options",
|
|
1632
1861
|
"description": "指定可选项",
|
|
1633
|
-
"default": "
|
|
1862
|
+
"default": "[]",
|
|
1634
1863
|
"value": {
|
|
1635
1864
|
"type": "CheckboxGroupOption[]",
|
|
1636
1865
|
"kind": "expression"
|
|
@@ -2283,7 +2512,7 @@
|
|
|
2283
2512
|
"description": "触发验证的时机,可选值为 `onInputChange` `onLazyChange` `onIncrement` `onDecrement`",
|
|
2284
2513
|
"default": "['onIncrement', 'onDecrement', 'onInputChange', 'onLazyChange']",
|
|
2285
2514
|
"value": {
|
|
2286
|
-
"type": "
|
|
2515
|
+
"type": "CounterValidateTrigger[]",
|
|
2287
2516
|
"kind": "expression"
|
|
2288
2517
|
}
|
|
2289
2518
|
},
|
|
@@ -4016,7 +4245,7 @@
|
|
|
4016
4245
|
"description": "触发验证的时机,可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
|
|
4017
4246
|
"default": "['onInput', 'onClear']",
|
|
4018
4247
|
"value": {
|
|
4019
|
-
"type": "
|
|
4248
|
+
"type": "InputValidateTrigger[]",
|
|
4020
4249
|
"kind": "expression"
|
|
4021
4250
|
}
|
|
4022
4251
|
},
|
|
@@ -4840,7 +5069,7 @@
|
|
|
4840
5069
|
{
|
|
4841
5070
|
"name": "options",
|
|
4842
5071
|
"description": "指定可选项",
|
|
4843
|
-
"default": "
|
|
5072
|
+
"default": "[]",
|
|
4844
5073
|
"value": {
|
|
4845
5074
|
"type": "MenuSelectOption[]",
|
|
4846
5075
|
"kind": "expression"
|
|
@@ -5899,7 +6128,7 @@
|
|
|
5899
6128
|
{
|
|
5900
6129
|
"name": "options",
|
|
5901
6130
|
"description": "指定可选项",
|
|
5902
|
-
"default": "
|
|
6131
|
+
"default": "[]",
|
|
5903
6132
|
"value": {
|
|
5904
6133
|
"type": "RadioGroupOption[]",
|
|
5905
6134
|
"kind": "expression"
|
|
@@ -6389,7 +6618,7 @@
|
|
|
6389
6618
|
{
|
|
6390
6619
|
"name": "options",
|
|
6391
6620
|
"description": "指定可选项",
|
|
6392
|
-
"default": "
|
|
6621
|
+
"default": "[]",
|
|
6393
6622
|
"value": {
|
|
6394
6623
|
"type": "SelectOption[]",
|
|
6395
6624
|
"kind": "expression"
|
|
@@ -6418,7 +6647,7 @@
|
|
|
6418
6647
|
"description": "触发验证的时机,可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose`",
|
|
6419
6648
|
"default": "['onChange', 'onClear', 'onClose']",
|
|
6420
6649
|
"value": {
|
|
6421
|
-
"type": "
|
|
6650
|
+
"type": "SelectValidateTrigger[]",
|
|
6422
6651
|
"kind": "expression"
|
|
6423
6652
|
}
|
|
6424
6653
|
},
|
|
@@ -7471,7 +7700,7 @@
|
|
|
7471
7700
|
"description": "触发验证的时机,可选值为 `onChange` `onLazyChange`",
|
|
7472
7701
|
"default": "['onChange', 'onLazyChange']",
|
|
7473
7702
|
"value": {
|
|
7474
|
-
"type": "
|
|
7703
|
+
"type": "SwitchValidateTrigger[]",
|
|
7475
7704
|
"kind": "expression"
|
|
7476
7705
|
}
|
|
7477
7706
|
},
|
|
@@ -8268,7 +8497,7 @@
|
|
|
8268
8497
|
"description": "触发验证的时机, 可选值为 `onChange` `onRemove`",
|
|
8269
8498
|
"default": "['onChange', 'onRemove']",
|
|
8270
8499
|
"value": {
|
|
8271
|
-
"type": "
|
|
8500
|
+
"type": "UploaderValidateTrigger[]",
|
|
8272
8501
|
"kind": "expression"
|
|
8273
8502
|
}
|
|
8274
8503
|
},
|