king-design-analyzer 2.2.0 → 2.2.2

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 (154) hide show
  1. package/components/actions.json +8 -0
  2. package/components/advancedset.json +1 -0
  3. package/components/affix.json +1 -0
  4. package/components/anchor.json +220 -0
  5. package/components/anchorlink.json +111 -0
  6. package/components/badge.json +1 -0
  7. package/components/breadcrumb.json +2 -1
  8. package/components/button.json +1 -0
  9. package/components/buttonlink.json +1 -0
  10. package/components/card.json +6 -3
  11. package/components/cardcontent.json +5 -0
  12. package/components/cascader.json +56 -0
  13. package/components/collapse.json +335 -348
  14. package/components/configprovider.json +96 -0
  15. package/components/copyrow.json +1 -0
  16. package/components/descriptions.json +10 -3
  17. package/components/diagram.json +295 -0
  18. package/components/dialog.json +4 -0
  19. package/components/divider.json +1 -0
  20. package/components/drawer.json +32 -0
  21. package/components/dropdown.json +13 -4
  22. package/components/flex.json +1 -0
  23. package/components/form.json +12 -3
  24. package/components/header.json +4 -0
  25. package/components/input.json +8 -4
  26. package/components/layoutcontent.json +9 -0
  27. package/components/layoutlistcontent.json +9 -0
  28. package/components/layoutpermissioncontent.json +1 -0
  29. package/components/layoutstandardlist.json +1 -0
  30. package/components/lazymount.json +1 -0
  31. package/components/lazyteleport.json +1 -0
  32. package/components/menu.json +4 -3
  33. package/components/notification.json +351 -0
  34. package/components/popover.json +23 -0
  35. package/components/protable.json +2 -0
  36. package/components/rate.json +1 -0
  37. package/components/scrollselect.json +140 -0
  38. package/components/select.json +72 -0
  39. package/components/skeleton.json +1 -0
  40. package/components/slider.json +12 -2
  41. package/components/spin.json +2 -1
  42. package/components/spinner.json +422 -428
  43. package/components/split.json +3 -0
  44. package/components/switch.json +4 -2
  45. package/components/table.json +6 -1
  46. package/components/tabs.json +2 -2
  47. package/components/tag.json +8 -5
  48. package/components/timeline.json +3 -1
  49. package/components/tip.json +20 -0
  50. package/components/tooltip.json +8 -0
  51. package/components/tour.json +16 -0
  52. package/components/transfer.json +52 -5
  53. package/components/tree.json +22 -1
  54. package/components/treeselect.json +56 -0
  55. package/components/upload.json +16 -0
  56. package/components/vdialog.json +1 -0
  57. package/components/vdrawer.json +4 -0
  58. package/components/virtuallist.json +9 -0
  59. package/dist/ast/index.d.mts +30 -1
  60. package/dist/ast/index.d.ts +30 -1
  61. package/dist/ast/index.js +3 -3
  62. package/dist/ast/index.mjs +1 -1
  63. package/dist/{chunk-BI5TIQID.mjs → chunk-4OTQAQ6J.mjs} +13 -2
  64. package/dist/chunk-6HOIRUQB.mjs +409 -0
  65. package/dist/{chunk-XGPHQHLR.mjs → chunk-BSCASJTV.mjs} +27 -4
  66. package/dist/{chunk-CR3GC4H3.js → chunk-DHLWNT53.js} +13 -2
  67. package/dist/{chunk-CJGGFVQJ.js → chunk-HARQRI4F.js} +31 -8
  68. package/dist/{chunk-TA3SV4SP.js → chunk-JJ6AB4ZH.js} +2 -2
  69. package/dist/{chunk-3LYQ5XFM.mjs → chunk-NZL6T22V.mjs} +1 -1
  70. package/dist/chunk-V5N65MRP.js +411 -0
  71. package/dist/{chunk-SZYVGYKK.js → chunk-XPHDD6XR.js} +113 -35
  72. package/dist/{chunk-KMIDURUR.mjs → chunk-YRGYDK2I.mjs} +113 -35
  73. package/dist/full/index.d.mts +2 -0
  74. package/dist/full/index.d.ts +2 -0
  75. package/dist/full/index.js +6 -6
  76. package/dist/full/index.mjs +4 -4
  77. package/dist/index.js +13 -13
  78. package/dist/index.mjs +5 -5
  79. package/dist/metadata/index.d.mts +17 -2
  80. package/dist/metadata/index.d.ts +17 -2
  81. package/dist/runtime/index.d.mts +2 -0
  82. package/dist/runtime/index.d.ts +2 -0
  83. package/dist/runtime/index.js +4 -4
  84. package/dist/runtime/index.mjs +2 -2
  85. package/dist/static/index.js +5 -5
  86. package/dist/static/index.mjs +2 -2
  87. package/docs_for_llm/actions.doc.md +11 -1
  88. package/docs_for_llm/advancedset.doc.md +10 -1
  89. package/docs_for_llm/affix.doc.md +5 -0
  90. package/docs_for_llm/anchor.doc.md +155 -0
  91. package/docs_for_llm/anchorlink.doc.md +75 -0
  92. package/docs_for_llm/badge.doc.md +5 -0
  93. package/docs_for_llm/breadcrumb.doc.md +74 -1
  94. package/docs_for_llm/button.doc.md +57 -0
  95. package/docs_for_llm/buttonlink.doc.md +10 -1
  96. package/docs_for_llm/card.doc.md +50 -3
  97. package/docs_for_llm/cardcontent.doc.md +21 -0
  98. package/docs_for_llm/carousel.doc.md +71 -0
  99. package/docs_for_llm/cascader.doc.md +62 -0
  100. package/docs_for_llm/collapse.doc.md +138 -8
  101. package/docs_for_llm/configprovider.doc.md +77 -0
  102. package/docs_for_llm/copyrow.doc.md +10 -1
  103. package/docs_for_llm/datepicker.doc.md +19 -0
  104. package/docs_for_llm/descriptions.doc.md +113 -4
  105. package/docs_for_llm/diagram.doc.md +343 -0
  106. package/docs_for_llm/dialog.doc.md +49 -0
  107. package/docs_for_llm/divider.doc.md +5 -0
  108. package/docs_for_llm/drawer.doc.md +86 -0
  109. package/docs_for_llm/dropdown.doc.md +257 -3
  110. package/docs_for_llm/flex.doc.md +10 -1
  111. package/docs_for_llm/form.doc.md +163 -4
  112. package/docs_for_llm/formitemspinner.doc.md +1 -1
  113. package/docs_for_llm/grid.doc.md +71 -0
  114. package/docs_for_llm/header.doc.md +33 -4
  115. package/docs_for_llm/input.doc.md +109 -2
  116. package/docs_for_llm/layoutcontent.doc.md +37 -0
  117. package/docs_for_llm/layoutlistcontent.doc.md +82 -9
  118. package/docs_for_llm/layoutpermissioncontent.doc.md +10 -1
  119. package/docs_for_llm/layoutstandardlist.doc.md +10 -1
  120. package/docs_for_llm/lazymount.doc.md +10 -1
  121. package/docs_for_llm/lazyteleport.doc.md +10 -1
  122. package/docs_for_llm/menu.doc.md +125 -3
  123. package/docs_for_llm/message.doc.md +45 -0
  124. package/docs_for_llm/notification.doc.md +214 -0
  125. package/docs_for_llm/popover.doc.md +34 -0
  126. package/docs_for_llm/protable.doc.md +9 -0
  127. package/docs_for_llm/rate.doc.md +5 -0
  128. package/docs_for_llm/scrollselect.doc.md +90 -0
  129. package/docs_for_llm/select.doc.md +189 -0
  130. package/docs_for_llm/skeleton.doc.md +35 -0
  131. package/docs_for_llm/slider.doc.md +11 -1
  132. package/docs_for_llm/spin.doc.md +10 -1
  133. package/docs_for_llm/spinner.doc.md +1 -1
  134. package/docs_for_llm/split.doc.md +13 -0
  135. package/docs_for_llm/steps.doc.md +71 -0
  136. package/docs_for_llm/switch.doc.md +15 -2
  137. package/docs_for_llm/table.doc.md +199 -4
  138. package/docs_for_llm/tabs.doc.md +98 -2
  139. package/docs_for_llm/tag.doc.md +148 -5
  140. package/docs_for_llm/timeline.doc.md +80 -2
  141. package/docs_for_llm/timepicker.doc.md +19 -0
  142. package/docs_for_llm/tip.doc.md +30 -0
  143. package/docs_for_llm/tooltip.doc.md +46 -0
  144. package/docs_for_llm/tour.doc.md +102 -0
  145. package/docs_for_llm/transfer.doc.md +59 -4
  146. package/docs_for_llm/tree.doc.md +64 -1
  147. package/docs_for_llm/treeselect.doc.md +68 -0
  148. package/docs_for_llm/upload.doc.md +28 -0
  149. package/docs_for_llm/vdialog.doc.md +26 -1
  150. package/docs_for_llm/vdrawer.doc.md +33 -4
  151. package/docs_for_llm/virtuallist.doc.md +165 -0
  152. package/package.json +3 -3
  153. package/dist/chunk-D2SXGGTX.mjs +0 -162
  154. package/dist/chunk-EYKZY2F3.js +0 -164
