Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit fe09dce

Browse files
committed
docs: update docs
1 parent 36afed0 commit fe09dce

File tree

6 files changed

+10
-48
lines changed

6 files changed

+10
-48
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-38
This file was deleted.

packages/taro-ui-vue-docs/markdown/customize-theme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Taro UI 的组件样式是使用 SCSS 编写的,如果你的项目中也使用
2020

2121
:::demo
2222
```scss
23-
/* 改变主题变量,具体变量名可查看 taro-ui/dist/style/variables/default.scss 文件 */
23+
/* 改变主题变量,具体变量名可查看 taro-ui-vue/dist/style/variables/default.scss 文件 */
2424
$color-brand: #6190E8;
2525

2626
/* 引入 Taro UI 默认样式 */
2727
@import "~taro-ui-vue/dist/style/index.scss";
2828
```
2929
:::
3030

31-
> 覆写的变量,需要在引入 taro ui 默认样式之前定义,[默认主题变量命名](https://github.com/NervJS/taro-ui/blob/dev/src/style/variables/default.scss)
31+
> 覆写的变量,需要在引入 taro ui vue 默认样式之前定义,[默认主题变量命名](https://github.com/psaren/taro-ui-vue/blob/master/packages/taro-ui-vue/src/style/variables/default.scss)
3232
3333
之后在项目的入口文件中引入以上的样式文件即可(无需重复引入组件的默认样式)
3434

@@ -43,11 +43,11 @@ import './custom-variables.scss'
4343
4444
## 全局样式类
4545

46-
全局样式类是微信小程序定义的一套用于修改组件内部样式的方案。如果希望组件外样式类能够影响组件内部,可以在组件构造器中的 `options.addGlobalClass` 字段设置为 true(Taro UI 的组件均开启了此特性)。这个特性从小程序基础库版本 `2.2.3` 开始支持
46+
全局样式类是微信小程序定义的一套用于修改组件内部样式的方案。如果希望组件外样式类能够影响组件内部,可以在组件构造器中的 `options.addGlobalClass` 字段设置为 true(Taro UI Vue的组件均开启了此特性)
4747

48-
**P.S. `addGlobalClass` 这个 API 只对 Page 上的 class 起作用。换言之,如果在自定义的组件中使用 `taro-ui`,是无法在自定义组件内部通过 `全局样式类` 的方式去更改组件样式的。**
48+
**P.S. `addGlobalClass` 这个 API 只对 Page 上的 class 起作用。换言之,如果在自定义的组件中使用 `taro-ui-vue`,是无法在自定义组件内部通过 `全局样式类` 的方式去更改组件样式的。**
4949

50-
> 当开放了全局样式类,存在外部样式无意间污染组件样式的风险。由于 Taro UI 的组件样式采用 BEM 的命名方式,从一定程度上避免了样式污染的问题。
50+
> 当开放了全局样式类,存在外部样式无意间污染组件样式的风险。由于 Taro UI Vue的组件样式采用 BEM 的命名方式,从一定程度上避免了样式污染的问题。
5151
5252
:::demo
5353
```jsx

packages/taro-ui-vue-docs/markdown/flex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## 使用指南
88

9-
如果已经全局引入了 `taro-ui` 的样式文件,则无需再次引入
9+
如果已经全局引入了 `taro-ui-vue` 的样式文件,则无需再次引入
1010

1111
> 由于 `app.js` 添加的样式文件 在小程序上只能影响 `page` 样式,不能影响 `component` 的样式,所以在使用自定义组件时,你可能需要再次引入
1212

packages/taro-ui-vue-docs/markdown/picker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
---
44

5-
从底部弹起的滚动选择器,这里用的是微信小程序自带的 `Picker` 原生组件,`taro-ui` 引用的是 `taro` 封装的基础组件。
5+
从底部弹起的滚动选择器,这里用的是微信小程序自带的 `Picker` 原生组件,`taro-ui-vue` 引用的是 `taro` 封装的基础组件。
66
现支持四种选择器,通过 `mode` 来区分(默认是普通选择器),分别是:
77
- 普通选择器
88
- 多列选择器

packages/taro-ui-vue-docs/markdown/quickstart.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import 'taro-ui/dist/style/index.scss' // 全局引入一次即可
7575

7676
**引入组件样式的三种方式**
7777

78-
- **全局引入(JS中):** 在入口文件中引入 `taro-ui` 所有的样式
78+
- **全局引入(JS中):** 在入口文件中引入 `taro-ui-vue` 所有的样式
7979
:::demo
8080
```js
8181
import 'taro-ui/dist/style/index.scss' // 引入组件样式 - 方式一
@@ -96,7 +96,7 @@ import 'taro-ui/dist/style/index.scss' // 引入组件样式 - 方式一
9696
```
9797
:::
9898

99-
> 具体的组件样式文件请查看 [组件样式列表](https://github.com/NervJS/taro-ui/tree/dev/src/style/components)
99+
> 具体的组件样式文件请查看 [组件样式列表](https://github.com/psaren/taro-ui-vue/tree/master/packages/taro-ui-vue/src/components)
100100
101101
## 示例
102102

packages/taro-ui-vue-docs/pages/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Index extends React.Component {
5757
</NavLink>
5858
<a
5959
className='btn btn-start btn-start--h5'
60-
href='https://nervjs.github.io/taro-ui/h5/index.html'
60+
href='http://taro-ui-vue-demo.fontend.com'
6161
>
6262
开始使用
6363
</a>

0 commit comments

Comments
 (0)