feat(DOC): 完整地审查了代码,更完整的注释说明

- 未修改代码
- 统一了所有组件README的格式
This commit is contained in:
tobegold574
2025-11-23 22:29:31 +08:00
parent 5e395ccae4
commit 0969e00d76
40 changed files with 980 additions and 1554 deletions

View File

@@ -6,6 +6,7 @@ import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [
vue(),
// 这个很重要要把css带到js文件里面因为styles要留给全局样式的导出
cssInjectedByJsPlugin()
],
resolve: {
@@ -20,12 +21,16 @@ export default defineConfig({
name: 'knowaiUi',
fileName: (format) => `knowai-ui.${format}.js`
},
// 为了和类型文件以及sass文件在同一根目录下
outDir: 'dist/client',
// 不让清空
emptyOutDir: false,
cssCodeSplit: false, // 插件模式下可以关闭拆分
// vue时peer dependency
rollupOptions: {
external: ['vue'],
output: {
// 把external变量映射到内部全局
globals: {
vue: 'Vue'
}