@@ -32,6 +32,14 @@
32
32
  {
33
33
  "name": "btnText",
34
34
  "description": "自定义按钮文案渲染",
35
+ "bindingType": "object",
36
+ "slotProps": [
37
+ {
38
+ "name": "action",
39
+ "type": "ActionConfig",
40
+ "description": "当前操作项配置对象"
41
+ }
42
+ ],
35
43
  "vueTemplate": "<template #btnText=\"{ action }\">...</template>"
36
44
  }
37
45
  ],
@@ -53,6 +53,7 @@
53
53
  {
54
54
  "name": "default",
55
55
  "description": "高级设置内容区域",
56
+ "bindingType": "none",
56
57
  "vueTemplate": "<AdvancedSet>...</AdvancedSet>"
57
58
  }
58
59
  ],
@@ -81,6 +81,7 @@
81
81
  {
82
82
  "name": "default",
83
83
  "description": "需要被固定的元素",
84
+ "bindingType": "none",
84
85
  "vueTemplate": "#default",
85
86
  "usageExample": "<Affix><Button>Fixed Button</Button></Affix>"
86
87
  }
@@ -0,0 +1,220 @@
1
+ {
2
+ "id": "anchor",
3
+ "name": "Anchor",
4
+ "displayName": "锚点导航",
5
+ "category": "navigation",
6
+ "description": "锚点导航组件,用于监听页面滚动位置并高亮当前锚点。支持自定义滚动容器、偏移量、横向或纵向模式,通常与 AnchorLink 配合使用。",
7
+ "importStatement": "import { Anchor, AnchorLink } from '@king-design/vue';",
8
+ "props": [
9
+ {
10
+ "name": "value",
11
+ "description": "当前激活的锚点 href,可用 v-model 双向绑定",
12
+ "type": {
13
+ "raw": "string",
14
+ "kind": "string"
15
+ },
16
+ "required": false,
17
+ "default": "undefined",
18
+ "usageExample": "<Anchor v-model=\"currentLink\"></Anchor>"
19
+ },
20
+ {
21
+ "name": "offset",
22
+ "description": "滚动定位偏移量,适合页面存在固定头部时使用",
23
+ "type": {
24
+ "raw": "number",
25
+ "kind": "number"
26
+ },
27
+ "required": false,
28
+ "default": "0",
29
+ "usageExample": "<Anchor :offset=\"64\"></Anchor>"
30
+ },
31
+ {
32
+ "name": "container",
33
+ "description": "监听滚动的容器,可传选择器或 HTMLElement",
34
+ "type": {
35
+ "raw": "string | HTMLElement",
36
+ "kind": "union"
37
+ },
38
+ "required": false,
39
+ "default": "window",
40
+ "usageExample": "<Anchor container=\"#scroll-container\"></Anchor>"
41
+ },
42
+ {
43
+ "name": "threshold",
44
+ "description": "激活锚点时的阈值范围",
45
+ "type": {
46
+ "raw": "number",
47
+ "kind": "number"
48
+ },
49
+ "required": false,
50
+ "default": "0",
51
+ "usageExample": "<Anchor :threshold=\"20\"></Anchor>"
52
+ },
53
+ {
54
+ "name": "vertical",
55
+ "description": "是否使用纵向模式,默认开启;传 false 时为横向模式",
56
+ "type": {
57
+ "raw": "boolean",
58
+ "kind": "boolean"
59
+ },
60
+ "required": false,
61
+ "default": "true",
62
+ "usageExample": "<Anchor :vertical=\"false\"></Anchor>"
63
+ },
64
+ {
65
+ "name": "size",
66
+ "description": "导航尺寸",
67
+ "type": {
68
+ "raw": "Sizes",
69
+ "kind": "custom"
70
+ },
71
+ "required": false,
72
+ "default": "\"default\"",
73
+ "usageExample": "<Anchor size=\"small\"></Anchor>"
74
+ },
75
+ {
76
+ "name": "duration",
77
+ "description": "点击锚点后的滚动动画时长,单位 ms",
78
+ "type": {
79
+ "raw": "number",
80
+ "kind": "number"
81
+ },
82
+ "required": false,
83
+ "default": "300",
84
+ "usageExample": "<Anchor :duration=\"500\"></Anchor>"
85
+ }
86
+ ],
87
+ "events": [
88
+ {
89
+ "name": "change",
90
+ "vueEventName": "@change",
91
+ "description": "当前激活锚点变化时触发",
92
+ "payload": [
93
+ {
94
+ "name": "href",
95
+ "type": "string",
96
+ "description": "当前激活锚点 href"
97
+ }
98
+ ],
99
+ "usageExample": "<Anchor @change=\"handleChange\"></Anchor>",
100
+ "handlerExample": "const handleChange = (href: string) => {\n console.log('当前锚点', href);\n};"
101
+ },
102
+ {
103
+ "name": "click",
104
+ "vueEventName": "@click",
105
+ "description": "点击锚点链接时触发",
106
+ "payload": [
107
+ {
108
+ "name": "e",
109
+ "type": "MouseEvent",
110
+ "description": "原生鼠标事件"
111
+ },
112
+ {
113
+ "name": "link",
114
+ "type": "AnchorLinkProps",
115
+ "description": "被点击的锚点配置"
116
+ }
117
+ ],
118
+ "usageExample": "<Anchor @click=\"handleClick\"></Anchor>",
119
+ "handlerExample": "const handleClick = (e: MouseEvent, link: { href?: string }) => {\n console.log('点击了锚点', link.href);\n};"
120
+ }
121
+ ],
122
+ "slots": [
123
+ {
124
+ "name": "default",
125
+ "description": "锚点导航内容,通常放置一个或多个 AnchorLink",
126
+ "bindingType": "none",
127
+ "vueTemplate": "#default",
128
+ "usageExample": "<Anchor>\n <AnchorLink href=\"section1\" title=\"Section 1\" />\n</Anchor>"
129
+ }
130
+ ],
131
+ "methods": [
132
+ {
133
+ "name": "getLinks",
134
+ "description": "获取当前 Anchor 中注册的所有 href",
135
+ "params": [],
136
+ "returnType": "string[]",
137
+ "usageExample": "anchorRef.value?.getLinks();"
138
+ },
139
+ {
140
+ "name": "getTargetElement",
141
+ "description": "根据 href 查找对应的目标元素",
142
+ "params": [
143
+ {
144
+ "name": "href",
145
+ "type": "string",
146
+ "description": "目标锚点 href"
147
+ }
148
+ ],
149
+ "returnType": "HTMLElement | null",
150
+ "usageExample": "anchorRef.value?.getTargetElement('section2');"
151
+ }
152
+ ],
153
+ "examples": [
154
+ {
155
+ "id": "anchor_basic",
156
+ "title": "基础用法",
157
+ "description": "在滚动容器旁边展示纵向锚点导航。",
158
+ "difficulty": "easy",
159
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { Anchor, AnchorLink } from '@king-design/vue';\n\nconst current = ref('section1');\n</script>\n<template>\n <div style=\"display: flex; gap: 20px; align-items: flex-start;\">\n <div id=\"scroll-container\" style=\"height: 240px; overflow-y: auto; width: 360px; border: 1px solid #eee; padding: 12px;\">\n <section id=\"section1\" style=\"height: 180px;\">第一部分</section>\n <section id=\"section2\" style=\"height: 180px;\">第二部分</section>\n <section id=\"section3\" style=\"height: 180px;\">第三部分</section>\n </div>\n <Anchor v-model=\"current\" container=\"#scroll-container\">\n <AnchorLink href=\"section1\" title=\"第一部分\" />\n <AnchorLink href=\"section2\" title=\"第二部分\" />\n <AnchorLink href=\"section3\" title=\"第三部分\" />\n </Anchor>\n </div>\n</template>",
160
+ "tags": [
161
+ "basic",
162
+ "container"
163
+ ],
164
+ "usedProps": [
165
+ "value",
166
+ "container"
167
+ ],
168
+ "usedEvents": [],
169
+ "usedSlots": [
170
+ "default"
171
+ ],
172
+ "usedMethods": [],
173
+ "scenario": "为详情页长内容区域提供目录导航。"
174
+ },
175
+ {
176
+ "id": "anchor_horizontal",
177
+ "title": "横向锚点",
178
+ "description": "将 Anchor 作为横向导航栏使用。",
179
+ "difficulty": "medium",
180
+ "code": "<script setup lang=\"ts\">\nimport { Anchor, AnchorLink } from '@king-design/vue';\n</script>\n<template>\n <Anchor :vertical=\"false\" :offset=\"64\">\n <AnchorLink href=\"overview\" title=\"概览\" />\n <AnchorLink href=\"spec\" title=\"规格\" />\n <AnchorLink href=\"billing\" title=\"计费\" />\n </Anchor>\n</template>",
181
+ "tags": [
182
+ "horizontal",
183
+ "offset"
184
+ ],
185
+ "usedProps": [
186
+ "vertical",
187
+ "offset"
188
+ ],
189
+ "usedEvents": [],
190
+ "usedSlots": [
191
+ "default"
192
+ ],
193
+ "usedMethods": [],
194
+ "scenario": "在页面头部展示横向章节切换导航。"
195
+ }
196
+ ],
197
+ "searchKeywords": [
198
+ "anchor",
199
+ "锚点",
200
+ "目录导航",
201
+ "滚动定位",
202
+ "AnchorLink"
203
+ ],
204
+ "useCases": [
205
+ "长页面章节导航",
206
+ "文档目录定位",
207
+ "详情页内容分区跳转"
208
+ ],
209
+ "typeDefinitions": [
210
+ {
211
+ "name": "AnchorContainer",
212
+ "definition": "type AnchorContainer = string | HTMLElement",
213
+ "description": "锚点导航支持的滚动容器类型。"
214
+ }
215
+ ],
216
+ "relatedComponents": [
217
+ "AnchorLink",
218
+ "Affix"
219
+ ]
220
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "id": "anchorlink",
3
+ "name": "AnchorLink",
4
+ "displayName": "锚点链接",
5
+ "category": "navigation",
6
+ "description": "Anchor 的子链接组件,用于声明单个锚点项。支持标题、禁用态以及嵌套层级,通常作为 Anchor 的默认插槽子节点出现。",
7
+ "importStatement": "import { AnchorLink } from '@king-design/vue';",
8
+ "props": [
9
+ {
10
+ "name": "href",
11
+ "description": "目标元素的 id 或锚点标识",
12
+ "type": {
13
+ "raw": "string",
14
+ "kind": "string"
15
+ },
16
+ "required": false,
17
+ "default": "undefined",
18
+ "usageExample": "<AnchorLink href=\"section1\" title=\"第一部分\" />"
19
+ },
20
+ {
21
+ "name": "title",
22
+ "description": "链接标题内容",
23
+ "type": {
24
+ "raw": "string | VNode",
25
+ "kind": "union"
26
+ },
27
+ "required": false,
28
+ "default": "undefined",
29
+ "usageExample": "<AnchorLink href=\"billing\" title=\"计费说明\" />"
30
+ },
31
+ {
32
+ "name": "disabled",
33
+ "description": "是否禁用当前锚点链接",
34
+ "type": {
35
+ "raw": "boolean",
36
+ "kind": "boolean"
37
+ },
38
+ "required": false,
39
+ "default": "false",
40
+ "usageExample": "<AnchorLink href=\"advanced\" title=\"高级设置\" disabled />"
41
+ }
42
+ ],
43
+ "events": [],
44
+ "slots": [
45
+ {
46
+ "name": "default",
47
+ "description": "自定义链接内容;未设置 title 时可直接通过默认插槽传入文字或节点",
48
+ "bindingType": "none",
49
+ "vueTemplate": "#default",
50
+ "usageExample": "<AnchorLink href=\"section2\">第二部分</AnchorLink>"
51
+ }
52
+ ],
53
+ "methods": [],
54
+ "examples": [
55
+ {
56
+ "id": "anchorlink_basic",
57
+ "title": "基础链接",
58
+ "description": "在 Anchor 中声明单个锚点链接。",
59
+ "difficulty": "easy",
60
+ "code": "<script setup lang=\"ts\">\nimport { Anchor, AnchorLink } from '@king-design/vue';\n</script>\n<template>\n <Anchor>\n <AnchorLink href=\"section1\" title=\"第一部分\" />\n <AnchorLink href=\"section2\">第二部分</AnchorLink>\n </Anchor>\n</template>",
61
+ "tags": [
62
+ "basic",
63
+ "default-slot"
64
+ ],
65
+ "usedProps": [
66
+ "href",
67
+ "title"
68
+ ],
69
+ "usedEvents": [],
70
+ "usedSlots": [
71
+ "default"
72
+ ],
73
+ "usedMethods": [],
74
+ "scenario": "为章节导航添加单个可点击锚点项。"
75
+ },
76
+ {
77
+ "id": "anchorlink_nested",
78
+ "title": "嵌套链接",
79
+ "description": "在纵向 Anchor 中构建层级导航。",
80
+ "difficulty": "medium",
81
+ "code": "<script setup lang=\"ts\">\nimport { Anchor, AnchorLink } from '@king-design/vue';\n</script>\n<template>\n <Anchor>\n <AnchorLink href=\"overview\" title=\"概览\">\n <AnchorLink href=\"overview-base\" title=\"基础信息\" />\n <AnchorLink href=\"overview-network\" title=\"网络配置\" />\n </AnchorLink>\n <AnchorLink href=\"billing\" title=\"计费\" />\n </Anchor>\n</template>",
82
+ "tags": [
83
+ "nested",
84
+ "hierarchy"
85
+ ],
86
+ "usedProps": [
87
+ "href",
88
+ "title"
89
+ ],
90
+ "usedEvents": [],
91
+ "usedSlots": [
92
+ "default"
93
+ ],
94
+ "usedMethods": [],
95
+ "scenario": "构建多级目录结构的页面导航。"
96
+ }
97
+ ],
98
+ "searchKeywords": [
99
+ "anchorlink",
100
+ "锚点链接",
101
+ "目录项",
102
+ "Anchor"
103
+ ],
104
+ "useCases": [
105
+ "Anchor 子导航项",
106
+ "目录树层级导航"
107
+ ],
108
+ "relatedComponents": [
109
+ "Anchor"
110
+ ]
111
+ }
@@ -46,6 +46,7 @@
46
46
  {
47
47
  "name": "default",
48
48
  "description": "徽标包裹的元素",
49
+ "bindingType": "none",
49
50
  "vueTemplate": "#default",
50
51
  "usageExample": "<Badge><Button>Button</Button></Badge>"
51
52
  }
