@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.
- package/lib/client/appType.d.ts +4 -4
- package/lib/client/appType.js +7 -7
- package/lib/client/index.d.ts +17 -17
- package/lib/client/index.js +106 -106
- package/lib/node/bin.d.ts +2 -2
- package/lib/node/bin.js +122 -122
- package/lib/node/commands/build.d.ts +1 -1
- package/lib/node/commands/build.js +15 -15
- package/lib/node/commands/changelog.d.ts +6 -6
- package/lib/node/commands/changelog.js +20 -20
- package/lib/node/commands/commitLint.d.ts +1 -1
- package/lib/node/commands/commitLint.js +16 -16
- package/lib/node/commands/compile.d.ts +7 -7
- package/lib/node/commands/compile.js +35 -35
- package/lib/node/commands/create.d.ts +8 -8
- package/lib/node/commands/create.js +91 -91
- package/lib/node/commands/dev.d.ts +5 -5
- package/lib/node/commands/dev.js +38 -38
- package/lib/node/commands/gen.d.ts +8 -8
- package/lib/node/commands/gen.js +69 -68
- package/lib/node/commands/jest.d.ts +8 -8
- package/lib/node/commands/jest.js +27 -27
- package/lib/node/commands/lint.d.ts +1 -1
- package/lib/node/commands/lint.js +42 -42
- package/lib/node/commands/preview.d.ts +1 -1
- package/lib/node/commands/preview.js +18 -18
- package/lib/node/commands/release.d.ts +5 -5
- package/lib/node/commands/release.js +146 -146
- package/lib/node/commands/vite.d.ts +3 -3
- package/lib/node/commands/vite.js +13 -13
- package/lib/node/compiler/compileModule.d.ts +5 -5
- package/lib/node/compiler/compileModule.js +74 -74
- package/lib/node/compiler/compileSFC.d.ts +2 -2
- package/lib/node/compiler/compileSFC.js +74 -74
- package/lib/node/compiler/compileScript.d.ts +17 -17
- package/lib/node/compiler/compileScript.js +95 -95
- package/lib/node/compiler/compileSiteEntry.d.ts +13 -13
- package/lib/node/compiler/compileSiteEntry.js +95 -95
- package/lib/node/compiler/compileStyle.d.ts +11 -11
- package/lib/node/compiler/compileStyle.js +39 -39
- package/lib/node/compiler/compileTemplateHighlight.d.ts +10 -10
- package/lib/node/compiler/compileTemplateHighlight.js +133 -133
- package/lib/node/compiler/compileTypes.d.ts +2 -2
- package/lib/node/compiler/compileTypes.js +30 -30
- package/lib/node/config/varlet.config.d.ts +45 -45
- package/lib/node/config/varlet.config.js +27 -27
- package/lib/node/config/varlet.default.config.d.ts +2 -2
- package/lib/node/config/varlet.default.config.js +264 -264
- package/lib/node/config/vite.config.d.ts +6 -6
- package/lib/node/config/vite.config.js +142 -142
- package/lib/node/index.d.ts +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/shared/constant.d.ts +42 -42
- package/lib/node/shared/constant.js +47 -47
- package/lib/node/shared/fsUtils.d.ts +13 -13
- package/lib/node/shared/fsUtils.js +48 -48
- package/lib/node/shared/logger.d.ts +8 -8
- package/lib/node/shared/logger.js +18 -18
- package/package.json +7 -7
- package/site/components/button/index.ts +10 -10
- package/site/components/cell/index.ts +10 -10
- package/site/components/code-example/codeExample.less +41 -41
- package/site/components/code-example/index.ts +10 -10
- package/site/components/context/zIndex.ts +20 -20
- package/site/components/icon/icon.less +26 -26
- package/site/components/icon/index.ts +10 -10
- package/site/components/icon/props.ts +24 -24
- package/site/components/loading/index.ts +10 -10
- package/site/components/progress/index.ts +10 -10
- package/site/components/snackbar/snackbar.less +135 -135
- package/site/components/styles/common.less +64 -64
- package/site/components/styles/elevation.less +126 -126
- package/site/components/styles/var.less +27 -27
- package/site/index.html +49 -49
- package/site/mobile/components/app-bar/index.ts +10 -10
- package/site/mobile/components/app-bar/props.ts +25 -25
- package/site/mobile.html +41 -41
- package/site/module.d.ts +5 -5
- package/site/tsconfig.json +11 -11
- package/template/create/example/index.vue.ejs +4 -2
- package/template/generators/base/_gitignore +5 -1
- package/template/generators/base/babel.config.js +1 -1
- package/template/generators/config/default/sfc/src/button/example/index.vue +1 -1
- package/template/generators/config/default/tsx/src/button/example/index.vue +1 -1
- package/template/generators/config/i18n/sfc/src/button/example/BasicUse.vue +1 -1
- package/template/generators/config/i18n/sfc/src/button/example/ModifyColor.vue +1 -1
- package/template/generators/config/i18n/sfc/src/button/example/index.vue +1 -2
- package/template/generators/config/i18n/tsx/src/button/example/BasicUse.vue +1 -1
- package/template/generators/config/i18n/tsx/src/button/example/ModifyColor.vue +1 -1
- 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
|
+
}
|