@varlet/cli 2.1.0-alpha.1667210582672 → 2.1.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 (90) hide show
  1. package/lib/client/appType.d.ts +4 -4
  2. package/lib/client/appType.js +7 -7
  3. package/lib/client/index.d.ts +17 -17
  4. package/lib/client/index.js +106 -106
  5. package/lib/node/bin.d.ts +2 -2
  6. package/lib/node/bin.js +122 -122
  7. package/lib/node/commands/build.d.ts +1 -1
  8. package/lib/node/commands/build.js +15 -15
  9. package/lib/node/commands/changelog.d.ts +6 -6
  10. package/lib/node/commands/changelog.js +20 -20
  11. package/lib/node/commands/commitLint.d.ts +1 -1
  12. package/lib/node/commands/commitLint.js +16 -16
  13. package/lib/node/commands/compile.d.ts +7 -7
  14. package/lib/node/commands/compile.js +35 -35
  15. package/lib/node/commands/create.d.ts +8 -8
  16. package/lib/node/commands/create.js +91 -91
  17. package/lib/node/commands/dev.d.ts +5 -5
  18. package/lib/node/commands/dev.js +38 -38
  19. package/lib/node/commands/gen.d.ts +8 -8
  20. package/lib/node/commands/gen.js +69 -68
  21. package/lib/node/commands/jest.d.ts +8 -8
  22. package/lib/node/commands/jest.js +27 -27
  23. package/lib/node/commands/lint.d.ts +1 -1
  24. package/lib/node/commands/lint.js +42 -42
  25. package/lib/node/commands/preview.d.ts +1 -1
  26. package/lib/node/commands/preview.js +18 -18
  27. package/lib/node/commands/release.d.ts +5 -5
  28. package/lib/node/commands/release.js +146 -146
  29. package/lib/node/commands/vite.d.ts +3 -3
  30. package/lib/node/commands/vite.js +13 -13
  31. package/lib/node/compiler/compileModule.d.ts +5 -5
  32. package/lib/node/compiler/compileModule.js +74 -74
  33. package/lib/node/compiler/compileSFC.d.ts +2 -2
  34. package/lib/node/compiler/compileSFC.js +74 -74
  35. package/lib/node/compiler/compileScript.d.ts +17 -17
  36. package/lib/node/compiler/compileScript.js +95 -95
  37. package/lib/node/compiler/compileSiteEntry.d.ts +13 -13
  38. package/lib/node/compiler/compileSiteEntry.js +95 -95
  39. package/lib/node/compiler/compileStyle.d.ts +11 -11
  40. package/lib/node/compiler/compileStyle.js +39 -39
  41. package/lib/node/compiler/compileTemplateHighlight.d.ts +10 -10
  42. package/lib/node/compiler/compileTemplateHighlight.js +133 -133
  43. package/lib/node/compiler/compileTypes.d.ts +2 -2
  44. package/lib/node/compiler/compileTypes.js +30 -30
  45. package/lib/node/config/varlet.config.d.ts +45 -45
  46. package/lib/node/config/varlet.config.js +27 -27
  47. package/lib/node/config/varlet.default.config.d.ts +2 -2
  48. package/lib/node/config/varlet.default.config.js +264 -264
  49. package/lib/node/config/vite.config.d.ts +6 -6
  50. package/lib/node/config/vite.config.js +142 -142
  51. package/lib/node/index.d.ts +1 -1
  52. package/lib/node/index.js +1 -1
  53. package/lib/node/shared/constant.d.ts +42 -42
  54. package/lib/node/shared/constant.js +47 -47
  55. package/lib/node/shared/fsUtils.d.ts +13 -13
  56. package/lib/node/shared/fsUtils.js +48 -48
  57. package/lib/node/shared/logger.d.ts +8 -8
  58. package/lib/node/shared/logger.js +18 -18
  59. package/package.json +7 -7
  60. package/site/components/button/index.ts +10 -10
  61. package/site/components/cell/index.ts +10 -10
  62. package/site/components/code-example/codeExample.less +41 -41
  63. package/site/components/code-example/index.ts +10 -10
  64. package/site/components/context/zIndex.ts +20 -20
  65. package/site/components/icon/icon.less +26 -26
  66. package/site/components/icon/index.ts +10 -10
  67. package/site/components/icon/props.ts +24 -24
  68. package/site/components/loading/index.ts +10 -10
  69. package/site/components/progress/index.ts +10 -10
  70. package/site/components/snackbar/snackbar.less +135 -135
  71. package/site/components/styles/common.less +64 -64
  72. package/site/components/styles/elevation.less +126 -126
  73. package/site/components/styles/var.less +27 -27
  74. package/site/index.html +49 -49
  75. package/site/mobile/components/app-bar/index.ts +10 -10
  76. package/site/mobile/components/app-bar/props.ts +25 -25
  77. package/site/mobile.html +41 -41
  78. package/site/module.d.ts +5 -5
  79. package/site/tsconfig.json +11 -11
  80. package/template/create/example/index.vue.ejs +4 -2
  81. package/template/generators/base/_gitignore +5 -1
  82. package/template/generators/base/babel.config.js +1 -1
  83. package/template/generators/config/default/sfc/src/button/example/index.vue +1 -1
  84. package/template/generators/config/default/tsx/src/button/example/index.vue +1 -1
  85. package/template/generators/config/i18n/sfc/src/button/example/BasicUse.vue +1 -1
  86. package/template/generators/config/i18n/sfc/src/button/example/ModifyColor.vue +1 -1
  87. package/template/generators/config/i18n/sfc/src/button/example/index.vue +1 -2
  88. package/template/generators/config/i18n/tsx/src/button/example/BasicUse.vue +1 -1
  89. package/template/generators/config/i18n/tsx/src/button/example/ModifyColor.vue +1 -1
  90. package/template/generators/config/i18n/tsx/src/button/example/index.vue +1 -2
