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.
Files changed (236) hide show
  1. package/dist-ai/components/affix.json +152 -0
  2. package/dist-ai/components/affix.md +73 -0
  3. package/dist-ai/components/alert.json +186 -0
  4. package/dist-ai/components/alert.md +89 -0
  5. package/dist-ai/components/anchor-link.json +102 -0
  6. package/dist-ai/components/anchor-link.md +67 -0
  7. package/dist-ai/components/anchor.json +179 -0
  8. package/dist-ai/components/anchor.md +87 -0
  9. package/dist-ai/components/aside.json +87 -0
  10. package/dist-ai/components/aside.md +63 -0
  11. package/dist-ai/components/autocomplete.json +613 -0
  12. package/dist-ai/components/autocomplete.md +140 -0
  13. package/dist-ai/components/avatar.json +163 -0
  14. package/dist-ai/components/avatar.md +83 -0
  15. package/dist-ai/components/backtop.json +118 -0
  16. package/dist-ai/components/backtop.md +66 -0
  17. package/dist-ai/components/badge.json +186 -0
  18. package/dist-ai/components/badge.md +85 -0
  19. package/dist-ai/components/breadcrumb-item.json +97 -0
  20. package/dist-ai/components/breadcrumb-item.md +65 -0
  21. package/dist-ai/components/breadcrumb.json +100 -0
  22. package/dist-ai/components/breadcrumb.md +68 -0
  23. package/dist-ai/components/button-group.json +123 -0
  24. package/dist-ai/components/button-group.md +65 -0
  25. package/dist-ai/components/button.json +349 -0
  26. package/dist-ai/components/button.md +124 -0
  27. package/dist-ai/components/calendar.json +148 -0
  28. package/dist-ai/components/calendar.md +74 -0
  29. package/dist-ai/components/card.json +168 -0
  30. package/dist-ai/components/card.md +87 -0
  31. package/dist-ai/components/carousel-item.json +99 -0
  32. package/dist-ai/components/carousel-item.md +68 -0
  33. package/dist-ai/components/carousel.json +245 -0
  34. package/dist-ai/components/carousel.md +97 -0
  35. package/dist-ai/components/cascader-panel.json +242 -0
  36. package/dist-ai/components/cascader-panel.md +108 -0
  37. package/dist-ai/components/cascader.json +531 -0
  38. package/dist-ai/components/cascader.md +146 -0
  39. package/dist-ai/components/check-tag.json +133 -0
  40. package/dist-ai/components/check-tag.md +72 -0
  41. package/dist-ai/components/checkbox-button.json +279 -0
  42. package/dist-ai/components/checkbox-button.md +94 -0
  43. package/dist-ai/components/checkbox-group.json +236 -0
  44. package/dist-ai/components/checkbox-group.md +90 -0
  45. package/dist-ai/components/checkbox.json +278 -0
  46. package/dist-ai/components/checkbox.md +91 -0
  47. package/dist-ai/components/col.json +168 -0
  48. package/dist-ai/components/col.md +72 -0
  49. package/dist-ai/components/collapse-item.json +133 -0
  50. package/dist-ai/components/collapse-item.md +75 -0
  51. package/dist-ai/components/collapse-transition.json +75 -0
  52. package/dist-ai/components/collapse-transition.md +59 -0
  53. package/dist-ai/components/collapse.json +129 -0
  54. package/dist-ai/components/collapse.md +76 -0
  55. package/dist-ai/components/color-picker.json +280 -0
  56. package/dist-ai/components/color-picker.md +85 -0
  57. package/dist-ai/components/config-provider.json +222 -0
  58. package/dist-ai/components/config-provider.md +76 -0
  59. package/dist-ai/components/container.json +95 -0
  60. package/dist-ai/components/container.md +70 -0
  61. package/dist-ai/components/countdown.json +155 -0
  62. package/dist-ai/components/countdown.md +73 -0
  63. package/dist-ai/components/date-picker-panel.json +346 -0
  64. package/dist-ai/components/date-picker-panel.md +91 -0
  65. package/dist-ai/components/date-picker.json +574 -0
  66. package/dist-ai/components/date-picker.md +153 -0
  67. package/dist-ai/components/descriptions-item.json +175 -0
  68. package/dist-ai/components/descriptions-item.md +73 -0
  69. package/dist-ai/components/descriptions.json +171 -0
  70. package/dist-ai/components/descriptions.md +78 -0
  71. package/dist-ai/components/dialog.json +403 -0
  72. package/dist-ai/components/dialog.md +108 -0
  73. package/dist-ai/components/divider.json +102 -0
  74. package/dist-ai/components/divider.md +59 -0
  75. package/dist-ai/components/drawer.json +468 -0
  76. package/dist-ai/components/drawer.md +115 -0
  77. package/dist-ai/components/dropdown-item.json +156 -0
  78. package/dist-ai/components/dropdown-item.md +84 -0
  79. package/dist-ai/components/dropdown-menu.json +92 -0
  80. package/dist-ai/components/dropdown-menu.md +70 -0
  81. package/dist-ai/components/dropdown.json +374 -0
  82. package/dist-ai/components/dropdown.md +108 -0
  83. package/dist-ai/components/empty.json +116 -0
  84. package/dist-ai/components/empty.md +62 -0
  85. package/dist-ai/components/footer.json +86 -0
  86. package/dist-ai/components/footer.md +63 -0
  87. package/dist-ai/components/form-item.json +242 -0
  88. package/dist-ai/components/form-item.md +93 -0
  89. package/dist-ai/components/form.json +277 -0
  90. package/dist-ai/components/form.md +117 -0
  91. package/dist-ai/components/header.json +86 -0
  92. package/dist-ai/components/header.md +63 -0
  93. package/dist-ai/components/icon.json +95 -0
  94. package/dist-ai/components/icon.md +61 -0
  95. package/dist-ai/components/image-viewer.json +235 -0
  96. package/dist-ai/components/image-viewer.md +88 -0
  97. package/dist-ai/components/image.json +299 -0
  98. package/dist-ai/components/image.md +96 -0
  99. package/dist-ai/components/input-number.json +370 -0
  100. package/dist-ai/components/input-number.md +127 -0
  101. package/dist-ai/components/input.json +545 -0
  102. package/dist-ai/components/input.md +166 -0
  103. package/dist-ai/components/link.json +162 -0
  104. package/dist-ai/components/link.md +72 -0
  105. package/dist-ai/components/main.json +77 -0
  106. package/dist-ai/components/main.md +58 -0
  107. package/dist-ai/components/mention.json +598 -0
  108. package/dist-ai/components/mention.md +136 -0
  109. package/dist-ai/components/menu-item-group.json +101 -0
  110. package/dist-ai/components/menu-item-group.md +69 -0
  111. package/dist-ai/components/menu-item.json +131 -0
  112. package/dist-ai/components/menu-item.md +76 -0
  113. package/dist-ai/components/menu.json +314 -0
  114. package/dist-ai/components/menu.md +104 -0
  115. package/dist-ai/components/option-group.json +113 -0
  116. package/dist-ai/components/option-group.md +79 -0
  117. package/dist-ai/components/option.json +122 -0
  118. package/dist-ai/components/option.md +70 -0
  119. package/dist-ai/components/page-header.json +131 -0
  120. package/dist-ai/components/page-header.md +70 -0
  121. package/dist-ai/components/pagination.json +325 -0
  122. package/dist-ai/components/pagination.md +115 -0
  123. package/dist-ai/components/popconfirm.json +240 -0
  124. package/dist-ai/components/popconfirm.md +89 -0
  125. package/dist-ai/components/popover.json +351 -0
  126. package/dist-ai/components/popover.md +99 -0
  127. package/dist-ai/components/popper.json +93 -0
  128. package/dist-ai/components/popper.md +66 -0
  129. package/dist-ai/components/progress.json +219 -0
  130. package/dist-ai/components/progress.md +74 -0
  131. package/dist-ai/components/radio-button.json +142 -0
  132. package/dist-ai/components/radio-button.md +76 -0
  133. package/dist-ai/components/radio-group.json +219 -0
  134. package/dist-ai/components/radio-group.md +88 -0
  135. package/dist-ai/components/radio.json +177 -0
  136. package/dist-ai/components/radio.md +83 -0
  137. package/dist-ai/components/rate.json +286 -0
  138. package/dist-ai/components/rate.md +83 -0
  139. package/dist-ai/components/result.json +118 -0
  140. package/dist-ai/components/result.md +66 -0
  141. package/dist-ai/components/row.json +115 -0
  142. package/dist-ai/components/row.md +68 -0
  143. package/dist-ai/components/scrollbar.json +280 -0
  144. package/dist-ai/components/scrollbar.md +89 -0
  145. package/dist-ai/components/segmented.json +204 -0
  146. package/dist-ai/components/segmented.md +81 -0
  147. package/dist-ai/components/select-v2.json +729 -0
  148. package/dist-ai/components/select-v2.md +193 -0
  149. package/dist-ai/components/select.json +697 -0
  150. package/dist-ai/components/select.md +188 -0
  151. package/dist-ai/components/skeleton-item.json +80 -0
  152. package/dist-ai/components/skeleton-item.md +57 -0
  153. package/dist-ai/components/skeleton.json +134 -0
  154. package/dist-ai/components/skeleton.md +65 -0
  155. package/dist-ai/components/slider.json +326 -0
  156. package/dist-ai/components/slider.md +88 -0
  157. package/dist-ai/components/space.json +178 -0
  158. package/dist-ai/components/space.md +73 -0
  159. package/dist-ai/components/statistic.json +167 -0
  160. package/dist-ai/components/statistic.md +66 -0
  161. package/dist-ai/components/step.json +124 -0
  162. package/dist-ai/components/step.md +69 -0
  163. package/dist-ai/components/steps.json +157 -0
  164. package/dist-ai/components/steps.md +79 -0
  165. package/dist-ai/components/sub-menu.json +211 -0
  166. package/dist-ai/components/sub-menu.md +88 -0
  167. package/dist-ai/components/switch.json +292 -0
  168. package/dist-ai/components/switch.md +88 -0
  169. package/dist-ai/components/tab-pane.json +137 -0
  170. package/dist-ai/components/tab-pane.md +72 -0
  171. package/dist-ai/components/table-column.json +368 -0
  172. package/dist-ai/components/table-column.md +103 -0
  173. package/dist-ai/components/table-v2.json +486 -0
  174. package/dist-ai/components/table-v2.md +123 -0
  175. package/dist-ai/components/table.json +734 -0
  176. package/dist-ai/components/table.md +205 -0
  177. package/dist-ai/components/tabs.json +231 -0
  178. package/dist-ai/components/tabs.md +127 -0
  179. package/dist-ai/components/tag.json +205 -0
  180. package/dist-ai/components/tag.md +105 -0
  181. package/dist-ai/components/text.json +143 -0
  182. package/dist-ai/components/text.md +66 -0
  183. package/dist-ai/components/time-picker.json +555 -0
  184. package/dist-ai/components/time-picker.md +123 -0
  185. package/dist-ai/components/time-select.json +321 -0
  186. package/dist-ai/components/time-select.md +93 -0
  187. package/dist-ai/components/timeline-item.json +186 -0
  188. package/dist-ai/components/timeline-item.md +78 -0
  189. package/dist-ai/components/timeline.json +99 -0
  190. package/dist-ai/components/timeline.md +65 -0
  191. package/dist-ai/components/tooltip.json +599 -0
  192. package/dist-ai/components/tooltip.md +137 -0
  193. package/dist-ai/components/tour-step.json +219 -0
  194. package/dist-ai/components/tour-step.md +88 -0
  195. package/dist-ai/components/tour.json +258 -0
  196. package/dist-ai/components/tour.md +96 -0
  197. package/dist-ai/components/transfer.json +275 -0
  198. package/dist-ai/components/transfer.md +95 -0
  199. package/dist-ai/components/tree-select.json +945 -0
  200. package/dist-ai/components/tree-select.md +181 -0
  201. package/dist-ai/components/tree-v2.json +395 -0
  202. package/dist-ai/components/tree-v2.md +113 -0
  203. package/dist-ai/components/tree.json +485 -0
  204. package/dist-ai/components/tree.md +131 -0
  205. package/dist-ai/components/upload.json +382 -0
  206. package/dist-ai/components/upload.md +130 -0
  207. package/dist-ai/components/watermark.json +157 -0
  208. package/dist-ai/components/watermark.md +66 -0
  209. package/dist-ai/directives/click-outside.json +61 -0
  210. package/dist-ai/directives/click-outside.md +50 -0
  211. package/dist-ai/directives/infinite-scroll.json +83 -0
  212. package/dist-ai/directives/infinite-scroll.md +62 -0
  213. package/dist-ai/directives/loading.json +89 -0
  214. package/dist-ai/directives/loading.md +69 -0
  215. package/dist-ai/directives/mousewheel.json +54 -0
  216. package/dist-ai/directives/mousewheel.md +48 -0
  217. package/dist-ai/directives/repeat-click.json +68 -0
  218. package/dist-ai/directives/repeat-click.md +49 -0
  219. package/dist-ai/directives/trap-focus.json +46 -0
  220. package/dist-ai/directives/trap-focus.md +46 -0
  221. package/dist-ai/icons.json +1 -0
  222. package/dist-ai/index.json +1 -0
  223. package/dist-ai/llms.txt +170 -0
  224. package/dist-ai/manifest.json +26590 -0
  225. package/dist-ai/schema/manifest.schema.json +793 -0
  226. package/dist-ai/services/infinite-scroll.json +80 -0
  227. package/dist-ai/services/infinite-scroll.md +71 -0
  228. package/dist-ai/services/loading.json +108 -0
  229. package/dist-ai/services/loading.md +58 -0
  230. package/dist-ai/services/message-box.json +159 -0
  231. package/dist-ai/services/message-box.md +78 -0
  232. package/dist-ai/services/message.json +137 -0
  233. package/dist-ai/services/message.md +72 -0
  234. package/dist-ai/services/notification.json +136 -0
  235. package/dist-ai/services/notification.md +73 -0
  236. package/package.json +12 -2
