@varlet/cli 2.16.0-alpha.1693852004525 → 2.16.0-alpha.1693855048345
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/package.json +8 -8
- package/site/pc/pages/index/index.vue +3 -3
- package/template/generators/config/default/sfc/src/button/Button.vue +2 -2
- package/template/generators/config/default/sfc/src/button/button.less +1 -1
- package/template/generators/config/default/sfc/src/button/docs/zh-CN.md +2 -2
- package/template/generators/config/default/sfc/src/button/example/BasicUse.vue +2 -2
- package/template/generators/config/default/sfc/src/button/example/ModifyColor.vue +2 -2
- package/template/generators/config/default/sfc/src/button/example/index.vue +3 -3
- package/template/generators/config/default/tsx/src/button/Button.tsx +2 -2
- package/template/generators/config/default/tsx/src/button/button.less +1 -1
- package/template/generators/config/default/tsx/src/button/docs/zh-CN.md +2 -2
- package/template/generators/config/default/tsx/src/button/example/BasicUse.vue +2 -2
- package/template/generators/config/default/tsx/src/button/example/ModifyColor.vue +2 -2
- package/template/generators/config/default/tsx/src/button/example/index.vue +3 -3
- package/template/generators/config/i18n/sfc/src/button/Button.vue +2 -2
- package/template/generators/config/i18n/sfc/src/button/button.less +1 -1
- package/template/generators/config/i18n/sfc/src/button/docs/en-US.md +2 -2
- package/template/generators/config/i18n/sfc/src/button/docs/zh-CN.md +2 -2
- package/template/generators/config/i18n/sfc/src/button/example/BasicUse.vue +2 -2
- package/template/generators/config/i18n/sfc/src/button/example/ModifyColor.vue +2 -2
- package/template/generators/config/i18n/sfc/src/button/example/index.vue +3 -3
- package/template/generators/config/i18n/tsx/src/button/Button.tsx +2 -2
- package/template/generators/config/i18n/tsx/src/button/button.less +1 -1
- package/template/generators/config/i18n/tsx/src/button/docs/en-US.md +2 -2
- package/template/generators/config/i18n/tsx/src/button/docs/zh-CN.md +2 -2
- package/template/generators/config/i18n/tsx/src/button/example/BasicUse.vue +2 -2
- package/template/generators/config/i18n/tsx/src/button/example/ModifyColor.vue +2 -2
- package/template/generators/config/i18n/tsx/src/button/example/index.vue +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "2.16.0-alpha.
|
|
3
|
+
"version": "2.16.0-alpha.1693855048345",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"vite": "4.3.5",
|
|
68
68
|
"vue": "3.3.4",
|
|
69
69
|
"webfont": "^9.0.0",
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
70
|
+
"@varlet/shared": "2.16.0-alpha.1693855048345",
|
|
71
|
+
"@varlet/vite-plugins": "2.16.0-alpha.1693855048345"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/babel__core": "^7.20.1",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"@types/semver": "^7.3.9",
|
|
84
84
|
"@types/sharp": "0.31.1",
|
|
85
85
|
"rimraf": "^5.0.1",
|
|
86
|
-
"@varlet/icons": "2.16.0-alpha.
|
|
87
|
-
"@varlet/ui": "2.16.0-alpha.
|
|
88
|
-
"@varlet/touch-emulator": "2.16.0-alpha.
|
|
86
|
+
"@varlet/icons": "2.16.0-alpha.1693855048345",
|
|
87
|
+
"@varlet/ui": "2.16.0-alpha.1693855048345",
|
|
88
|
+
"@varlet/touch-emulator": "2.16.0-alpha.1693855048345"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"lodash-es": "^4.17.21",
|
|
99
99
|
"vue": "3.3.4",
|
|
100
100
|
"vue-router": "4.2.0",
|
|
101
|
-
"@varlet/icons": "2.16.0-alpha.
|
|
102
|
-
"@varlet/touch-emulator": "2.16.0-alpha.
|
|
101
|
+
"@varlet/icons": "2.16.0-alpha.1693855048345",
|
|
102
|
+
"@varlet/touch-emulator": "2.16.0-alpha.1693855048345"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"dev": "tsc --watch",
|
|
@@ -271,7 +271,7 @@ watch(() => route.path, () => {
|
|
|
271
271
|
color: var(--site-config-color-index-page-second-text-color);
|
|
272
272
|
font-size: 14px;
|
|
273
273
|
margin-top: 10px;
|
|
274
|
-
line-height: 1.
|
|
274
|
+
line-height: 1.7;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
&__contributors, &__team-members {
|
|
@@ -285,7 +285,7 @@ watch(() => route.path, () => {
|
|
|
285
285
|
&__contributors-title, &__team-members-title {
|
|
286
286
|
padding-top: 24px;
|
|
287
287
|
line-height: 32px;
|
|
288
|
-
font-size:
|
|
288
|
+
font-size: 24px;
|
|
289
289
|
border-top: 2px solid var(--site-config-color-index-page-divider-color);
|
|
290
290
|
color: var(--site-config-color-index-page-second-text-color);
|
|
291
291
|
letter-spacing: 1px;
|
|
@@ -368,7 +368,7 @@ watch(() => route.path, () => {
|
|
|
368
368
|
&__sponsors-title {
|
|
369
369
|
padding-top: 24px;
|
|
370
370
|
line-height: 32px;
|
|
371
|
-
font-size:
|
|
371
|
+
font-size: 24px;
|
|
372
372
|
border-top: 2px solid var(--site-config-color-index-page-divider-color);
|
|
373
373
|
color: var(--site-config-color-index-page-second-text-color);
|
|
374
374
|
letter-spacing: 1px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="
|
|
2
|
+
<button class="va-button" :style="{ background: color }" @click="handleClick">
|
|
3
3
|
<slot />
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { defineComponent, PropType } from 'vue'
|
|
9
9
|
|
|
10
10
|
export default defineComponent({
|
|
11
|
-
name: '
|
|
11
|
+
name: 'VaButton',
|
|
12
12
|
props: {
|
|
13
13
|
color: {
|
|
14
14
|
type: String,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### 基本使用
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>按钮起步</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### 主题色按钮
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">按钮起步</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { AppType } from '@varlet/cli/client'
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
<template>
|
|
7
7
|
<app-type>基本使用</app-type>
|
|
8
|
-
<
|
|
8
|
+
<va-button>起步</va-button>
|
|
9
9
|
|
|
10
10
|
<app-type>修改颜色</app-type>
|
|
11
|
-
<
|
|
11
|
+
<va-button color="#03A9F4">起步</va-button>
|
|
12
12
|
</template>
|
|
@@ -2,7 +2,7 @@ import { defineComponent, PropType } from 'vue'
|
|
|
2
2
|
import './button.less'
|
|
3
3
|
|
|
4
4
|
export default defineComponent({
|
|
5
|
-
name: '
|
|
5
|
+
name: 'VaButton',
|
|
6
6
|
props: {
|
|
7
7
|
color: {
|
|
8
8
|
type: String,
|
|
@@ -18,7 +18,7 @@ export default defineComponent({
|
|
|
18
18
|
const { color } = props
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<button class="
|
|
21
|
+
<button class="va-button" style={{ background: color }} onClick={handleClick}>
|
|
22
22
|
{slots.default?.()}
|
|
23
23
|
</button>
|
|
24
24
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### 基本使用
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>按钮起步</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### 主题色按钮
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">按钮起步</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { AppType } from '@varlet/cli/client'
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
<template>
|
|
7
7
|
<app-type>基本使用</app-type>
|
|
8
|
-
<
|
|
8
|
+
<va-button>起步</va-button>
|
|
9
9
|
|
|
10
10
|
<app-type>修改颜色</app-type>
|
|
11
|
-
<
|
|
11
|
+
<va-button color="#03A9F4">起步</va-button>
|
|
12
12
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="
|
|
2
|
+
<button class="va-button" :style="{ background: color }" @click="handleClick">
|
|
3
3
|
{{ pack.button }}
|
|
4
4
|
<slot />
|
|
5
5
|
</button>
|
|
@@ -12,7 +12,7 @@ import { defineComponent, PropType } from 'vue'
|
|
|
12
12
|
import { pack } from '../locale'
|
|
13
13
|
|
|
14
14
|
export default defineComponent({
|
|
15
|
-
name: '
|
|
15
|
+
name: 'VaButton',
|
|
16
16
|
props: {
|
|
17
17
|
color: {
|
|
18
18
|
type: String,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Basic Use
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>start</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### Theme Color Button
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">start</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### 基本使用
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>按钮起步</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### 主题色按钮
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">按钮起步</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -7,5 +7,5 @@ watchLang(use, 'pc')
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<
|
|
10
|
+
<va-button>{{ pack.start }}</va-button>
|
|
11
11
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -7,5 +7,5 @@ watchLang(use, 'pc')
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<
|
|
10
|
+
<va-button color="#03A9F4">{{ pack.start }}</va-button>
|
|
11
11
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang, AppType } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ watchLang(use)
|
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
10
|
<app-type>{{ pack.basicUse }}</app-type>
|
|
11
|
-
<
|
|
11
|
+
<va-button>{{ pack.start }}</va-button>
|
|
12
12
|
|
|
13
13
|
<app-type>{{ pack.modifyColor }}</app-type>
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#03A9F4">{{ pack.start }}</va-button>
|
|
15
15
|
</template>
|
|
@@ -5,7 +5,7 @@ import './button.less'
|
|
|
5
5
|
import { pack } from '../locale'
|
|
6
6
|
|
|
7
7
|
export default defineComponent({
|
|
8
|
-
name: '
|
|
8
|
+
name: 'VaButton',
|
|
9
9
|
props: {
|
|
10
10
|
color: {
|
|
11
11
|
type: String,
|
|
@@ -23,7 +23,7 @@ export default defineComponent({
|
|
|
23
23
|
const { color } = props
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
|
-
<button class="
|
|
26
|
+
<button class="va-button" style={{ background: color }} onClick={handleClick}>
|
|
27
27
|
{pack.value.button}
|
|
28
28
|
{slots.default?.()}
|
|
29
29
|
</button>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Basic Use
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>start</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### Theme Color Button
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">start</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### 基本使用
|
|
4
4
|
```html
|
|
5
|
-
<
|
|
5
|
+
<va-button>按钮起步</va-button>
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
```vue
|
|
@@ -11,7 +11,7 @@ import BasicUse from '../example/BasicUse'
|
|
|
11
11
|
|
|
12
12
|
### 主题色按钮
|
|
13
13
|
```html
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#009688">按钮起步</va-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -7,5 +7,5 @@ watchLang(use, 'pc')
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<
|
|
10
|
+
<va-button>{{ pack.start }}</va-button>
|
|
11
11
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -7,5 +7,5 @@ watchLang(use, 'pc')
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<
|
|
10
|
+
<va-button color="#03A9F4">{{ pack.start }}</va-button>
|
|
11
11
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
2
|
+
import VaButton from '..'
|
|
3
3
|
import { watchLang, AppType } from '@varlet/cli/client'
|
|
4
4
|
import { pack, use } from './locale'
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ watchLang(use)
|
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
10
|
<app-type>{{ pack.basicUse }}</app-type>
|
|
11
|
-
<
|
|
11
|
+
<va-button>{{ pack.start }}</va-button>
|
|
12
12
|
|
|
13
13
|
<app-type>{{ pack.modifyColor }}</app-type>
|
|
14
|
-
<
|
|
14
|
+
<va-button color="#03A9F4">{{ pack.start }}</va-button>
|
|
15
15
|
</template>
|