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,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "basic",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "滚动时触发",
|
|
7
|
+
"name": "scroll",
|
|
8
|
+
"params": "({ scrollTop: number; fixed: boolean })"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"description": "固钉状态改变时触发",
|
|
12
|
+
"name": "change",
|
|
13
|
+
"params": "(fixed: boolean)"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"exampleOmittedReason": null,
|
|
17
|
+
"examples": [
|
|
18
|
+
{
|
|
19
|
+
"code": "<script setup lang=\"ts\">\nimport { EpAffix, EpButton } from 'ep-craft'\n</script>\n\n<template>\n <ep-affix :offset=\"20\">\n <ep-button type=\"primary\">滚动页面时保持可见</ep-button>\n </ep-affix>\n</template>",
|
|
20
|
+
"id": "affix-1",
|
|
21
|
+
"language": "vue",
|
|
22
|
+
"title": "固钉内容"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"exposes": [
|
|
26
|
+
{
|
|
27
|
+
"description": "更新固钉状态",
|
|
28
|
+
"name": "update",
|
|
29
|
+
"type": "() => void"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "更新根元素尺寸信息",
|
|
33
|
+
"name": "updateRoot",
|
|
34
|
+
"type": "() => void"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"hot": false,
|
|
38
|
+
"id": "component:affix",
|
|
39
|
+
"keywords": {
|
|
40
|
+
"en": [
|
|
41
|
+
"affix",
|
|
42
|
+
"sticky",
|
|
43
|
+
"fixed",
|
|
44
|
+
"basic"
|
|
45
|
+
],
|
|
46
|
+
"zh": [
|
|
47
|
+
"固钉",
|
|
48
|
+
"基础"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"kind": "component",
|
|
52
|
+
"name": "EpAffix",
|
|
53
|
+
"nonUseCases": [
|
|
54
|
+
"需要完全自定义原生行为或视觉时"
|
|
55
|
+
],
|
|
56
|
+
"props": [
|
|
57
|
+
{
|
|
58
|
+
"alias": null,
|
|
59
|
+
"defaultText": "100",
|
|
60
|
+
"description": "固钉元素的 z-index",
|
|
61
|
+
"hasDefault": true,
|
|
62
|
+
"name": "zIndex",
|
|
63
|
+
"required": false,
|
|
64
|
+
"type": "number | string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"alias": null,
|
|
68
|
+
"defaultText": "''",
|
|
69
|
+
"description": "触发固钉的滚动容器选择器",
|
|
70
|
+
"hasDefault": true,
|
|
71
|
+
"name": "target",
|
|
72
|
+
"required": false,
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"alias": null,
|
|
77
|
+
"defaultText": "0",
|
|
78
|
+
"description": "触发固钉的偏移距离,单位 px",
|
|
79
|
+
"hasDefault": true,
|
|
80
|
+
"name": "offset",
|
|
81
|
+
"required": false,
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"alias": null,
|
|
86
|
+
"defaultText": "top",
|
|
87
|
+
"description": "固钉位置",
|
|
88
|
+
"hasDefault": true,
|
|
89
|
+
"name": "position",
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": "'top' | 'bottom'"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"alias": null,
|
|
95
|
+
"defaultText": "false",
|
|
96
|
+
"description": "是否将固钉元素 teleport 到 append-to 指定的位置",
|
|
97
|
+
"hasDefault": false,
|
|
98
|
+
"name": "teleported",
|
|
99
|
+
"required": false,
|
|
100
|
+
"type": "boolean"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"alias": null,
|
|
104
|
+
"defaultText": "body",
|
|
105
|
+
"description": "固钉元素挂载的容器",
|
|
106
|
+
"hasDefault": true,
|
|
107
|
+
"name": "appendTo",
|
|
108
|
+
"required": false,
|
|
109
|
+
"type": "string | HTMLElement"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"related": [
|
|
113
|
+
"EpContainer",
|
|
114
|
+
"EpScrollbar"
|
|
115
|
+
],
|
|
116
|
+
"relations": {
|
|
117
|
+
"children": [],
|
|
118
|
+
"combos": [],
|
|
119
|
+
"parents": [],
|
|
120
|
+
"requiredChildren": []
|
|
121
|
+
},
|
|
122
|
+
"slots": [
|
|
123
|
+
{
|
|
124
|
+
"description": "固钉内容",
|
|
125
|
+
"name": "default"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"slug": "affix",
|
|
129
|
+
"summary": "固钉,基础交互与展示元素",
|
|
130
|
+
"tag": "ep-affix",
|
|
131
|
+
"useCases": [
|
|
132
|
+
"页面中的固钉展示与交互",
|
|
133
|
+
"为固钉提供统一视觉与状态"
|
|
134
|
+
],
|
|
135
|
+
"variants": [],
|
|
136
|
+
"visual": {
|
|
137
|
+
"cssVars": [
|
|
138
|
+
"--el-color-primary",
|
|
139
|
+
"--el-border-radius-base",
|
|
140
|
+
"--el-font-size-base"
|
|
141
|
+
],
|
|
142
|
+
"density": "中等",
|
|
143
|
+
"shape": "圆角矩形",
|
|
144
|
+
"slotContent": [
|
|
145
|
+
"default:固钉内容"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
150
|
+
"libraryVersion": "0.2.0",
|
|
151
|
+
"schemaVersion": 1
|
|
152
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# EpAffix
|
|
2
|
+
|
|
3
|
+
`ep-affix` · basic(基础) · `component:affix`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
固钉,基础交互与展示元素
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:页面中的固钉展示与交互
|
|
12
|
+
- 适用:为固钉提供统一视觉与状态
|
|
13
|
+
- 不适用:需要完全自定义原生行为或视觉时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:固钉、基础
|
|
18
|
+
- English: affix, sticky, fixed, basic
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- zIndex (number | string,默认 100):固钉元素的 z-index
|
|
23
|
+
- target (string,默认 ''):触发固钉的滚动容器选择器
|
|
24
|
+
- offset (number,默认 0):触发固钉的偏移距离,单位 px
|
|
25
|
+
- position ('top' | 'bottom',默认 top):固钉位置
|
|
26
|
+
- teleported (boolean):是否将固钉元素 teleport 到 append-to 指定的位置
|
|
27
|
+
- appendTo (string | HTMLElement,默认 body):固钉元素挂载的容器
|
|
28
|
+
|
|
29
|
+
## Events
|
|
30
|
+
|
|
31
|
+
- scroll(({ scrollTop: number; fixed: boolean })):滚动时触发
|
|
32
|
+
- change((fixed: boolean)):固钉状态改变时触发
|
|
33
|
+
|
|
34
|
+
## Slots
|
|
35
|
+
|
|
36
|
+
- default:固钉内容
|
|
37
|
+
|
|
38
|
+
## Exposes
|
|
39
|
+
|
|
40
|
+
- update(() => void):更新固钉状态
|
|
41
|
+
- updateRoot(() => void):更新根元素尺寸信息
|
|
42
|
+
|
|
43
|
+
## 视觉提示
|
|
44
|
+
|
|
45
|
+
- 形状:圆角矩形
|
|
46
|
+
- 密度:中等
|
|
47
|
+
- 插槽内容:default:固钉内容
|
|
48
|
+
- CSS 变量:--el-color-primary、--el-border-radius-base、--el-font-size-base
|
|
49
|
+
|
|
50
|
+
## 示例
|
|
51
|
+
|
|
52
|
+
### 固钉内容
|
|
53
|
+
|
|
54
|
+
```vue
|
|
55
|
+
<script setup lang="ts">
|
|
56
|
+
import { EpAffix, EpButton } from 'ep-craft'
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<template>
|
|
60
|
+
<ep-affix :offset="20">
|
|
61
|
+
<ep-button type="primary">滚动页面时保持可见</ep-button>
|
|
62
|
+
</ep-affix>
|
|
63
|
+
</template>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## 相关条目
|
|
67
|
+
|
|
68
|
+
- EpContainer
|
|
69
|
+
- EpScrollbar
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "basic",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "关闭 Alert 时触发",
|
|
7
|
+
"name": "close",
|
|
8
|
+
"params": "()"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"exampleOmittedReason": null,
|
|
12
|
+
"examples": [
|
|
13
|
+
{
|
|
14
|
+
"code": "<script setup lang=\"ts\">\nimport { EpAlert } from 'ep-craft'\n</script>\n\n<template>\n <ep-alert title=\"保存成功\" type=\"success\" show-icon />\n <ep-alert title=\"请检查填写内容\" type=\"warning\" description=\"部分字段校验未通过\" show-icon />\n</template>",
|
|
15
|
+
"id": "alert-1",
|
|
16
|
+
"language": "vue",
|
|
17
|
+
"title": "基础提示"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpAlert } from 'ep-craft'\n\nconst visible = ref(true)\n</script>\n\n<template>\n <ep-alert v-if=\"visible\" title=\"任务已结束\" type=\"info\" closable @close=\"visible = false\" />\n</template>",
|
|
21
|
+
"id": "alert-2",
|
|
22
|
+
"language": "vue",
|
|
23
|
+
"title": "可关闭提示"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"exposes": [],
|
|
27
|
+
"hot": true,
|
|
28
|
+
"id": "component:alert",
|
|
29
|
+
"keywords": {
|
|
30
|
+
"en": [
|
|
31
|
+
"alert",
|
|
32
|
+
"banner",
|
|
33
|
+
"notice",
|
|
34
|
+
"basic"
|
|
35
|
+
],
|
|
36
|
+
"zh": [
|
|
37
|
+
"提示",
|
|
38
|
+
"警告",
|
|
39
|
+
"通知条",
|
|
40
|
+
"基础"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"kind": "component",
|
|
44
|
+
"name": "EpAlert",
|
|
45
|
+
"nonUseCases": [
|
|
46
|
+
"需要用户确认或阻断操作时使用 MessageBox"
|
|
47
|
+
],
|
|
48
|
+
"props": [
|
|
49
|
+
{
|
|
50
|
+
"alias": null,
|
|
51
|
+
"defaultText": null,
|
|
52
|
+
"description": "标题",
|
|
53
|
+
"hasDefault": true,
|
|
54
|
+
"name": "title",
|
|
55
|
+
"required": false,
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"alias": null,
|
|
60
|
+
"defaultText": null,
|
|
61
|
+
"description": "描述性文本",
|
|
62
|
+
"hasDefault": true,
|
|
63
|
+
"name": "description",
|
|
64
|
+
"required": false,
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"alias": null,
|
|
69
|
+
"defaultText": "info",
|
|
70
|
+
"description": "类型",
|
|
71
|
+
"hasDefault": true,
|
|
72
|
+
"name": "type",
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": "'success' | 'warning' | 'info' | 'error'"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"alias": null,
|
|
78
|
+
"defaultText": "true",
|
|
79
|
+
"description": "是否可关闭",
|
|
80
|
+
"hasDefault": true,
|
|
81
|
+
"name": "closable",
|
|
82
|
+
"required": false,
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"alias": null,
|
|
87
|
+
"defaultText": null,
|
|
88
|
+
"description": "自定义关闭按钮文本",
|
|
89
|
+
"hasDefault": true,
|
|
90
|
+
"name": "closeText",
|
|
91
|
+
"required": false,
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"alias": null,
|
|
96
|
+
"defaultText": "false",
|
|
97
|
+
"description": "是否显示类型图标",
|
|
98
|
+
"hasDefault": false,
|
|
99
|
+
"name": "showIcon",
|
|
100
|
+
"required": false,
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"alias": null,
|
|
105
|
+
"defaultText": "false",
|
|
106
|
+
"description": "文字是否居中",
|
|
107
|
+
"hasDefault": false,
|
|
108
|
+
"name": "center",
|
|
109
|
+
"required": false,
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"alias": null,
|
|
114
|
+
"defaultText": "light",
|
|
115
|
+
"description": "主题样式",
|
|
116
|
+
"hasDefault": true,
|
|
117
|
+
"name": "effect",
|
|
118
|
+
"required": false,
|
|
119
|
+
"type": "'light' | 'dark'"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"related": [
|
|
123
|
+
"EpResult",
|
|
124
|
+
"EpNotification"
|
|
125
|
+
],
|
|
126
|
+
"relations": {
|
|
127
|
+
"children": [],
|
|
128
|
+
"combos": [],
|
|
129
|
+
"parents": [],
|
|
130
|
+
"requiredChildren": []
|
|
131
|
+
},
|
|
132
|
+
"slots": [
|
|
133
|
+
{
|
|
134
|
+
"description": "Alert 内容描述",
|
|
135
|
+
"name": "default"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"description": "标题的内容",
|
|
139
|
+
"name": "title"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"slug": "alert",
|
|
143
|
+
"summary": "页面提示条,展示说明、警告或错误",
|
|
144
|
+
"tag": "ep-alert",
|
|
145
|
+
"useCases": [
|
|
146
|
+
"页面顶部说明与风险提示",
|
|
147
|
+
"操作结果或系统状态告知"
|
|
148
|
+
],
|
|
149
|
+
"variants": [
|
|
150
|
+
{
|
|
151
|
+
"dimension": "type",
|
|
152
|
+
"values": [
|
|
153
|
+
"success",
|
|
154
|
+
"warning",
|
|
155
|
+
"info",
|
|
156
|
+
"error"
|
|
157
|
+
],
|
|
158
|
+
"when": "通过 type 选择类型"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"dimension": "effect",
|
|
162
|
+
"values": [
|
|
163
|
+
"light",
|
|
164
|
+
"dark"
|
|
165
|
+
],
|
|
166
|
+
"when": "通过视觉修饰属性调整外观效果"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"visual": {
|
|
170
|
+
"cssVars": [
|
|
171
|
+
"--el-color-primary",
|
|
172
|
+
"--el-border-radius-base",
|
|
173
|
+
"--el-font-size-base"
|
|
174
|
+
],
|
|
175
|
+
"density": "中等",
|
|
176
|
+
"shape": "圆角矩形",
|
|
177
|
+
"slotContent": [
|
|
178
|
+
"default:Alert 内容描述",
|
|
179
|
+
"title:标题的内容"
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
184
|
+
"libraryVersion": "0.2.0",
|
|
185
|
+
"schemaVersion": 1
|
|
186
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# EpAlert
|
|
2
|
+
|
|
3
|
+
`ep-alert` · basic(基础) · `component:alert`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
页面提示条,展示说明、警告或错误
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:页面顶部说明与风险提示
|
|
12
|
+
- 适用:操作结果或系统状态告知
|
|
13
|
+
- 不适用:需要用户确认或阻断操作时使用 MessageBox
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:提示、警告、通知条、基础
|
|
18
|
+
- English: alert, banner, notice, basic
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- type: success/warning/info/error(通过 type 选择类型)
|
|
23
|
+
- effect: light/dark(通过视觉修饰属性调整外观效果)
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
- title (string,默认 见文档):标题
|
|
28
|
+
- description (string,默认 见文档):描述性文本
|
|
29
|
+
- type ('success' | 'warning' | 'info' | 'error',默认 info):类型
|
|
30
|
+
- closable (boolean,默认 true):是否可关闭
|
|
31
|
+
- closeText (string,默认 见文档):自定义关闭按钮文本
|
|
32
|
+
- showIcon (boolean):是否显示类型图标
|
|
33
|
+
- center (boolean):文字是否居中
|
|
34
|
+
- effect ('light' | 'dark',默认 light):主题样式
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
- close(()):关闭 Alert 时触发
|
|
39
|
+
|
|
40
|
+
## Slots
|
|
41
|
+
|
|
42
|
+
- default:Alert 内容描述
|
|
43
|
+
- title:标题的内容
|
|
44
|
+
|
|
45
|
+
## 视觉提示
|
|
46
|
+
|
|
47
|
+
- 形状:圆角矩形
|
|
48
|
+
- 密度:中等
|
|
49
|
+
- 插槽内容:default:Alert 内容描述;title:标题的内容
|
|
50
|
+
- CSS 变量:--el-color-primary、--el-border-radius-base、--el-font-size-base
|
|
51
|
+
|
|
52
|
+
## 示例
|
|
53
|
+
|
|
54
|
+
### 基础提示
|
|
55
|
+
|
|
56
|
+
```vue
|
|
57
|
+
<script setup lang="ts">
|
|
58
|
+
import { EpAlert } from 'ep-craft'
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<ep-alert title="保存成功" type="success" show-icon />
|
|
63
|
+
<ep-alert title="请检查填写内容" type="warning" description="部分字段校验未通过" show-icon />
|
|
64
|
+
</template>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 可关闭提示
|
|
68
|
+
|
|
69
|
+
```vue
|
|
70
|
+
<script setup lang="ts">
|
|
71
|
+
import { ref } from 'vue'
|
|
72
|
+
import { EpAlert } from 'ep-craft'
|
|
73
|
+
|
|
74
|
+
const visible = ref(true)
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<ep-alert v-if="visible" title="任务已结束" type="info" closable @close="visible = false" />
|
|
79
|
+
</template>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 相关条目
|
|
83
|
+
|
|
84
|
+
- EpResult
|
|
85
|
+
- EpNotification
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "navigation",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpAnchor, EpAnchorLink } from 'ep-craft'\n</script>\n\n<template>\n <ep-anchor>\n <ep-anchor-link href=\"#overview\" title=\"概览\" />\n <ep-anchor-link href=\"#usage\" title=\"用法\" />\n </ep-anchor>\n <div id=\"overview\" style=\"height: 160px\">概览</div>\n <div id=\"usage\" style=\"height: 160px\">用法</div>\n</template>",
|
|
9
|
+
"id": "anchor-link-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "锚点链接"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:anchor-link",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"anchor-link",
|
|
20
|
+
"anchor",
|
|
21
|
+
"link",
|
|
22
|
+
"navigation"
|
|
23
|
+
],
|
|
24
|
+
"zh": [
|
|
25
|
+
"锚点链接",
|
|
26
|
+
"导航"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"kind": "component",
|
|
30
|
+
"name": "EpAnchorLink",
|
|
31
|
+
"nonUseCases": [
|
|
32
|
+
"单步无层级的简单跳转时"
|
|
33
|
+
],
|
|
34
|
+
"props": [
|
|
35
|
+
{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"defaultText": null,
|
|
38
|
+
"description": "锚点链接的文本内容",
|
|
39
|
+
"hasDefault": false,
|
|
40
|
+
"name": "title",
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"alias": null,
|
|
46
|
+
"defaultText": null,
|
|
47
|
+
"description": "锚点链接的地址",
|
|
48
|
+
"hasDefault": false,
|
|
49
|
+
"name": "href",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"related": [
|
|
55
|
+
"EpAnchor"
|
|
56
|
+
],
|
|
57
|
+
"relations": {
|
|
58
|
+
"children": [],
|
|
59
|
+
"combos": [
|
|
60
|
+
"EpAnchor + EpAnchorLink"
|
|
61
|
+
],
|
|
62
|
+
"parents": [
|
|
63
|
+
"EpAnchor"
|
|
64
|
+
],
|
|
65
|
+
"requiredChildren": []
|
|
66
|
+
},
|
|
67
|
+
"slots": [
|
|
68
|
+
{
|
|
69
|
+
"description": "锚点链接内容,缺省时显示 title",
|
|
70
|
+
"name": "default"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"description": "子链接内容(垂直方向时生效)",
|
|
74
|
+
"name": "sub-link"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"slug": "anchor-link",
|
|
78
|
+
"summary": "锚点链接,页面导航与定位",
|
|
79
|
+
"tag": "ep-anchor-link",
|
|
80
|
+
"useCases": [
|
|
81
|
+
"在页面或模块间使用锚点链接导航",
|
|
82
|
+
"指示当前位置与层级"
|
|
83
|
+
],
|
|
84
|
+
"variants": [],
|
|
85
|
+
"visual": {
|
|
86
|
+
"cssVars": [
|
|
87
|
+
"--el-color-primary",
|
|
88
|
+
"--el-text-color-regular",
|
|
89
|
+
"--el-bg-color"
|
|
90
|
+
],
|
|
91
|
+
"density": "中等",
|
|
92
|
+
"shape": "条状或列表",
|
|
93
|
+
"slotContent": [
|
|
94
|
+
"default:锚点链接内容,缺省时显示 title",
|
|
95
|
+
"sub-link:子链接内容(垂直方向时生效)"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
100
|
+
"libraryVersion": "0.2.0",
|
|
101
|
+
"schemaVersion": 1
|
|
102
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# EpAnchorLink
|
|
2
|
+
|
|
3
|
+
`ep-anchor-link` · navigation(导航) · `component:anchor-link`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
锚点链接,页面导航与定位
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:在页面或模块间使用锚点链接导航
|
|
12
|
+
- 适用:指示当前位置与层级
|
|
13
|
+
- 不适用:单步无层级的简单跳转时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:锚点链接、导航
|
|
18
|
+
- English: anchor-link, anchor, link, navigation
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- title (string):锚点链接的文本内容
|
|
23
|
+
- href (string):锚点链接的地址
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
- default:锚点链接内容,缺省时显示 title
|
|
28
|
+
- sub-link:子链接内容(垂直方向时生效)
|
|
29
|
+
|
|
30
|
+
## 关系
|
|
31
|
+
|
|
32
|
+
- 父级:EpAnchor
|
|
33
|
+
- 常用组合:EpAnchor + EpAnchorLink
|
|
34
|
+
|
|
35
|
+
## 视觉提示
|
|
36
|
+
|
|
37
|
+
- 形状:条状或列表
|
|
38
|
+
- 密度:中等
|
|
39
|
+
- 插槽内容:default:锚点链接内容,缺省时显示 title;sub-link:子链接内容(垂直方向时生效)
|
|
40
|
+
- CSS 变量:--el-color-primary、--el-text-color-regular、--el-bg-color
|
|
41
|
+
|
|
42
|
+
## 示例
|
|
43
|
+
|
|
44
|
+
### 锚点链接
|
|
45
|
+
|
|
46
|
+
```vue
|
|
47
|
+
<script setup lang="ts">
|
|
48
|
+
import { EpAnchor, EpAnchorLink } from 'ep-craft'
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<ep-anchor>
|
|
53
|
+
<ep-anchor-link href="#overview" title="概览" />
|
|
54
|
+
<ep-anchor-link href="#usage" title="用法" />
|
|
55
|
+
</ep-anchor>
|
|
56
|
+
<div id="overview" style="height: 160px">概览</div>
|
|
57
|
+
<div id="usage" style="height: 160px">用法</div>
|
|
58
|
+
</template>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## 相关条目
|
|
62
|
+
|
|
63
|
+
- EpAnchor
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
ep-craft 0.2.0
|