sunyard-szyy-ui 0.8.1 → 0.8.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/README.md +56 -25
- package/dist/index.full.js +4 -4
- package/dist/index.full.mjs +3007 -2770
- package/dist/utils/index.cjs +4 -0
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +4 -0
- package/es/affix/index.d.ts +2 -0
- package/es/affix/index.d.ts.map +1 -0
- package/es/affix/src/affix.d.ts +25 -0
- package/es/affix/src/affix.d.ts.map +1 -0
- package/es/affix/src/affix.mjs +1 -0
- package/es/affix/style/css.d.ts +3 -0
- package/es/affix/style/css.d.ts.map +1 -0
- package/es/affix/style/index.d.ts +3 -0
- package/es/affix/style/index.d.ts.map +1 -0
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.d.ts.map +1 -0
- package/es/avatar/src/avatar.d.ts +25 -0
- package/es/avatar/src/avatar.d.ts.map +1 -0
- package/es/avatar/src/avatar.mjs +1 -0
- package/es/avatar/style/css.d.ts +3 -0
- package/es/avatar/style/css.d.ts.map +1 -0
- package/es/avatar/style/index.d.ts +3 -0
- package/es/avatar/style/index.d.ts.map +1 -0
- package/es/badge/index.d.ts +2 -0
- package/es/badge/index.d.ts.map +1 -0
- package/es/badge/src/badge.d.ts +25 -0
- package/es/badge/src/badge.d.ts.map +1 -0
- package/es/badge/src/badge.mjs +1 -0
- package/es/badge/style/css.d.ts +3 -0
- package/es/badge/style/css.d.ts.map +1 -0
- package/es/badge/style/index.d.ts +3 -0
- package/es/badge/style/index.d.ts.map +1 -0
- package/es/calendar/index.d.ts +2 -0
- package/es/calendar/index.d.ts.map +1 -0
- package/es/calendar/src/calendar.d.ts +25 -0
- package/es/calendar/src/calendar.d.ts.map +1 -0
- package/es/calendar/src/calendar.mjs +1 -0
- package/es/calendar/style/css.d.ts +3 -0
- package/es/calendar/style/css.d.ts.map +1 -0
- package/es/calendar/style/index.d.ts +3 -0
- package/es/calendar/style/index.d.ts.map +1 -0
- package/es/carousel/index.d.ts +2 -0
- package/es/carousel/index.d.ts.map +1 -0
- package/es/carousel/src/carousel.d.ts +48 -0
- package/es/carousel/src/carousel.d.ts.map +1 -0
- package/es/carousel/src/carousel.mjs +1 -0
- package/es/carousel/style/css.d.ts +4 -0
- package/es/carousel/style/css.d.ts.map +1 -0
- package/es/carousel/style/index.d.ts +4 -0
- package/es/carousel/style/index.d.ts.map +1 -0
- package/es/components/affix/index.mjs +1 -0
- package/es/components/affix/style/css.mjs +1 -0
- package/es/components/affix/style/index.mjs +1 -0
- package/es/components/avatar/index.mjs +1 -0
- package/es/components/avatar/style/css.mjs +1 -0
- package/es/components/avatar/style/index.mjs +1 -0
- package/es/components/badge/index.mjs +1 -0
- package/es/components/badge/style/css.mjs +1 -0
- package/es/components/badge/style/index.mjs +1 -0
- package/es/components/calendar/index.mjs +1 -0
- package/es/components/calendar/style/css.mjs +1 -0
- package/es/components/calendar/style/index.mjs +1 -0
- package/es/components/carousel/index.mjs +1 -0
- package/es/components/carousel/style/css.mjs +1 -0
- package/es/components/carousel/style/index.mjs +1 -0
- package/es/components/page-header/index.mjs +1 -0
- package/es/components/page-header/style/css.mjs +1 -0
- package/es/components/page-header/style/index.mjs +1 -0
- package/es/components/rate/index.mjs +1 -0
- package/es/components/rate/style/css.mjs +1 -0
- package/es/components/rate/style/index.mjs +1 -0
- package/es/components/statistic/index.mjs +1 -0
- package/es/components/statistic/style/css.mjs +1 -0
- package/es/components/statistic/style/index.mjs +1 -0
- package/es/components/timeline/index.mjs +1 -0
- package/es/components/timeline/style/css.mjs +1 -0
- package/es/components/timeline/style/index.mjs +1 -0
- package/es/components/transfer/index.mjs +1 -0
- package/es/components/transfer/style/css.mjs +1 -0
- package/es/components/transfer/style/index.mjs +1 -0
- package/es/components/watermark/index.mjs +1 -0
- package/es/components/watermark/style/css.mjs +1 -0
- package/es/components/watermark/style/index.mjs +1 -0
- package/es/hooks/dist/index.mjs +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.d.ts.map +1 -1
- package/es/index.mjs +3 -3
- package/es/make-installer.mjs +1 -1
- package/es/page-header/index.d.ts +2 -0
- package/es/page-header/index.d.ts.map +1 -0
- package/es/page-header/src/page-header.d.ts +25 -0
- package/es/page-header/src/page-header.d.ts.map +1 -0
- package/es/page-header/src/page-header.mjs +1 -0
- package/es/page-header/style/css.d.ts +3 -0
- package/es/page-header/style/css.d.ts.map +1 -0
- package/es/page-header/style/index.d.ts +3 -0
- package/es/page-header/style/index.d.ts.map +1 -0
- package/es/pro-form/src/ProForm.vue.mjs +1 -1
- package/es/pro-form/src/hooks/use-pro-form-schema.d.ts.map +1 -1
- package/es/pro-form/src/hooks/use-pro-form-schema.mjs +1 -1
- package/es/pro-form/src/types.d.ts +2 -0
- package/es/pro-form/src/types.d.ts.map +1 -1
- package/es/pro-table/src/hooks/use-auto-table-height.d.ts +14 -0
- package/es/pro-table/src/hooks/use-auto-table-height.d.ts.map +1 -0
- package/es/pro-table/src/hooks/use-auto-table-height.mjs +1 -0
- package/es/pro-table/src/variants/classic/ClassicLayout.vue.mjs +1 -1
- package/es/pro-table/src/variants/custom/CustomLayout.vue.mjs +1 -1
- package/es/pro-table/src/variants/unify/UnifyLayout.vue.mjs +1 -1
- package/es/rate/index.d.ts +2 -0
- package/es/rate/index.d.ts.map +1 -0
- package/es/rate/src/rate.d.ts +25 -0
- package/es/rate/src/rate.d.ts.map +1 -0
- package/es/rate/src/rate.mjs +1 -0
- package/es/rate/style/css.d.ts +3 -0
- package/es/rate/style/css.d.ts.map +1 -0
- package/es/rate/style/index.d.ts +3 -0
- package/es/rate/style/index.d.ts.map +1 -0
- package/es/scrollbar/src/scrollbar-drag-fix.d.ts +12 -0
- package/es/scrollbar/src/scrollbar-drag-fix.d.ts.map +1 -0
- package/es/scrollbar/src/scrollbar-drag-fix.mjs +1 -0
- package/es/scrollbar/src/scrollbar.d.ts +49 -9
- package/es/scrollbar/src/scrollbar.d.ts.map +1 -1
- package/es/scrollbar/src/scrollbar.mjs +1 -1
- package/es/statistic/index.d.ts +2 -0
- package/es/statistic/index.d.ts.map +1 -0
- package/es/statistic/src/statistic.d.ts +25 -0
- package/es/statistic/src/statistic.d.ts.map +1 -0
- package/es/statistic/src/statistic.mjs +1 -0
- package/es/statistic/style/css.d.ts +3 -0
- package/es/statistic/style/css.d.ts.map +1 -0
- package/es/statistic/style/index.d.ts +3 -0
- package/es/statistic/style/index.d.ts.map +1 -0
- package/es/table/src/table.d.ts +48 -8
- package/es/table/src/table.d.ts.map +1 -1
- package/es/table/src/table.mjs +1 -1
- package/es/timeline/index.d.ts +2 -0
- package/es/timeline/index.d.ts.map +1 -0
- package/es/timeline/src/timeline.d.ts +48 -0
- package/es/timeline/src/timeline.d.ts.map +1 -0
- package/es/timeline/src/timeline.mjs +1 -0
- package/es/timeline/style/css.d.ts +4 -0
- package/es/timeline/style/css.d.ts.map +1 -0
- package/es/timeline/style/index.d.ts +4 -0
- package/es/timeline/style/index.d.ts.map +1 -0
- package/es/transfer/index.d.ts +2 -0
- package/es/transfer/index.d.ts.map +1 -0
- package/es/transfer/src/transfer.d.ts +25 -0
- package/es/transfer/src/transfer.d.ts.map +1 -0
- package/es/transfer/src/transfer.mjs +1 -0
- package/es/transfer/style/css.d.ts +3 -0
- package/es/transfer/style/css.d.ts.map +1 -0
- package/es/transfer/style/index.d.ts +3 -0
- package/es/transfer/style/index.d.ts.map +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/es/watermark/index.d.ts +2 -0
- package/es/watermark/index.d.ts.map +1 -0
- package/es/watermark/src/watermark.d.ts +25 -0
- package/es/watermark/src/watermark.d.ts.map +1 -0
- package/es/watermark/src/watermark.mjs +1 -0
- package/es/watermark/style/css.d.ts +3 -0
- package/es/watermark/style/css.d.ts.map +1 -0
- package/es/watermark/style/index.d.ts +3 -0
- package/es/watermark/style/index.d.ts.map +1 -0
- package/lib/affix/index.d.ts +2 -0
- package/lib/affix/src/affix.d.ts +25 -0
- package/lib/affix/src/affix.js +1 -0
- package/lib/affix/style/css.d.ts +3 -0
- package/lib/affix/style/index.d.ts +3 -0
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/src/avatar.d.ts +25 -0
- package/lib/avatar/src/avatar.js +1 -0
- package/lib/avatar/style/css.d.ts +3 -0
- package/lib/avatar/style/index.d.ts +3 -0
- package/lib/badge/index.d.ts +2 -0
- package/lib/badge/src/badge.d.ts +25 -0
- package/lib/badge/src/badge.js +1 -0
- package/lib/badge/style/css.d.ts +3 -0
- package/lib/badge/style/index.d.ts +3 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar/src/calendar.d.ts +25 -0
- package/lib/calendar/src/calendar.js +1 -0
- package/lib/calendar/style/css.d.ts +3 -0
- package/lib/calendar/style/index.d.ts +3 -0
- package/lib/carousel/index.d.ts +2 -0
- package/lib/carousel/src/carousel.d.ts +48 -0
- package/lib/carousel/src/carousel.js +1 -0
- package/lib/carousel/style/css.d.ts +4 -0
- package/lib/carousel/style/index.d.ts +4 -0
- package/lib/components/affix/index.js +1 -0
- package/lib/components/affix/style/css.js +1 -0
- package/lib/components/affix/style/index.js +1 -0
- package/lib/components/avatar/index.js +1 -0
- package/lib/components/avatar/style/css.js +1 -0
- package/lib/components/avatar/style/index.js +1 -0
- package/lib/components/badge/index.js +1 -0
- package/lib/components/badge/style/css.js +1 -0
- package/lib/components/badge/style/index.js +1 -0
- package/lib/components/calendar/index.js +1 -0
- package/lib/components/calendar/style/css.js +1 -0
- package/lib/components/calendar/style/index.js +1 -0
- package/lib/components/carousel/index.js +1 -0
- package/lib/components/carousel/style/css.js +1 -0
- package/lib/components/carousel/style/index.js +1 -0
- package/lib/components/page-header/index.js +1 -0
- package/lib/components/page-header/style/css.js +1 -0
- package/lib/components/page-header/style/index.js +1 -0
- package/lib/components/rate/index.js +1 -0
- package/lib/components/rate/style/css.js +1 -0
- package/lib/components/rate/style/index.js +1 -0
- package/lib/components/statistic/index.js +1 -0
- package/lib/components/statistic/style/css.js +1 -0
- package/lib/components/statistic/style/index.js +1 -0
- package/lib/components/timeline/index.js +1 -0
- package/lib/components/timeline/style/css.js +1 -0
- package/lib/components/timeline/style/index.js +1 -0
- package/lib/components/transfer/index.js +1 -0
- package/lib/components/transfer/style/css.js +1 -0
- package/lib/components/transfer/style/index.js +1 -0
- package/lib/components/watermark/index.js +1 -0
- package/lib/components/watermark/style/css.js +1 -0
- package/lib/components/watermark/style/index.js +1 -0
- package/lib/hooks/dist/index.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/make-installer.js +1 -1
- package/lib/page-header/index.d.ts +2 -0
- package/lib/page-header/src/page-header.d.ts +25 -0
- package/lib/page-header/src/page-header.js +1 -0
- package/lib/page-header/style/css.d.ts +3 -0
- package/lib/page-header/style/index.d.ts +3 -0
- package/lib/pro-form/src/ProForm.vue.js +1 -1
- package/lib/pro-form/src/hooks/use-pro-form-schema.js +1 -1
- package/lib/pro-form/src/types.d.ts +2 -0
- package/lib/pro-table/src/hooks/use-auto-table-height.d.ts +14 -0
- package/lib/pro-table/src/hooks/use-auto-table-height.js +1 -0
- package/lib/pro-table/src/variants/classic/ClassicLayout.vue.js +1 -1
- package/lib/pro-table/src/variants/custom/CustomLayout.vue.js +1 -1
- package/lib/pro-table/src/variants/unify/UnifyLayout.vue.js +1 -1
- package/lib/rate/index.d.ts +2 -0
- package/lib/rate/src/rate.d.ts +25 -0
- package/lib/rate/src/rate.js +1 -0
- package/lib/rate/style/css.d.ts +3 -0
- package/lib/rate/style/index.d.ts +3 -0
- package/lib/scrollbar/src/scrollbar-drag-fix.d.ts +12 -0
- package/lib/scrollbar/src/scrollbar-drag-fix.js +1 -0
- package/lib/scrollbar/src/scrollbar.d.ts +49 -9
- package/lib/scrollbar/src/scrollbar.js +1 -1
- package/lib/statistic/index.d.ts +2 -0
- package/lib/statistic/src/statistic.d.ts +25 -0
- package/lib/statistic/src/statistic.js +1 -0
- package/lib/statistic/style/css.d.ts +3 -0
- package/lib/statistic/style/index.d.ts +3 -0
- package/lib/table/src/table.d.ts +48 -8
- package/lib/table/src/table.js +1 -1
- package/lib/timeline/index.d.ts +2 -0
- package/lib/timeline/src/timeline.d.ts +48 -0
- package/lib/timeline/src/timeline.js +1 -0
- package/lib/timeline/style/css.d.ts +4 -0
- package/lib/timeline/style/index.d.ts +4 -0
- package/lib/transfer/index.d.ts +2 -0
- package/lib/transfer/src/transfer.d.ts +25 -0
- package/lib/transfer/src/transfer.js +1 -0
- package/lib/transfer/style/css.d.ts +3 -0
- package/lib/transfer/style/index.d.ts +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/lib/watermark/index.d.ts +2 -0
- package/lib/watermark/src/watermark.d.ts +25 -0
- package/lib/watermark/src/watermark.js +1 -0
- package/lib/watermark/style/css.d.ts +3 -0
- package/lib/watermark/style/index.d.ts +3 -0
- package/package.json +4 -4
- package/theme-chalk/affix.css +1 -0
- package/theme-chalk/avatar.css +1 -0
- package/theme-chalk/badge.css +1 -0
- package/theme-chalk/calendar.css +1 -0
- package/theme-chalk/carousel.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/page-header.css +1 -0
- package/theme-chalk/pro-table.css +1 -1
- package/theme-chalk/rate.css +1 -0
- package/theme-chalk/src/affix.scss +5 -0
- package/theme-chalk/src/avatar.scss +5 -0
- package/theme-chalk/src/badge.scss +5 -0
- package/theme-chalk/src/calendar.scss +5 -0
- package/theme-chalk/src/carousel.scss +5 -0
- package/theme-chalk/src/index.scss +20 -9
- package/theme-chalk/src/page-header.scss +5 -0
- package/theme-chalk/src/pro-table.scss +9 -1
- package/theme-chalk/src/rate.scss +5 -0
- package/theme-chalk/src/statistic.scss +5 -0
- package/theme-chalk/src/timeline.scss +5 -0
- package/theme-chalk/src/transfer.scss +5 -0
- package/theme-chalk/src/watermark.scss +5 -0
- package/theme-chalk/statistic.css +1 -0
- package/theme-chalk/timeline.css +1 -0
- package/theme-chalk/transfer.css +1 -0
- package/theme-chalk/watermark.css +1 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
- 🚀 **Vue 3 + TypeScript** - 基于 Vue 3.5+ 和 TypeScript 5.6+
|
|
12
12
|
- 📦 **Monorepo 架构** - 使用 pnpm workspace 管理
|
|
13
|
-
- 🎨 **主题定制** -
|
|
13
|
+
- 🎨 **主题定制** - `base.css` 运行时覆盖 `--el-*`,并暴露 `--sy-*` 语义化变量
|
|
14
14
|
- 🔥 **按需加载** - 支持自动按需导入,极致的打包体积
|
|
15
15
|
- 📚 **完整文档** - 详细的使用文档和 API 说明
|
|
16
16
|
- 💪 **TypeScript** - 完整的类型定义和类型推导
|
|
@@ -20,20 +20,27 @@
|
|
|
20
20
|
## 📦 安装
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
+
# pnpm(推荐)
|
|
24
|
+
pnpm add sunyard-szyy-ui element-plus
|
|
25
|
+
pnpm add -D sass unplugin-auto-import unplugin-vue-components
|
|
26
|
+
|
|
23
27
|
# npm
|
|
24
28
|
npm install sunyard-szyy-ui element-plus
|
|
29
|
+
npm install -D sass unplugin-auto-import unplugin-vue-components
|
|
30
|
+
```
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
pnpm add sunyard-szyy-ui element-plus
|
|
32
|
+
使用 Element Plus 图标组件时,可额外安装:
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
```bash
|
|
35
|
+
pnpm add @element-plus/icons-vue
|
|
31
36
|
```
|
|
32
37
|
|
|
33
38
|
## 🚀 快速开始
|
|
34
39
|
|
|
35
40
|
### 全量引入
|
|
36
41
|
|
|
42
|
+
适合快速原型;生产环境更推荐下方的自动按需引入。
|
|
43
|
+
|
|
37
44
|
```typescript
|
|
38
45
|
// main.ts
|
|
39
46
|
import { createApp } from 'vue';
|
|
@@ -54,8 +61,19 @@ app.mount('#app');
|
|
|
54
61
|
|
|
55
62
|
### 自动按需引入(推荐)
|
|
56
63
|
|
|
64
|
+
**1. tsconfig.json** — `sunyard-szyy-ui/utils` 依赖 `exports` 子路径,需:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"compilerOptions": {
|
|
69
|
+
"moduleResolution": "Bundler"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**2. vite.config.ts**
|
|
75
|
+
|
|
57
76
|
```typescript
|
|
58
|
-
// vite.config.ts
|
|
59
77
|
import { defineConfig } from 'vite';
|
|
60
78
|
import vue from '@vitejs/plugin-vue';
|
|
61
79
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
@@ -67,53 +85,62 @@ export default defineConfig({
|
|
|
67
85
|
plugins: [
|
|
68
86
|
vue(),
|
|
69
87
|
AutoImport({
|
|
88
|
+
imports: ['vue', '@vueuse/core', 'pinia', 'vue-router'],
|
|
70
89
|
resolvers: [
|
|
71
90
|
ElementPlusResolver(),
|
|
72
|
-
SunyardSzyyUIAutoImportResolver()
|
|
91
|
+
SunyardSzyyUIAutoImportResolver()
|
|
92
|
+
// SyMessage / SyMessageBox / SyNotification / SyLoading / SyFeedback
|
|
73
93
|
],
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
ignore: ['constructor']
|
|
94
|
+
ignore: ['constructor'],
|
|
95
|
+
dts: 'src/typings/auto-imports.d.ts'
|
|
77
96
|
}),
|
|
78
|
-
// SY resolver 放在 EP 之前,确保 v-loading 指令优先走 SyLoadingDirective
|
|
79
97
|
Components({
|
|
80
|
-
resolvers: [
|
|
81
|
-
|
|
82
|
-
ElementPlusResolver({ importStyle: 'sass' })
|
|
83
|
-
]
|
|
98
|
+
resolvers: [...SunyardSzyyUIResolver(), ElementPlusResolver({ importStyle: 'sass' })],
|
|
99
|
+
dts: 'src/components.d.ts'
|
|
84
100
|
})
|
|
85
101
|
],
|
|
86
102
|
css: {
|
|
87
103
|
preprocessorOptions: {
|
|
88
104
|
scss: {
|
|
89
|
-
|
|
105
|
+
silenceDeprecations: ['import', 'legacy-js-api', 'color-functions']
|
|
90
106
|
}
|
|
91
107
|
}
|
|
92
108
|
}
|
|
93
109
|
});
|
|
94
110
|
```
|
|
95
111
|
|
|
112
|
+
> SY resolver 须放在 `ElementPlusResolver` **之前**,以便 `v-loading` 优先解析为 `SyLoadingDirective`。
|
|
113
|
+
|
|
114
|
+
**3. main.ts**
|
|
115
|
+
|
|
96
116
|
```typescript
|
|
97
|
-
|
|
117
|
+
import { createApp } from 'vue';
|
|
118
|
+
|
|
119
|
+
// 按需模式下不要引入 element-plus/dist/index.css
|
|
98
120
|
import 'sunyard-szyy-ui/theme-chalk/base.css';
|
|
121
|
+
|
|
122
|
+
import App from './App.vue';
|
|
123
|
+
|
|
124
|
+
createApp(App).mount('#app');
|
|
99
125
|
```
|
|
100
126
|
|
|
127
|
+
- 只需 `base.css`:运行时覆盖 `--el-*`,并暴露 `--sy-*`;组件与函数式 API 样式由 Resolver 自动注入。
|
|
128
|
+
- 默认**不要**在 Vite 里用 `scss.additionalData` 注入 `var.scss`;业务工程以 `base.css` 为准。更完整说明见仓库 `docs/guide/getting-started.md`。
|
|
129
|
+
|
|
101
130
|
### 使用组件
|
|
102
131
|
|
|
103
132
|
```vue
|
|
104
133
|
<template>
|
|
105
|
-
<
|
|
106
|
-
<SyInput v-model="keyword" placeholder="请输入关键词" />
|
|
107
|
-
</div>
|
|
134
|
+
<SyInput v-model="keyword" placeholder="请输入关键词" />
|
|
108
135
|
</template>
|
|
109
136
|
|
|
110
137
|
<script setup lang="ts">
|
|
111
|
-
import { ref } from 'vue';
|
|
112
|
-
|
|
113
138
|
const keyword = ref('');
|
|
114
139
|
</script>
|
|
115
140
|
```
|
|
116
141
|
|
|
142
|
+
按需模式下 `ref` 与 `SyInput` 可由 unplugin 自动导入,无需手写 import。
|
|
143
|
+
|
|
117
144
|
## 📚 包结构
|
|
118
145
|
|
|
119
146
|
本项目采用 Monorepo 架构,包含以下子包:
|
|
@@ -122,7 +149,7 @@ const keyword = ref('');
|
|
|
122
149
|
sunyard-szyy-ui/
|
|
123
150
|
├── @sunyard-szyy-ui/components # Vue 组件
|
|
124
151
|
├── @sunyard-szyy-ui/hooks # Composition API Hooks
|
|
125
|
-
├── @sunyard-szyy-ui/utils #
|
|
152
|
+
├── @sunyard-szyy-ui/utils # 工具函数(含 Resolver)
|
|
126
153
|
├── @sunyard-szyy-ui/theme-chalk # 样式主题
|
|
127
154
|
└── sunyard-szyy-ui # 主包(聚合导出)
|
|
128
155
|
```
|
|
@@ -134,7 +161,7 @@ sunyard-szyy-ui/
|
|
|
134
161
|
| `sunyard-szyy-ui` | 主包,包含所有功能 | ✅ 推荐 |
|
|
135
162
|
| `@sunyard-szyy-ui/components` | Vue 组件 | ✅ 可以 |
|
|
136
163
|
| `@sunyard-szyy-ui/hooks` | Composition API Hooks | ✅ 可以 |
|
|
137
|
-
| `@sunyard-szyy-ui/utils` |
|
|
164
|
+
| `@sunyard-szyy-ui/utils` | 工具函数、Resolver | ✅ 可以 |
|
|
138
165
|
| `@sunyard-szyy-ui/theme-chalk` | 样式主题 | ❌ 不推荐 |
|
|
139
166
|
|
|
140
167
|
## 📦 发布产物
|
|
@@ -156,7 +183,7 @@ sunyard-szyy-ui/
|
|
|
156
183
|
│ └── utils/ # Utils 子包
|
|
157
184
|
└── theme-chalk/ # 样式文件
|
|
158
185
|
├── index.css # 完整样式
|
|
159
|
-
├── base.css #
|
|
186
|
+
├── base.css # 主题基础入口(按需模式推荐)
|
|
160
187
|
└── *.css # 组件样式
|
|
161
188
|
```
|
|
162
189
|
|
|
@@ -177,3 +204,7 @@ sunyard-szyy-ui
|
|
|
177
204
|
|
|
178
205
|
- `vue` ^3.0.0
|
|
179
206
|
- `element-plus` ^2.0.0
|
|
207
|
+
|
|
208
|
+
## 📖 更多文档
|
|
209
|
+
|
|
210
|
+
完整接入、微前端与全局配置说明见仓库文档站或源码中的 `docs/guide/getting-started.md`、`docs/guide/usage.md`。
|