ep-craft 0.1.42 → 0.2.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/dist-ai/components/affix.json +152 -0
- package/dist-ai/components/affix.md +73 -0
- package/dist-ai/components/alert.json +186 -0
- package/dist-ai/components/alert.md +89 -0
- package/dist-ai/components/anchor-link.json +102 -0
- package/dist-ai/components/anchor-link.md +67 -0
- package/dist-ai/components/anchor.json +179 -0
- package/dist-ai/components/anchor.md +87 -0
- package/dist-ai/components/aside.json +87 -0
- package/dist-ai/components/aside.md +63 -0
- package/dist-ai/components/autocomplete.json +613 -0
- package/dist-ai/components/autocomplete.md +140 -0
- package/dist-ai/components/avatar.json +163 -0
- package/dist-ai/components/avatar.md +83 -0
- package/dist-ai/components/backtop.json +118 -0
- package/dist-ai/components/backtop.md +66 -0
- package/dist-ai/components/badge.json +186 -0
- package/dist-ai/components/badge.md +85 -0
- package/dist-ai/components/breadcrumb-item.json +97 -0
- package/dist-ai/components/breadcrumb-item.md +65 -0
- package/dist-ai/components/breadcrumb.json +100 -0
- package/dist-ai/components/breadcrumb.md +68 -0
- package/dist-ai/components/button-group.json +123 -0
- package/dist-ai/components/button-group.md +65 -0
- package/dist-ai/components/button.json +349 -0
- package/dist-ai/components/button.md +124 -0
- package/dist-ai/components/calendar.json +148 -0
- package/dist-ai/components/calendar.md +74 -0
- package/dist-ai/components/card.json +168 -0
- package/dist-ai/components/card.md +87 -0
- package/dist-ai/components/carousel-item.json +99 -0
- package/dist-ai/components/carousel-item.md +68 -0
- package/dist-ai/components/carousel.json +245 -0
- package/dist-ai/components/carousel.md +97 -0
- package/dist-ai/components/cascader-panel.json +242 -0
- package/dist-ai/components/cascader-panel.md +108 -0
- package/dist-ai/components/cascader.json +531 -0
- package/dist-ai/components/cascader.md +146 -0
- package/dist-ai/components/check-tag.json +133 -0
- package/dist-ai/components/check-tag.md +72 -0
- package/dist-ai/components/checkbox-button.json +279 -0
- package/dist-ai/components/checkbox-button.md +94 -0
- package/dist-ai/components/checkbox-group.json +236 -0
- package/dist-ai/components/checkbox-group.md +90 -0
- package/dist-ai/components/checkbox.json +278 -0
- package/dist-ai/components/checkbox.md +91 -0
- package/dist-ai/components/col.json +168 -0
- package/dist-ai/components/col.md +72 -0
- package/dist-ai/components/collapse-item.json +133 -0
- package/dist-ai/components/collapse-item.md +75 -0
- package/dist-ai/components/collapse-transition.json +75 -0
- package/dist-ai/components/collapse-transition.md +59 -0
- package/dist-ai/components/collapse.json +129 -0
- package/dist-ai/components/collapse.md +76 -0
- package/dist-ai/components/color-picker.json +280 -0
- package/dist-ai/components/color-picker.md +85 -0
- package/dist-ai/components/config-provider.json +222 -0
- package/dist-ai/components/config-provider.md +76 -0
- package/dist-ai/components/container.json +95 -0
- package/dist-ai/components/container.md +70 -0
- package/dist-ai/components/countdown.json +155 -0
- package/dist-ai/components/countdown.md +73 -0
- package/dist-ai/components/date-picker-panel.json +346 -0
- package/dist-ai/components/date-picker-panel.md +91 -0
- package/dist-ai/components/date-picker.json +574 -0
- package/dist-ai/components/date-picker.md +153 -0
- package/dist-ai/components/descriptions-item.json +175 -0
- package/dist-ai/components/descriptions-item.md +73 -0
- package/dist-ai/components/descriptions.json +171 -0
- package/dist-ai/components/descriptions.md +78 -0
- package/dist-ai/components/dialog.json +403 -0
- package/dist-ai/components/dialog.md +108 -0
- package/dist-ai/components/divider.json +102 -0
- package/dist-ai/components/divider.md +59 -0
- package/dist-ai/components/drawer.json +468 -0
- package/dist-ai/components/drawer.md +115 -0
- package/dist-ai/components/dropdown-item.json +156 -0
- package/dist-ai/components/dropdown-item.md +84 -0
- package/dist-ai/components/dropdown-menu.json +92 -0
- package/dist-ai/components/dropdown-menu.md +70 -0
- package/dist-ai/components/dropdown.json +374 -0
- package/dist-ai/components/dropdown.md +108 -0
- package/dist-ai/components/empty.json +116 -0
- package/dist-ai/components/empty.md +62 -0
- package/dist-ai/components/footer.json +86 -0
- package/dist-ai/components/footer.md +63 -0
- package/dist-ai/components/form-item.json +242 -0
- package/dist-ai/components/form-item.md +93 -0
- package/dist-ai/components/form.json +277 -0
- package/dist-ai/components/form.md +117 -0
- package/dist-ai/components/header.json +86 -0
- package/dist-ai/components/header.md +63 -0
- package/dist-ai/components/icon.json +95 -0
- package/dist-ai/components/icon.md +61 -0
- package/dist-ai/components/image-viewer.json +235 -0
- package/dist-ai/components/image-viewer.md +88 -0
- package/dist-ai/components/image.json +299 -0
- package/dist-ai/components/image.md +96 -0
- package/dist-ai/components/input-number.json +370 -0
- package/dist-ai/components/input-number.md +127 -0
- package/dist-ai/components/input.json +545 -0
- package/dist-ai/components/input.md +166 -0
- package/dist-ai/components/link.json +162 -0
- package/dist-ai/components/link.md +72 -0
- package/dist-ai/components/main.json +77 -0
- package/dist-ai/components/main.md +58 -0
- package/dist-ai/components/mention.json +598 -0
- package/dist-ai/components/mention.md +136 -0
- package/dist-ai/components/menu-item-group.json +101 -0
- package/dist-ai/components/menu-item-group.md +69 -0
- package/dist-ai/components/menu-item.json +131 -0
- package/dist-ai/components/menu-item.md +76 -0
- package/dist-ai/components/menu.json +314 -0
- package/dist-ai/components/menu.md +104 -0
- package/dist-ai/components/option-group.json +113 -0
- package/dist-ai/components/option-group.md +79 -0
- package/dist-ai/components/option.json +122 -0
- package/dist-ai/components/option.md +70 -0
- package/dist-ai/components/page-header.json +131 -0
- package/dist-ai/components/page-header.md +70 -0
- package/dist-ai/components/pagination.json +325 -0
- package/dist-ai/components/pagination.md +115 -0
- package/dist-ai/components/popconfirm.json +240 -0
- package/dist-ai/components/popconfirm.md +89 -0
- package/dist-ai/components/popover.json +351 -0
- package/dist-ai/components/popover.md +99 -0
- package/dist-ai/components/popper.json +93 -0
- package/dist-ai/components/popper.md +66 -0
- package/dist-ai/components/progress.json +219 -0
- package/dist-ai/components/progress.md +74 -0
- package/dist-ai/components/radio-button.json +142 -0
- package/dist-ai/components/radio-button.md +76 -0
- package/dist-ai/components/radio-group.json +219 -0
- package/dist-ai/components/radio-group.md +88 -0
- package/dist-ai/components/radio.json +177 -0
- package/dist-ai/components/radio.md +83 -0
- package/dist-ai/components/rate.json +286 -0
- package/dist-ai/components/rate.md +83 -0
- package/dist-ai/components/result.json +118 -0
- package/dist-ai/components/result.md +66 -0
- package/dist-ai/components/row.json +115 -0
- package/dist-ai/components/row.md +68 -0
- package/dist-ai/components/scrollbar.json +280 -0
- package/dist-ai/components/scrollbar.md +89 -0
- package/dist-ai/components/segmented.json +204 -0
- package/dist-ai/components/segmented.md +81 -0
- package/dist-ai/components/select-v2.json +729 -0
- package/dist-ai/components/select-v2.md +193 -0
- package/dist-ai/components/select.json +697 -0
- package/dist-ai/components/select.md +188 -0
- package/dist-ai/components/skeleton-item.json +80 -0
- package/dist-ai/components/skeleton-item.md +57 -0
- package/dist-ai/components/skeleton.json +134 -0
- package/dist-ai/components/skeleton.md +65 -0
- package/dist-ai/components/slider.json +326 -0
- package/dist-ai/components/slider.md +88 -0
- package/dist-ai/components/space.json +178 -0
- package/dist-ai/components/space.md +73 -0
- package/dist-ai/components/statistic.json +167 -0
- package/dist-ai/components/statistic.md +66 -0
- package/dist-ai/components/step.json +124 -0
- package/dist-ai/components/step.md +69 -0
- package/dist-ai/components/steps.json +157 -0
- package/dist-ai/components/steps.md +79 -0
- package/dist-ai/components/sub-menu.json +211 -0
- package/dist-ai/components/sub-menu.md +88 -0
- package/dist-ai/components/switch.json +292 -0
- package/dist-ai/components/switch.md +88 -0
- package/dist-ai/components/tab-pane.json +137 -0
- package/dist-ai/components/tab-pane.md +72 -0
- package/dist-ai/components/table-column.json +368 -0
- package/dist-ai/components/table-column.md +103 -0
- package/dist-ai/components/table-v2.json +486 -0
- package/dist-ai/components/table-v2.md +123 -0
- package/dist-ai/components/table.json +734 -0
- package/dist-ai/components/table.md +205 -0
- package/dist-ai/components/tabs.json +231 -0
- package/dist-ai/components/tabs.md +127 -0
- package/dist-ai/components/tag.json +205 -0
- package/dist-ai/components/tag.md +105 -0
- package/dist-ai/components/text.json +143 -0
- package/dist-ai/components/text.md +66 -0
- package/dist-ai/components/time-picker.json +555 -0
- package/dist-ai/components/time-picker.md +123 -0
- package/dist-ai/components/time-select.json +321 -0
- package/dist-ai/components/time-select.md +93 -0
- package/dist-ai/components/timeline-item.json +186 -0
- package/dist-ai/components/timeline-item.md +78 -0
- package/dist-ai/components/timeline.json +99 -0
- package/dist-ai/components/timeline.md +65 -0
- package/dist-ai/components/tooltip.json +599 -0
- package/dist-ai/components/tooltip.md +137 -0
- package/dist-ai/components/tour-step.json +219 -0
- package/dist-ai/components/tour-step.md +88 -0
- package/dist-ai/components/tour.json +258 -0
- package/dist-ai/components/tour.md +96 -0
- package/dist-ai/components/transfer.json +275 -0
- package/dist-ai/components/transfer.md +95 -0
- package/dist-ai/components/tree-select.json +945 -0
- package/dist-ai/components/tree-select.md +181 -0
- package/dist-ai/components/tree-v2.json +395 -0
- package/dist-ai/components/tree-v2.md +113 -0
- package/dist-ai/components/tree.json +485 -0
- package/dist-ai/components/tree.md +131 -0
- package/dist-ai/components/upload.json +382 -0
- package/dist-ai/components/upload.md +130 -0
- package/dist-ai/components/watermark.json +157 -0
- package/dist-ai/components/watermark.md +66 -0
- package/dist-ai/directives/click-outside.json +61 -0
- package/dist-ai/directives/click-outside.md +50 -0
- package/dist-ai/directives/infinite-scroll.json +83 -0
- package/dist-ai/directives/infinite-scroll.md +62 -0
- package/dist-ai/directives/loading.json +89 -0
- package/dist-ai/directives/loading.md +69 -0
- package/dist-ai/directives/mousewheel.json +54 -0
- package/dist-ai/directives/mousewheel.md +48 -0
- package/dist-ai/directives/repeat-click.json +68 -0
- package/dist-ai/directives/repeat-click.md +49 -0
- package/dist-ai/directives/trap-focus.json +46 -0
- package/dist-ai/directives/trap-focus.md +46 -0
- package/dist-ai/icons.json +1 -0
- package/dist-ai/index.json +1 -0
- package/dist-ai/llms.txt +170 -0
- package/dist-ai/manifest.json +26590 -0
- package/dist-ai/schema/manifest.schema.json +793 -0
- package/dist-ai/services/infinite-scroll.json +80 -0
- package/dist-ai/services/infinite-scroll.md +71 -0
- package/dist-ai/services/loading.json +108 -0
- package/dist-ai/services/loading.md +58 -0
- package/dist-ai/services/message-box.json +159 -0
- package/dist-ai/services/message-box.md +78 -0
- package/dist-ai/services/message.json +137 -0
- package/dist-ai/services/message.md +72 -0
- package/dist-ai/services/notification.json +136 -0
- package/dist-ai/services/notification.md +73 -0
- package/package.json +12 -2
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "form",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "绑定值变化时触发",
|
|
7
|
+
"name": "update:modelValue",
|
|
8
|
+
"params": "(value: string | number)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"description": "输入时触发",
|
|
12
|
+
"name": "input",
|
|
13
|
+
"params": "(value: string | number)"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"description": "值变化时触发",
|
|
17
|
+
"name": "change",
|
|
18
|
+
"params": "(value: string | number)"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"description": "聚焦时触发",
|
|
22
|
+
"name": "focus",
|
|
23
|
+
"params": "(evt: FocusEvent)"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"description": "失焦时触发",
|
|
27
|
+
"name": "blur",
|
|
28
|
+
"params": "(evt: FocusEvent)"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"description": "清空时触发",
|
|
32
|
+
"name": "clear",
|
|
33
|
+
"params": "—"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"description": "选中建议项时触发",
|
|
37
|
+
"name": "select",
|
|
38
|
+
"params": "(item: Record<string, any>)"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"exampleOmittedReason": null,
|
|
42
|
+
"examples": [
|
|
43
|
+
{
|
|
44
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpAutocomplete } from 'ep-craft'\n\nconst value = ref('')\nconst options = ['Vue', 'React', 'Svelte', 'Solid']\n\nconst fetchSuggestions = (query: string) =>\n options.filter((item) => item.toLowerCase().includes(query.toLowerCase())).map((item) => ({ value: item }))\n</script>\n\n<template>\n <ep-autocomplete\n v-model=\"value\"\n :fetch-suggestions=\"fetchSuggestions\"\n placeholder=\"输入前端框架\"\n />\n</template>",
|
|
45
|
+
"id": "autocomplete-1",
|
|
46
|
+
"language": "vue",
|
|
47
|
+
"title": "输入建议"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"exposes": [
|
|
51
|
+
{
|
|
52
|
+
"description": "当前高亮建议项的索引",
|
|
53
|
+
"name": "highlightedIndex",
|
|
54
|
+
"type": "Ref<number>"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"description": "自动补全是否激活",
|
|
58
|
+
"name": "activated",
|
|
59
|
+
"type": "Ref<boolean>"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"description": "远程搜索加载状态",
|
|
63
|
+
"name": "loading",
|
|
64
|
+
"type": "Ref<boolean>"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"description": "内部 ep-input 实例",
|
|
68
|
+
"name": "inputRef",
|
|
69
|
+
"type": "Ref<InputInstance | undefined>"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"hot": false,
|
|
73
|
+
"id": "component:autocomplete",
|
|
74
|
+
"keywords": {
|
|
75
|
+
"en": [
|
|
76
|
+
"autocomplete",
|
|
77
|
+
"suggest",
|
|
78
|
+
"form"
|
|
79
|
+
],
|
|
80
|
+
"zh": [
|
|
81
|
+
"自动补全输入框",
|
|
82
|
+
"表单"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"kind": "component",
|
|
86
|
+
"name": "EpAutocomplete",
|
|
87
|
+
"nonUseCases": [
|
|
88
|
+
"仅展示静态文本或只读数据时"
|
|
89
|
+
],
|
|
90
|
+
"props": [
|
|
91
|
+
{
|
|
92
|
+
"alias": null,
|
|
93
|
+
"defaultText": null,
|
|
94
|
+
"description": "",
|
|
95
|
+
"hasDefault": true,
|
|
96
|
+
"name": "id",
|
|
97
|
+
"required": false,
|
|
98
|
+
"type": "unknown"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"alias": null,
|
|
102
|
+
"defaultText": null,
|
|
103
|
+
"description": "",
|
|
104
|
+
"hasDefault": false,
|
|
105
|
+
"name": "size",
|
|
106
|
+
"required": false,
|
|
107
|
+
"type": "unknown"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"alias": null,
|
|
111
|
+
"defaultText": null,
|
|
112
|
+
"description": "",
|
|
113
|
+
"hasDefault": true,
|
|
114
|
+
"name": "disabled",
|
|
115
|
+
"required": false,
|
|
116
|
+
"type": "unknown"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"alias": "v-model",
|
|
120
|
+
"defaultText": "''",
|
|
121
|
+
"description": "绑定值",
|
|
122
|
+
"hasDefault": true,
|
|
123
|
+
"name": "modelValue",
|
|
124
|
+
"required": false,
|
|
125
|
+
"type": "string | number"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"alias": null,
|
|
129
|
+
"defaultText": null,
|
|
130
|
+
"description": "",
|
|
131
|
+
"hasDefault": true,
|
|
132
|
+
"name": "modelModifiers",
|
|
133
|
+
"required": false,
|
|
134
|
+
"type": "unknown"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"alias": null,
|
|
138
|
+
"defaultText": null,
|
|
139
|
+
"description": "",
|
|
140
|
+
"hasDefault": false,
|
|
141
|
+
"name": "maxlength",
|
|
142
|
+
"required": false,
|
|
143
|
+
"type": "unknown"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"alias": null,
|
|
147
|
+
"defaultText": null,
|
|
148
|
+
"description": "",
|
|
149
|
+
"hasDefault": false,
|
|
150
|
+
"name": "minlength",
|
|
151
|
+
"required": false,
|
|
152
|
+
"type": "unknown"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"alias": null,
|
|
156
|
+
"defaultText": null,
|
|
157
|
+
"description": "",
|
|
158
|
+
"hasDefault": true,
|
|
159
|
+
"name": "type",
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": "unknown"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"alias": null,
|
|
165
|
+
"defaultText": null,
|
|
166
|
+
"description": "",
|
|
167
|
+
"hasDefault": false,
|
|
168
|
+
"name": "resize",
|
|
169
|
+
"required": false,
|
|
170
|
+
"type": "unknown"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"alias": null,
|
|
174
|
+
"defaultText": null,
|
|
175
|
+
"description": "",
|
|
176
|
+
"hasDefault": true,
|
|
177
|
+
"name": "autosize",
|
|
178
|
+
"required": false,
|
|
179
|
+
"type": "unknown"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"alias": null,
|
|
183
|
+
"defaultText": null,
|
|
184
|
+
"description": "",
|
|
185
|
+
"hasDefault": true,
|
|
186
|
+
"name": "autocomplete",
|
|
187
|
+
"required": false,
|
|
188
|
+
"type": "unknown"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"alias": null,
|
|
192
|
+
"defaultText": null,
|
|
193
|
+
"description": "",
|
|
194
|
+
"hasDefault": false,
|
|
195
|
+
"name": "formatter",
|
|
196
|
+
"required": false,
|
|
197
|
+
"type": "unknown"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"alias": null,
|
|
201
|
+
"defaultText": null,
|
|
202
|
+
"description": "",
|
|
203
|
+
"hasDefault": false,
|
|
204
|
+
"name": "parser",
|
|
205
|
+
"required": false,
|
|
206
|
+
"type": "unknown"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"alias": null,
|
|
210
|
+
"defaultText": null,
|
|
211
|
+
"description": "",
|
|
212
|
+
"hasDefault": false,
|
|
213
|
+
"name": "placeholder",
|
|
214
|
+
"required": false,
|
|
215
|
+
"type": "unknown"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"alias": null,
|
|
219
|
+
"defaultText": null,
|
|
220
|
+
"description": "",
|
|
221
|
+
"hasDefault": false,
|
|
222
|
+
"name": "form",
|
|
223
|
+
"required": false,
|
|
224
|
+
"type": "unknown"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"alias": null,
|
|
228
|
+
"defaultText": null,
|
|
229
|
+
"description": "",
|
|
230
|
+
"hasDefault": false,
|
|
231
|
+
"name": "readonly",
|
|
232
|
+
"required": false,
|
|
233
|
+
"type": "unknown"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"alias": null,
|
|
237
|
+
"defaultText": null,
|
|
238
|
+
"description": "",
|
|
239
|
+
"hasDefault": false,
|
|
240
|
+
"name": "clearable",
|
|
241
|
+
"required": false,
|
|
242
|
+
"type": "unknown"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"alias": null,
|
|
246
|
+
"defaultText": null,
|
|
247
|
+
"description": "",
|
|
248
|
+
"hasDefault": true,
|
|
249
|
+
"name": "clearIcon",
|
|
250
|
+
"required": false,
|
|
251
|
+
"type": "unknown"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"alias": null,
|
|
255
|
+
"defaultText": null,
|
|
256
|
+
"description": "",
|
|
257
|
+
"hasDefault": false,
|
|
258
|
+
"name": "showPassword",
|
|
259
|
+
"required": false,
|
|
260
|
+
"type": "unknown"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"alias": null,
|
|
264
|
+
"defaultText": null,
|
|
265
|
+
"description": "",
|
|
266
|
+
"hasDefault": false,
|
|
267
|
+
"name": "showWordLimit",
|
|
268
|
+
"required": false,
|
|
269
|
+
"type": "unknown"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"alias": null,
|
|
273
|
+
"defaultText": null,
|
|
274
|
+
"description": "",
|
|
275
|
+
"hasDefault": true,
|
|
276
|
+
"name": "wordLimitPosition",
|
|
277
|
+
"required": false,
|
|
278
|
+
"type": "unknown"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"alias": null,
|
|
282
|
+
"defaultText": null,
|
|
283
|
+
"description": "",
|
|
284
|
+
"hasDefault": false,
|
|
285
|
+
"name": "suffixIcon",
|
|
286
|
+
"required": false,
|
|
287
|
+
"type": "unknown"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"alias": null,
|
|
291
|
+
"defaultText": null,
|
|
292
|
+
"description": "",
|
|
293
|
+
"hasDefault": false,
|
|
294
|
+
"name": "prefixIcon",
|
|
295
|
+
"required": false,
|
|
296
|
+
"type": "unknown"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"alias": null,
|
|
300
|
+
"defaultText": null,
|
|
301
|
+
"description": "",
|
|
302
|
+
"hasDefault": true,
|
|
303
|
+
"name": "containerRole",
|
|
304
|
+
"required": false,
|
|
305
|
+
"type": "unknown"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"alias": null,
|
|
309
|
+
"defaultText": null,
|
|
310
|
+
"description": "",
|
|
311
|
+
"hasDefault": true,
|
|
312
|
+
"name": "tabindex",
|
|
313
|
+
"required": false,
|
|
314
|
+
"type": "unknown"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"alias": null,
|
|
318
|
+
"defaultText": null,
|
|
319
|
+
"description": "",
|
|
320
|
+
"hasDefault": true,
|
|
321
|
+
"name": "validateEvent",
|
|
322
|
+
"required": false,
|
|
323
|
+
"type": "unknown"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"alias": null,
|
|
327
|
+
"defaultText": null,
|
|
328
|
+
"description": "",
|
|
329
|
+
"hasDefault": true,
|
|
330
|
+
"name": "inputStyle",
|
|
331
|
+
"required": false,
|
|
332
|
+
"type": "unknown"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"alias": null,
|
|
336
|
+
"defaultText": null,
|
|
337
|
+
"description": "",
|
|
338
|
+
"hasDefault": false,
|
|
339
|
+
"name": "countGraphemes",
|
|
340
|
+
"required": false,
|
|
341
|
+
"type": "unknown"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"alias": null,
|
|
345
|
+
"defaultText": null,
|
|
346
|
+
"description": "",
|
|
347
|
+
"hasDefault": false,
|
|
348
|
+
"name": "autofocus",
|
|
349
|
+
"required": false,
|
|
350
|
+
"type": "unknown"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"alias": null,
|
|
354
|
+
"defaultText": null,
|
|
355
|
+
"description": "",
|
|
356
|
+
"hasDefault": true,
|
|
357
|
+
"name": "rows",
|
|
358
|
+
"required": false,
|
|
359
|
+
"type": "unknown"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"alias": null,
|
|
363
|
+
"defaultText": null,
|
|
364
|
+
"description": "",
|
|
365
|
+
"hasDefault": false,
|
|
366
|
+
"name": "ariaLabel",
|
|
367
|
+
"required": false,
|
|
368
|
+
"type": "unknown"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"alias": null,
|
|
372
|
+
"defaultText": null,
|
|
373
|
+
"description": "",
|
|
374
|
+
"hasDefault": true,
|
|
375
|
+
"name": "inputmode",
|
|
376
|
+
"required": false,
|
|
377
|
+
"type": "unknown"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"alias": null,
|
|
381
|
+
"defaultText": null,
|
|
382
|
+
"description": "",
|
|
383
|
+
"hasDefault": false,
|
|
384
|
+
"name": "name",
|
|
385
|
+
"required": false,
|
|
386
|
+
"type": "unknown"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"alias": null,
|
|
390
|
+
"defaultText": null,
|
|
391
|
+
"description": "",
|
|
392
|
+
"hasDefault": true,
|
|
393
|
+
"name": "floatLabel",
|
|
394
|
+
"required": false,
|
|
395
|
+
"type": "unknown"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"alias": null,
|
|
399
|
+
"defaultText": "value",
|
|
400
|
+
"description": "建议项中用于展示的键名",
|
|
401
|
+
"hasDefault": true,
|
|
402
|
+
"name": "valueKey",
|
|
403
|
+
"required": false,
|
|
404
|
+
"type": "string"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"alias": null,
|
|
408
|
+
"defaultText": "300",
|
|
409
|
+
"description": "输入防抖延迟,单位 ms",
|
|
410
|
+
"hasDefault": true,
|
|
411
|
+
"name": "debounce",
|
|
412
|
+
"required": false,
|
|
413
|
+
"type": "number"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"alias": null,
|
|
417
|
+
"defaultText": "bottom-start",
|
|
418
|
+
"description": "弹出菜单位置",
|
|
419
|
+
"hasDefault": true,
|
|
420
|
+
"name": "placement",
|
|
421
|
+
"required": false,
|
|
422
|
+
"type": "'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"alias": null,
|
|
426
|
+
"defaultText": null,
|
|
427
|
+
"description": "获取建议项的方法,可用 callback 回传数据,也可直接返回数据",
|
|
428
|
+
"hasDefault": true,
|
|
429
|
+
"name": "fetchSuggestions",
|
|
430
|
+
"required": false,
|
|
431
|
+
"type": "(queryString, cb) => Awaitable<Data[] | void> | Data[]"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"alias": null,
|
|
435
|
+
"defaultText": null,
|
|
436
|
+
"description": "下拉菜单自定义类名",
|
|
437
|
+
"hasDefault": false,
|
|
438
|
+
"name": "popperClass",
|
|
439
|
+
"required": false,
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"alias": null,
|
|
444
|
+
"defaultText": null,
|
|
445
|
+
"description": "下拉菜单自定义样式",
|
|
446
|
+
"hasDefault": true,
|
|
447
|
+
"name": "popperStyle",
|
|
448
|
+
"required": false,
|
|
449
|
+
"type": "string | object"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"alias": null,
|
|
453
|
+
"defaultText": null,
|
|
454
|
+
"description": "popper.js 配置项",
|
|
455
|
+
"hasDefault": true,
|
|
456
|
+
"name": "popperOptions",
|
|
457
|
+
"required": false,
|
|
458
|
+
"type": "Partial<Options>"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"alias": null,
|
|
462
|
+
"defaultText": "true",
|
|
463
|
+
"description": "是否显示箭头",
|
|
464
|
+
"hasDefault": true,
|
|
465
|
+
"name": "showArrow",
|
|
466
|
+
"required": false,
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"alias": null,
|
|
471
|
+
"defaultText": "true",
|
|
472
|
+
"description": "聚焦时是否显示建议",
|
|
473
|
+
"hasDefault": true,
|
|
474
|
+
"name": "triggerOnFocus",
|
|
475
|
+
"required": false,
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"alias": null,
|
|
480
|
+
"defaultText": "false",
|
|
481
|
+
"description": "无匹配项时回车是否触发 select 事件",
|
|
482
|
+
"hasDefault": false,
|
|
483
|
+
"name": "selectWhenUnmatched",
|
|
484
|
+
"required": false,
|
|
485
|
+
"type": "boolean"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"alias": null,
|
|
489
|
+
"defaultText": "false",
|
|
490
|
+
"description": "远程搜索时是否隐藏加载图标",
|
|
491
|
+
"hasDefault": false,
|
|
492
|
+
"name": "hideLoading",
|
|
493
|
+
"required": false,
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"alias": null,
|
|
498
|
+
"defaultText": null,
|
|
499
|
+
"description": "是否将下拉菜单 teleport 到 body",
|
|
500
|
+
"hasDefault": true,
|
|
501
|
+
"name": "teleported",
|
|
502
|
+
"required": false,
|
|
503
|
+
"type": "boolean"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"alias": null,
|
|
507
|
+
"defaultText": null,
|
|
508
|
+
"description": "下拉菜单挂载的容器",
|
|
509
|
+
"hasDefault": false,
|
|
510
|
+
"name": "appendTo",
|
|
511
|
+
"required": false,
|
|
512
|
+
"type": "string | HTMLElement"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"alias": null,
|
|
516
|
+
"defaultText": "false",
|
|
517
|
+
"description": "远程搜索时是否默认高亮第一项",
|
|
518
|
+
"hasDefault": false,
|
|
519
|
+
"name": "highlightFirstItem",
|
|
520
|
+
"required": false,
|
|
521
|
+
"type": "boolean"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"alias": null,
|
|
525
|
+
"defaultText": "false",
|
|
526
|
+
"description": "下拉菜单宽度是否与输入框一致",
|
|
527
|
+
"hasDefault": false,
|
|
528
|
+
"name": "fitInputWidth",
|
|
529
|
+
"required": false,
|
|
530
|
+
"type": "boolean"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"alias": null,
|
|
534
|
+
"defaultText": "true",
|
|
535
|
+
"description": "键盘导航是否从末尾循环到开头",
|
|
536
|
+
"hasDefault": true,
|
|
537
|
+
"name": "loopNavigation",
|
|
538
|
+
"required": false,
|
|
539
|
+
"type": "boolean"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"related": [
|
|
543
|
+
"EpInput",
|
|
544
|
+
"EpSelect"
|
|
545
|
+
],
|
|
546
|
+
"relations": {
|
|
547
|
+
"children": [],
|
|
548
|
+
"combos": [],
|
|
549
|
+
"parents": [],
|
|
550
|
+
"requiredChildren": []
|
|
551
|
+
},
|
|
552
|
+
"slots": [
|
|
553
|
+
{
|
|
554
|
+
"description": "自定义建议项内容,参数为 `{ item }`",
|
|
555
|
+
"name": "default"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"description": "输入框前缀内容",
|
|
559
|
+
"name": "prefix"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"description": "输入框后缀内容",
|
|
563
|
+
"name": "suffix"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"description": "输入框前置内容",
|
|
567
|
+
"name": "prepend"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"description": "输入框后置内容",
|
|
571
|
+
"name": "append"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"description": "自定义加载中内容",
|
|
575
|
+
"name": "loading"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"description": "下拉菜单头部",
|
|
579
|
+
"name": "header"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"description": "下拉菜单底部",
|
|
583
|
+
"name": "footer"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"slug": "autocomplete",
|
|
587
|
+
"summary": "自动补全输入框,表单数据录入控件",
|
|
588
|
+
"tag": "ep-autocomplete",
|
|
589
|
+
"useCases": [
|
|
590
|
+
"表单中收集或编辑自动补全输入框数据",
|
|
591
|
+
"与 EpForm、EpFormItem 组合完成校验"
|
|
592
|
+
],
|
|
593
|
+
"variants": [],
|
|
594
|
+
"visual": {
|
|
595
|
+
"cssVars": [
|
|
596
|
+
"--el-border-color",
|
|
597
|
+
"--el-border-radius-base",
|
|
598
|
+
"--el-color-primary",
|
|
599
|
+
"--el-font-size-base"
|
|
600
|
+
],
|
|
601
|
+
"density": "中等",
|
|
602
|
+
"shape": "矩形输入框",
|
|
603
|
+
"slotContent": [
|
|
604
|
+
"default:自定义建议项内容,参数为 `{ item }`",
|
|
605
|
+
"prefix:输入框前缀内容",
|
|
606
|
+
"suffix:输入框后缀内容"
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
611
|
+
"libraryVersion": "0.2.0",
|
|
612
|
+
"schemaVersion": 1
|
|
613
|
+
}
|