@@ -22,7 +22,8 @@
22
22
  "slots": [
23
23
  {
24
24
  "name": "separator",
25
- "description": "指定分隔符"
25
+ "description": "指定分隔符",
26
+ "bindingType": "none"
26
27
  }
27
28
  ],
28
29
  "methods": [],
@@ -413,6 +413,7 @@
413
413
  {
414
414
  "name": "default",
415
415
  "description": "按钮内容",
416
+ "bindingType": "none",
416
417
  "vueTemplate": "#default",
417
418
  "usageExample": "<Button>按钮文字</Button>"
418
419
  }
@@ -11,6 +11,7 @@
11
11
  {
12
12
  "name": "default",
13
13
  "description": "按钮内容",
14
+ "bindingType": "none",
14
15
  "vueTemplate": "<ButtonLink>...</ButtonLink>"
15
16
  }
16
17
  ],
@@ -84,15 +84,18 @@
84
84
  "slots": [
85
85
  {
86
86
  "name": "header",
87
- "description": "扩展整个头部内容"
87
+ "description": "扩展整个头部内容",
88
+ "bindingType": "none"
88
89
  },
89
90
  {
90
91
  "name": "title",
91
- "description": "扩展头部标题内容"
92
+ "description": "扩展头部标题内容",
93
+ "bindingType": "none"
92
94
  },
93
95
  {
94
96
  "name": "extra",
95
- "description": "扩展头部附加内容"
97
+ "description": "扩展头部附加内容",
98
+ "bindingType": "none"
96
99
  }
97
100
  ],
