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,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "data",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "选中的日期变化时触发",
|
|
7
|
+
"name": "update:modelValue",
|
|
8
|
+
"params": "(value: Date)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"description": "选中的日期变化时触发",
|
|
12
|
+
"name": "input",
|
|
13
|
+
"params": "(value: Date)"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"exampleOmittedReason": null,
|
|
17
|
+
"examples": [
|
|
18
|
+
{
|
|
19
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpCalendar } from 'ep-craft'\n\nconst date = ref(new Date())\n</script>\n\n<template>\n <ep-calendar v-model=\"date\" style=\"height: 500px\" />\n</template>",
|
|
20
|
+
"id": "calendar-1",
|
|
21
|
+
"language": "vue",
|
|
22
|
+
"title": "日历"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"exposes": [
|
|
26
|
+
{
|
|
27
|
+
"description": "当前选中的日期",
|
|
28
|
+
"name": "selectedDay",
|
|
29
|
+
"type": "ComputedRef<Dayjs>"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "选择指定日期",
|
|
33
|
+
"name": "pickDay",
|
|
34
|
+
"type": "(day: Dayjs) => void"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"description": "按类型切换日期",
|
|
38
|
+
"name": "selectDate",
|
|
39
|
+
"type": "(type: 'prev-month' | 'next-month' | 'prev-year' | 'next-year' | 'today') => void"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"description": "根据起止时间计算有效日期范围",
|
|
43
|
+
"name": "calculateValidatedDateRange",
|
|
44
|
+
"type": "(...args: any[]) => unknown"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"hot": false,
|
|
48
|
+
"id": "component:calendar",
|
|
49
|
+
"keywords": {
|
|
50
|
+
"en": [
|
|
51
|
+
"calendar",
|
|
52
|
+
"date",
|
|
53
|
+
"data"
|
|
54
|
+
],
|
|
55
|
+
"zh": [
|
|
56
|
+
"日历",
|
|
57
|
+
"数据"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"kind": "component",
|
|
61
|
+
"name": "EpCalendar",
|
|
62
|
+
"nonUseCases": [
|
|
63
|
+
"数据量极小且无需结构化展示时"
|
|
64
|
+
],
|
|
65
|
+
"props": [
|
|
66
|
+
{
|
|
67
|
+
"alias": "v-model",
|
|
68
|
+
"defaultText": null,
|
|
69
|
+
"description": "绑定值,选中的日期",
|
|
70
|
+
"hasDefault": false,
|
|
71
|
+
"name": "modelValue",
|
|
72
|
+
"required": false,
|
|
73
|
+
"type": "Date"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"alias": null,
|
|
77
|
+
"defaultText": null,
|
|
78
|
+
"description": "时间范围,起止时间须为周起止日,跨度不能超过两个月",
|
|
79
|
+
"hasDefault": false,
|
|
80
|
+
"name": "range",
|
|
81
|
+
"required": false,
|
|
82
|
+
"type": "[Date, Date]"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"alias": null,
|
|
86
|
+
"defaultText": "button",
|
|
87
|
+
"description": "头部控制器类型",
|
|
88
|
+
"hasDefault": true,
|
|
89
|
+
"name": "controllerType",
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": "'button' | 'select'"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"alias": null,
|
|
95
|
+
"defaultText": null,
|
|
96
|
+
"description": "`controller-type` 为 select 时的年月格式化函数",
|
|
97
|
+
"hasDefault": false,
|
|
98
|
+
"name": "formatter",
|
|
99
|
+
"required": false,
|
|
100
|
+
"type": "(value: number, type: 'year' | 'month') => string | number"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"related": [
|
|
104
|
+
"EpDatePicker"
|
|
105
|
+
],
|
|
106
|
+
"relations": {
|
|
107
|
+
"children": [],
|
|
108
|
+
"combos": [],
|
|
109
|
+
"parents": [],
|
|
110
|
+
"requiredChildren": []
|
|
111
|
+
},
|
|
112
|
+
"slots": [
|
|
113
|
+
{
|
|
114
|
+
"description": "自定义头部内容,参数为 `{ date: string }`",
|
|
115
|
+
"name": "header"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"description": "自定义日期单元格内容",
|
|
119
|
+
"name": "date-cell"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"slug": "calendar",
|
|
123
|
+
"summary": "日历,结构化数据展示",
|
|
124
|
+
"tag": "ep-calendar",
|
|
125
|
+
"useCases": [
|
|
126
|
+
"展示日历类结构化数据",
|
|
127
|
+
"需要浏览、比较或定位数据时"
|
|
128
|
+
],
|
|
129
|
+
"variants": [],
|
|
130
|
+
"visual": {
|
|
131
|
+
"cssVars": [
|
|
132
|
+
"--el-border-color-lighter",
|
|
133
|
+
"--el-bg-color",
|
|
134
|
+
"--el-text-color-regular",
|
|
135
|
+
"--el-font-size-base"
|
|
136
|
+
],
|
|
137
|
+
"density": "紧凑",
|
|
138
|
+
"shape": "块级数据区域",
|
|
139
|
+
"slotContent": [
|
|
140
|
+
"header:自定义头部内容,参数为 `{ date: string }`",
|
|
141
|
+
"date-cell:自定义日期单元格内容"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
146
|
+
"libraryVersion": "0.2.0",
|
|
147
|
+
"schemaVersion": 1
|
|
148
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# EpCalendar
|
|
2
|
+
|
|
3
|
+
`ep-calendar` · data(数据展示) · `component:calendar`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
日历,结构化数据展示
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示日历类结构化数据
|
|
12
|
+
- 适用:需要浏览、比较或定位数据时
|
|
13
|
+
- 不适用:数据量极小且无需结构化展示时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:日历、数据
|
|
18
|
+
- English: calendar, date, data
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- modelValue(别名 v-model) (Date):绑定值,选中的日期
|
|
23
|
+
- range ([Date, Date]):时间范围,起止时间须为周起止日,跨度不能超过两个月
|
|
24
|
+
- controllerType ('button' | 'select',默认 button):头部控制器类型
|
|
25
|
+
- formatter ((value: number, type: 'year' | 'month') => string | number):`controller-type` 为 select 时的年月格式化函数
|
|
26
|
+
|
|
27
|
+
## Events
|
|
28
|
+
|
|
29
|
+
- update:modelValue((value: Date)):选中的日期变化时触发
|
|
30
|
+
- input((value: Date)):选中的日期变化时触发
|
|
31
|
+
|
|
32
|
+
## Slots
|
|
33
|
+
|
|
34
|
+
- header:自定义头部内容,参数为 `{ date: string }`
|
|
35
|
+
- date-cell:自定义日期单元格内容
|
|
36
|
+
|
|
37
|
+
## Exposes
|
|
38
|
+
|
|
39
|
+
- selectedDay(ComputedRef<Dayjs>):当前选中的日期
|
|
40
|
+
- pickDay((day: Dayjs) => void):选择指定日期
|
|
41
|
+
- selectDate((type: 'prev-month' | 'next-month' | 'prev-year' | 'next-year' | 'today') => void):按类型切换日期
|
|
42
|
+
- calculateValidatedDateRange((...args: any[]) => unknown):根据起止时间计算有效日期范围
|
|
43
|
+
|
|
44
|
+
## 视觉提示
|
|
45
|
+
|
|
46
|
+
- 形状:块级数据区域
|
|
47
|
+
- 密度:紧凑
|
|
48
|
+
- 插槽内容:header:自定义头部内容,参数为 `{ date: string }`;date-cell:自定义日期单元格内容
|
|
49
|
+
- CSS 变量:--el-border-color-lighter、--el-bg-color、--el-text-color-regular、--el-font-size-base
|
|
50
|
+
|
|
51
|
+
## 示例
|
|
52
|
+
|
|
53
|
+
### 日历
|
|
54
|
+
|
|
55
|
+
```vue
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import { ref } from 'vue'
|
|
58
|
+
import { EpCalendar } from 'ep-craft'
|
|
59
|
+
|
|
60
|
+
const date = ref(new Date())
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<template>
|
|
64
|
+
<ep-calendar v-model="date" style="height: 500px" />
|
|
65
|
+
</template>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 相关条目
|
|
69
|
+
|
|
70
|
+
- EpDatePicker
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "basic",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpCard } from 'ep-craft'\n</script>\n\n<template>\n <ep-card header=\"项目概览\">\n 这里是卡片内容。\n </ep-card>\n</template>",
|
|
9
|
+
"id": "card-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "基础卡片"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"code": "<script setup lang=\"ts\">\nimport { EpCard } from 'ep-craft'\n</script>\n\n<template>\n <ep-card shadow=\"always\">\n <template #header>审批记录</template>\n 共 3 条记录\n <template #footer>最后更新于今天</template>\n </ep-card>\n</template>",
|
|
15
|
+
"id": "card-2",
|
|
16
|
+
"language": "vue",
|
|
17
|
+
"title": "页头与页脚"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"exposes": [],
|
|
21
|
+
"hot": true,
|
|
22
|
+
"id": "component:card",
|
|
23
|
+
"keywords": {
|
|
24
|
+
"en": [
|
|
25
|
+
"card",
|
|
26
|
+
"panel",
|
|
27
|
+
"tile",
|
|
28
|
+
"basic"
|
|
29
|
+
],
|
|
30
|
+
"zh": [
|
|
31
|
+
"卡片",
|
|
32
|
+
"面板",
|
|
33
|
+
"容器",
|
|
34
|
+
"基础"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"kind": "component",
|
|
38
|
+
"name": "EpCard",
|
|
39
|
+
"nonUseCases": [
|
|
40
|
+
"需要完全自定义原生行为或视觉时"
|
|
41
|
+
],
|
|
42
|
+
"props": [
|
|
43
|
+
{
|
|
44
|
+
"alias": null,
|
|
45
|
+
"defaultText": null,
|
|
46
|
+
"description": "卡片标题",
|
|
47
|
+
"hasDefault": true,
|
|
48
|
+
"name": "header",
|
|
49
|
+
"required": false,
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"alias": null,
|
|
54
|
+
"defaultText": null,
|
|
55
|
+
"description": "卡片页脚",
|
|
56
|
+
"hasDefault": true,
|
|
57
|
+
"name": "footer",
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"alias": null,
|
|
63
|
+
"defaultText": null,
|
|
64
|
+
"description": "body 的 CSS 样式",
|
|
65
|
+
"hasDefault": true,
|
|
66
|
+
"name": "bodyStyle",
|
|
67
|
+
"required": false,
|
|
68
|
+
"type": "CSSProperties"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"alias": null,
|
|
72
|
+
"defaultText": null,
|
|
73
|
+
"description": "",
|
|
74
|
+
"hasDefault": false,
|
|
75
|
+
"name": "headerClass",
|
|
76
|
+
"required": false,
|
|
77
|
+
"type": "unknown"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"alias": null,
|
|
81
|
+
"defaultText": null,
|
|
82
|
+
"description": "body 的自定义类名",
|
|
83
|
+
"hasDefault": false,
|
|
84
|
+
"name": "bodyClass",
|
|
85
|
+
"required": false,
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"alias": null,
|
|
90
|
+
"defaultText": null,
|
|
91
|
+
"description": "",
|
|
92
|
+
"hasDefault": false,
|
|
93
|
+
"name": "footerClass",
|
|
94
|
+
"required": false,
|
|
95
|
+
"type": "unknown"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"alias": null,
|
|
99
|
+
"defaultText": "always",
|
|
100
|
+
"description": "卡片阴影显示时机",
|
|
101
|
+
"hasDefault": true,
|
|
102
|
+
"name": "shadow",
|
|
103
|
+
"required": false,
|
|
104
|
+
"type": "'always' | 'hover' | 'never'"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"related": [
|
|
108
|
+
"EpContainer",
|
|
109
|
+
"EpRow",
|
|
110
|
+
"EpCol"
|
|
111
|
+
],
|
|
112
|
+
"relations": {
|
|
113
|
+
"children": [],
|
|
114
|
+
"combos": [],
|
|
115
|
+
"parents": [],
|
|
116
|
+
"requiredChildren": []
|
|
117
|
+
},
|
|
118
|
+
"slots": [
|
|
119
|
+
{
|
|
120
|
+
"description": "自定义默认内容",
|
|
121
|
+
"name": "default"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"description": "卡片标题内容",
|
|
125
|
+
"name": "header"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"description": "卡片页脚内容",
|
|
129
|
+
"name": "footer"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"slug": "card",
|
|
133
|
+
"summary": "内容卡片,承载分组信息与操作区域",
|
|
134
|
+
"tag": "ep-card",
|
|
135
|
+
"useCases": [
|
|
136
|
+
"页面模块分组与信息聚合",
|
|
137
|
+
"列表项或仪表盘指标容器"
|
|
138
|
+
],
|
|
139
|
+
"variants": [
|
|
140
|
+
{
|
|
141
|
+
"dimension": "effect",
|
|
142
|
+
"values": [
|
|
143
|
+
"always",
|
|
144
|
+
"hover",
|
|
145
|
+
"never"
|
|
146
|
+
],
|
|
147
|
+
"when": "通过视觉修饰属性调整外观效果"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"visual": {
|
|
151
|
+
"cssVars": [
|
|
152
|
+
"--el-color-primary",
|
|
153
|
+
"--el-border-radius-base",
|
|
154
|
+
"--el-font-size-base"
|
|
155
|
+
],
|
|
156
|
+
"density": "中等",
|
|
157
|
+
"shape": "圆角矩形",
|
|
158
|
+
"slotContent": [
|
|
159
|
+
"default:自定义默认内容",
|
|
160
|
+
"header:卡片标题内容",
|
|
161
|
+
"footer:卡片页脚内容"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
166
|
+
"libraryVersion": "0.2.0",
|
|
167
|
+
"schemaVersion": 1
|
|
168
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# EpCard
|
|
2
|
+
|
|
3
|
+
`ep-card` · basic(基础) · `component:card`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
内容卡片,承载分组信息与操作区域
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:页面模块分组与信息聚合
|
|
12
|
+
- 适用:列表项或仪表盘指标容器
|
|
13
|
+
- 不适用:需要完全自定义原生行为或视觉时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:卡片、面板、容器、基础
|
|
18
|
+
- English: card, panel, tile, basic
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- effect: always/hover/never(通过视觉修饰属性调整外观效果)
|
|
23
|
+
|
|
24
|
+
## Props
|
|
25
|
+
|
|
26
|
+
- header (string,默认 见文档):卡片标题
|
|
27
|
+
- footer (string,默认 见文档):卡片页脚
|
|
28
|
+
- bodyStyle (CSSProperties,默认 见文档):body 的 CSS 样式
|
|
29
|
+
- headerClass (unknown)
|
|
30
|
+
- bodyClass (string):body 的自定义类名
|
|
31
|
+
- footerClass (unknown)
|
|
32
|
+
- shadow ('always' | 'hover' | 'never',默认 always):卡片阴影显示时机
|
|
33
|
+
|
|
34
|
+
## Slots
|
|
35
|
+
|
|
36
|
+
- default:自定义默认内容
|
|
37
|
+
- header:卡片标题内容
|
|
38
|
+
- footer:卡片页脚内容
|
|
39
|
+
|
|
40
|
+
## 视觉提示
|
|
41
|
+
|
|
42
|
+
- 形状:圆角矩形
|
|
43
|
+
- 密度:中等
|
|
44
|
+
- 插槽内容:default:自定义默认内容;header:卡片标题内容;footer:卡片页脚内容
|
|
45
|
+
- CSS 变量:--el-color-primary、--el-border-radius-base、--el-font-size-base
|
|
46
|
+
|
|
47
|
+
## 示例
|
|
48
|
+
|
|
49
|
+
### 基础卡片
|
|
50
|
+
|
|
51
|
+
```vue
|
|
52
|
+
<script setup lang="ts">
|
|
53
|
+
import { EpCard } from 'ep-craft'
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<ep-card header="项目概览">
|
|
58
|
+
这里是卡片内容。
|
|
59
|
+
</ep-card>
|
|
60
|
+
</template>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 页头与页脚
|
|
64
|
+
|
|
65
|
+
```vue
|
|
66
|
+
<script setup lang="ts">
|
|
67
|
+
import { EpCard } from 'ep-craft'
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<template>
|
|
71
|
+
<ep-card shadow="always">
|
|
72
|
+
<template #header>审批记录</template>
|
|
73
|
+
共 3 条记录
|
|
74
|
+
<template #footer>最后更新于今天</template>
|
|
75
|
+
</ep-card>
|
|
76
|
+
</template>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## 相关条目
|
|
80
|
+
|
|
81
|
+
- EpContainer
|
|
82
|
+
- EpRow
|
|
83
|
+
- EpCol
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "data",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpCarousel, EpCarouselItem } from 'ep-craft'\n</script>\n\n<template>\n <ep-carousel height=\"200px\">\n <ep-carousel-item name=\"first\">\n <div style=\"height: 200px; background: #409eff\">第一页</div>\n </ep-carousel-item>\n <ep-carousel-item name=\"second\">\n <div style=\"height: 200px; background: #67c23a\">第二页</div>\n </ep-carousel-item>\n </ep-carousel>\n</template>",
|
|
9
|
+
"id": "carousel-item-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "走马灯项"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:carousel-item",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"carousel-item",
|
|
20
|
+
"carousel",
|
|
21
|
+
"item",
|
|
22
|
+
"slide",
|
|
23
|
+
"data"
|
|
24
|
+
],
|
|
25
|
+
"zh": [
|
|
26
|
+
"走马灯项",
|
|
27
|
+
"数据"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"kind": "component",
|
|
31
|
+
"name": "EpCarouselItem",
|
|
32
|
+
"nonUseCases": [
|
|
33
|
+
"数据量极小且无需结构化展示时"
|
|
34
|
+
],
|
|
35
|
+
"props": [
|
|
36
|
+
{
|
|
37
|
+
"alias": null,
|
|
38
|
+
"defaultText": "''",
|
|
39
|
+
"description": "幻灯片名称,可用于 setActiveItem",
|
|
40
|
+
"hasDefault": true,
|
|
41
|
+
"name": "name",
|
|
42
|
+
"required": false,
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"alias": null,
|
|
47
|
+
"defaultText": "''",
|
|
48
|
+
"description": "对应指示器的文本内容",
|
|
49
|
+
"hasDefault": true,
|
|
50
|
+
"name": "label",
|
|
51
|
+
"required": false,
|
|
52
|
+
"type": "string | number"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"related": [
|
|
56
|
+
"EpCarousel"
|
|
57
|
+
],
|
|
58
|
+
"relations": {
|
|
59
|
+
"children": [],
|
|
60
|
+
"combos": [
|
|
61
|
+
"EpCarousel + EpCarouselItem"
|
|
62
|
+
],
|
|
63
|
+
"parents": [
|
|
64
|
+
"EpCarousel"
|
|
65
|
+
],
|
|
66
|
+
"requiredChildren": []
|
|
67
|
+
},
|
|
68
|
+
"slots": [
|
|
69
|
+
{
|
|
70
|
+
"description": "幻灯片内容",
|
|
71
|
+
"name": "default"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"slug": "carousel-item",
|
|
75
|
+
"summary": "走马灯项,结构化数据展示",
|
|
76
|
+
"tag": "ep-carousel-item",
|
|
77
|
+
"useCases": [
|
|
78
|
+
"展示走马灯项类结构化数据",
|
|
79
|
+
"需要浏览、比较或定位数据时"
|
|
80
|
+
],
|
|
81
|
+
"variants": [],
|
|
82
|
+
"visual": {
|
|
83
|
+
"cssVars": [
|
|
84
|
+
"--el-border-color-lighter",
|
|
85
|
+
"--el-bg-color",
|
|
86
|
+
"--el-text-color-regular",
|
|
87
|
+
"--el-font-size-base"
|
|
88
|
+
],
|
|
89
|
+
"density": "紧凑",
|
|
90
|
+
"shape": "块级数据区域",
|
|
91
|
+
"slotContent": [
|
|
92
|
+
"default:幻灯片内容"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
97
|
+
"libraryVersion": "0.2.0",
|
|
98
|
+
"schemaVersion": 1
|
|
99
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# EpCarouselItem
|
|
2
|
+
|
|
3
|
+
`ep-carousel-item` · data(数据展示) · `component:carousel-item`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
走马灯项,结构化数据展示
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示走马灯项类结构化数据
|
|
12
|
+
- 适用:需要浏览、比较或定位数据时
|
|
13
|
+
- 不适用:数据量极小且无需结构化展示时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:走马灯项、数据
|
|
18
|
+
- English: carousel-item, carousel, item, slide, data
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- name (string,默认 ''):幻灯片名称,可用于 setActiveItem
|
|
23
|
+
- label (string | number,默认 ''):对应指示器的文本内容
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
- default:幻灯片内容
|
|
28
|
+
|
|
29
|
+
## 关系
|
|
30
|
+
|
|
31
|
+
- 父级:EpCarousel
|
|
32
|
+
- 常用组合:EpCarousel + EpCarouselItem
|
|
33
|
+
|
|
34
|
+
## 视觉提示
|
|
35
|
+
|
|
36
|
+
- 形状:块级数据区域
|
|
37
|
+
- 密度:紧凑
|
|
38
|
+
- 插槽内容:default:幻灯片内容
|
|
39
|
+
- CSS 变量:--el-border-color-lighter、--el-bg-color、--el-text-color-regular、--el-font-size-base
|
|
40
|
+
|
|
41
|
+
## 示例
|
|
42
|
+
|
|
43
|
+
### 走马灯项
|
|
44
|
+
|
|
45
|
+
```vue
|
|
46
|
+
<script setup lang="ts">
|
|
47
|
+
import { EpCarousel, EpCarouselItem } from 'ep-craft'
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<ep-carousel height="200px">
|
|
52
|
+
<ep-carousel-item name="first">
|
|
53
|
+
<div style="height: 200px; background: #409eff">第一页</div>
|
|
54
|
+
</ep-carousel-item>
|
|
55
|
+
<ep-carousel-item name="second">
|
|
56
|
+
<div style="height: 200px; background: #67c23a">第二页</div>
|
|
57
|
+
</ep-carousel-item>
|
|
58
|
+
</ep-carousel>
|
|
59
|
+
</template>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 相关条目
|
|
63
|
+
|
|
64
|
+
- EpCarousel
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
ep-craft 0.2.0
|