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.
Files changed (75) hide show
  1. package/.prettierrc.json +22 -0
  2. package/docs/.vitepress/config.mts +55 -0
  3. package/docs/.vitepress/theme/index.ts +30 -0
  4. package/docs/.vitepress/theme/style.css +130 -0
  5. package/docs/api-examples.md +49 -0
  6. package/docs/auto-imports.d.ts +10 -0
  7. package/docs/components/icon.md +75 -0
  8. package/docs/components.d.ts +13 -0
  9. package/docs/guide/installation.md +1 -0
  10. package/docs/guide/quick-start.md +1 -0
  11. package/docs/index.md +24 -0
  12. package/docs/markdown-examples.md +85 -0
  13. package/docs/package.json +30 -0
  14. package/docs/vite.config.ts +20 -0
  15. package/eslint.config.mjs +90 -0
  16. package/package.json +78 -0
  17. package/packages/components/button/index.ts +13 -0
  18. package/packages/components/button/src/button.ts +20 -0
  19. package/packages/components/button/src/button.vue +39 -0
  20. package/packages/components/button/src/index.scss +3 -0
  21. package/packages/components/icon/index.ts +14 -0
  22. package/packages/components/icon/src/icon.ts +16 -0
  23. package/packages/components/icon/src/icon.vue +35 -0
  24. package/packages/components/icon2/index.ts +14 -0
  25. package/packages/components/icon2/src/icon2.ts +16 -0
  26. package/packages/components/icon2/src/icon2.vue +35 -0
  27. package/packages/components/index.ts +5 -0
  28. package/packages/components/input/index.ts +13 -0
  29. package/packages/components/input/src/index.scss +3 -0
  30. package/packages/components/input/src/input.ts +22 -0
  31. package/packages/components/input/src/input.vue +50 -0
  32. package/packages/components/monaco/index.ts +8 -0
  33. package/packages/components/monaco/src/custom.ts +124 -0
  34. package/packages/components/monaco/src/index.scss +235 -0
  35. package/packages/components/monaco/src/monaco.ts +46 -0
  36. package/packages/components/monaco/src/monaco.vue +472 -0
  37. package/packages/components/package.json +29 -0
  38. package/packages/components/tsconfig.json +34 -0
  39. package/packages/components/tsconfig.tsbuildinfo +1 -0
  40. package/packages/script/build/build.ts +90 -0
  41. package/packages/script/build/buildfull.ts +77 -0
  42. package/packages/script/build/external.ts +21 -0
  43. package/packages/script/build/index.ts +22 -0
  44. package/packages/script/utils/delPath.ts +30 -0
  45. package/packages/script/utils/paths.ts +7 -0
  46. package/packages/theme/gulpfile.js +41 -0
  47. package/packages/theme/package.json +16 -0
  48. package/packages/theme/src/icon.scss +8 -0
  49. package/packages/theme/src/icon2.scss +8 -0
  50. package/packages/theme/src/index.scss +2 -0
  51. package/packages/theme/src/mixins/config.scss +4 -0
  52. package/packages/theme/src/mixins/mixins.scss +80 -0
  53. package/packages/utils/bem.ts +60 -0
  54. package/packages/utils/index.ts +2 -0
  55. package/packages/utils/package.json +16 -0
  56. package/packages/utils/vite.config.ts +61 -0
  57. package/packages/utils/with-install.ts +12 -0
  58. package/play/.vscode/extensions.json +3 -0
  59. package/play/README.md +5 -0
  60. package/play/auto-imports.d.ts +10 -0
  61. package/play/components.d.ts +14 -0
  62. package/play/index.html +13 -0
  63. package/play/package.json +30 -0
  64. package/play/public/vite.svg +1 -0
  65. package/play/src/App.vue +32 -0
  66. package/play/src/assets/vue.svg +1 -0
  67. package/play/src/components/MyInput.vue +25 -0
  68. package/play/src/main.ts +12 -0
  69. package/play/src/vite-env.d.ts +7 -0
  70. package/play/tsconfig.app.json +14 -0
  71. package/play/tsconfig.json +7 -0
  72. package/play/tsconfig.node.json +24 -0
  73. package/play/vite.config.ts +20 -0
  74. package/pnpm-workspace.yaml +5 -0
  75. 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,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -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
+ });
@@ -0,0 +1,5 @@
1
+ packages:
2
+ # all packages in subdirs of packages/ and components/
3
+ - 'packages/**'
4
+ - 'play'
5
+ - 'docs'
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
+ }