ep-craft 0.1.41 → 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/components/input-number/EpInputNumber.vue.js +62 -63
- package/dist/components/input-number/input-number.d.ts +5 -0
- package/dist/components/input-number/input-number.js +6 -6
- package/dist/components/select/index.d.ts +6 -3
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +3 -3
- package/dist/components/select/select.vue.d.ts +3 -1
- package/dist/components/select/select.vue.js +9 -9
- package/dist/components/select/select2.vue.js +73 -75
- package/dist/components/select-v2/src/defaults.d.ts +1 -0
- package/dist/components/select-v2/src/defaults.js +1 -1
- package/dist/components/select-v2/src/select.vue.d.ts +3 -1
- package/dist/components/select-v2/src/select.vue.js +21 -21
- package/dist/components/select-v2/src/select2.vue.js +27 -29
- package/dist/components/tree-select/src/tree-select.vue.d.ts +2 -0
- 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,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "feedback",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpStatistic } from 'ep-craft'\n</script>\n\n<template>\n <ep-statistic title=\"本月活跃用户\" :value=\"128600\" />\n</template>",
|
|
9
|
+
"id": "statistic-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "统计数据"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:statistic",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"statistic",
|
|
20
|
+
"number",
|
|
21
|
+
"feedback"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"统计数值",
|
|
25
|
+
"反馈"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpStatistic",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"无需用户感知状态变化时",
|
|
32
|
+
"需要完整业务弹窗流程时优先使用 Dialog"
|
|
33
|
+
],
|
|
34
|
+
"props": [
|
|
35
|
+
{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"defaultText": ".",
|
|
38
|
+
"description": "小数点符号",
|
|
39
|
+
"hasDefault": true,
|
|
40
|
+
"name": "decimalSeparator",
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"alias": null,
|
|
46
|
+
"defaultText": ",",
|
|
47
|
+
"description": "千分位分隔符",
|
|
48
|
+
"hasDefault": true,
|
|
49
|
+
"name": "groupSeparator",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"alias": null,
|
|
55
|
+
"defaultText": "0",
|
|
56
|
+
"description": "数值精度(小数位数)",
|
|
57
|
+
"hasDefault": true,
|
|
58
|
+
"name": "precision",
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"alias": null,
|
|
64
|
+
"defaultText": null,
|
|
65
|
+
"description": "自定义数值展示函数",
|
|
66
|
+
"hasDefault": false,
|
|
67
|
+
"name": "formatter",
|
|
68
|
+
"required": false,
|
|
69
|
+
"type": "(...args: any[]) => string | number"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"alias": null,
|
|
73
|
+
"defaultText": "0",
|
|
74
|
+
"description": "数值内容",
|
|
75
|
+
"hasDefault": true,
|
|
76
|
+
"name": "value",
|
|
77
|
+
"required": false,
|
|
78
|
+
"type": "number | Dayjs"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"alias": null,
|
|
82
|
+
"defaultText": null,
|
|
83
|
+
"description": "数值前缀",
|
|
84
|
+
"hasDefault": false,
|
|
85
|
+
"name": "prefix",
|
|
86
|
+
"required": false,
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"alias": null,
|
|
91
|
+
"defaultText": null,
|
|
92
|
+
"description": "数值后缀",
|
|
93
|
+
"hasDefault": false,
|
|
94
|
+
"name": "suffix",
|
|
95
|
+
"required": false,
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"alias": null,
|
|
100
|
+
"defaultText": null,
|
|
101
|
+
"description": "数值标题",
|
|
102
|
+
"hasDefault": false,
|
|
103
|
+
"name": "title",
|
|
104
|
+
"required": false,
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"alias": null,
|
|
109
|
+
"defaultText": null,
|
|
110
|
+
"description": "数值样式",
|
|
111
|
+
"hasDefault": true,
|
|
112
|
+
"name": "valueStyle",
|
|
113
|
+
"required": false,
|
|
114
|
+
"type": "StyleValue"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"related": [
|
|
118
|
+
"EpCountdown"
|
|
119
|
+
],
|
|
120
|
+
"relations": {
|
|
121
|
+
"children": [],
|
|
122
|
+
"combos": [],
|
|
123
|
+
"parents": [],
|
|
124
|
+
"requiredChildren": []
|
|
125
|
+
},
|
|
126
|
+
"slots": [
|
|
127
|
+
{
|
|
128
|
+
"description": "自定义标题",
|
|
129
|
+
"name": "title"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"description": "自定义前缀",
|
|
133
|
+
"name": "prefix"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"description": "自定义后缀",
|
|
137
|
+
"name": "suffix"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"slug": "statistic",
|
|
141
|
+
"summary": "统计数值,状态与结果反馈",
|
|
142
|
+
"tag": "ep-statistic",
|
|
143
|
+
"useCases": [
|
|
144
|
+
"展示统计数值并向用户传达状态",
|
|
145
|
+
"在操作前后提供即时反馈"
|
|
146
|
+
],
|
|
147
|
+
"variants": [],
|
|
148
|
+
"visual": {
|
|
149
|
+
"cssVars": [
|
|
150
|
+
"--el-color-success",
|
|
151
|
+
"--el-color-warning",
|
|
152
|
+
"--el-color-danger",
|
|
153
|
+
"--el-font-size-base"
|
|
154
|
+
],
|
|
155
|
+
"density": "中等",
|
|
156
|
+
"shape": "行内或块级提示",
|
|
157
|
+
"slotContent": [
|
|
158
|
+
"title:自定义标题",
|
|
159
|
+
"prefix:自定义前缀",
|
|
160
|
+
"suffix:自定义后缀"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
165
|
+
"libraryVersion": "0.2.0",
|
|
166
|
+
"schemaVersion": 1
|
|
167
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# EpStatistic
|
|
2
|
+
|
|
3
|
+
`ep-statistic` · feedback(反馈) · `component:statistic`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
统计数值,状态与结果反馈
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示统计数值并向用户传达状态
|
|
12
|
+
- 适用:在操作前后提供即时反馈
|
|
13
|
+
- 不适用:无需用户感知状态变化时
|
|
14
|
+
- 不适用:需要完整业务弹窗流程时优先使用 Dialog
|
|
15
|
+
|
|
16
|
+
## 关键词
|
|
17
|
+
|
|
18
|
+
- 中文:统计数值、反馈
|
|
19
|
+
- English: statistic, number, feedback
|
|
20
|
+
|
|
21
|
+
## Props
|
|
22
|
+
|
|
23
|
+
- decimalSeparator (string,默认 .):小数点符号
|
|
24
|
+
- groupSeparator (string,默认 ,):千分位分隔符
|
|
25
|
+
- precision (number,默认 0):数值精度(小数位数)
|
|
26
|
+
- formatter ((...args: any[]) => string | number):自定义数值展示函数
|
|
27
|
+
- value (number | Dayjs,默认 0):数值内容
|
|
28
|
+
- prefix (string):数值前缀
|
|
29
|
+
- suffix (string):数值后缀
|
|
30
|
+
- title (string):数值标题
|
|
31
|
+
- valueStyle (StyleValue,默认 见文档):数值样式
|
|
32
|
+
|
|
33
|
+
## Slots
|
|
34
|
+
|
|
35
|
+
- title:自定义标题
|
|
36
|
+
- prefix:自定义前缀
|
|
37
|
+
- suffix:自定义后缀
|
|
38
|
+
|
|
39
|
+
## 视觉提示
|
|
40
|
+
|
|
41
|
+
- 形状:行内或块级提示
|
|
42
|
+
- 密度:中等
|
|
43
|
+
- 插槽内容:title:自定义标题;prefix:自定义前缀;suffix:自定义后缀
|
|
44
|
+
- CSS 变量:--el-color-success、--el-color-warning、--el-color-danger、--el-font-size-base
|
|
45
|
+
|
|
46
|
+
## 示例
|
|
47
|
+
|
|
48
|
+
### 统计数据
|
|
49
|
+
|
|
50
|
+
```vue
|
|
51
|
+
<script setup lang="ts">
|
|
52
|
+
import { EpStatistic } from 'ep-craft'
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<ep-statistic title="本月活跃用户" :value="128600" />
|
|
57
|
+
</template>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 相关条目
|
|
61
|
+
|
|
62
|
+
- EpCountdown
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "navigation",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpStep, EpSteps } from 'ep-craft'\n</script>\n\n<template>\n <ep-steps :active=\"1\">\n <ep-step title=\"填写信息\" description=\"输入基础资料\" />\n <ep-step title=\"确认信息\" description=\"核对并提交\" />\n <ep-step title=\"完成\" description=\"等待审核\" />\n </ep-steps>\n</template>",
|
|
9
|
+
"id": "step-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "步骤"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:step",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"step",
|
|
20
|
+
"wizard",
|
|
21
|
+
"navigation"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"步骤",
|
|
25
|
+
"导航"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpStep",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"单步无层级的简单跳转时"
|
|
32
|
+
],
|
|
33
|
+
"props": [
|
|
34
|
+
{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"defaultText": "''",
|
|
37
|
+
"description": "步骤标题",
|
|
38
|
+
"hasDefault": true,
|
|
39
|
+
"name": "title",
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"alias": null,
|
|
45
|
+
"defaultText": null,
|
|
46
|
+
"description": "步骤自定义图标,也可通过 icon 插槽传入",
|
|
47
|
+
"hasDefault": true,
|
|
48
|
+
"name": "icon",
|
|
49
|
+
"required": false,
|
|
50
|
+
"type": "string | Component"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"alias": null,
|
|
54
|
+
"defaultText": "''",
|
|
55
|
+
"description": "步骤描述",
|
|
56
|
+
"hasDefault": true,
|
|
57
|
+
"name": "description",
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"alias": null,
|
|
63
|
+
"defaultText": "''",
|
|
64
|
+
"description": "当前状态,未配置时由 Steps 自动设置",
|
|
65
|
+
"hasDefault": true,
|
|
66
|
+
"name": "status",
|
|
67
|
+
"required": false,
|
|
68
|
+
"type": "'' | 'wait' | 'process' | 'finish' | 'error' | 'success'"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"related": [
|
|
72
|
+
"EpSteps"
|
|
73
|
+
],
|
|
74
|
+
"relations": {
|
|
75
|
+
"children": [],
|
|
76
|
+
"combos": [
|
|
77
|
+
"EpSteps + EpStep"
|
|
78
|
+
],
|
|
79
|
+
"parents": [
|
|
80
|
+
"EpSteps"
|
|
81
|
+
],
|
|
82
|
+
"requiredChildren": []
|
|
83
|
+
},
|
|
84
|
+
"slots": [
|
|
85
|
+
{
|
|
86
|
+
"description": "自定义步骤图标",
|
|
87
|
+
"name": "icon"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"description": "自定义步骤标题",
|
|
91
|
+
"name": "title"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"description": "自定义步骤描述",
|
|
95
|
+
"name": "description"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"slug": "step",
|
|
99
|
+
"summary": "步骤,页面导航与定位",
|
|
100
|
+
"tag": "ep-step",
|
|
101
|
+
"useCases": [
|
|
102
|
+
"在页面或模块间使用步骤导航",
|
|
103
|
+
"指示当前位置与层级"
|
|
104
|
+
],
|
|
105
|
+
"variants": [],
|
|
106
|
+
"visual": {
|
|
107
|
+
"cssVars": [
|
|
108
|
+
"--el-color-primary",
|
|
109
|
+
"--el-text-color-regular",
|
|
110
|
+
"--el-bg-color"
|
|
111
|
+
],
|
|
112
|
+
"density": "中等",
|
|
113
|
+
"shape": "条状或列表",
|
|
114
|
+
"slotContent": [
|
|
115
|
+
"icon:自定义步骤图标",
|
|
116
|
+
"title:自定义步骤标题",
|
|
117
|
+
"description:自定义步骤描述"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
122
|
+
"libraryVersion": "0.2.0",
|
|
123
|
+
"schemaVersion": 1
|
|
124
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# EpStep
|
|
2
|
+
|
|
3
|
+
`ep-step` · navigation(导航) · `component:step`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
步骤,页面导航与定位
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:在页面或模块间使用步骤导航
|
|
12
|
+
- 适用:指示当前位置与层级
|
|
13
|
+
- 不适用:单步无层级的简单跳转时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:步骤、导航
|
|
18
|
+
- English: step, wizard, navigation
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- title (string,默认 ''):步骤标题
|
|
23
|
+
- icon (string | Component,默认 见文档):步骤自定义图标,也可通过 icon 插槽传入
|
|
24
|
+
- description (string,默认 ''):步骤描述
|
|
25
|
+
- status ('' | 'wait' | 'process' | 'finish' | 'error' | 'success',默认 ''):当前状态,未配置时由 Steps 自动设置
|
|
26
|
+
|
|
27
|
+
## Slots
|
|
28
|
+
|
|
29
|
+
- icon:自定义步骤图标
|
|
30
|
+
- title:自定义步骤标题
|
|
31
|
+
- description:自定义步骤描述
|
|
32
|
+
|
|
33
|
+
## 关系
|
|
34
|
+
|
|
35
|
+
- 父级:EpSteps
|
|
36
|
+
- 常用组合:EpSteps + EpStep
|
|
37
|
+
|
|
38
|
+
## 视觉提示
|
|
39
|
+
|
|
40
|
+
- 形状:条状或列表
|
|
41
|
+
- 密度:中等
|
|
42
|
+
- 插槽内容:icon:自定义步骤图标;title:自定义步骤标题;description:自定义步骤描述
|
|
43
|
+
- CSS 变量:--el-color-primary、--el-text-color-regular、--el-bg-color
|
|
44
|
+
|
|
45
|
+
## 示例
|
|
46
|
+
|
|
47
|
+
### 步骤
|
|
48
|
+
|
|
49
|
+
```vue
|
|
50
|
+
<script setup lang="ts">
|
|
51
|
+
import { EpStep, EpSteps } from 'ep-craft'
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<ep-steps :active="1">
|
|
56
|
+
<ep-step title="填写信息" description="输入基础资料" />
|
|
57
|
+
<ep-step title="确认信息" description="核对并提交" />
|
|
58
|
+
<ep-step title="完成" description="等待审核" />
|
|
59
|
+
</ep-steps>
|
|
60
|
+
</template>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 相关条目
|
|
64
|
+
|
|
65
|
+
- EpSteps
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "navigation",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "当前步骤变化时触发",
|
|
7
|
+
"name": "change",
|
|
8
|
+
"params": "(newVal: number, oldVal: number)"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"exampleOmittedReason": null,
|
|
12
|
+
"examples": [
|
|
13
|
+
{
|
|
14
|
+
"code": "<script setup lang=\"ts\">\nimport { EpStep, EpSteps } from 'ep-craft'\n</script>\n\n<template>\n <ep-steps :active=\"1\">\n <ep-step title=\"填写信息\" description=\"输入基础资料\" />\n <ep-step title=\"确认信息\" description=\"核对并提交\" />\n <ep-step title=\"完成\" description=\"等待审核\" />\n </ep-steps>\n</template>",
|
|
15
|
+
"id": "steps-1",
|
|
16
|
+
"language": "vue",
|
|
17
|
+
"title": "步骤条"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"exposes": [],
|
|
21
|
+
"hot": false,
|
|
22
|
+
"id": "component:steps",
|
|
23
|
+
"keywords": {
|
|
24
|
+
"en": [
|
|
25
|
+
"steps",
|
|
26
|
+
"wizard",
|
|
27
|
+
"navigation"
|
|
28
|
+
],
|
|
29
|
+
"zh": [
|
|
30
|
+
"步骤条",
|
|
31
|
+
"导航"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"kind": "component",
|
|
35
|
+
"name": "EpSteps",
|
|
36
|
+
"nonUseCases": [
|
|
37
|
+
"单步无层级的简单跳转时"
|
|
38
|
+
],
|
|
39
|
+
"props": [
|
|
40
|
+
{
|
|
41
|
+
"alias": null,
|
|
42
|
+
"defaultText": "''",
|
|
43
|
+
"description": "每个步骤的间距,支持百分比;缺省时自适应",
|
|
44
|
+
"hasDefault": true,
|
|
45
|
+
"name": "space",
|
|
46
|
+
"required": false,
|
|
47
|
+
"type": "number | string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"alias": null,
|
|
51
|
+
"defaultText": "0",
|
|
52
|
+
"description": "当前激活的步骤",
|
|
53
|
+
"hasDefault": true,
|
|
54
|
+
"name": "active",
|
|
55
|
+
"required": false,
|
|
56
|
+
"type": "number"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"alias": null,
|
|
60
|
+
"defaultText": "horizontal",
|
|
61
|
+
"description": "展示方向",
|
|
62
|
+
"hasDefault": true,
|
|
63
|
+
"name": "direction",
|
|
64
|
+
"required": false,
|
|
65
|
+
"type": "'horizontal' | 'vertical'"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"alias": null,
|
|
69
|
+
"defaultText": "false",
|
|
70
|
+
"description": "标题与描述是否居中",
|
|
71
|
+
"hasDefault": false,
|
|
72
|
+
"name": "alignCenter",
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"alias": null,
|
|
78
|
+
"defaultText": "false",
|
|
79
|
+
"description": "是否应用简洁风格",
|
|
80
|
+
"hasDefault": false,
|
|
81
|
+
"name": "simple",
|
|
82
|
+
"required": false,
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"alias": null,
|
|
87
|
+
"defaultText": "finish",
|
|
88
|
+
"description": "结束步骤的状态",
|
|
89
|
+
"hasDefault": true,
|
|
90
|
+
"name": "finishStatus",
|
|
91
|
+
"required": false,
|
|
92
|
+
"type": "'wait' | 'process' | 'finish' | 'error' | 'success'"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"alias": null,
|
|
96
|
+
"defaultText": "process",
|
|
97
|
+
"description": "当前步骤的状态",
|
|
98
|
+
"hasDefault": true,
|
|
99
|
+
"name": "processStatus",
|
|
100
|
+
"required": false,
|
|
101
|
+
"type": "'wait' | 'process' | 'finish' | 'error' | 'success'"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"related": [
|
|
105
|
+
"EpStep"
|
|
106
|
+
],
|
|
107
|
+
"relations": {
|
|
108
|
+
"children": [
|
|
109
|
+
"EpStep"
|
|
110
|
+
],
|
|
111
|
+
"combos": [
|
|
112
|
+
"EpSteps + EpStep"
|
|
113
|
+
],
|
|
114
|
+
"parents": [],
|
|
115
|
+
"requiredChildren": [
|
|
116
|
+
"EpStep"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"slots": [
|
|
120
|
+
{
|
|
121
|
+
"description": "步骤内容,通常放置 ep-step",
|
|
122
|
+
"name": "default"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"slug": "steps",
|
|
126
|
+
"summary": "步骤条,页面导航与定位",
|
|
127
|
+
"tag": "ep-steps",
|
|
128
|
+
"useCases": [
|
|
129
|
+
"在页面或模块间使用步骤条导航",
|
|
130
|
+
"指示当前位置与层级"
|
|
131
|
+
],
|
|
132
|
+
"variants": [
|
|
133
|
+
{
|
|
134
|
+
"dimension": "state",
|
|
135
|
+
"values": [
|
|
136
|
+
"active"
|
|
137
|
+
],
|
|
138
|
+
"when": "通过布尔属性切换禁用、加载或选中状态"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"visual": {
|
|
142
|
+
"cssVars": [
|
|
143
|
+
"--el-color-primary",
|
|
144
|
+
"--el-text-color-regular",
|
|
145
|
+
"--el-bg-color"
|
|
146
|
+
],
|
|
147
|
+
"density": "中等",
|
|
148
|
+
"shape": "条状或列表",
|
|
149
|
+
"slotContent": [
|
|
150
|
+
"default:步骤内容,通常放置 ep-step"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
155
|
+
"libraryVersion": "0.2.0",
|
|
156
|
+
"schemaVersion": 1
|
|
157
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# EpSteps
|
|
2
|
+
|
|
3
|
+
`ep-steps` · navigation(导航) · `component:steps`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
步骤条,页面导航与定位
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:在页面或模块间使用步骤条导航
|
|
12
|
+
- 适用:指示当前位置与层级
|
|
13
|
+
- 不适用:单步无层级的简单跳转时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:步骤条、导航
|
|
18
|
+
- English: steps, wizard, navigation
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- state: active(通过布尔属性切换禁用、加载或选中状态)
|
|
23
|
+
|
|
24
|
+
## Props
|
|
25
|
+
|
|
26
|
+
- space (number | string,默认 ''):每个步骤的间距,支持百分比;缺省时自适应
|
|
27
|
+
- active (number,默认 0):当前激活的步骤
|
|
28
|
+
- direction ('horizontal' | 'vertical',默认 horizontal):展示方向
|
|
29
|
+
- alignCenter (boolean):标题与描述是否居中
|
|
30
|
+
- simple (boolean):是否应用简洁风格
|
|
31
|
+
- finishStatus ('wait' | 'process' | 'finish' | 'error' | 'success',默认 finish):结束步骤的状态
|
|
32
|
+
- processStatus ('wait' | 'process' | 'finish' | 'error' | 'success',默认 process):当前步骤的状态
|
|
33
|
+
|
|
34
|
+
## Events
|
|
35
|
+
|
|
36
|
+
- change((newVal: number, oldVal: number)):当前步骤变化时触发
|
|
37
|
+
|
|
38
|
+
## Slots
|
|
39
|
+
|
|
40
|
+
- default:步骤内容,通常放置 ep-step
|
|
41
|
+
|
|
42
|
+
## 关系
|
|
43
|
+
|
|
44
|
+
- 子级:EpStep
|
|
45
|
+
- 必需子组件:EpStep
|
|
46
|
+
- 常用组合:EpSteps + EpStep
|
|
47
|
+
|
|
48
|
+
## 视觉提示
|
|
49
|
+
|
|
50
|
+
- 形状:条状或列表
|
|
51
|
+
- 密度:中等
|
|
52
|
+
- 插槽内容:default:步骤内容,通常放置 ep-step
|
|
53
|
+
- CSS 变量:--el-color-primary、--el-text-color-regular、--el-bg-color
|
|
54
|
+
|
|
55
|
+
## 示例
|
|
56
|
+
|
|
57
|
+
### 步骤条
|
|
58
|
+
|
|
59
|
+
```vue
|
|
60
|
+
<script setup lang="ts">
|
|
61
|
+
import { EpStep, EpSteps } from 'ep-craft'
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<ep-steps :active="1">
|
|
66
|
+
<ep-step title="填写信息" description="输入基础资料" />
|
|
67
|
+
<ep-step title="确认信息" description="核对并提交" />
|
|
68
|
+
<ep-step title="完成" description="等待审核" />
|
|
69
|
+
</ep-steps>
|
|
70
|
+
</template>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 相关条目
|
|
74
|
+
|
|
75
|
+
- EpStep
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
ep-craft 0.2.0
|