98
101
  "methods": [],
@@ -101,30 +101,35 @@
101
101
  {
102
102
  "name": "default",
103
103
  "description": "默认内容区域",
104
+ "bindingType": "none",
104
105
  "vueTemplate": "<CardContent>内容</CardContent>",
105
106
  "usageExample": "<CardContent>...</CardContent>"
106
107
  },
107
108
  {
108
109
  "name": "opLeft",
109
110
  "description": "扩展卡片操作栏左侧内容",
111
+ "bindingType": "none",
110
112
  "vueTemplate": "<template #opLeft>...</template>",
111
113
  "usageExample": "<CardContent><template #opLeft><Button>操作</Button></template></CardContent>"
112
114
  },
113
115
  {
114
116
  "name": "opRight",
115
117
  "description": "扩展卡片操作栏右侧内容",
118
+ "bindingType": "none",
116
119
  "vueTemplate": "<template #opRight>...</template>",
117
120
  "usageExample": "<CardContent><template #opRight><Button>更多</Button></template></CardContent>"
118
121
  },
119
122
  {
120
123
  "name": "prepend",
121
124
  "description": "扩展卡片操作栏上面部分内容",
125
+ "bindingType": "none",
122
126
  "vueTemplate": "<template #prepend>...</template>",
123
127
  "usageExample": "<CardContent><template #prepend><Alert>提示信息</Alert></template></CardContent>"
124
128
  },
