dnhyxc-ui-vue 1.0.0
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/.prettierrc.json +22 -0
- package/docs/.vitepress/config.mts +55 -0
- package/docs/.vitepress/theme/index.ts +30 -0
- package/docs/.vitepress/theme/style.css +130 -0
- package/docs/api-examples.md +49 -0
- package/docs/auto-imports.d.ts +10 -0
- package/docs/components/icon.md +75 -0
- package/docs/components.d.ts +13 -0
- package/docs/guide/installation.md +1 -0
- package/docs/guide/quick-start.md +1 -0
- package/docs/index.md +24 -0
- package/docs/markdown-examples.md +85 -0
- package/docs/package.json +30 -0
- package/docs/vite.config.ts +20 -0
- package/eslint.config.mjs +90 -0
- package/package.json +78 -0
- package/packages/components/button/index.ts +13 -0
- package/packages/components/button/src/button.ts +20 -0
- package/packages/components/button/src/button.vue +39 -0
- package/packages/components/button/src/index.scss +3 -0
- package/packages/components/icon/index.ts +14 -0
- package/packages/components/icon/src/icon.ts +16 -0
- package/packages/components/icon/src/icon.vue +35 -0
- package/packages/components/icon2/index.ts +14 -0
- package/packages/components/icon2/src/icon2.ts +16 -0
- package/packages/components/icon2/src/icon2.vue +35 -0
- package/packages/components/index.ts +5 -0
- package/packages/components/input/index.ts +13 -0
- package/packages/components/input/src/index.scss +3 -0
- package/packages/components/input/src/input.ts +22 -0
- package/packages/components/input/src/input.vue +50 -0
- package/packages/components/monaco/index.ts +8 -0
- package/packages/components/monaco/src/custom.ts +124 -0
- package/packages/components/monaco/src/index.scss +235 -0
- package/packages/components/monaco/src/monaco.ts +46 -0
- package/packages/components/monaco/src/monaco.vue +472 -0
- package/packages/components/package.json +29 -0
- package/packages/components/tsconfig.json +34 -0
- package/packages/components/tsconfig.tsbuildinfo +1 -0
- package/packages/script/build/build.ts +90 -0
- package/packages/script/build/buildfull.ts +77 -0
- package/packages/script/build/external.ts +21 -0
- package/packages/script/build/index.ts +22 -0
- package/packages/script/utils/delPath.ts +30 -0
- package/packages/script/utils/paths.ts +7 -0
- package/packages/theme/gulpfile.js +41 -0
- package/packages/theme/package.json +16 -0
- package/packages/theme/src/icon.scss +8 -0
- package/packages/theme/src/icon2.scss +8 -0
- package/packages/theme/src/index.scss +2 -0
- package/packages/theme/src/mixins/config.scss +4 -0
- package/packages/theme/src/mixins/mixins.scss +80 -0
- package/packages/utils/bem.ts +60 -0
- package/packages/utils/index.ts +2 -0
- package/packages/utils/package.json +16 -0
- package/packages/utils/vite.config.ts +61 -0
- package/packages/utils/with-install.ts +12 -0
- package/play/.vscode/extensions.json +3 -0
- package/play/README.md +5 -0
- package/play/auto-imports.d.ts +10 -0
- package/play/components.d.ts +14 -0
- package/play/index.html +13 -0
- package/play/package.json +30 -0
- package/play/public/vite.svg +1 -0
- package/play/src/App.vue +32 -0
- package/play/src/assets/vue.svg +1 -0
- package/play/src/components/MyInput.vue +25 -0
- package/play/src/main.ts +12 -0
- package/play/src/vite-env.d.ts +7 -0
- package/play/tsconfig.app.json +14 -0
- package/play/tsconfig.json +7 -0
- package/play/tsconfig.node.json +24 -0
- package/play/vite.config.ts +20 -0
- package/pnpm-workspace.yaml +5 -0
- package/tsconfig.json +35 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
3
|
+
"compilerOptions": {
|
4
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
5
|
+
|
6
|
+
/* Linting */
|
7
|
+
"strict": true,
|
8
|
+
"noUnusedLocals": true,
|
9
|
+
"noUnusedParameters": true,
|
10
|
+
"noFallthroughCasesInSwitch": true,
|
11
|
+
"noUncheckedSideEffectImports": true
|
12
|
+
},
|
13
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
14
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
4
|
+
"target": "ES2022",
|
5
|
+
"lib": ["ES2023"],
|
6
|
+
"module": "ESNext",
|
7
|
+
"skipLibCheck": true,
|
8
|
+
|
9
|
+
/* Bundler mode */
|
10
|
+
"moduleResolution": "bundler",
|
11
|
+
"allowImportingTsExtensions": true,
|
12
|
+
"isolatedModules": true,
|
13
|
+
"moduleDetection": "force",
|
14
|
+
"noEmit": true,
|
15
|
+
|
16
|
+
/* Linting */
|
17
|
+
"strict": true,
|
18
|
+
"noUnusedLocals": true,
|
19
|
+
"noUnusedParameters": true,
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
21
|
+
"noUncheckedSideEffectImports": true
|
22
|
+
},
|
23
|
+
"include": ["vite.config.ts"]
|
24
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { defineConfig } from 'vite';
|
2
|
+
import vue from '@vitejs/plugin-vue';
|
3
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
4
|
+
import Components from 'unplugin-vue-components/vite';
|
5
|
+
import ElementPlus from 'unplugin-element-plus/vite';
|
6
|
+
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
7
|
+
|
8
|
+
// https://vite.dev/config/
|
9
|
+
export default defineConfig({
|
10
|
+
plugins: [
|
11
|
+
vue(),
|
12
|
+
AutoImport({
|
13
|
+
resolvers: [ElementPlusResolver()]
|
14
|
+
}),
|
15
|
+
Components({
|
16
|
+
resolvers: [ElementPlusResolver()]
|
17
|
+
}),
|
18
|
+
ElementPlus({})
|
19
|
+
]
|
20
|
+
});
|
package/tsconfig.json
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"baseUrl": ".",
|
4
|
+
"declaration": false, // 不生成声明文件
|
5
|
+
"target": "ES2021",
|
6
|
+
"lib": ["DOM", "ES2021"],
|
7
|
+
"module": "ESNext",
|
8
|
+
"jsx": "preserve", // 不转 jsx
|
9
|
+
"allowSyntheticDefaultImports": true, // 允许使用默认导入
|
10
|
+
"experimentalDecorators": true, // 启用装饰器
|
11
|
+
"noEmit": true,
|
12
|
+
"strict": true,
|
13
|
+
"skipLibCheck": true, // 跳过类库检查
|
14
|
+
"isolatedModules": true, // 每个文件都是模块
|
15
|
+
"resolveJsonModule": true, // 解析json文件
|
16
|
+
"removeComments": true, // 移除注释
|
17
|
+
// moduleResolution 用于指定 TypeScript 如何解析模块
|
18
|
+
// "bundler" 表示使用与打包工具(如 Webpack、Vite 等)兼容的模块解析策略
|
19
|
+
// 它支持 package.json 的 "exports" 字段,并遵循现代打包工具的模块解析规则
|
20
|
+
"moduleResolution": "bundler",
|
21
|
+
"esModuleInterop": true, // 支持 es6 commonjs 模块
|
22
|
+
"useDefineForClassFields": true, // 使用defineClassFields
|
23
|
+
"allowImportingTsExtensions": true, // 允许导入ts文件
|
24
|
+
"noImplicitAny": true, // 不允许隐式any
|
25
|
+
"noLib": false, // 不处理类库
|
26
|
+
"forceConsistentCasingInFileNames": true, // 强制区分文件名大小写
|
27
|
+
"typeRoots": ["./node_modules/@types", "../typings"] // 添加这行
|
28
|
+
// "types": ["node"], // 确保包含node类型
|
29
|
+
// "paths": {
|
30
|
+
// "@/*": ["./src/*"]
|
31
|
+
// }
|
32
|
+
},
|
33
|
+
"include": ["./packages/**/*"],
|
34
|
+
"exclude": ["node_modules", "dist/**", "**__tests__"]
|
35
|
+
}
|