Skip to content

Commit fdc58f8

Browse files
committed
🚀 更新web-types配置
1 parent cb0c644 commit fdc58f8

1 file changed

Lines changed: 45 additions & 24 deletions

File tree

web-types.json

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
33
"name": "@higuaifan/wash-painting-ui",
4-
"version": "0.1.12",
4+
"version": "0.1.12-beta.1",
55
"contributions": {
66
"html": {
77
"types-syntax": "typescript",
@@ -19,7 +19,7 @@
1919
"name": "text",
2020
"description": "button inline text, will replace by slot\n按钮文本 会被slot覆盖",
2121
"value": {
22-
"type": "string | VNode[]",
22+
"type": "string|VNode[]",
2323
"default": "",
2424
"kind": "expression"
2525
}
@@ -56,7 +56,7 @@
5656
"name": "label",
5757
"description": "checkbox label text, will replace by slot\n按钮文本 会被slot覆盖",
5858
"value": {
59-
"type": "string | VNode[]",
59+
"type": "string|VNode[]",
6060
"default": "",
6161
"kind": "expression"
6262
}
@@ -65,7 +65,7 @@
6565
"name": "value",
6666
"description": "checkbox value\n复选框值",
6767
"value": {
68-
"type": "string | number",
68+
"type": "string|number",
6969
"default": "",
7070
"kind": "expression"
7171
}
@@ -219,6 +219,34 @@
219219
}
220220
]
221221
},
222+
{
223+
"name": "w-list",
224+
"source": {
225+
"symbol": "WList"
226+
},
227+
"description": "List component with wash-painting-ui style.\n水墨组件的列表组件。",
228+
"doc-url": "https://wash-painting.com/list",
229+
"attributes": [
230+
{
231+
"name": "data",
232+
"description": "List data\n列表数据",
233+
"value": {
234+
"type": "any[]",
235+
"default": "[]",
236+
"kind": "expression"
237+
}
238+
},
239+
{
240+
"name": "autoActive",
241+
"description": "all item use active style\n所有项使用激活样式",
242+
"value": {
243+
"type": "boolean",
244+
"default": "false",
245+
"kind": "expression"
246+
}
247+
}
248+
]
249+
},
222250
{
223251
"name": "w-radio",
224252
"source": {
@@ -268,7 +296,7 @@
268296
"name": "options",
269297
"description": "select options\n选择框的数组",
270298
"value": {
271-
"type": "any[]",
299+
"type": "Array<any>",
272300
"default": "[]",
273301
"kind": "expression"
274302
}
@@ -415,7 +443,7 @@
415443
"name": "placement",
416444
"description": "popover display placement",
417445
"value": {
418-
"type": "Placement",
446+
"type": "Placement;",
419447
"default": "bottom",
420448
"kind": "expression"
421449
}
@@ -433,7 +461,7 @@
433461
"name": "offsetSkid",
434462
"description": "Offset in pixels along the trigger element",
435463
"value": {
436-
"type": "string",
464+
"type": "string;",
437465
"default": "'0'",
438466
"kind": "expression"
439467
}
@@ -442,7 +470,7 @@
442470
"name": "offsetDistance",
443471
"description": "Offset in pixels away from the trigger element",
444472
"value": {
445-
"type": "string",
473+
"type": "string;",
446474
"default": "'12'",
447475
"kind": "expression"
448476
}
@@ -460,7 +488,7 @@
460488
"name": "show",
461489
"description": "Manually open/close the Popper, other events are ignored if this prop is set",
462490
"value": {
463-
"type": "boolean | null",
491+
"type": "boolean|null",
464492
"default": "null",
465493
"kind": "expression"
466494
}
@@ -533,7 +561,7 @@
533561
"name": "placement",
534562
"description": "popover display placement",
535563
"value": {
536-
"type": "Placement",
564+
"type": "Placement;",
537565
"default": "bottom",
538566
"kind": "expression"
539567
}
@@ -551,7 +579,7 @@
551579
"name": "offsetSkid",
552580
"description": "Offset in pixels along the trigger element",
553581
"value": {
554-
"type": "string",
582+
"type": "string;",
555583
"default": "'0'",
556584
"kind": "expression"
557585
}
@@ -560,7 +588,7 @@
560588
"name": "offsetDistance",
561589
"description": "Offset in pixels away from the trigger element",
562590
"value": {
563-
"type": "string",
591+
"type": "string;",
564592
"default": "'12'",
565593
"kind": "expression"
566594
}
@@ -605,7 +633,7 @@
605633
"name": "arrowPadding",
606634
"description": "Stop arrow from reaching the edge of the popper",
607635
"value": {
608-
"type": "string",
636+
"type": "string;",
609637
"default": "'0'",
610638
"kind": "expression"
611639
}
@@ -651,7 +679,7 @@
651679
"name": "menu",
652680
"description": "menu array",
653681
"value": {
654-
"type": "MenuType[]",
682+
"type": "MenuTypeArr",
655683
"default": "[]",
656684
"kind": "expression"
657685
}
@@ -871,15 +899,15 @@
871899
"name": "data",
872900
"description": "table data\n表格内容",
873901
"value": {
874-
"type": "any[]",
902+
"type": "Array<any>",
875903
"kind": "expression"
876904
}
877905
},
878906
{
879907
"name": "height",
880908
"description": "table height\n表格高度",
881909
"value": {
882-
"type": "string",
910+
"type": "string|null",
883911
"kind": "expression"
884912
}
885913
}
@@ -921,16 +949,9 @@
921949
}
922950
}
923951
]
924-
},
925-
{
926-
"name": "",
927-
"source": {
928-
"symbol": "WTypes"
929-
},
930-
"attributes": []
931952
}
932953
]
933954
}
934955
},
935956
"framework": "vue"
936-
}
957+
}

0 commit comments

Comments
 (0)