@@ -0,0 +1,129 @@
1
+ {
2
+ "entry": {
3
+ "category": "basic",
4
+ "events": [
5
+ {
6
+ "description": "激活面板变化时触发",
7
+ "name": "update:modelValue",
8
+ "params": "(value: string | number | (string | number)[])"
9
+ },
10
+ {
11
+ "description": "激活面板变化时触发",
12
+ "name": "change",
13
+ "params": "(value: string | number | (string | number)[])"
14
+ }
15
+ ],
16
+ "exampleOmittedReason": null,
17
+ "examples": [
18
+ {
19
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpCollapse, EpCollapseItem } from 'ep-craft'\n\nconst activeNames = ref(['1'])\n</script>\n\n<template>\n <ep-collapse v-model=\"activeNames\">\n <ep-collapse-item title=\"面板一\" name=\"1\">面板一的内容</ep-collapse-item>\n <ep-collapse-item title=\"面板二\" name=\"2\">面板二的内容</ep-collapse-item>\n </ep-collapse>\n</template>",
20
+ "id": "collapse-1",
21
+ "language": "vue",
22
+ "title": "折叠面板"
23
+ }
24
+ ],
25
+ "exposes": [],
26
+ "hot": false,
27
+ "id": "component:collapse",
28
+ "keywords": {
29
+ "en": [
30
+ "collapse",
31
+ "accordion",
32
+ "fold",
33
+ "basic"
34
+ ],
35
+ "zh": [
36
+ "折叠面板",
37
+ "基础"
38
+ ]
39
+ },
40
+ "kind": "component",
41
+ "name": "EpCollapse",
42
+ "nonUseCases": [
43
+ "需要完全自定义原生行为或视觉时"
44
+ ],
45
+ "props": [
46
+ {
47
+ "alias": null,
48
+ "defaultText": "false",
49
+ "description": "是否开启手风琴模式",
50
+ "hasDefault": false,
51
+ "name": "accordion",
52
+ "required": false,
53
+ "type": "boolean"
54
+ },
55
+ {
56
+ "alias": "v-model",
57
+ "defaultText": "[]",
58
+ "description": "当前激活的面板,手风琴模式下为 string,否则为 array",
59
+ "hasDefault": true,
60
+ "name": "modelValue",
61
+ "required": false,
62
+ "type": "string | number | (string | number)[]"
63
+ },
64
+ {
65
+ "alias": null,
66
+ "defaultText": "right",
67
+ "description": "展开图标位置",
68
+ "hasDefault": true,
69
+ "name": "expandIconPosition",
70
+ "required": false,
71
+ "type": "'left' | 'right'"
72
+ },
73
+ {
74
+ "alias": null,
75
+ "defaultText": null,
76
+ "description": "折叠状态改变前的钩子,返回 false 或 reject 则阻止改变",
77
+ "hasDefault": false,
78
+ "name": "beforeCollapse",
79
+ "required": false,
80
+ "type": "(name: string | number) => boolean | Promise<boolean>"
81
+ }
82
+ ],
83
+ "related": [
84
+ "EpCollapseItem",
85
+ "EpTabs"
86
+ ],
87
+ "relations": {
88
+ "children": [
89
+ "EpCollapseItem"
90
+ ],
91
+ "combos": [
92
+ "EpCollapse + EpCollapseItem"
93
+ ],
94
+ "parents": [],
95
+ "requiredChildren": [
96
+ "EpCollapseItem"
97
+ ]
98
+ },
99
+ "slots": [
100
+ {
101
+ "description": "折叠面板内容,通常放置 ep-collapse-item",
102
+ "name": "default"
103
+ }
104
+ ],
105
+ "slug": "collapse",
106
+ "summary": "折叠面板,基础交互与展示元素",
107
+ "tag": "ep-collapse",
108
+ "useCases": [
109
+ "页面中的折叠面板展示与交互",
110
+ "为折叠面板提供统一视觉与状态"
111
+ ],
112
+ "variants": [],
113
+ "visual": {
114
+ "cssVars": [
115
+ "--el-color-primary",
116
+ "--el-border-radius-base",
117
+ "--el-font-size-base"
118
+ ],
119
+ "density": "中等",
120
+ "shape": "圆角矩形",
121
+ "slotContent": [
122
+ "default:折叠面板内容,通常放置 ep-collapse-item"
123
+ ]
124
+ }
125
+ },
126
+ "generatedAt": "2026-11-03T03:09:12.050Z",
127
+ "libraryVersion": "0.2.0",
128
+ "schemaVersion": 1
129
+ }
@@ -0,0 +1,76 @@
1
+ # EpCollapse
2
+
3
+ `ep-collapse` · basic(基础) · `component:collapse`
4
+
5
+ ## 摘要
6
+
7
+ 折叠面板,基础交互与展示元素
8
+
9
+ ## 适用场景
10
+
11
+ - 适用:页面中的折叠面板展示与交互
12
+ - 适用:为折叠面板提供统一视觉与状态
13
+ - 不适用:需要完全自定义原生行为或视觉时
14
+
15
+ ## 关键词
16
+
17
+ - 中文:折叠面板、基础
18
+ - English: collapse, accordion, fold, basic
19
+
20
+ ## Props
21
+
22
+ - accordion (boolean):是否开启手风琴模式
23
+ - modelValue(别名 v-model) (string | number | (string | number)[],默认 []):当前激活的面板,手风琴模式下为 string,否则为 array
24
+ - expandIconPosition ('left' | 'right',默认 right):展开图标位置
25
+ - beforeCollapse ((name: string | number) => boolean | Promise<boolean>):折叠状态改变前的钩子,返回 false 或 reject 则阻止改变
26
+
27
+ ## Events
28
+
29
+ - update:modelValue((value: string | number | (string | number)[])):激活面板变化时触发
30
+ - change((value: string | number | (string | number)[])):激活面板变化时触发
31
+
32
+ ## Slots
33
+
34
+ - default:折叠面板内容,通常放置 ep-collapse-item
35
+
36
+ ## 关系
37
+
38
+ - 子级:EpCollapseItem
39
+ - 必需子组件:EpCollapseItem
40
+ - 常用组合:EpCollapse + EpCollapseItem
41
+
42
+ ## 视觉提示
43
+
44
+ - 形状:圆角矩形
45
+ - 密度:中等
46
+ - 插槽内容:default:折叠面板内容,通常放置 ep-collapse-item
47
+ - CSS 变量:--el-color-primary、--el-border-radius-base、--el-font-size-base
48
+
49
+ ## 示例
50
+
51
+ ### 折叠面板
52
+
53
+ ```vue
54
+ <script setup lang="ts">
55
+ import { ref } from 'vue'
56
+ import { EpCollapse, EpCollapseItem } from 'ep-craft'
57
+
58
+ const activeNames = ref(['1'])
59
+ </script>
60
+
61
+ <template>
62
+ <ep-collapse v-model="activeNames">
63
+ <ep-collapse-item title="面板一" name="1">面板一的内容</ep-collapse-item>
64
+ <ep-collapse-item title="面板二" name="2">面板二的内容</ep-collapse-item>
65
+ </ep-collapse>
66
+ </template>
67
+ ```
68
+
69
+ ## 相关条目
70
+
71
+ - EpCollapseItem
72
+ - EpTabs
73
+
74
+ ---
75
+
76
+ ep-craft 0.2.0
@@ -0,0 +1,280 @@
1
+ {
2
+ "entry": {
3
+ "category": "form",
4
+ "events": [
5
+ {
6
+ "description": "绑定值变化时触发",
7
+ "name": "update:modelValue",
8
+ "params": "(value: string | null)"
9
+ },
10
+ {
11
+ "description": "值确认变化时触发",
12
+ "name": "change",
13
+ "params": "(value: string | null)"
14
+ },
15
+ {
16
+ "description": "面板拖动时实时触发",
17
+ "name": "activeChange",
18
+ "params": "(value: string | null)"
19
+ },
20
+ {
21
+ "description": "聚焦时触发",
22
+ "name": "focus",
23
+ "params": "(evt: FocusEvent)"
24
+ },
25
+ {
26
+ "description": "失焦时触发",
27
+ "name": "blur",
28
+ "params": "(evt: FocusEvent)"
29
+ },
30
+ {
31
+ "description": "清空时触发",
32
+ "name": "clear",
33
+ "params": "—"
34
+ }
35
+ ],
36
+ "exampleOmittedReason": null,
37
+ "examples": [
38
+ {
39
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpColorPicker } from 'ep-craft'\n\nconst color = ref('#409eff')\n</script>\n\n<template>\n <ep-color-picker v-model=\"color\" show-alpha />\n</template>",
40
+ "id": "color-picker-1",
41
+ "language": "vue",
42
+ "title": "颜色选择"
43
+ }
44
+ ],
45
+ "exposes": [],
46
+ "hot": false,
47
+ "id": "component:color-picker",
48
+ "keywords": {
49
+ "en": [
50
+ "color-picker",
51
+ "color",
52
+ "picker",
53
+ "form"
54
+ ],
55
+ "zh": [
56
+ "颜色选择器",
57
+ "表单"
58
+ ]
59
+ },
60
+ "kind": "component",
61
+ "name": "EpColorPicker",
62
+ "nonUseCases": [
63
+ "仅展示静态文本或只读数据时"
64
+ ],
65
+ "props": [
66
+ {
67
+ "alias": null,
68
+ "defaultText": "true",
69
+ "description": "面板未激活且该值为 false 时是否销毁",
70
+ "hasDefault": true,
71
+ "name": "persistent",
72
+ "required": false,
73
+ "type": "boolean"
74
+ },
75
+ {
76
+ "alias": "v-model",
77
+ "defaultText": null,
78
+ "description": "绑定值",
79
+ "hasDefault": true,
80
+ "name": "modelValue",
81
+ "required": false,
82
+ "type": "string | null"
83
+ },
84
+ {
85
+ "alias": null,
86
+ "defaultText": null,
87
+ "description": "ColorPicker id",
88
+ "hasDefault": false,
89
+ "name": "id",
90
+ "required": false,
91
+ "type": "string"
92
+ },
93
+ {
94
+ "alias": null,
95
+ "defaultText": "false",
96
+ "description": "是否显示透明度滑块",
97
+ "hasDefault": false,
98
+ "name": "showAlpha",
99
+ "required": false,
100
+ "type": "boolean"
101
+ },
102
+ {
103
+ "alias": null,
104
+ "defaultText": null,
105
+ "description": "v-model 的颜色格式",
106
+ "hasDefault": false,
107
+ "name": "colorFormat",
108
+ "required": false,
109
+ "type": "'hex' | 'rgb' | 'hsl' | 'hsv'"
110
+ },
111
+ {
112
+ "alias": null,
113
+ "defaultText": null,
114
+ "description": "是否禁用",
115
+ "hasDefault": true,
116
+ "name": "disabled",
117
+ "required": false,
118
+ "type": "boolean"
119
+ },
120
+ {
121
+ "alias": null,
122
+ "defaultText": "true",
123
+ "description": "是否显示清空按钮",
124
+ "hasDefault": true,
125
+ "name": "clearable",
126
+ "required": false,
127
+ "type": "boolean"
128
+ },
129
+ {
130
+ "alias": null,
131
+ "defaultText": null,
132
+ "description": "尺寸",
133
+ "hasDefault": false,
134
+ "name": "size",
135
+ "required": false,
136
+ "type": "'large' | 'default' | 'small'"
137
+ },
138
+ {
139
+ "alias": null,
140
+ "defaultText": null,
141
+ "description": "下拉面板自定义类名",
142
+ "hasDefault": false,
143
+ "name": "popperClass",
144
+ "required": false,
145
+ "type": "string"
146
+ },
147
+ {
148
+ "alias": null,
149
+ "defaultText": null,
150
+ "description": "下拉面板自定义样式",
151
+ "hasDefault": true,
152
+ "name": "popperStyle",
153
+ "required": false,
154
+ "type": "string | object | array"
155
+ },
156
+ {
157
+ "alias": null,
158
+ "defaultText": "0",
159
+ "description": "tabindex",
160
+ "hasDefault": true,
161
+ "name": "tabindex",
162
+ "required": false,
163
+ "type": "string | number"
164
+ },
165
+ {
166
+ "alias": null,
167
+ "defaultText": null,
168
+ "description": "是否将面板 teleport 到 body",
169
+ "hasDefault": true,
170
+ "name": "teleported",
171
+ "required": false,
172
+ "type": "boolean"
173
+ },
174
+ {
175
+ "alias": null,
176
+ "defaultText": null,
177
+ "description": "面板挂载的容器",
178
+ "hasDefault": false,
179
+ "name": "appendTo",
180
+ "required": false,
181
+ "type": "string | HTMLElement"
182
+ },
183
+ {
184
+ "alias": null,
185
+ "defaultText": null,
186
+ "description": "预定义颜色列表",
187
+ "hasDefault": false,
188
+ "name": "predefine",
189
+ "required": false,
190
+ "type": "string[]"
191
+ },
192
+ {
193
+ "alias": null,
194
+ "defaultText": "true",
195
+ "description": "是否触发表单校验",
196
+ "hasDefault": true,
197
+ "name": "validateEvent",
198
+ "required": false,
199
+ "type": "boolean"
200
+ },
201
+ {
202
+ "alias": null,
203
+ "defaultText": null,
204
+ "description": "空值数组,用于判断是否为空",
205
+ "hasDefault": false,
206
+ "name": "emptyValues",
207
+ "required": false,
208
+ "type": "Arrayable<undefined | null | ''>"
209
+ },
210
+ {
211
+ "alias": null,
212
+ "defaultText": null,
213
+ "description": "清空后的值",
214
+ "hasDefault": true,
215
+ "name": "valueOnClear",
216
+ "required": false,
217
+ "type": "'auto' | string | number | boolean | Function | null"
218
+ },
219
+ {
220
+ "alias": null,
221
+ "defaultText": null,
222
+ "description": "原生 aria-label 属性",
223
+ "hasDefault": false,
224
+ "name": "ariaLabel",
225
+ "required": false,
226
+ "type": "string"
227
+ }
228
+ ],
229
+ "related": [
230
+ "EpInput",
231
+ "EpPopover"
232
+ ],
233
+ "relations": {
234
+ "children": [],
235
+ "combos": [],
236
+ "parents": [],
237
+ "requiredChildren": []
238
+ },
239
+ "slots": [],
240
+ "slug": "color-picker",
241
+ "summary": "颜色选择器,表单数据录入控件",
242
+ "tag": "ep-color-picker",
243
+ "useCases": [
244
+ "表单中收集或编辑颜色选择器数据",
245
+ "与 EpForm、EpFormItem 组合完成校验"
246
+ ],
247
+ "variants": [
248
+ {
249
+ "dimension": "size",
250
+ "values": [
251
+ "large",
252
+ "default",
253
+ "small"
254
+ ],
255
+ "when": "按容器空间与信息密度选择尺寸"
256
+ },
257
+ {
258
+ "dimension": "state",
259
+ "values": [
260
+ "disabled"
261
+ ],
262
+ "when": "通过布尔属性切换禁用、加载或选中状态"
263
+ }
264
+ ],
265
+ "visual": {
266
+ "cssVars": [
267
+ "--el-border-color",
268
+ "--el-border-radius-base",
269
+ "--el-color-primary",
270
+ "--el-font-size-base"
271
+ ],
272
+ "density": "中等",
273
+ "shape": "矩形输入框",
274
+ "slotContent": []
275
+ }
276
+ },
277
+ "generatedAt": "2026-11-03T03:09:12.050Z",
278
+ "libraryVersion": "0.2.0",
279
+ "schemaVersion": 1
280
+ }
@@ -0,0 +1,85 @@
1
+ # EpColorPicker
2
+
3
+ `ep-color-picker` · form(表单) · `component:color-picker`
4
+
5
+ ## 摘要
6
+
7
+ 颜色选择器,表单数据录入控件
8
+
9
+ ## 适用场景
10
+
11
+ - 适用:表单中收集或编辑颜色选择器数据
12
+ - 适用:与 EpForm、EpFormItem 组合完成校验
13
+ - 不适用:仅展示静态文本或只读数据时
14
+
15
+ ## 关键词
16
+
17
+ - 中文:颜色选择器、表单
18
+ - English: color-picker, color, picker, form
19
+
20
+ ## 变体
21
+
22
+ - size: large/default/small(按容器空间与信息密度选择尺寸)
23
+ - state: disabled(通过布尔属性切换禁用、加载或选中状态)
24
+
25
+ ## Props
26
+
27
+ - persistent (boolean,默认 true):面板未激活且该值为 false 时是否销毁
28
+ - modelValue(别名 v-model) (string | null,默认 见文档):绑定值
29
+ - id (string):ColorPicker id
30
+ - showAlpha (boolean):是否显示透明度滑块
31
+ - colorFormat ('hex' | 'rgb' | 'hsl' | 'hsv'):v-model 的颜色格式
32
+ - disabled (boolean,默认 见文档):是否禁用
33
+ - clearable (boolean,默认 true):是否显示清空按钮
34
+ - size ('large' | 'default' | 'small'):尺寸
35
+ - popperClass (string):下拉面板自定义类名
36
+ - popperStyle (string | object | array,默认 见文档):下拉面板自定义样式
37
+ - tabindex (string | number,默认 0):tabindex
38
+ - teleported (boolean,默认 见文档):是否将面板 teleport 到 body
39
+ - appendTo (string | HTMLElement):面板挂载的容器
40
+ - predefine (string[]):预定义颜色列表
41
+ - validateEvent (boolean,默认 true):是否触发表单校验
42
+ - emptyValues (Arrayable<undefined | null | ''>):空值数组,用于判断是否为空
43
+ - valueOnClear ('auto' | string | number | boolean | Function | null,默认 见文档):清空后的值
44
+ - ariaLabel (string):原生 aria-label 属性
45
+
46
+ ## Events
47
+
48
+ - update:modelValue((value: string | null)):绑定值变化时触发
49
+ - change((value: string | null)):值确认变化时触发
50
+ - activeChange((value: string | null)):面板拖动时实时触发
51
+ - focus((evt: FocusEvent)):聚焦时触发
52
+ - blur((evt: FocusEvent)):失焦时触发
53
+ - clear(—):清空时触发
54
+
55
+ ## 视觉提示
56
+
57
+ - 形状:矩形输入框
58
+ - 密度:中等
59
+ - CSS 变量:--el-border-color、--el-border-radius-base、--el-color-primary、--el-font-size-base
60
+
61
+ ## 示例
62
+
63
+ ### 颜色选择
64
+
65
+ ```vue
66
+ <script setup lang="ts">
67
+ import { ref } from 'vue'
68
+ import { EpColorPicker } from 'ep-craft'
69
+
70
+ const color = ref('#409eff')
71
+ </script>
72
+
73
+ <template>
74
+ <ep-color-picker v-model="color" show-alpha />
75
+ </template>
76
+ ```
77
+
78
+ ## 相关条目
79
+
80
+ - EpInput
81
+ - EpPopover
82
+
83
+ ---
84
+
85
+ ep-craft 0.2.0