125
129
  {
126
130
  "name": "extra",
127
131
  "description": "扩展头部附加内容",
132
+ "bindingType": "none",
128
133
  "vueTemplate": "<template #extra>...</template>",
129
134
  "usageExample": "<CardContent title=\"标题\"><template #extra><Link>查看更多</Link></template></CardContent>"
130
135
  }
@@ -377,6 +377,62 @@
377
377
  "usageExample": "<Cascader @hide=\"onHide\">"
378
378
  }
379
379
  ],
380
+ "slots": [
381
+ {
382
+ "name": "value",
383
+ "description": "自定义单选模式下的已选路径展示内容",
384
+ "bindingType": "array",
385
+ "slotProps": [
386
+ {
387
+ "name": "value",
388
+ "type": "V[]",
389
+ "description": "当前选中的值路径",
390
+ "destructuringExample": "[value]"
391
+ },
392
+ {
393
+ "name": "label",
394
+ "type": "string",
395
+ "description": "当前选中路径对应的展示文案"
396
+ }
397
+ ],
398
+ "vueTemplate": "#value=\"[value, label]\"",
399
+ "usageExample": "<Cascader v-model=\"selectedCity\" :data=\"options\">\n <template #value=\"[value, label]\">\n <span>{{ label }} ({{ value.join(' / ') }})</span>\n </template>\n</Cascader>"
400
+ },
401
+ {
402
+ "name": "values",
403
+ "description": "自定义多选模式下的已选路径展示内容",
404
+ "bindingType": "array",
405
+ "slotProps": [
406
+ {
407
+ "name": "values",
408
+ "type": "V[][]",
409
+ "description": "当前选中的值路径数组",
410
+ "destructuringExample": "[values]"
411
+ },
412
+ {
413
+ "name": "labels",
414
+ "type": "string[]",
415
+ "description": "当前选中路径对应的展示文案数组"
416
+ }
417
+ ],
418
+ "vueTemplate": "#values=\"[values, labels]\"",
419
+ "usageExample": "<Cascader v-model=\"selectedCities\" :data=\"options\" multiple>\n <template #values=\"[values, labels]\">\n <span>已选 {{ labels.length }} 条路径</span>\n </template>\n</Cascader>"
420
+ },
421
+ {
422
+ "name": "prefix",
423
+ "description": "扩展选择框前缀内容",
424
+ "bindingType": "none",
425
+ "vueTemplate": "#prefix",
426
+ "usageExample": "<Cascader :data=\"options\">\n <template #prefix>\n <span class=\"k-icon-location\"></span>\n </template>\n</Cascader>"
427
+ },
428
+ {
429
+ "name": "suffix",
430
+ "description": "扩展选择框后缀内容",
431
+ "bindingType": "none",
432
+ "vueTemplate": "#suffix",
433
+ "usageExample": "<Cascader :data=\"options\">\n <template #suffix>\n <span>路径</span>\n </template>\n</Cascader>"
434
+ }
435
+ ],
380
436
  "methods": [
381
437
  {
382
438
  "name": "show",