@varlet/cli 1.20.0-alpha.0 → 1.20.1-alpha.10
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/CHANGELOG.md +11 -0
- package/generators/sfc/package.json +1 -1
- package/generators/sfc/src/button/docs/zh-CN.md +8 -0
- package/generators/sfc/src/button/example/BasicUse.vue +14 -0
- package/generators/sfc/src/button/example/ModifyColor.vue +14 -0
- package/generators/sfc/src/button/example/index.vue +6 -2
- package/generators/sfc/yarn.lock +1836 -467
- package/generators/tsx/package.json +1 -1
- package/generators/tsx/src/button/docs/zh-CN.md +8 -0
- package/generators/tsx/src/button/example/BasicUse.vue +14 -0
- package/generators/tsx/src/button/example/ModifyColor.vue +14 -0
- package/generators/tsx/src/button/example/index.vue +6 -2
- package/generators/tsx/yarn.lock +1831 -462
- package/lib/config/postcss.config.d.ts +4 -1
- package/lib/config/postcss.config.js +14 -38
- package/lib/config/webpack.base.config.js +1 -1
- package/package.json +7 -7
|
@@ -14,11 +14,19 @@ createApp().use(Button)
|
|
|
14
14
|
<b-button>组件库从我开始</b-button>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
```vue
|
|
18
|
+
import BasicUse from '../example/BasicUse'
|
|
19
|
+
```
|
|
20
|
+
|
|
17
21
|
### 主题色按钮
|
|
18
22
|
```html
|
|
19
23
|
<b-button color="#009688">组件库从我开始</b-button>
|
|
20
24
|
```
|
|
21
25
|
|
|
26
|
+
```vue
|
|
27
|
+
import ModifyColor from '../example/ModifyColor'
|
|
28
|
+
```
|
|
29
|
+
|
|
22
30
|
## API
|
|
23
31
|
|
|
24
32
|
### 属性
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<app-type>基本使用</app-type>
|
|
3
|
-
<
|
|
3
|
+
<basic-use/>
|
|
4
4
|
|
|
5
5
|
<app-type>修改颜色</app-type>
|
|
6
|
-
<
|
|
6
|
+
<modify-color/>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
10
|
import Button from '../Button'
|
|
11
11
|
import AppType from '@varlet/cli/site/mobile/components/AppType'
|
|
12
|
+
import BasicUse from './BasicUse'
|
|
13
|
+
import ModifyColor from './ModifyColor'
|
|
12
14
|
|
|
13
15
|
export default {
|
|
14
16
|
components: {
|
|
15
17
|
[Button.name]: Button,
|
|
16
18
|
AppType,
|
|
19
|
+
BasicUse,
|
|
20
|
+
ModifyColor
|
|
17
21
|
},
|
|
18
22
|
}
|
|
19
23
|
</script>
|