ep-craft 0.2.1 → 0.2.2
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 +3 -3
- package/dist-ai/components/affix.md +1 -1
- package/dist-ai/components/alert.json +3 -3
- package/dist-ai/components/alert.md +1 -1
- package/dist-ai/components/anchor-link.json +3 -3
- package/dist-ai/components/anchor-link.md +1 -1
- package/dist-ai/components/anchor.json +3 -3
- package/dist-ai/components/anchor.md +1 -1
- package/dist-ai/components/aside.json +3 -3
- package/dist-ai/components/aside.md +1 -1
- package/dist-ai/components/autocomplete.json +3 -3
- package/dist-ai/components/autocomplete.md +1 -1
- package/dist-ai/components/avatar.json +3 -3
- package/dist-ai/components/avatar.md +1 -1
- package/dist-ai/components/backtop.json +3 -3
- package/dist-ai/components/backtop.md +1 -1
- package/dist-ai/components/badge.json +3 -3
- package/dist-ai/components/badge.md +1 -1
- package/dist-ai/components/breadcrumb-item.json +3 -3
- package/dist-ai/components/breadcrumb-item.md +1 -1
- package/dist-ai/components/breadcrumb.json +3 -3
- package/dist-ai/components/breadcrumb.md +1 -1
- package/dist-ai/components/button-group.json +3 -3
- package/dist-ai/components/button-group.md +1 -1
- package/dist-ai/components/button.json +3 -3
- package/dist-ai/components/button.md +1 -1
- package/dist-ai/components/calendar.json +3 -3
- package/dist-ai/components/calendar.md +1 -1
- package/dist-ai/components/card.json +3 -3
- package/dist-ai/components/card.md +1 -1
- package/dist-ai/components/carousel-item.json +3 -3
- package/dist-ai/components/carousel-item.md +1 -1
- package/dist-ai/components/carousel.json +3 -3
- package/dist-ai/components/carousel.md +1 -1
- package/dist-ai/components/cascader-panel.json +3 -3
- package/dist-ai/components/cascader-panel.md +1 -1
- package/dist-ai/components/cascader.json +3 -3
- package/dist-ai/components/cascader.md +1 -1
- package/dist-ai/components/check-tag.json +3 -3
- package/dist-ai/components/check-tag.md +1 -1
- package/dist-ai/components/checkbox-button.json +3 -3
- package/dist-ai/components/checkbox-button.md +1 -1
- package/dist-ai/components/checkbox-group.json +3 -3
- package/dist-ai/components/checkbox-group.md +1 -1
- package/dist-ai/components/checkbox.json +3 -3
- package/dist-ai/components/checkbox.md +1 -1
- package/dist-ai/components/col.json +3 -3
- package/dist-ai/components/col.md +1 -1
- package/dist-ai/components/collapse-item.json +3 -3
- package/dist-ai/components/collapse-item.md +1 -1
- package/dist-ai/components/collapse-transition.json +3 -3
- package/dist-ai/components/collapse-transition.md +1 -1
- package/dist-ai/components/collapse.json +3 -3
- package/dist-ai/components/collapse.md +1 -1
- package/dist-ai/components/color-picker.json +3 -3
- package/dist-ai/components/color-picker.md +1 -1
- package/dist-ai/components/config-provider.json +3 -3
- package/dist-ai/components/config-provider.md +1 -1
- package/dist-ai/components/container.json +3 -3
- package/dist-ai/components/container.md +1 -1
- package/dist-ai/components/countdown.json +3 -3
- package/dist-ai/components/countdown.md +1 -1
- package/dist-ai/components/date-picker-panel.json +3 -3
- package/dist-ai/components/date-picker-panel.md +1 -1
- package/dist-ai/components/date-picker.json +3 -3
- package/dist-ai/components/date-picker.md +1 -1
- package/dist-ai/components/descriptions-item.json +3 -3
- package/dist-ai/components/descriptions-item.md +1 -1
- package/dist-ai/components/descriptions.json +3 -3
- package/dist-ai/components/descriptions.md +1 -1
- package/dist-ai/components/dialog.json +3 -3
- package/dist-ai/components/dialog.md +1 -1
- package/dist-ai/components/divider.json +3 -3
- package/dist-ai/components/divider.md +1 -1
- package/dist-ai/components/drawer.json +3 -3
- package/dist-ai/components/drawer.md +1 -1
- package/dist-ai/components/dropdown-item.json +3 -3
- package/dist-ai/components/dropdown-item.md +1 -1
- package/dist-ai/components/dropdown-menu.json +3 -3
- package/dist-ai/components/dropdown-menu.md +1 -1
- package/dist-ai/components/dropdown.json +3 -3
- package/dist-ai/components/dropdown.md +1 -1
- package/dist-ai/components/empty.json +3 -3
- package/dist-ai/components/empty.md +1 -1
- package/dist-ai/components/footer.json +3 -3
- package/dist-ai/components/footer.md +1 -1
- package/dist-ai/components/form-item.json +3 -3
- package/dist-ai/components/form-item.md +1 -1
- package/dist-ai/components/form.json +3 -3
- package/dist-ai/components/form.md +1 -1
- package/dist-ai/components/header.json +3 -3
- package/dist-ai/components/header.md +1 -1
- package/dist-ai/components/icon.json +3 -3
- package/dist-ai/components/icon.md +1 -1
- package/dist-ai/components/image-viewer.json +3 -3
- package/dist-ai/components/image-viewer.md +1 -1
- package/dist-ai/components/image.json +3 -3
- package/dist-ai/components/image.md +1 -1
- package/dist-ai/components/input-number.json +3 -3
- package/dist-ai/components/input-number.md +1 -1
- package/dist-ai/components/input.json +3 -3
- package/dist-ai/components/input.md +1 -1
- package/dist-ai/components/link.json +3 -3
- package/dist-ai/components/link.md +1 -1
- package/dist-ai/components/main.json +3 -3
- package/dist-ai/components/main.md +1 -1
- package/dist-ai/components/mention.json +3 -3
- package/dist-ai/components/mention.md +1 -1
- package/dist-ai/components/menu-item-group.json +3 -3
- package/dist-ai/components/menu-item-group.md +1 -1
- package/dist-ai/components/menu-item.json +3 -3
- package/dist-ai/components/menu-item.md +1 -1
- package/dist-ai/components/menu.json +3 -3
- package/dist-ai/components/menu.md +1 -1
- package/dist-ai/components/option-group.json +3 -3
- package/dist-ai/components/option-group.md +1 -1
- package/dist-ai/components/option.json +3 -3
- package/dist-ai/components/option.md +1 -1
- package/dist-ai/components/page-header.json +3 -3
- package/dist-ai/components/page-header.md +1 -1
- package/dist-ai/components/pagination.json +3 -3
- package/dist-ai/components/pagination.md +1 -1
- package/dist-ai/components/popconfirm.json +3 -3
- package/dist-ai/components/popconfirm.md +1 -1
- package/dist-ai/components/popover.json +3 -3
- package/dist-ai/components/popover.md +1 -1
- package/dist-ai/components/popper.json +3 -3
- package/dist-ai/components/popper.md +1 -1
- package/dist-ai/components/progress.json +3 -3
- package/dist-ai/components/progress.md +1 -1
- package/dist-ai/components/radio-button.json +3 -3
- package/dist-ai/components/radio-button.md +1 -1
- package/dist-ai/components/radio-group.json +3 -3
- package/dist-ai/components/radio-group.md +1 -1
- package/dist-ai/components/radio.json +3 -3
- package/dist-ai/components/radio.md +1 -1
- package/dist-ai/components/rate.json +3 -3
- package/dist-ai/components/rate.md +1 -1
- package/dist-ai/components/result.json +3 -3
- package/dist-ai/components/result.md +1 -1
- package/dist-ai/components/row.json +3 -3
- package/dist-ai/components/row.md +1 -1
- package/dist-ai/components/scrollbar.json +3 -3
- package/dist-ai/components/scrollbar.md +1 -1
- package/dist-ai/components/segmented.json +3 -3
- package/dist-ai/components/segmented.md +1 -1
- package/dist-ai/components/select-v2.json +3 -3
- package/dist-ai/components/select-v2.md +1 -1
- package/dist-ai/components/select.json +3 -3
- package/dist-ai/components/select.md +1 -1
- package/dist-ai/components/skeleton-item.json +3 -3
- package/dist-ai/components/skeleton-item.md +1 -1
- package/dist-ai/components/skeleton.json +3 -3
- package/dist-ai/components/skeleton.md +1 -1
- package/dist-ai/components/slider.json +3 -3
- package/dist-ai/components/slider.md +1 -1
- package/dist-ai/components/space.json +3 -3
- package/dist-ai/components/space.md +1 -1
- package/dist-ai/components/statistic.json +3 -3
- package/dist-ai/components/statistic.md +1 -1
- package/dist-ai/components/step.json +3 -3
- package/dist-ai/components/step.md +1 -1
- package/dist-ai/components/steps.json +3 -3
- package/dist-ai/components/steps.md +1 -1
- package/dist-ai/components/sub-menu.json +3 -3
- package/dist-ai/components/sub-menu.md +1 -1
- package/dist-ai/components/switch.json +3 -3
- package/dist-ai/components/switch.md +1 -1
- package/dist-ai/components/tab-pane.json +3 -3
- package/dist-ai/components/tab-pane.md +1 -1
- package/dist-ai/components/table-column.json +3 -3
- package/dist-ai/components/table-column.md +1 -1
- package/dist-ai/components/table-v2.json +3 -3
- package/dist-ai/components/table-v2.md +1 -1
- package/dist-ai/components/table.json +3 -3
- package/dist-ai/components/table.md +1 -1
- package/dist-ai/components/tabs.json +3 -3
- package/dist-ai/components/tabs.md +1 -1
- package/dist-ai/components/tag.json +3 -3
- package/dist-ai/components/tag.md +1 -1
- package/dist-ai/components/text.json +3 -3
- package/dist-ai/components/text.md +1 -1
- package/dist-ai/components/time-picker.json +3 -3
- package/dist-ai/components/time-picker.md +1 -1
- package/dist-ai/components/time-select.json +3 -3
- package/dist-ai/components/time-select.md +1 -1
- package/dist-ai/components/timeline-item.json +3 -3
- package/dist-ai/components/timeline-item.md +1 -1
- package/dist-ai/components/timeline.json +3 -3
- package/dist-ai/components/timeline.md +1 -1
- package/dist-ai/components/tooltip.json +3 -3
- package/dist-ai/components/tooltip.md +1 -1
- package/dist-ai/components/tour-step.json +3 -3
- package/dist-ai/components/tour-step.md +1 -1
- package/dist-ai/components/tour.json +3 -3
- package/dist-ai/components/tour.md +1 -1
- package/dist-ai/components/transfer.json +3 -3
- package/dist-ai/components/transfer.md +1 -1
- package/dist-ai/components/tree-select.json +3 -3
- package/dist-ai/components/tree-select.md +1 -1
- package/dist-ai/components/tree-v2.json +3 -3
- package/dist-ai/components/tree-v2.md +1 -1
- package/dist-ai/components/tree.json +3 -3
- package/dist-ai/components/tree.md +1 -1
- package/dist-ai/components/upload.json +3 -3
- package/dist-ai/components/upload.md +1 -1
- package/dist-ai/components/watermark.json +3 -3
- package/dist-ai/components/watermark.md +1 -1
- package/dist-ai/directives/click-outside.json +3 -3
- package/dist-ai/directives/click-outside.md +1 -1
- package/dist-ai/directives/infinite-scroll.json +3 -3
- package/dist-ai/directives/infinite-scroll.md +2 -1
- package/dist-ai/directives/loading.json +3 -3
- package/dist-ai/directives/loading.md +2 -1
- package/dist-ai/directives/mousewheel.json +3 -3
- package/dist-ai/directives/mousewheel.md +1 -1
- package/dist-ai/directives/repeat-click.json +3 -3
- package/dist-ai/directives/repeat-click.md +1 -1
- package/dist-ai/directives/trap-focus.json +3 -3
- package/dist-ai/directives/trap-focus.md +1 -1
- package/dist-ai/icons.json +1 -1
- package/dist-ai/index.json +1 -1
- package/dist-ai/llms.txt +117 -117
- package/dist-ai/manifest.json +255 -25512
- package/dist-ai/schema/card.schema.json +696 -0
- package/dist-ai/schema/icons.schema.json +151 -0
- package/dist-ai/schema/index.schema.json +137 -0
- package/dist-ai/schema/manifest.schema.json +21 -636
- package/dist-ai/services/infinite-scroll.json +4 -4
- package/dist-ai/services/infinite-scroll.md +9 -4
- package/dist-ai/services/loading.json +3 -3
- package/dist-ai/services/loading.md +2 -1
- package/dist-ai/services/message-box.json +3 -3
- package/dist-ai/services/message-box.md +1 -1
- package/dist-ai/services/message.json +3 -3
- package/dist-ai/services/message.md +1 -1
- package/dist-ai/services/notification.json +3 -3
- package/dist-ai/services/notification.md +1 -1
- package/package.json +3 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"exampleOmittedReason": null,
|
|
12
12
|
"examples": [
|
|
13
13
|
{
|
|
14
|
-
"code": "import { createApp } from 'vue'\nimport { EpInfiniteScroll } from 'ep-craft'\
|
|
14
|
+
"code": "import { createApp, h } from 'vue'\nimport { EpInfiniteScroll } from 'ep-craft'\n\nconst app = createApp({\n render: () => h('main', { id: 'app' }),\n})\n\napp.use(EpInfiniteScroll)\napp.mount('#app')",
|
|
15
15
|
"id": "infinite-scroll-1",
|
|
16
16
|
"language": "ts",
|
|
17
17
|
"title": "注册无限滚动"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"slug": "infinite-scroll",
|
|
75
75
|
"summary": "无限滚动指令,滚动接近底部时触发加载回调"
|
|
76
76
|
},
|
|
77
|
-
"generatedAt": "2026-11-
|
|
78
|
-
"libraryVersion": "0.2.
|
|
79
|
-
"schemaVersion":
|
|
77
|
+
"generatedAt": "2026-11-05T07:02:41.575Z",
|
|
78
|
+
"libraryVersion": "0.2.2",
|
|
79
|
+
"schemaVersion": 2
|
|
80
80
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
## 调用方式
|
|
15
15
|
|
|
16
16
|
- 调用形式:v-infinite-scroll="load"(同时可通过 EpInfiniteScroll 安装)
|
|
17
|
+
- 关联指令:directive:infinite-scroll
|
|
17
18
|
- 选项 delay(number,默认 200):滚动后触发的节流毫秒数,通过 infinite-scroll-delay 设置
|
|
18
19
|
- 选项 distance(number,默认 0):距底部多少像素触发,通过 infinite-scroll-distance 设置
|
|
19
20
|
- 选项 disabled(boolean,默认 false):是否禁用加载,通过 infinite-scroll-disabled 设置
|
|
@@ -27,11 +28,15 @@
|
|
|
27
28
|
### 注册无限滚动
|
|
28
29
|
|
|
29
30
|
```ts
|
|
30
|
-
import { createApp } from 'vue'
|
|
31
|
+
import { createApp, h } from 'vue'
|
|
31
32
|
import { EpInfiniteScroll } from 'ep-craft'
|
|
32
|
-
import App from './App.vue'
|
|
33
33
|
|
|
34
|
-
createApp(
|
|
34
|
+
const app = createApp({
|
|
35
|
+
render: () => h('main', { id: 'app' }),
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
app.use(EpInfiniteScroll)
|
|
39
|
+
app.mount('#app')
|
|
35
40
|
```
|
|
36
41
|
|
|
37
42
|
### 加载更多列表
|
|
@@ -68,4 +73,4 @@ const load = () => {
|
|
|
68
73
|
|
|
69
74
|
---
|
|
70
75
|
|
|
71
|
-
ep-craft 0.2.
|
|
76
|
+
ep-craft 0.2.2
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"slug": "loading",
|
|
103
103
|
"summary": "加载服务,在目标区域或全屏展示等待遮罩"
|
|
104
104
|
},
|
|
105
|
-
"generatedAt": "2026-11-
|
|
106
|
-
"libraryVersion": "0.2.
|
|
107
|
-
"schemaVersion":
|
|
105
|
+
"generatedAt": "2026-11-05T07:02:41.575Z",
|
|
106
|
+
"libraryVersion": "0.2.2",
|
|
107
|
+
"schemaVersion": 2
|
|
108
108
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
## 调用方式
|
|
15
15
|
|
|
16
16
|
- 调用形式:EpLoading.service(options) 或 v-loading="loading"
|
|
17
|
+
- 关联指令:directive:loading
|
|
17
18
|
- 选项 target(HTMLElement | string,默认 document.body):需要覆盖的目标元素或选择器
|
|
18
19
|
- 选项 body(boolean,默认 false):是否覆盖整个 body,等价于 fullscreen 用法
|
|
19
20
|
- 选项 fullscreen(boolean,默认 false):是否全屏显示加载遮罩
|
|
@@ -55,4 +56,4 @@ const start = async () => {
|
|
|
55
56
|
|
|
56
57
|
---
|
|
57
58
|
|
|
58
|
-
ep-craft 0.2.
|
|
59
|
+
ep-craft 0.2.2
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"slug": "message-box",
|
|
154
154
|
"summary": "模态消息框,用于确认、警告与输入"
|
|
155
155
|
},
|
|
156
|
-
"generatedAt": "2026-11-
|
|
157
|
-
"libraryVersion": "0.2.
|
|
158
|
-
"schemaVersion":
|
|
156
|
+
"generatedAt": "2026-11-05T07:02:41.575Z",
|
|
157
|
+
"libraryVersion": "0.2.2",
|
|
158
|
+
"schemaVersion": 2
|
|
159
159
|
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"slug": "message",
|
|
132
132
|
"summary": "全局轻量消息提示,展示短暂操作反馈"
|
|
133
133
|
},
|
|
134
|
-
"generatedAt": "2026-11-
|
|
135
|
-
"libraryVersion": "0.2.
|
|
136
|
-
"schemaVersion":
|
|
134
|
+
"generatedAt": "2026-11-05T07:02:41.575Z",
|
|
135
|
+
"libraryVersion": "0.2.2",
|
|
136
|
+
"schemaVersion": 2
|
|
137
137
|
}
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"slug": "notification",
|
|
131
131
|
"summary": "角落通知提醒,展示带标题的较完整消息"
|
|
132
132
|
},
|
|
133
|
-
"generatedAt": "2026-11-
|
|
134
|
-
"libraryVersion": "0.2.
|
|
135
|
-
"schemaVersion":
|
|
133
|
+
"generatedAt": "2026-11-05T07:02:41.575Z",
|
|
134
|
+
"libraryVersion": "0.2.2",
|
|
135
|
+
"schemaVersion": 2
|
|
136
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep-craft",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A self-contained Vue 3 component library with ep- prefix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.34.4",
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist && tsx scripts/rewrite-declarations.ts && tsx scripts/check-element-plus.ts && tsx scripts/gen-ai.ts",
|
|
65
65
|
"typecheck": "vue-tsc -p tsconfig.typecheck.json",
|
|
66
|
+
"test": "pnpm run test:ai && pnpm run ai:mcp:test",
|
|
67
|
+
"test:ai": "node scripts/test-ai.mjs",
|
|
66
68
|
"check:dist": "tsx scripts/check-element-plus.ts",
|
|
67
69
|
"gen": "tsx scripts/gen-components.ts",
|
|
68
70
|
"gen:check": "tsx scripts/gen-components.ts --check",
|