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,89 @@
|
|
|
1
|
+
# EpPopconfirm
|
|
2
|
+
|
|
3
|
+
`ep-popconfirm` · layout(布局) · `component:popconfirm`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
气泡确认框,页面结构与浮层交互
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:使用气泡确认框组织页面区域与间距
|
|
12
|
+
- 适用:承载内容分组或浮层交互
|
|
13
|
+
- 不适用:已有明确外层布局且无需此语义时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:气泡确认框、布局
|
|
18
|
+
- English: popconfirm, confirm, layout
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- effect: dark/light(通过视觉修饰属性调整外观效果)
|
|
23
|
+
|
|
24
|
+
## Props
|
|
25
|
+
|
|
26
|
+
- title (string):标题
|
|
27
|
+
- confirmButtonText (string):确认按钮文本
|
|
28
|
+
- cancelButtonText (string):取消按钮文本
|
|
29
|
+
- confirmButtonType ('default' | 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'text',默认 primary):确认按钮类型
|
|
30
|
+
- cancelButtonType ('default' | 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'text',默认 text):取消按钮类型
|
|
31
|
+
- icon (string | Component,默认 QuestionFilled):图标组件
|
|
32
|
+
- iconColor (string,默认 #f90):图标颜色
|
|
33
|
+
- hideIcon (boolean):是否隐藏图标
|
|
34
|
+
- hideAfter (number,默认 200):消失延迟,单位 ms
|
|
35
|
+
- effect ('dark' | 'light',默认 light):提示框主题
|
|
36
|
+
- teleported (boolean,默认 见文档):是否 teleport 到 body
|
|
37
|
+
- persistent (boolean):未激活且该值为 false 时是否销毁
|
|
38
|
+
- width (string | number,默认 150):宽度,最小 150px
|
|
39
|
+
- virtualTriggering (boolean):是否启用虚拟触发
|
|
40
|
+
- virtualRef (HTMLElement | Component):虚拟触发时所依附的元素
|
|
41
|
+
|
|
42
|
+
## Events
|
|
43
|
+
|
|
44
|
+
- confirm((e: MouseEvent)):点击确认按钮时触发
|
|
45
|
+
- cancel((e: MouseEvent)):点击取消按钮时触发
|
|
46
|
+
|
|
47
|
+
## Slots
|
|
48
|
+
|
|
49
|
+
- default:气泡确认框内容
|
|
50
|
+
- reference:触发元素内容
|
|
51
|
+
- actions:自定义操作区,参数为 `{ confirm, cancel }`
|
|
52
|
+
|
|
53
|
+
## 视觉提示
|
|
54
|
+
|
|
55
|
+
- 形状:区块容器
|
|
56
|
+
- 密度:宽松
|
|
57
|
+
- 插槽内容:default:气泡确认框内容;reference:触发元素内容;actions:自定义操作区,参数为 `{ confirm, cancel }`
|
|
58
|
+
- CSS 变量:--el-bg-color、--el-border-color、--el-border-radius-base
|
|
59
|
+
|
|
60
|
+
## 示例
|
|
61
|
+
|
|
62
|
+
### 气泡确认
|
|
63
|
+
|
|
64
|
+
```vue
|
|
65
|
+
<script setup lang="ts">
|
|
66
|
+
import { EpButton, EpPopconfirm } from 'ep-craft'
|
|
67
|
+
|
|
68
|
+
const remove = () => {
|
|
69
|
+
// 执行删除逻辑
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<template>
|
|
74
|
+
<ep-popconfirm title="确认删除该记录?" @confirm="remove">
|
|
75
|
+
<template #reference>
|
|
76
|
+
<ep-button type="danger">删除</ep-button>
|
|
77
|
+
</template>
|
|
78
|
+
</ep-popconfirm>
|
|
79
|
+
</template>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 相关条目
|
|
83
|
+
|
|
84
|
+
- EpTooltip
|
|
85
|
+
- EpDialog
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "layout",
|
|
4
|
+
"events": [
|
|
5
|
+
{
|
|
6
|
+
"description": "Popover 可见性变化时触发",
|
|
7
|
+
"name": "update:visible",
|
|
8
|
+
"params": "(visible: boolean)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"description": "显示动画播放前触发",
|
|
12
|
+
"name": "beforeEnter",
|
|
13
|
+
"params": "()"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"description": "隐藏动画播放前触发",
|
|
17
|
+
"name": "beforeLeave",
|
|
18
|
+
"params": "()"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"description": "显示动画播放完毕后触发",
|
|
22
|
+
"name": "afterEnter",
|
|
23
|
+
"params": "()"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"description": "隐藏动画播放完毕后触发",
|
|
27
|
+
"name": "afterLeave",
|
|
28
|
+
"params": "()"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"description": "显示时触发",
|
|
32
|
+
"name": "show",
|
|
33
|
+
"params": "()"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"description": "隐藏时触发",
|
|
37
|
+
"name": "hide",
|
|
38
|
+
"params": "()"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"exampleOmittedReason": null,
|
|
42
|
+
"examples": [
|
|
43
|
+
{
|
|
44
|
+
"code": "<script setup lang=\"ts\">\nimport { EpButton, EpPopover } from 'ep-craft'\n</script>\n\n<template>\n <ep-popover title=\"字段说明\" content=\"这里展示更详细的帮助信息\">\n <template #reference>\n <ep-button>悬停查看</ep-button>\n </template>\n </ep-popover>\n</template>",
|
|
45
|
+
"id": "popover-1",
|
|
46
|
+
"language": "vue",
|
|
47
|
+
"title": "弹出框"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"exposes": [],
|
|
51
|
+
"hot": true,
|
|
52
|
+
"id": "component:popover",
|
|
53
|
+
"keywords": {
|
|
54
|
+
"en": [
|
|
55
|
+
"popover",
|
|
56
|
+
"popup",
|
|
57
|
+
"overlay",
|
|
58
|
+
"layout"
|
|
59
|
+
],
|
|
60
|
+
"zh": [
|
|
61
|
+
"弹出框",
|
|
62
|
+
"气泡卡片",
|
|
63
|
+
"浮层",
|
|
64
|
+
"布局"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"kind": "component",
|
|
68
|
+
"name": "EpPopover",
|
|
69
|
+
"nonUseCases": [
|
|
70
|
+
"已有明确外层布局且无需此语义时"
|
|
71
|
+
],
|
|
72
|
+
"props": [
|
|
73
|
+
{
|
|
74
|
+
"alias": null,
|
|
75
|
+
"defaultText": "hover",
|
|
76
|
+
"description": "触发方式",
|
|
77
|
+
"hasDefault": true,
|
|
78
|
+
"name": "trigger",
|
|
79
|
+
"required": false,
|
|
80
|
+
"type": "'click' | 'focus' | 'hover' | 'contextmenu'"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"alias": null,
|
|
84
|
+
"defaultText": null,
|
|
85
|
+
"description": "",
|
|
86
|
+
"hasDefault": true,
|
|
87
|
+
"name": "triggerKeys",
|
|
88
|
+
"required": false,
|
|
89
|
+
"type": "unknown"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"alias": null,
|
|
93
|
+
"defaultText": "bottom",
|
|
94
|
+
"description": "出现位置",
|
|
95
|
+
"hasDefault": true,
|
|
96
|
+
"name": "placement",
|
|
97
|
+
"required": false,
|
|
98
|
+
"type": "Placement"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"alias": null,
|
|
102
|
+
"defaultText": "false",
|
|
103
|
+
"description": "Popover 是否可用",
|
|
104
|
+
"hasDefault": false,
|
|
105
|
+
"name": "disabled",
|
|
106
|
+
"required": false,
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"alias": "v-model:visible",
|
|
111
|
+
"defaultText": null,
|
|
112
|
+
"description": "Popover 是否显示",
|
|
113
|
+
"hasDefault": true,
|
|
114
|
+
"name": "visible",
|
|
115
|
+
"required": false,
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"alias": null,
|
|
120
|
+
"defaultText": "'el-fade-in-linear'",
|
|
121
|
+
"description": "定义渐变动画",
|
|
122
|
+
"hasDefault": false,
|
|
123
|
+
"name": "transition",
|
|
124
|
+
"required": false,
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"alias": null,
|
|
129
|
+
"defaultText": null,
|
|
130
|
+
"description": "",
|
|
131
|
+
"hasDefault": true,
|
|
132
|
+
"name": "popperOptions",
|
|
133
|
+
"required": false,
|
|
134
|
+
"type": "unknown"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"alias": null,
|
|
138
|
+
"defaultText": null,
|
|
139
|
+
"description": "",
|
|
140
|
+
"hasDefault": true,
|
|
141
|
+
"name": "tabindex",
|
|
142
|
+
"required": false,
|
|
143
|
+
"type": "unknown"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"alias": null,
|
|
147
|
+
"defaultText": null,
|
|
148
|
+
"description": "显示的内容",
|
|
149
|
+
"hasDefault": true,
|
|
150
|
+
"name": "content",
|
|
151
|
+
"required": false,
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"alias": null,
|
|
156
|
+
"defaultText": null,
|
|
157
|
+
"description": "为 popper 自定义样式",
|
|
158
|
+
"hasDefault": true,
|
|
159
|
+
"name": "popperStyle",
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": "string | object"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"alias": null,
|
|
165
|
+
"defaultText": null,
|
|
166
|
+
"description": "为 popper 添加类名",
|
|
167
|
+
"hasDefault": false,
|
|
168
|
+
"name": "popperClass",
|
|
169
|
+
"required": false,
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"alias": null,
|
|
174
|
+
"defaultText": null,
|
|
175
|
+
"description": "",
|
|
176
|
+
"hasDefault": true,
|
|
177
|
+
"name": "enterable",
|
|
178
|
+
"required": false,
|
|
179
|
+
"type": "unknown"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"alias": null,
|
|
183
|
+
"defaultText": "light",
|
|
184
|
+
"description": "Tooltip 主题",
|
|
185
|
+
"hasDefault": true,
|
|
186
|
+
"name": "effect",
|
|
187
|
+
"required": false,
|
|
188
|
+
"type": "'dark' | 'light'"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"alias": null,
|
|
192
|
+
"defaultText": "true",
|
|
193
|
+
"description": "是否将 popover 的下拉列表插入至 body 元素",
|
|
194
|
+
"hasDefault": true,
|
|
195
|
+
"name": "teleported",
|
|
196
|
+
"required": false,
|
|
197
|
+
"type": "boolean"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"alias": null,
|
|
201
|
+
"defaultText": null,
|
|
202
|
+
"description": "",
|
|
203
|
+
"hasDefault": false,
|
|
204
|
+
"name": "appendTo",
|
|
205
|
+
"required": false,
|
|
206
|
+
"type": "unknown"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"alias": null,
|
|
210
|
+
"defaultText": null,
|
|
211
|
+
"description": "标题",
|
|
212
|
+
"hasDefault": false,
|
|
213
|
+
"name": "title",
|
|
214
|
+
"required": false,
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"alias": null,
|
|
219
|
+
"defaultText": "150",
|
|
220
|
+
"description": "宽度",
|
|
221
|
+
"hasDefault": true,
|
|
222
|
+
"name": "width",
|
|
223
|
+
"required": false,
|
|
224
|
+
"type": "string | number"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"alias": null,
|
|
228
|
+
"defaultText": "0",
|
|
229
|
+
"description": "出现位置的偏移量",
|
|
230
|
+
"hasDefault": true,
|
|
231
|
+
"name": "offset",
|
|
232
|
+
"required": false,
|
|
233
|
+
"type": "number"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"alias": null,
|
|
237
|
+
"defaultText": "0",
|
|
238
|
+
"description": "在触发后多久显示内容",
|
|
239
|
+
"hasDefault": true,
|
|
240
|
+
"name": "showAfter",
|
|
241
|
+
"required": false,
|
|
242
|
+
"type": "number"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"alias": null,
|
|
246
|
+
"defaultText": "200",
|
|
247
|
+
"description": "延迟关闭",
|
|
248
|
+
"hasDefault": true,
|
|
249
|
+
"name": "hideAfter",
|
|
250
|
+
"required": false,
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"alias": null,
|
|
255
|
+
"defaultText": "0",
|
|
256
|
+
"description": "出现后自动隐藏延时",
|
|
257
|
+
"hasDefault": true,
|
|
258
|
+
"name": "autoClose",
|
|
259
|
+
"required": false,
|
|
260
|
+
"type": "number"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"alias": null,
|
|
264
|
+
"defaultText": "true",
|
|
265
|
+
"description": "是否显示箭头",
|
|
266
|
+
"hasDefault": true,
|
|
267
|
+
"name": "showArrow",
|
|
268
|
+
"required": false,
|
|
269
|
+
"type": "boolean"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"alias": null,
|
|
273
|
+
"defaultText": "true",
|
|
274
|
+
"description": "当 popover 组件长时间不触发且 persistent 为 false 时,popover 将被删除",
|
|
275
|
+
"hasDefault": true,
|
|
276
|
+
"name": "persistent",
|
|
277
|
+
"required": false,
|
|
278
|
+
"type": "boolean"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"alias": null,
|
|
282
|
+
"defaultText": null,
|
|
283
|
+
"description": "",
|
|
284
|
+
"hasDefault": false,
|
|
285
|
+
"name": "onUpdate:visible",
|
|
286
|
+
"required": false,
|
|
287
|
+
"type": "unknown"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"related": [
|
|
291
|
+
"EpTooltip",
|
|
292
|
+
"EpDropdown"
|
|
293
|
+
],
|
|
294
|
+
"relations": {
|
|
295
|
+
"children": [],
|
|
296
|
+
"combos": [],
|
|
297
|
+
"parents": [],
|
|
298
|
+
"requiredChildren": []
|
|
299
|
+
},
|
|
300
|
+
"slots": [
|
|
301
|
+
{
|
|
302
|
+
"description": "Popover 内嵌 HTML 文本",
|
|
303
|
+
"name": "default"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"description": "触发 Popover 显示的 HTML 元素",
|
|
307
|
+
"name": "reference"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"slug": "popover",
|
|
311
|
+
"summary": "弹出框,承载可交互的浮层内容",
|
|
312
|
+
"tag": "ep-popover",
|
|
313
|
+
"useCases": [
|
|
314
|
+
"点击或悬停展开操作面板",
|
|
315
|
+
"展示富文本、表单或链接"
|
|
316
|
+
],
|
|
317
|
+
"variants": [
|
|
318
|
+
{
|
|
319
|
+
"dimension": "state",
|
|
320
|
+
"values": [
|
|
321
|
+
"disabled"
|
|
322
|
+
],
|
|
323
|
+
"when": "通过布尔属性切换禁用、加载或选中状态"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"dimension": "effect",
|
|
327
|
+
"values": [
|
|
328
|
+
"dark",
|
|
329
|
+
"light"
|
|
330
|
+
],
|
|
331
|
+
"when": "通过视觉修饰属性调整外观效果"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"visual": {
|
|
335
|
+
"cssVars": [
|
|
336
|
+
"--el-bg-color",
|
|
337
|
+
"--el-border-color",
|
|
338
|
+
"--el-border-radius-base"
|
|
339
|
+
],
|
|
340
|
+
"density": "宽松",
|
|
341
|
+
"shape": "区块容器",
|
|
342
|
+
"slotContent": [
|
|
343
|
+
"default:Popover 内嵌 HTML 文本",
|
|
344
|
+
"reference:触发 Popover 显示的 HTML 元素"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
349
|
+
"libraryVersion": "0.2.0",
|
|
350
|
+
"schemaVersion": 1
|
|
351
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# EpPopover
|
|
2
|
+
|
|
3
|
+
`ep-popover` · layout(布局) · `component:popover`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
弹出框,承载可交互的浮层内容
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:点击或悬停展开操作面板
|
|
12
|
+
- 适用:展示富文本、表单或链接
|
|
13
|
+
- 不适用:已有明确外层布局且无需此语义时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:弹出框、气泡卡片、浮层、布局
|
|
18
|
+
- English: popover, popup, overlay, layout
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- state: disabled(通过布尔属性切换禁用、加载或选中状态)
|
|
23
|
+
- effect: dark/light(通过视觉修饰属性调整外观效果)
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
- trigger ('click' | 'focus' | 'hover' | 'contextmenu',默认 hover):触发方式
|
|
28
|
+
- triggerKeys (unknown,默认 见文档)
|
|
29
|
+
- placement (Placement,默认 bottom):出现位置
|
|
30
|
+
- disabled (boolean):Popover 是否可用
|
|
31
|
+
- visible(别名 v-model:visible) (boolean,默认 见文档):Popover 是否显示
|
|
32
|
+
- transition (string):定义渐变动画
|
|
33
|
+
- popperOptions (unknown,默认 见文档)
|
|
34
|
+
- tabindex (unknown,默认 见文档)
|
|
35
|
+
- content (string,默认 见文档):显示的内容
|
|
36
|
+
- popperStyle (string | object,默认 见文档):为 popper 自定义样式
|
|
37
|
+
- popperClass (string):为 popper 添加类名
|
|
38
|
+
- enterable (unknown,默认 见文档)
|
|
39
|
+
- effect ('dark' | 'light',默认 light):Tooltip 主题
|
|
40
|
+
- teleported (boolean,默认 true):是否将 popover 的下拉列表插入至 body 元素
|
|
41
|
+
- appendTo (unknown)
|
|
42
|
+
- title (string):标题
|
|
43
|
+
- width (string | number,默认 150):宽度
|
|
44
|
+
- offset (number,默认 0):出现位置的偏移量
|
|
45
|
+
- showAfter (number,默认 0):在触发后多久显示内容
|
|
46
|
+
- hideAfter (number,默认 200):延迟关闭
|
|
47
|
+
- autoClose (number,默认 0):出现后自动隐藏延时
|
|
48
|
+
- showArrow (boolean,默认 true):是否显示箭头
|
|
49
|
+
- persistent (boolean,默认 true):当 popover 组件长时间不触发且 persistent 为 false 时,popover 将被删除
|
|
50
|
+
- onUpdate:visible (unknown)
|
|
51
|
+
|
|
52
|
+
## Events
|
|
53
|
+
|
|
54
|
+
- update:visible((visible: boolean)):Popover 可见性变化时触发
|
|
55
|
+
- beforeEnter(()):显示动画播放前触发
|
|
56
|
+
- beforeLeave(()):隐藏动画播放前触发
|
|
57
|
+
- afterEnter(()):显示动画播放完毕后触发
|
|
58
|
+
- afterLeave(()):隐藏动画播放完毕后触发
|
|
59
|
+
- show(()):显示时触发
|
|
60
|
+
- hide(()):隐藏时触发
|
|
61
|
+
|
|
62
|
+
## Slots
|
|
63
|
+
|
|
64
|
+
- default:Popover 内嵌 HTML 文本
|
|
65
|
+
- reference:触发 Popover 显示的 HTML 元素
|
|
66
|
+
|
|
67
|
+
## 视觉提示
|
|
68
|
+
|
|
69
|
+
- 形状:区块容器
|
|
70
|
+
- 密度:宽松
|
|
71
|
+
- 插槽内容:default:Popover 内嵌 HTML 文本;reference:触发 Popover 显示的 HTML 元素
|
|
72
|
+
- CSS 变量:--el-bg-color、--el-border-color、--el-border-radius-base
|
|
73
|
+
|
|
74
|
+
## 示例
|
|
75
|
+
|
|
76
|
+
### 弹出框
|
|
77
|
+
|
|
78
|
+
```vue
|
|
79
|
+
<script setup lang="ts">
|
|
80
|
+
import { EpButton, EpPopover } from 'ep-craft'
|
|
81
|
+
</script>
|
|
82
|
+
|
|
83
|
+
<template>
|
|
84
|
+
<ep-popover title="字段说明" content="这里展示更详细的帮助信息">
|
|
85
|
+
<template #reference>
|
|
86
|
+
<ep-button>悬停查看</ep-button>
|
|
87
|
+
</template>
|
|
88
|
+
</ep-popover>
|
|
89
|
+
</template>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## 相关条目
|
|
93
|
+
|
|
94
|
+
- EpTooltip
|
|
95
|
+
- EpDropdown
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
ep-craft 0.2.0
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entry": {
|
|
3
|
+
"category": "layout",
|
|
4
|
+
"events": [],
|
|
5
|
+
"exampleOmittedReason": null,
|
|
6
|
+
"examples": [
|
|
7
|
+
{
|
|
8
|
+
"code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpPopper } from 'ep-craft'\n\nconst reference = ref<HTMLElement>()\n</script>\n\n<template>\n <button ref=\"reference\" type=\"button\">参考元素</button>\n <ep-popper :visible=\"true\" :reference-el=\"reference\" placement=\"bottom\">\n <div style=\"padding: 8px\">基础弹出层内容</div>\n </ep-popper>\n</template>",
|
|
9
|
+
"id": "popper-1",
|
|
10
|
+
"language": "vue",
|
|
11
|
+
"title": "基础弹出层"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exposes": [],
|
|
15
|
+
"hot": false,
|
|
16
|
+
"id": "component:popper",
|
|
17
|
+
"keywords": {
|
|
18
|
+
"en": [
|
|
19
|
+
"popper",
|
|
20
|
+
"overlay",
|
|
21
|
+
"layout"
|
|
22
|
+
],
|
|
23
|
+
"zh": [
|
|
24
|
+
"弹出层",
|
|
25
|
+
"布局"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"kind": "component",
|
|
29
|
+
"name": "EpPopper",
|
|
30
|
+
"nonUseCases": [
|
|
31
|
+
"已有明确外层布局且无需此语义时"
|
|
32
|
+
],
|
|
33
|
+
"props": [
|
|
34
|
+
{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"defaultText": "tooltip",
|
|
37
|
+
"description": "弹出层容器的 ARIA role",
|
|
38
|
+
"hasDefault": true,
|
|
39
|
+
"name": "role",
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": "'tooltip' | 'dialog' | 'grid' | 'listbox' | 'menu' | 'tree'"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"related": [
|
|
45
|
+
"EpTooltip",
|
|
46
|
+
"EpPopover"
|
|
47
|
+
],
|
|
48
|
+
"relations": {
|
|
49
|
+
"children": [],
|
|
50
|
+
"combos": [],
|
|
51
|
+
"parents": [],
|
|
52
|
+
"requiredChildren": []
|
|
53
|
+
},
|
|
54
|
+
"slots": [
|
|
55
|
+
{
|
|
56
|
+
"description": "弹出层内容",
|
|
57
|
+
"name": "default"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"slug": "popper",
|
|
61
|
+
"summary": "弹出层,页面结构与浮层交互",
|
|
62
|
+
"tag": "ep-popper",
|
|
63
|
+
"useCases": [
|
|
64
|
+
"使用弹出层组织页面区域与间距",
|
|
65
|
+
"承载内容分组或浮层交互"
|
|
66
|
+
],
|
|
67
|
+
"variants": [
|
|
68
|
+
{
|
|
69
|
+
"dimension": "effect",
|
|
70
|
+
"values": [
|
|
71
|
+
"dark",
|
|
72
|
+
"light"
|
|
73
|
+
],
|
|
74
|
+
"when": "通过视觉修饰属性调整外观效果"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"visual": {
|
|
78
|
+
"cssVars": [
|
|
79
|
+
"--el-bg-color",
|
|
80
|
+
"--el-border-color",
|
|
81
|
+
"--el-border-radius-base"
|
|
82
|
+
],
|
|
83
|
+
"density": "宽松",
|
|
84
|
+
"shape": "区块容器",
|
|
85
|
+
"slotContent": [
|
|
86
|
+
"default:弹出层内容"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"generatedAt": "2026-11-03T03:09:12.050Z",
|
|
91
|
+
"libraryVersion": "0.2.0",
|
|
92
|
+
"schemaVersion": 1
|
|
93
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# EpPopper
|
|
2
|
+
|
|
3
|
+
`ep-popper` · layout(布局) · `component:popper`
|
|
4
|
+
|
|
5
|
+
## 摘要
|
|
6
|
+
|
|
7
|
+
弹出层,页面结构与浮层交互
|
|
8
|
+
|
|
9
|
+
## 适用场景
|
|
10
|
+
|
|
11
|
+
- 适用:使用弹出层组织页面区域与间距
|
|
12
|
+
- 适用:承载内容分组或浮层交互
|
|
13
|
+
- 不适用:已有明确外层布局且无需此语义时
|
|
14
|
+
|
|
15
|
+
## 关键词
|
|
16
|
+
|
|
17
|
+
- 中文:弹出层、布局
|
|
18
|
+
- English: popper, overlay, layout
|
|
19
|
+
|
|
20
|
+
## 变体
|
|
21
|
+
|
|
22
|
+
- effect: dark/light(通过视觉修饰属性调整外观效果)
|
|
23
|
+
|
|
24
|
+
## Props
|
|
25
|
+
|
|
26
|
+
- role ('tooltip' | 'dialog' | 'grid' | 'listbox' | 'menu' | 'tree',默认 tooltip):弹出层容器的 ARIA role
|
|
27
|
+
|
|
28
|
+
## Slots
|
|
29
|
+
|
|
30
|
+
- default:弹出层内容
|
|
31
|
+
|
|
32
|
+
## 视觉提示
|
|
33
|
+
|
|
34
|
+
- 形状:区块容器
|
|
35
|
+
- 密度:宽松
|
|
36
|
+
- 插槽内容:default:弹出层内容
|
|
37
|
+
- CSS 变量:--el-bg-color、--el-border-color、--el-border-radius-base
|
|
38
|
+
|
|
39
|
+
## 示例
|
|
40
|
+
|
|
41
|
+
### 基础弹出层
|
|
42
|
+
|
|
43
|
+
```vue
|
|
44
|
+
<script setup lang="ts">
|
|
45
|
+
import { ref } from 'vue'
|
|
46
|
+
import { EpPopper } from 'ep-craft'
|
|
47
|
+
|
|
48
|
+
const reference = ref<HTMLElement>()
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<button ref="reference" type="button">参考元素</button>
|
|
53
|
+
<ep-popper :visible="true" :reference-el="reference" placement="bottom">
|
|
54
|
+
<div style="padding: 8px">基础弹出层内容</div>
|
|
55
|
+
</ep-popper>
|
|
56
|
+
</template>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 相关条目
|
|
60
|
+
|
|
61
|
+
- EpTooltip
|
|
62
|
+
- EpPopover
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
ep-craft 0.2.0
|