@@ -1,10 +1,10 @@
1
- import type { App } from 'vue'
2
- import AppBar from './AppBar.vue'
3
-
4
- AppBar.install = function (app: App) {
5
- app.component(AppBar.name, AppBar)
6
- }
7
-
8
- export const _AppBarComponent = AppBar
9
-
10
- export default AppBar
1
+ import type { App } from 'vue'
2
+ import AppBar from './AppBar.vue'
3
+
4
+ AppBar.install = function (app: App) {
5
+ app.component(AppBar.name, AppBar)
6
+ }
7
+
8
+ export const _AppBarComponent = AppBar
9
+
10
+ export default AppBar
@@ -1,25 +1,25 @@
1
- export function positionValidator(position: string): boolean {
2
- const validPositions = ['left', 'center', 'right']
3
- return validPositions.includes(position)
4
- }
5
-
6
- export const props = {
7
- color: {
8
- type: String,
9
- },
10
- textColor: {
11
- type: String,
12
- },
13
- title: {
14
- type: String,
15
- },
16
- titlePosition: {
17
- type: String,
18
- default: 'left',
19
- validator: positionValidator,
20
- },
21
- elevation: {
22
- type: Boolean,
23
- default: true,
24
- },
25
- }
1
+ export function positionValidator(position: string): boolean {
2
+ const validPositions = ['left', 'center', 'right']
3
+ return validPositions.includes(position)
4
+ }
5
+
6
+ export const props = {
7
+ color: {
8
+ type: String,
9
+ },
10
+ textColor: {
11
+ type: String,
12
+ },
13
+ title: {
14
+ type: String,
15
+ },
16
+ titlePosition: {
17
+ type: String,
18
+ default: 'left',
19
+ validator: positionValidator,
20
+ },
21
+ elevation: {
22
+ type: Boolean,
23
+ default: true,
24
+ },
25
+ }