ai-front-base 0.1.8 → 0.1.10
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.
|
@@ -54,6 +54,29 @@ import { AiForm } from 'ai-front-base'
|
|
|
54
54
|
|
|
55
55
|
**快速了解:** 查看 [AiSelect/types.ts](AiSelect/types.ts)
|
|
56
56
|
|
|
57
|
+
## 使用规范(强制)
|
|
58
|
+
|
|
59
|
+
**MUST 优先使用自定义组件,无自定义组件时才使用ElementPlus**
|
|
60
|
+
|
|
61
|
+
导入方式:
|
|
62
|
+
```vue
|
|
63
|
+
<script setup>
|
|
64
|
+
import { AiInput, AiSelect, AiTable, AiForm } from '@/components'
|
|
65
|
+
</script>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
示例:
|
|
69
|
+
```vue
|
|
70
|
+
<!-- ✅ 正确:使用自定义组件 -->
|
|
71
|
+
<AiInput v-model="value" />
|
|
72
|
+
|
|
73
|
+
<!-- ✅ 正确:无自定义组件时使用ElementPlus -->
|
|
74
|
+
<el-button type="primary">提交</el-button>
|
|
75
|
+
|
|
76
|
+
<!-- ❌ 错误:已有AiInput却用el-input -->
|
|
77
|
+
<el-input v-model="value" />
|
|
78
|
+
```
|
|
79
|
+
|
|
57
80
|
## AI使用指引
|
|
58
81
|
|
|
59
82
|
**如何快速了解组件?**
|
package/dist/standards/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-front-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "企业级PC端AI组件库 - 基于Vue3和Element Plus",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "./index.mjs",
|
|
8
|
-
"module": "./index.mjs",
|
|
7
|
+
"main": "./dist/index.mjs",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"import": "./index.mjs"
|
|
11
|
+
"import": "./dist/index.mjs"
|
|
12
12
|
},
|
|
13
|
-
"./styles": "./styles/index.css"
|
|
13
|
+
"./styles": "./dist/styles/index.css"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist/components",
|