persagy-vant 0.0.22 → 0.0.24
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/README.md +41 -7
- package/es/fonts/meri-mobile-icon.ttf +0 -0
- package/es/fonts/meri-mobile-icon.woff +0 -0
- package/es/fonts/meri-mobile-icon.woff2 +0 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/fonts/meri-mobile-icon.ttf +0 -0
- package/lib/fonts/meri-mobile-icon.woff +0 -0
- package/lib/fonts/meri-mobile-icon.woff2 +0 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +1 -1
- package/lib/vant.es.js +1 -1
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
# Persagy Vant AI
|
|
2
2
|
|
|
3
|
-
Persagy 移动端 Vue 3
|
|
3
|
+
Persagy 移动端 Vue 3 组件库。产品经理可通过 AI 编程工具复用统一的基础组件和业务组件,提升产品的视觉、交互与体验一致性。
|
|
4
|
+
|
|
5
|
+
## 产品经理使用方式
|
|
6
|
+
|
|
7
|
+
只使用这一条流程:在**自己的产品项目**安装组件库,再让 AI 读取包内的 Skill。无需下载或复制本仓库。
|
|
8
|
+
|
|
9
|
+
### 1. 安装组件库
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add persagy-vant
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 2. 每次新开 AI 会话先发送统一指令
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
请先读取并严格执行 node_modules/persagy-vant/skills/use-persagy-vant/SKILL.md。
|
|
19
|
+
|
|
20
|
+
本项目所有移动端 UI 和业务选择能力必须优先复用 persagy-vant;
|
|
21
|
+
不要自行实现组件库已有的组件、交互或样式。
|
|
22
|
+
实现前先阅读所用组件在 node_modules/persagy-vant/es/<组件名>/README.zh-CN.md 中的 API 和示例。
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
这套方式兼容 Codex、Cursor、Claude Code、Windsurf、Copilot 等可读取项目文件的 AI 编程工具。
|
|
26
|
+
|
|
27
|
+
### 3. 描述本次任务
|
|
28
|
+
|
|
29
|
+
- **根据 PRD 开发**:提供 PRD、原型说明或页面清单,并要求 AI 先列出页面结构、交互流程和拟复用的组件。
|
|
30
|
+
- **优化已有页面**:提供页面路径或问题描述,并要求 AI 先列出问题、改造方案和拟替换的组件,再改代码。
|
|
31
|
+
- **明确指定组件**:直接说“请使用 persagy-vant 的 `<组件名>` 实现 `<业务场景>`”,并要求 AI 先读取该组件 README 后实现。
|
|
32
|
+
|
|
33
|
+
### 获取最新版
|
|
34
|
+
|
|
35
|
+
组件库发布新版本后,在产品项目根目录执行:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm up persagy-vant
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
然后在下一次 AI 会话重新发送“统一指令”。组件、组件文档和 Skill 会随 npm 包一起更新。
|
|
42
|
+
|
|
43
|
+
完整的可转发说明见:[产品经理 AI 开发使用说明](./docs/markdown/product-manager-guide.zh-CN.md)。
|
|
4
44
|
|
|
5
45
|
## 仓库结构
|
|
6
46
|
|
|
@@ -22,12 +62,6 @@ pnpm build
|
|
|
22
62
|
|
|
23
63
|
常用命令与发布配置见 [package.json](./package.json)。
|
|
24
64
|
|
|
25
|
-
## 使用 Skill
|
|
26
|
-
|
|
27
|
-
仓库内的 [use-persagy-vant](./skills/use-persagy-vant/SKILL.md) 用于在 Vue 3 移动端页面中选择、组合和接入 Persagy Vant 组件。
|
|
28
|
-
|
|
29
|
-
Skill 与组件库版本应一同评审和发布:凡是组件导入方式、关键 API 或设计变量发生变更,都需要同步更新 Skill 的引用资料。
|
|
30
|
-
|
|
31
65
|
## 产物管理
|
|
32
66
|
|
|
33
67
|
`es/`、`lib/`、`site-dist/` 和 `test/coverage/` 都是构建或测试产物。新文件默认不提交,由 CI 构建并用于发布;已经被 Git 跟踪的历史产物请在一次独立的清理提交中处理,不要与组件功能改动混合。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -95,7 +95,7 @@ import { TreeSelect } from "./tree-select/index.mjs";
|
|
|
95
95
|
import { Uploader } from "./uploader/index.mjs";
|
|
96
96
|
import { VideoPreview } from "./video-preview/index.mjs";
|
|
97
97
|
import { WorkOrderFilter } from "./work-order-filter/index.mjs";
|
|
98
|
-
const version = "0.0.
|
|
98
|
+
const version = "0.0.24";
|
|
99
99
|
function install(app) {
|
|
100
100
|
const components = [
|
|
101
101
|
ActionBar,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -218,7 +218,7 @@ __reExport(stdin_exports, require("./tree-select"), module.exports);
|
|
|
218
218
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
219
219
|
__reExport(stdin_exports, require("./video-preview"), module.exports);
|
|
220
220
|
__reExport(stdin_exports, require("./work-order-filter"), module.exports);
|
|
221
|
-
const version = "0.0.
|
|
221
|
+
const version = "0.0.24";
|
|
222
222
|
function install(app) {
|
|
223
223
|
const components = [
|
|
224
224
|
import_action_bar.ActionBar,
|
package/lib/vant.cjs.js
CHANGED
|
@@ -19116,7 +19116,7 @@ const Lazyload = {
|
|
|
19116
19116
|
});
|
|
19117
19117
|
}
|
|
19118
19118
|
};
|
|
19119
|
-
const version = "0.0.
|
|
19119
|
+
const version = "0.0.24";
|
|
19120
19120
|
function install(app) {
|
|
19121
19121
|
const components = [
|
|
19122
19122
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
|
@@ -19114,7 +19114,7 @@ const Lazyload = {
|
|
|
19114
19114
|
});
|
|
19115
19115
|
}
|
|
19116
19116
|
};
|
|
19117
|
-
const version = "0.0.
|
|
19117
|
+
const version = "0.0.24";
|
|
19118
19118
|
function install(app) {
|
|
19119
19119
|
const components = [
|
|
19120
19120
|
ActionBar,
|
package/lib/vant.js
CHANGED
|
@@ -22703,7 +22703,7 @@
|
|
|
22703
22703
|
});
|
|
22704
22704
|
}
|
|
22705
22705
|
};
|
|
22706
|
-
const version = "0.0.
|
|
22706
|
+
const version = "0.0.24";
|
|
22707
22707
|
function install(app) {
|
|
22708
22708
|
const components = [
|
|
22709
22709
|
ActionBar,
|