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,153 @@
|
|
|
1
|
+
# EpDatePicker
|
|
2
|
+
|
|
3
|
+
`ep-date-picker` · form(表单) · `component:date-picker`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
日期选择器,输入或选择日期时间
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:表单日期与时间字段
|
|
12
|
+
- 适用:日期范围筛选
|
|
13
|
+
- 不适用:仅展示静态文本或只读数据时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:日期选择器、日期选择、时间选择、日历、表单
|
|
18
|
+
- English: date-picker, date, picker, calendar, form
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- type: year/years/month/months/date/dates/datetime/week(通过 type 选择显示类型)
|
|
23
|
+
- size: large/default/small(按容器空间与信息密度选择尺寸)
|
|
24
|
+
- state: disabled/readonly(通过布尔属性切换禁用、加载或选中状态)
|
|
25
|
+
|
|
26
|
+
## Props
|
|
27
|
+
|
|
28
|
+
- automaticDropdown (unknown,默认 见文档)
|
|
29
|
+
- id (string | [string, string]):原生 id 属性
|
|
30
|
+
- name (string | [string, string]):原生 name 属性
|
|
31
|
+
- popperClass (string):DatePicker 下拉框的类名
|
|
32
|
+
- popperStyle (unknown,默认 见文档)
|
|
33
|
+
- format (string):显示在输入框中的格式
|
|
34
|
+
- valueFormat (string):可选,绑定值的格式
|
|
35
|
+
- dateFormat (unknown)
|
|
36
|
+
- timeFormat (unknown)
|
|
37
|
+
- type ('year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange',默认 date):显示类型
|
|
38
|
+
- clearable (boolean,默认 true):是否显示清除按钮
|
|
39
|
+
- clearIcon (string | Component,默认 CircleClose):自定义清空图标
|
|
40
|
+
- editable (boolean,默认 true):文本框可输入
|
|
41
|
+
- saveOnBlur (unknown,默认 见文档)
|
|
42
|
+
- prefixIcon (string | Component,默认 Calendar):自定义头部图标
|
|
43
|
+
- size ('large' | 'default' | 'small'):输入框尺寸
|
|
44
|
+
- readonly (boolean):只读
|
|
45
|
+
- disabled (boolean,默认 false):禁用
|
|
46
|
+
- placeholder (string,默认 见文档):非范围选择时的占位内容;范围形态下作为开启 float-label 后整体浮标的文案(未传时回退 start-placeholder)
|
|
47
|
+
- popperOptions (unknown,默认 见文档)
|
|
48
|
+
- modelValue(别名 v-model) (Date | string | number | Date[],默认 见文档):绑定值
|
|
49
|
+
- rangeSeparator (string,默认 '-'):选择范围时的分隔符
|
|
50
|
+
- startPlaceholder (string):范围选择时开始日期的占位内容
|
|
51
|
+
- endPlaceholder (string):范围选择时结束日期的占位内容
|
|
52
|
+
- defaultValue (Date | [Date, Date]):可选,选择器打开时默认显示的时间
|
|
53
|
+
- defaultTime (Date | [Date, Date]):范围选择时选中日期所使用的当日内具体时刻
|
|
54
|
+
- isRange (unknown)
|
|
55
|
+
- disabledHours (unknown)
|
|
56
|
+
- disabledMinutes (unknown)
|
|
57
|
+
- disabledSeconds (unknown)
|
|
58
|
+
- disabledDate ((date: Date) => boolean):一个用来判断该日期是否被禁用的函数
|
|
59
|
+
- cellClassName ((date: Date) => string):设置自定义类名
|
|
60
|
+
- shortcuts ({ text: string, value: Date | Function }[],默认 []):设置快捷选项
|
|
61
|
+
- arrowControl (unknown)
|
|
62
|
+
- tabindex (unknown,默认 见文档)
|
|
63
|
+
- validateEvent (unknown,默认 见文档)
|
|
64
|
+
- unlinkPanels (boolean):在范围选择器里取消两个日期面板之间的联动
|
|
65
|
+
- singlePanel (unknown)
|
|
66
|
+
- placement (unknown,默认 见文档)
|
|
67
|
+
- fallbackPlacements (unknown,默认 见文档)
|
|
68
|
+
- emptyValues (unknown)
|
|
69
|
+
- valueOnClear (unknown,默认 见文档)
|
|
70
|
+
- ariaLabel (unknown)
|
|
71
|
+
- showNow (unknown,默认 见文档)
|
|
72
|
+
- showConfirm (unknown,默认 见文档)
|
|
73
|
+
- showFooter (unknown,默认 见文档)
|
|
74
|
+
- showWeekNumber (unknown)
|
|
75
|
+
- floatLabel (boolean,默认 false):是否启用浮动标签(Material 风格),聚焦/展开面板或有值时占位文本上浮;范围形态在两端点均选后保持上浮
|
|
76
|
+
|
|
77
|
+
## Events
|
|
78
|
+
|
|
79
|
+
- update:modelValue((value: Date | string | number | Date[])):选定的日期变化时触发
|
|
80
|
+
|
|
81
|
+
## Exposes
|
|
82
|
+
|
|
83
|
+
- focus(() => void):使组件获取焦点
|
|
84
|
+
- handleOpen(() => void):打开日期选择器弹窗
|
|
85
|
+
- handleClose(() => void):关闭日期选择器弹窗
|
|
86
|
+
|
|
87
|
+
## 视觉提示
|
|
88
|
+
|
|
89
|
+
- 形状:矩形输入框
|
|
90
|
+
- 密度:中等
|
|
91
|
+
- 插槽内容:range-separator:自定义内容
|
|
92
|
+
- CSS 变量:--el-border-color、--el-border-radius-base、--el-color-primary、--el-font-size-base
|
|
93
|
+
|
|
94
|
+
## 示例
|
|
95
|
+
|
|
96
|
+
### 选择日期
|
|
97
|
+
|
|
98
|
+
```vue
|
|
99
|
+
<script setup lang="ts">
|
|
100
|
+
import { ref } from 'vue'
|
|
101
|
+
import { EpDatePicker } from 'ep-craft'
|
|
102
|
+
|
|
103
|
+
const date = ref('')
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<template>
|
|
107
|
+
<ep-date-picker v-model="date" type="date" placeholder="选择日期" />
|
|
108
|
+
</template>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 日期范围
|
|
112
|
+
|
|
113
|
+
```vue
|
|
114
|
+
<script setup lang="ts">
|
|
115
|
+
import { ref } from 'vue'
|
|
116
|
+
import { EpDatePicker } from 'ep-craft'
|
|
117
|
+
|
|
118
|
+
const range = ref(['', ''])
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<template>
|
|
122
|
+
<ep-date-picker
|
|
123
|
+
v-model="range"
|
|
124
|
+
type="daterange"
|
|
125
|
+
start-placeholder="开始日期"
|
|
126
|
+
end-placeholder="结束日期"
|
|
127
|
+
/>
|
|
128
|
+
</template>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### 选择月份
|
|
132
|
+
|
|
133
|
+
```vue
|
|
134
|
+
<script setup lang="ts">
|
|
135
|
+
import { ref } from 'vue'
|
|
136
|
+
import { EpDatePicker } from 'ep-craft'
|
|
137
|
+
|
|
138
|
+
const month = ref('')
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<template>
|
|
142
|
+
<ep-date-picker v-model="month" type="month" placeholder="选择月份" />
|
|
143
|
+
</template>
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 相关条目
|
|
147
|
+
|
|
148
|
+
- EpDatePickerPanel
|
|
149
|
+
- EpTimePicker
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "data",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpDescriptions, EpDescriptionsItem } from 'ep-craft'\n</script>\n\n<template>\n <ep-descriptions :column=\"1\">\n <ep-descriptions-item label=\"状态\">运行中</ep-descriptions-item>\n <ep-descriptions-item label=\"创建时间\">2026-01-01</ep-descriptions-item>\n </ep-descriptions>\n</template>",
|
|
9
|
+
"id": "descriptions-item-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "描述列表项"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:descriptions-item",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"descriptions-item",
|
|
20
|
+
"descriptions",
|
|
21
|
+
"item",
|
|
22
|
+
"data"
|
|
23
|
+
],
|
|
24
|
+
"zh": [
|
|
25
|
+
"描述列表项",
|
|
26
|
+
"数据"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"kind": "component",
|
|
30
|
+
"name": "EpDescriptionsItem",
|
|
31
|
+
"nonUseCases": [
|
|
32
|
+
"数据量极小且无需结构化展示时"
|
|
33
|
+
],
|
|
34
|
+
"props": [
|
|
35
|
+
{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"defaultText": "''",
|
|
38
|
+
"description": "标签文本",
|
|
39
|
+
"hasDefault": true,
|
|
40
|
+
"name": "label",
|
|
41
|
+
"required": false,
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"alias": null,
|
|
46
|
+
"defaultText": "1",
|
|
47
|
+
"description": "跨列数",
|
|
48
|
+
"hasDefault": true,
|
|
49
|
+
"name": "span",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "number"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"alias": null,
|
|
55
|
+
"defaultText": "1",
|
|
56
|
+
"description": "跨行数",
|
|
57
|
+
"hasDefault": true,
|
|
58
|
+
"name": "rowspan",
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"alias": null,
|
|
64
|
+
"defaultText": "''",
|
|
65
|
+
"description": "列宽,同一列以最大值生效",
|
|
66
|
+
"hasDefault": true,
|
|
67
|
+
"name": "width",
|
|
68
|
+
"required": false,
|
|
69
|
+
"type": "string | number"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"alias": null,
|
|
73
|
+
"defaultText": "''",
|
|
74
|
+
"description": "列最小宽度,按比例分配",
|
|
75
|
+
"hasDefault": true,
|
|
76
|
+
"name": "minWidth",
|
|
77
|
+
"required": false,
|
|
78
|
+
"type": "string | number"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"alias": null,
|
|
82
|
+
"defaultText": null,
|
|
83
|
+
"description": "标签列宽度,优先级高于 Descriptions 的 label-width",
|
|
84
|
+
"hasDefault": false,
|
|
85
|
+
"name": "labelWidth",
|
|
86
|
+
"required": false,
|
|
87
|
+
"type": "string | number"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"alias": null,
|
|
91
|
+
"defaultText": "left",
|
|
92
|
+
"description": "内容对齐方式",
|
|
93
|
+
"hasDefault": true,
|
|
94
|
+
"name": "align",
|
|
95
|
+
"required": false,
|
|
96
|
+
"type": "'left' | 'center' | 'right'"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"alias": null,
|
|
100
|
+
"defaultText": null,
|
|
101
|
+
"description": "标签对齐方式,缺省时沿用 align",
|
|
102
|
+
"hasDefault": false,
|
|
103
|
+
"name": "labelAlign",
|
|
104
|
+
"required": false,
|
|
105
|
+
"type": "'left' | 'center' | 'right'"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"alias": null,
|
|
109
|
+
"defaultText": "''",
|
|
110
|
+
"description": "内容自定义类名",
|
|
111
|
+
"hasDefault": true,
|
|
112
|
+
"name": "className",
|
|
113
|
+
"required": false,
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"alias": null,
|
|
118
|
+
"defaultText": "''",
|
|
119
|
+
"description": "标签自定义类名",
|
|
120
|
+
"hasDefault": true,
|
|
121
|
+
"name": "labelClassName",
|
|
122
|
+
"required": false,
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"related": [
|
|
127
|
+
"EpDescriptions"
|
|
128
|
+
],
|
|
129
|
+
"relations": {
|
|
130
|
+
"children": [],
|
|
131
|
+
"combos": [
|
|
132
|
+
"EpDescriptions + EpDescriptionsItem"
|
|
133
|
+
],
|
|
134
|
+
"parents": [
|
|
135
|
+
"EpDescriptions"
|
|
136
|
+
],
|
|
137
|
+
"requiredChildren": []
|
|
138
|
+
},
|
|
139
|
+
"slots": [
|
|
140
|
+
{
|
|
141
|
+
"description": "描述内容",
|
|
142
|
+
"name": "default"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"description": "自定义标签内容",
|
|
146
|
+
"name": "label"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"slug": "descriptions-item",
|
|
150
|
+
"summary": "描述列表项,结构化数据展示",
|
|
151
|
+
"tag": "ep-descriptions-item",
|
|
152
|
+
"useCases": [
|
|
153
|
+
"展示描述列表项类结构化数据",
|
|
154
|
+
"需要浏览、比较或定位数据时"
|
|
155
|
+
],
|
|
156
|
+
"variants": [],
|
|
157
|
+
"visual": {
|
|
158
|
+
"cssVars": [
|
|
159
|
+
"--el-border-color-lighter",
|
|
160
|
+
"--el-bg-color",
|
|
161
|
+
"--el-text-color-regular",
|
|
162
|
+
"--el-font-size-base"
|
|
163
|
+
],
|
|
164
|
+
"density": "紧凑",
|
|
165
|
+
"shape": "块级数据区域",
|
|
166
|
+
"slotContent": [
|
|
167
|
+
"default:描述内容",
|
|
168
|
+
"label:自定义标签内容"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
173
|
+
"libraryVersion": "0.2.0",
|
|
174
|
+
"schemaVersion": 1
|
|
175
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# EpDescriptionsItem
|
|
2
|
+
|
|
3
|
+
`ep-descriptions-item` · data(数据展示) · `component:descriptions-item`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
描述列表项,结构化数据展示
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示描述列表项类结构化数据
|
|
12
|
+
- 适用:需要浏览、比较或定位数据时
|
|
13
|
+
- 不适用:数据量极小且无需结构化展示时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:描述列表项、数据
|
|
18
|
+
- English: descriptions-item, descriptions, item, data
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
- label (string,默认 ''):标签文本
|
|
23
|
+
- span (number,默认 1):跨列数
|
|
24
|
+
- rowspan (number,默认 1):跨行数
|
|
25
|
+
- width (string | number,默认 ''):列宽,同一列以最大值生效
|
|
26
|
+
- minWidth (string | number,默认 ''):列最小宽度,按比例分配
|
|
27
|
+
- labelWidth (string | number):标签列宽度,优先级高于 Descriptions 的 label-width
|
|
28
|
+
- align ('left' | 'center' | 'right',默认 left):内容对齐方式
|
|
29
|
+
- labelAlign ('left' | 'center' | 'right'):标签对齐方式,缺省时沿用 align
|
|
30
|
+
- className (string,默认 ''):内容自定义类名
|
|
31
|
+
- labelClassName (string,默认 ''):标签自定义类名
|
|
32
|
+
|
|
33
|
+
## Slots
|
|
34
|
+
|
|
35
|
+
- default:描述内容
|
|
36
|
+
- label:自定义标签内容
|
|
37
|
+
|
|
38
|
+
## 关系
|
|
39
|
+
|
|
40
|
+
- 父级:EpDescriptions
|
|
41
|
+
- 常用组合:EpDescriptions + EpDescriptionsItem
|
|
42
|
+
|
|
43
|
+
## 视觉提示
|
|
44
|
+
|
|
45
|
+
- 形状:块级数据区域
|
|
46
|
+
- 密度:紧凑
|
|
47
|
+
- 插槽内容:default:描述内容;label:自定义标签内容
|
|
48
|
+
- CSS 变量:--el-border-color-lighter、--el-bg-color、--el-text-color-regular、--el-font-size-base
|
|
49
|
+
|
|
50
|
+
## 示例
|
|
51
|
+
|
|
52
|
+
### 描述列表项
|
|
53
|
+
|
|
54
|
+
```vue
|
|
55
|
+
<script setup lang="ts">
|
|
56
|
+
import { EpDescriptions, EpDescriptionsItem } from 'ep-craft'
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<template>
|
|
60
|
+
<ep-descriptions :column="1">
|
|
61
|
+
<ep-descriptions-item label="状态">运行中</ep-descriptions-item>
|
|
62
|
+
<ep-descriptions-item label="创建时间">2026-01-01</ep-descriptions-item>
|
|
63
|
+
</ep-descriptions>
|
|
64
|
+
</template>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 相关条目
|
|
68
|
+
|
|
69
|
+
- EpDescriptions
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "data",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { EpDescriptions, EpDescriptionsItem } from 'ep-craft'\n</script>\n\n<template>\n <ep-descriptions title=\"用户信息\" :column=\"2\" border>\n <ep-descriptions-item label=\"姓名\">张三</ep-descriptions-item>\n <ep-descriptions-item label=\"手机\">13800000000</ep-descriptions-item>\n <ep-descriptions-item label=\"地址\" :span=\"2\">杭州市西湖区</ep-descriptions-item>\n </ep-descriptions>\n</template>",
|
|
9
|
+
"id": "descriptions-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "描述列表"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:descriptions",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"descriptions",
|
|
20
|
+
"details",
|
|
21
|
+
"data"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"描述列表",
|
|
25
|
+
"数据"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpDescriptions",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"数据量极小且无需结构化展示时"
|
|
32
|
+
],
|
|
33
|
+
"props": [
|
|
34
|
+
{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"defaultText": "false",
|
|
37
|
+
"description": "是否带有边框",
|
|
38
|
+
"hasDefault": false,
|
|
39
|
+
"name": "border",
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"alias": null,
|
|
45
|
+
"defaultText": "3",
|
|
46
|
+
"description": "一行展示的描述项数量",
|
|
47
|
+
"hasDefault": true,
|
|
48
|
+
"name": "column",
|
|
49
|
+
"required": false,
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"alias": null,
|
|
54
|
+
"defaultText": "horizontal",
|
|
55
|
+
"description": "排列方向",
|
|
56
|
+
"hasDefault": true,
|
|
57
|
+
"name": "direction",
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": "'horizontal' | 'vertical'"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"alias": null,
|
|
63
|
+
"defaultText": null,
|
|
64
|
+
"description": "尺寸",
|
|
65
|
+
"hasDefault": false,
|
|
66
|
+
"name": "size",
|
|
67
|
+
"required": false,
|
|
68
|
+
"type": "'' | 'large' | 'default' | 'small'"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"alias": null,
|
|
72
|
+
"defaultText": "''",
|
|
73
|
+
"description": "标题文本,显示在左上角",
|
|
74
|
+
"hasDefault": true,
|
|
75
|
+
"name": "title",
|
|
76
|
+
"required": false,
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"alias": null,
|
|
81
|
+
"defaultText": "''",
|
|
82
|
+
"description": "操作区文本,显示在右上角",
|
|
83
|
+
"hasDefault": true,
|
|
84
|
+
"name": "extra",
|
|
85
|
+
"required": false,
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"alias": null,
|
|
90
|
+
"defaultText": null,
|
|
91
|
+
"description": "标签列宽度",
|
|
92
|
+
"hasDefault": false,
|
|
93
|
+
"name": "labelWidth",
|
|
94
|
+
"required": false,
|
|
95
|
+
"type": "string | number"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"related": [
|
|
99
|
+
"EpDescriptionsItem"
|
|
100
|
+
],
|
|
101
|
+
"relations": {
|
|
102
|
+
"children": [
|
|
103
|
+
"EpDescriptionsItem"
|
|
104
|
+
],
|
|
105
|
+
"combos": [
|
|
106
|
+
"EpDescriptions + EpDescriptionsItem"
|
|
107
|
+
],
|
|
108
|
+
"parents": [],
|
|
109
|
+
"requiredChildren": [
|
|
110
|
+
"EpDescriptionsItem"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"slots": [
|
|
114
|
+
{
|
|
115
|
+
"description": "描述项内容,通常放置 ep-descriptions-item",
|
|
116
|
+
"name": "default"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"description": "自定义标题",
|
|
120
|
+
"name": "title"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"description": "自定义操作区",
|
|
124
|
+
"name": "extra"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"slug": "descriptions",
|
|
128
|
+
"summary": "描述列表,结构化数据展示",
|
|
129
|
+
"tag": "ep-descriptions",
|
|
130
|
+
"useCases": [
|
|
131
|
+
"展示描述列表类结构化数据",
|
|
132
|
+
"需要浏览、比较或定位数据时"
|
|
133
|
+
],
|
|
134
|
+
"variants": [
|
|
135
|
+
{
|
|
136
|
+
"dimension": "size",
|
|
137
|
+
"values": [
|
|
138
|
+
"large",
|
|
139
|
+
"default",
|
|
140
|
+
"small"
|
|
141
|
+
],
|
|
142
|
+
"when": "按容器空间与信息密度选择尺寸"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"dimension": "effect",
|
|
146
|
+
"values": [
|
|
147
|
+
"border"
|
|
148
|
+
],
|
|
149
|
+
"when": "通过视觉修饰属性调整外观效果"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"visual": {
|
|
153
|
+
"cssVars": [
|
|
154
|
+
"--el-border-color-lighter",
|
|
155
|
+
"--el-bg-color",
|
|
156
|
+
"--el-text-color-regular",
|
|
157
|
+
"--el-font-size-base"
|
|
158
|
+
],
|
|
159
|
+
"density": "紧凑",
|
|
160
|
+
"shape": "块级数据区域",
|
|
161
|
+
"slotContent": [
|
|
162
|
+
"default:描述项内容,通常放置 ep-descriptions-item",
|
|
163
|
+
"title:自定义标题",
|
|
164
|
+
"extra:自定义操作区"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
169
|
+
"libraryVersion": "0.2.0",
|
|
170
|
+
"schemaVersion": 1
|
|
171
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# EpDescriptions
|
|
2
|
+
|
|
3
|
+
`ep-descriptions` · data(数据展示) · `component:descriptions`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
描述列表,结构化数据展示
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:展示描述列表类结构化数据
|
|
12
|
+
- 适用:需要浏览、比较或定位数据时
|
|
13
|
+
- 不适用:数据量极小且无需结构化展示时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:描述列表、数据
|
|
18
|
+
- English: descriptions, details, data
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- size: large/default/small(按容器空间与信息密度选择尺寸)
|
|
23
|
+
- effect: border(通过视觉修饰属性调整外观效果)
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
- border (boolean):是否带有边框
|
|
28
|
+
- column (number,默认 3):一行展示的描述项数量
|
|
29
|
+
- direction ('horizontal' | 'vertical',默认 horizontal):排列方向
|
|
30
|
+
- size ('' | 'large' | 'default' | 'small'):尺寸
|
|
31
|
+
- title (string,默认 ''):标题文本,显示在左上角
|
|
32
|
+
- extra (string,默认 ''):操作区文本,显示在右上角
|
|
33
|
+
- labelWidth (string | number):标签列宽度
|
|
34
|
+
|
|
35
|
+
## Slots
|
|
36
|
+
|
|
37
|
+
- default:描述项内容,通常放置 ep-descriptions-item
|
|
38
|
+
- title:自定义标题
|
|
39
|
+
- extra:自定义操作区
|
|
40
|
+
|
|
41
|
+
## 关系
|
|
42
|
+
|
|
43
|
+
- 子级:EpDescriptionsItem
|
|
44
|
+
- 必需子组件:EpDescriptionsItem
|
|
45
|
+
- 常用组合:EpDescriptions + EpDescriptionsItem
|
|
46
|
+
|
|
47
|
+
## 视觉提示
|
|
48
|
+
|
|
49
|
+
- 形状:块级数据区域
|
|
50
|
+
- 密度:紧凑
|
|
51
|
+
- 插槽内容:default:描述项内容,通常放置 ep-descriptions-item;title:自定义标题;extra:自定义操作区
|
|
52
|
+
- CSS 变量:--el-border-color-lighter、--el-bg-color、--el-text-color-regular、--el-font-size-base
|
|
53
|
+
|
|
54
|
+
## 示例
|
|
55
|
+
|
|
56
|
+
### 描述列表
|
|
57
|
+
|
|
58
|
+
```vue
|
|
59
|
+
<script setup lang="ts">
|
|
60
|
+
import { EpDescriptions, EpDescriptionsItem } from 'ep-craft'
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<template>
|
|
64
|
+
<ep-descriptions title="用户信息" :column="2" border>
|
|
65
|
+
<ep-descriptions-item label="姓名">张三</ep-descriptions-item>
|
|
66
|
+
<ep-descriptions-item label="手机">13800000000</ep-descriptions-item>
|
|
67
|
+
<ep-descriptions-item label="地址" :span="2">杭州市西湖区</ep-descriptions-item>
|
|
68
|
+
</ep-descriptions>
|
|
69
|
+
</template>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 相关条目
|
|
73
|
+
|
|
74
|
+
- EpDescriptionsItem
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
ep-craft 0.2.0
|