You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-25Lines changed: 12 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ pnpm add vue @vueuse/core
32
32
33
33
# 开发依赖,以 Vite 为例
34
34
pnpm add vue-component-type-helpers type-fest typescript vite @vitejs/plugin-vue -D
35
-
36
35
```
37
36
38
37
### 3. 配置构建工具 alias(以 Vite 为例)
@@ -74,8 +73,12 @@ export default defineConfig({
74
73
}
75
74
},
76
75
"include": [
77
-
"src",
78
-
"compose-kit"// 确保 TS 能扫描到本库源码
76
+
"src/**/*",
77
+
"src/**/*.vue",
78
+
79
+
// 确保 TS 能扫描到本库源码
80
+
"compose-kit/src/**/*",
81
+
"compose-kit/src/**/*.vue"
79
82
]
80
83
}
81
84
```
@@ -107,7 +110,7 @@ createApp(App).use((app) => {
107
110
108
111
### 三方组件库集成(可选)
109
112
110
-
本库不会自动安装或引入任何第三方组件库及其样式(例如 Element Plus)。如果你需要结合 UI 组件库使用本库提供的能力,可以参考下面以 Element Plus 为例的可选说明。
113
+
本库不会自动安装或引入任何第三方组件库及其样式(例如 Element Plus)。如果你需要结合 UI 组件库使用本库提供的能力,可以参考下面以 Element Plus 为例的可选说明。如果在项目中完全不需要这类第三方集成,可以直接删除 `compose-kit/src/element-plus` 等对应目录,不会影响本库核心功能。
111
114
112
115
<details>
113
116
<summary>以 Element Plus 为例的集成(点击展开)</summary>
@@ -122,7 +125,7 @@ createApp(App).use((app) => {
122
125
```ts
123
126
import'element-plus/theme-chalk/index.css'
124
127
```
125
-
- 通过 `provideGlobalConfig` 配置与 Element Plus 相关的全局行为(需要先引入下方的类型扩展):
128
+
- 通过 `provideGlobalConfig` 配置与 Element Plus 相关的全局行为:
0 commit comments