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,286 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "form",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "分值改变时触发",
|
|
7
|
+
"name": "change",
|
|
8
|
+
"params": "(value: number)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"description": "绑定值变化时触发",
|
|
12
|
+
"name": "update:modelValue",
|
|
13
|
+
"params": "(value: number)"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"exampleOmittedReason": null,
|
|
17
|
+
"examples": [
|
|
18
|
+
{
|
|
19
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpRate } from 'ep-craft'\n\nconst value = ref(3)\n</script>\n\n<template>\n <ep-rate v-model=\"value\" allow-half />\n</template>",
|
|
20
|
+
"id": "rate-1",
|
|
21
|
+
"language": "vue",
|
|
22
|
+
"title": "评分"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"exposes": [],
|
|
26
|
+
"hot": false,
|
|
27
|
+
"id": "component:rate",
|
|
28
|
+
"keywords": {
|
|
29
|
+
"en": [
|
|
30
|
+
"rate",
|
|
31
|
+
"star",
|
|
32
|
+
"rating",
|
|
33
|
+
"form"
|
|
34
|
+
],
|
|
35
|
+
"zh": [
|
|
36
|
+
"评分",
|
|
37
|
+
"表单"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"kind": "component",
|
|
41
|
+
"name": "EpRate",
|
|
42
|
+
"nonUseCases": [
|
|
43
|
+
"仅展示静态文本或只读数据时"
|
|
44
|
+
],
|
|
45
|
+
"props": [
|
|
46
|
+
{
|
|
47
|
+
"alias": "v-model",
|
|
48
|
+
"defaultText": "0",
|
|
49
|
+
"description": "绑定值",
|
|
50
|
+
"hasDefault": true,
|
|
51
|
+
"name": "modelValue",
|
|
52
|
+
"required": false,
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"alias": null,
|
|
57
|
+
"defaultText": null,
|
|
58
|
+
"description": "原生 id 属性",
|
|
59
|
+
"hasDefault": true,
|
|
60
|
+
"name": "id",
|
|
61
|
+
"required": false,
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"alias": null,
|
|
66
|
+
"defaultText": "2",
|
|
67
|
+
"description": "低分和中等分数的界限值",
|
|
68
|
+
"hasDefault": true,
|
|
69
|
+
"name": "lowThreshold",
|
|
70
|
+
"required": false,
|
|
71
|
+
"type": "number"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"alias": null,
|
|
75
|
+
"defaultText": "4",
|
|
76
|
+
"description": "高分和中等分数的界限值",
|
|
77
|
+
"hasDefault": true,
|
|
78
|
+
"name": "highThreshold",
|
|
79
|
+
"required": false,
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"alias": null,
|
|
84
|
+
"defaultText": "5",
|
|
85
|
+
"description": "最大分值",
|
|
86
|
+
"hasDefault": true,
|
|
87
|
+
"name": "max",
|
|
88
|
+
"required": false,
|
|
89
|
+
"type": "number"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"alias": null,
|
|
93
|
+
"defaultText": "['#F7BA2A', '#F7BA2A', '#F7BA2A']",
|
|
94
|
+
"description": "icon 的颜色",
|
|
95
|
+
"hasDefault": true,
|
|
96
|
+
"name": "colors",
|
|
97
|
+
"required": false,
|
|
98
|
+
"type": "string[] | Record<number, string>"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"alias": null,
|
|
102
|
+
"defaultText": "#C6D1DE",
|
|
103
|
+
"description": "未选中 icon 的颜色",
|
|
104
|
+
"hasDefault": true,
|
|
105
|
+
"name": "voidColor",
|
|
106
|
+
"required": false,
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"alias": null,
|
|
111
|
+
"defaultText": "#EFF2F7",
|
|
112
|
+
"description": "只读时未选中 icon 的颜色",
|
|
113
|
+
"hasDefault": true,
|
|
114
|
+
"name": "disabledVoidColor",
|
|
115
|
+
"required": false,
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"alias": null,
|
|
120
|
+
"defaultText": "[StarFilled, StarFilled, StarFilled]",
|
|
121
|
+
"description": "图标组件",
|
|
122
|
+
"hasDefault": true,
|
|
123
|
+
"name": "icons",
|
|
124
|
+
"required": false,
|
|
125
|
+
"type": "string[] | Component[] | Record<number, string | Component>"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"alias": null,
|
|
129
|
+
"defaultText": "Star",
|
|
130
|
+
"description": "未被选中的图标组件",
|
|
131
|
+
"hasDefault": true,
|
|
132
|
+
"name": "voidIcon",
|
|
133
|
+
"required": false,
|
|
134
|
+
"type": "string | Component"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"alias": null,
|
|
138
|
+
"defaultText": "StarFilled",
|
|
139
|
+
"description": "只读状态下未选中的图标组件",
|
|
140
|
+
"hasDefault": true,
|
|
141
|
+
"name": "disabledVoidIcon",
|
|
142
|
+
"required": false,
|
|
143
|
+
"type": "string | Component"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"alias": null,
|
|
147
|
+
"defaultText": "false",
|
|
148
|
+
"description": "是否为只读",
|
|
149
|
+
"hasDefault": true,
|
|
150
|
+
"name": "disabled",
|
|
151
|
+
"required": false,
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"alias": null,
|
|
156
|
+
"defaultText": "false",
|
|
157
|
+
"description": "是否允许半选",
|
|
158
|
+
"hasDefault": false,
|
|
159
|
+
"name": "allowHalf",
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": "boolean"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"alias": null,
|
|
165
|
+
"defaultText": "false",
|
|
166
|
+
"description": "是否显示辅助文字",
|
|
167
|
+
"hasDefault": false,
|
|
168
|
+
"name": "showText",
|
|
169
|
+
"required": false,
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"alias": null,
|
|
174
|
+
"defaultText": "false",
|
|
175
|
+
"description": "是否显示当前分数",
|
|
176
|
+
"hasDefault": false,
|
|
177
|
+
"name": "showScore",
|
|
178
|
+
"required": false,
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"alias": null,
|
|
183
|
+
"defaultText": "#1F2D3D",
|
|
184
|
+
"description": "辅助文字的颜色",
|
|
185
|
+
"hasDefault": true,
|
|
186
|
+
"name": "textColor",
|
|
187
|
+
"required": false,
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"alias": null,
|
|
192
|
+
"defaultText": "['极差', '失望', '一般', '满意', '惊喜']",
|
|
193
|
+
"description": "辅助文字数组",
|
|
194
|
+
"hasDefault": true,
|
|
195
|
+
"name": "texts",
|
|
196
|
+
"required": false,
|
|
197
|
+
"type": "string[]"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"alias": null,
|
|
201
|
+
"defaultText": "'{value}'",
|
|
202
|
+
"description": "分数显示模板",
|
|
203
|
+
"hasDefault": true,
|
|
204
|
+
"name": "scoreTemplate",
|
|
205
|
+
"required": false,
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"alias": null,
|
|
210
|
+
"defaultText": "default",
|
|
211
|
+
"description": "尺寸",
|
|
212
|
+
"hasDefault": false,
|
|
213
|
+
"name": "size",
|
|
214
|
+
"required": false,
|
|
215
|
+
"type": "'large' | 'default' | 'small'"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"alias": null,
|
|
219
|
+
"defaultText": "false",
|
|
220
|
+
"description": "是否可以通过点击重置值",
|
|
221
|
+
"hasDefault": false,
|
|
222
|
+
"name": "clearable",
|
|
223
|
+
"required": false,
|
|
224
|
+
"type": "boolean"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"alias": null,
|
|
228
|
+
"defaultText": null,
|
|
229
|
+
"description": "",
|
|
230
|
+
"hasDefault": false,
|
|
231
|
+
"name": "ariaLabel",
|
|
232
|
+
"required": false,
|
|
233
|
+
"type": "unknown"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"related": [
|
|
237
|
+
"EpSlider"
|
|
238
|
+
],
|
|
239
|
+
"relations": {
|
|
240
|
+
"children": [],
|
|
241
|
+
"combos": [],
|
|
242
|
+
"parents": [],
|
|
243
|
+
"requiredChildren": []
|
|
244
|
+
},
|
|
245
|
+
"slots": [],
|
|
246
|
+
"slug": "rate",
|
|
247
|
+
"summary": "评分,表单数据录入控件",
|
|
248
|
+
"tag": "ep-rate",
|
|
249
|
+
"useCases": [
|
|
250
|
+
"表单中收集或编辑评分数据",
|
|
251
|
+
"与 EpForm、EpFormItem 组合完成校验"
|
|
252
|
+
],
|
|
253
|
+
"variants": [
|
|
254
|
+
{
|
|
255
|
+
"dimension": "size",
|
|
256
|
+
"values": [
|
|
257
|
+
"large",
|
|
258
|
+
"default",
|
|
259
|
+
"small"
|
|
260
|
+
],
|
|
261
|
+
"when": "按容器空间与信息密度选择尺寸"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"dimension": "state",
|
|
265
|
+
"values": [
|
|
266
|
+
"disabled"
|
|
267
|
+
],
|
|
268
|
+
"when": "通过布尔属性切换禁用、加载或选中状态"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"visual": {
|
|
272
|
+
"cssVars": [
|
|
273
|
+
"--el-border-color",
|
|
274
|
+
"--el-border-radius-base",
|
|
275
|
+
"--el-color-primary",
|
|
276
|
+
"--el-font-size-base"
|
|
277
|
+
],
|
|
278
|
+
"density": "中等",
|
|
279
|
+
"shape": "矩形输入框",
|
|
280
|
+
"slotContent": []
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
284
|
+
"libraryVersion": "0.2.0",
|
|
285
|
+
"schemaVersion": 1
|
|
286
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# EpRate
|
|
2
|
+
|
|
3
|
+
`ep-rate` · form(表单) · `component:rate`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
评分,表单数据录入控件
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:表单中收集或编辑评分数据
|
|
12
|
+
- 适用:与 EpForm、EpFormItem 组合完成校验
|
|
13
|
+
- 不适用:仅展示静态文本或只读数据时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:评分、表单
|
|
18
|
+
- English: rate, star, rating, form
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- size: large/default/small(按容器空间与信息密度选择尺寸)
|
|
23
|
+
- state: disabled(通过布尔属性切换禁用、加载或选中状态)
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
- modelValue(别名 v-model) (number,默认 0):绑定值
|
|
28
|
+
- id (string,默认 见文档):原生 id 属性
|
|
29
|
+
- lowThreshold (number,默认 2):低分和中等分数的界限值
|
|
30
|
+
- highThreshold (number,默认 4):高分和中等分数的界限值
|
|
31
|
+
- max (number,默认 5):最大分值
|
|
32
|
+
- colors (string[] | Record<number, string>,默认 ['#F7BA2A', '#F7BA2A', '#F7BA2A']):icon 的颜色
|
|
33
|
+
- voidColor (string,默认 #C6D1DE):未选中 icon 的颜色
|
|
34
|
+
- disabledVoidColor (string,默认 #EFF2F7):只读时未选中 icon 的颜色
|
|
35
|
+
- icons (string[] | Component[] | Record<number, string | Component>,默认 [StarFilled, StarFilled, StarFilled]):图标组件
|
|
36
|
+
- voidIcon (string | Component,默认 Star):未被选中的图标组件
|
|
37
|
+
- disabledVoidIcon (string | Component,默认 StarFilled):只读状态下未选中的图标组件
|
|
38
|
+
- disabled (boolean,默认 false):是否为只读
|
|
39
|
+
- allowHalf (boolean):是否允许半选
|
|
40
|
+
- showText (boolean):是否显示辅助文字
|
|
41
|
+
- showScore (boolean):是否显示当前分数
|
|
42
|
+
- textColor (string,默认 #1F2D3D):辅助文字的颜色
|
|
43
|
+
- texts (string[],默认 ['极差', '失望', '一般', '满意', '惊喜']):辅助文字数组
|
|
44
|
+
- scoreTemplate (string,默认 '{value}'):分数显示模板
|
|
45
|
+
- size ('large' | 'default' | 'small'):尺寸
|
|
46
|
+
- clearable (boolean):是否可以通过点击重置值
|
|
47
|
+
- ariaLabel (unknown)
|
|
48
|
+
|
|
49
|
+
## Events
|
|
50
|
+
|
|
51
|
+
- change((value: number)):分值改变时触发
|
|
52
|
+
- update:modelValue((value: number)):绑定值变化时触发
|
|
53
|
+
|
|
54
|
+
## 视觉提示
|
|
55
|
+
|
|
56
|
+
- 形状:矩形输入框
|
|
57
|
+
- 密度:中等
|
|
58
|
+
- CSS 变量:--el-border-color、--el-border-radius-base、--el-color-primary、--el-font-size-base
|
|
59
|
+
|
|
60
|
+
## 示例
|
|
61
|
+
|
|
62
|
+
### 评分
|
|
63
|
+
|
|
64
|
+
```vue
|
|
65
|
+
<script setup lang="ts">
|
|
66
|
+
import { ref } from 'vue'
|
|
67
|
+
import { EpRate } from 'ep-craft'
|
|
68
|
+
|
|
69
|
+
const value = ref(3)
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<ep-rate v-model="value" allow-half />
|
|
74
|
+
</template>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 相关条目
|
|
78
|
+
|
|
79
|
+
- EpSlider
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "feedback",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpButton, EpResult } from 'ep-craft'\n</script>\n\n<template>\n <ep-result icon=\"success\" title=\"操作成功\" sub-title=\"订单已提交,请等待审核\">\n <template #extra>\n <ep-button type=\"primary\">返回列表</ep-button>\n </template>\n </ep-result>\n</template>",
|
|
9
|
+
"id": "result-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "操作结果"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:result",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"result",
|
|
20
|
+
"status",
|
|
21
|
+
"feedback"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"结果",
|
|
25
|
+
"反馈"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpResult",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"无需用户感知状态变化时",
|
|
32
|
+
"需要完整业务弹窗流程时优先使用 Dialog"
|
|
33
|
+
],
|
|
34
|
+
"props": [
|
|
35
|
+
{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"defaultText": "''",
|
|
38
|
+
"description": "标题文本",
|
|
39
|
+
"hasDefault": true,
|
|
40
|
+
"name": "title",
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"alias": null,
|
|
46
|
+
"defaultText": "''",
|
|
47
|
+
"description": "副标题文本",
|
|
48
|
+
"hasDefault": true,
|
|
49
|
+
"name": "subTitle",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"alias": null,
|
|
55
|
+
"defaultText": "info",
|
|
56
|
+
"description": "图标类型",
|
|
57
|
+
"hasDefault": true,
|
|
58
|
+
"name": "icon",
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": "'primary' | 'success' | 'warning' | 'info' | 'error'"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"related": [
|
|
64
|
+
"EpEmpty",
|
|
65
|
+
"EpAlert"
|
|
66
|
+
],
|
|
67
|
+
"relations": {
|
|
68
|
+
"children": [],
|
|
69
|
+
"combos": [],
|
|
70
|
+
"parents": [],
|
|
71
|
+
"requiredChildren": []
|
|
72
|
+
},
|
|
73
|
+
"slots": [
|
|
74
|
+
{
|
|
75
|
+
"description": "自定义图标",
|
|
76
|
+
"name": "icon"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"description": "自定义标题",
|
|
80
|
+
"name": "title"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"description": "自定义副标题",
|
|
84
|
+
"name": "sub-title"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"description": "自定义操作区",
|
|
88
|
+
"name": "extra"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"slug": "result",
|
|
92
|
+
"summary": "结果,状态与结果反馈",
|
|
93
|
+
"tag": "ep-result",
|
|
94
|
+
"useCases": [
|
|
95
|
+
"展示结果并向用户传达状态",
|
|
96
|
+
"在操作前后提供即时反馈"
|
|
97
|
+
],
|
|
98
|
+
"variants": [],
|
|
99
|
+
"visual": {
|
|
100
|
+
"cssVars": [
|
|
101
|
+
"--el-color-success",
|
|
102
|
+
"--el-color-warning",
|
|
103
|
+
"--el-color-danger",
|
|
104
|
+
"--el-font-size-base"
|
|
105
|
+
],
|
|
106
|
+
"density": "中等",
|
|
107
|
+
"shape": "行内或块级提示",
|
|
108
|
+
"slotContent": [
|
|
109
|
+
"icon:自定义图标",
|
|
110
|
+
"title:自定义标题",
|
|
111
|
+
"sub-title:自定义副标题"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
116
|
+
"libraryVersion": "0.2.0",
|
|
117
|
+
"schemaVersion": 1
|
|
118
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# EpResult
|
|
2
|
+
|
|
3
|
+
`ep-result` · feedback(反馈) · `component:result`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
结果,状态与结果反馈
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示结果并向用户传达状态
|
|
12
|
+
- 适用:在操作前后提供即时反馈
|
|
13
|
+
- 不适用:无需用户感知状态变化时
|
|
14
|
+
- 不适用:需要完整业务弹窗流程时优先使用 Dialog
|
|
15
|
+
|
|
16
|
+
## 关键词
|
|
17
|
+
|
|
18
|
+
- 中文:结果、反馈
|
|
19
|
+
- English: result, status, feedback
|
|
20
|
+
|
|
21
|
+
## Props
|
|
22
|
+
|
|
23
|
+
- title (string,默认 ''):标题文本
|
|
24
|
+
- subTitle (string,默认 ''):副标题文本
|
|
25
|
+
- icon ('primary' | 'success' | 'warning' | 'info' | 'error',默认 info):图标类型
|
|
26
|
+
|
|
27
|
+
## Slots
|
|
28
|
+
|
|
29
|
+
- icon:自定义图标
|
|
30
|
+
- title:自定义标题
|
|
31
|
+
- sub-title:自定义副标题
|
|
32
|
+
- extra:自定义操作区
|
|
33
|
+
|
|
34
|
+
## 视觉提示
|
|
35
|
+
|
|
36
|
+
- 形状:行内或块级提示
|
|
37
|
+
- 密度:中等
|
|
38
|
+
- 插槽内容:icon:自定义图标;title:自定义标题;sub-title:自定义副标题
|
|
39
|
+
- CSS 变量:--el-color-success、--el-color-warning、--el-color-danger、--el-font-size-base
|
|
40
|
+
|
|
41
|
+
## 示例
|
|
42
|
+
|
|
43
|
+
### 操作结果
|
|
44
|
+
|
|
45
|
+
```vue
|
|
46
|
+
<script setup lang="ts">
|
|
47
|
+
import { EpButton, EpResult } from 'ep-craft'
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<ep-result icon="success" title="操作成功" sub-title="订单已提交,请等待审核">
|
|
52
|
+
<template #extra>
|
|
53
|
+
<ep-button type="primary">返回列表</ep-button>
|
|
54
|
+
</template>
|
|
55
|
+
</ep-result>
|
|
56
|
+
</template>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 相关条目
|
|
60
|
+
|
|
61
|
+
- EpEmpty
|
|
62
|
+
- EpAlert
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "layout",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpCol, EpRow } from 'ep-craft'\n</script>\n\n<template>\n <ep-row :gutter=\"16\">\n <ep-col :span=\"8\"><div class=\"grid-cell\">span 8</div></ep-col>\n <ep-col :span=\"8\"><div class=\"grid-cell\">span 8</div></ep-col>\n <ep-col :span=\"8\"><div class=\"grid-cell\">span 8</div></ep-col>\n </ep-row>\n</template>",
|
|
9
|
+
"id": "row-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "栅格行"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:row",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"row",
|
|
20
|
+
"grid",
|
|
21
|
+
"layout"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"行",
|
|
25
|
+
"布局"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpRow",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"已有明确外层布局且无需此语义时"
|
|
32
|
+
],
|
|
33
|
+
"props": [
|
|
34
|
+
{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"defaultText": "div",
|
|
37
|
+
"description": "自定义元素标签",
|
|
38
|
+
"hasDefault": true,
|
|
39
|
+
"name": "tag",
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"alias": null,
|
|
45
|
+
"defaultText": "0",
|
|
46
|
+
"description": "栅格间隔,单位 px",
|
|
47
|
+
"hasDefault": true,
|
|
48
|
+
"name": "gutter",
|
|
49
|
+
"required": false,
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"alias": null,
|
|
54
|
+
"defaultText": "start",
|
|
55
|
+
"description": "水平排列方式",
|
|
56
|
+
"hasDefault": true,
|
|
57
|
+
"name": "justify",
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": "'start' | 'center' | 'end' | 'space-around' | 'space-between' | 'space-evenly'"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"alias": null,
|
|
63
|
+
"defaultText": null,
|
|
64
|
+
"description": "垂直排列方式",
|
|
65
|
+
"hasDefault": false,
|
|
66
|
+
"name": "align",
|
|
67
|
+
"required": false,
|
|
68
|
+
"type": "'top' | 'middle' | 'bottom'"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"related": [
|
|
72
|
+
"EpCol",
|
|
73
|
+
"EpContainer"
|
|
74
|
+
],
|
|
75
|
+
"relations": {
|
|
76
|
+
"children": [
|
|
77
|
+
"EpCol"
|
|
78
|
+
],
|
|
79
|
+
"combos": [
|
|
80
|
+
"EpRow + EpCol"
|
|
81
|
+
],
|
|
82
|
+
"parents": [],
|
|
83
|
+
"requiredChildren": []
|
|
84
|
+
},
|
|
85
|
+
"slots": [
|
|
86
|
+
{
|
|
87
|
+
"description": "栅格内容,通常放置 ep-col",
|
|
88
|
+
"name": "default"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"slug": "row",
|
|
92
|
+
"summary": "行,页面结构与浮层交互",
|
|
93
|
+
"tag": "ep-row",
|
|
94
|
+
"useCases": [
|
|
95
|
+
"使用行组织页面区域与间距",
|
|
96
|
+
"承载内容分组或浮层交互"
|
|
97
|
+
],
|
|
98
|
+
"variants": [],
|
|
99
|
+
"visual": {
|
|
100
|
+
"cssVars": [
|
|
101
|
+
"--el-bg-color",
|
|
102
|
+
"--el-border-color",
|
|
103
|
+
"--el-border-radius-base"
|
|
104
|
+
],
|
|
105
|
+
"density": "宽松",
|
|
106
|
+
"shape": "区块容器",
|
|
107
|
+
"slotContent": [
|
|
108
|
+
"default:栅格内容,通常放置 ep-col"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
113
|
+
"libraryVersion": "0.2.0",
|
|
114
|
+
"schemaVersion": 1
|
|
115
|
+
}
|