[bugfix] Tab: hairline (#502)

This commit is contained in:
neverland 2018-09-05 17:54:56 +08:00 committed by GitHub
parent 45e847caa8
commit cb9a63f477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 28 additions and 4 deletions

View File

@ -7,6 +7,7 @@
"pages/card/index", "pages/card/index",
"pages/cell/index", "pages/cell/index",
"pages/col/index", "pages/col/index",
"pages/dialog/index",
"pages/field/index", "pages/field/index",
"pages/icon/index", "pages/icon/index",
"pages/loading/index", "pages/loading/index",

View File

@ -100,6 +100,10 @@ export default [
path: '/actionsheet', path: '/actionsheet',
title: 'Actionsheet 上拉菜单' title: 'Actionsheet 上拉菜单'
}, },
{
path: '/dialog',
title: 'Dialog 弹出框'
},
{ {
path: '/toast', path: '/toast',
title: 'Toast 轻提示' title: 'Toast 轻提示'

View File

@ -0,0 +1,3 @@
import Page from '../../common/page';
Page();

View File

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "Dialog 弹出框",
"usingComponents": {
"demo-block": "../../components/demo-block/index",
"van-button": "../../dist/button/index",
"van-dialog": "../../dist/dialog/index"
}
}

View File

View File

View File

@ -0,0 +1 @@
/* pages/notice-bar/index.wxss */

View File

@ -1,5 +1,5 @@
import Page from '../../common/page'; import Page from '../../common/page';
import Notify from '../../dist/notify/index'; import Notify from '../../dist/notify/notify';
Page({ Page({
showNotify() { showNotify() {

View File

@ -0,0 +1 @@
/* pages/notify/index.wxss */

View File

@ -0,0 +1 @@
/* pages/stepper/index.wxss */

View File

@ -0,0 +1 @@
/* pages/switch-cell/index.wxss */

View File

@ -0,0 +1 @@
/* pages/switch/index.wxss */

View File

@ -0,0 +1 @@
/* pages/tag/index.wxss */

View File

@ -1,5 +1,5 @@
import Page from '../../common/page'; import Page from '../../common/page';
import Toast from '../../dist/toast/index'; import Toast from '../../dist/toast/toast';
Page({ Page({
showToast() { showToast() {

View File

@ -0,0 +1 @@
/* pages/tree-select/index.wxss */

View File

View File

0
packages/dialog/index.js Normal file
View File

View File

View File

View File

View File

@ -15,7 +15,7 @@
### 基础用法 ### 基础用法
```js ```js
import Notify from 'path/to/vant-weapp/dist/notify/index'; import Notify from 'path/to/vant-weapp/dist/notify/notify';
Notify('通知内容') Notify('通知内容')
``` ```

View File

@ -118,7 +118,7 @@ Page({
| active | 当前激活标签的索引 | `String` `Number` | `0` | | active | 当前激活标签的索引 | `String` `Number` | `0` |
| color | 标签颜色 | `String` | `#f44` | | color | 标签颜色 | `String` | `#f44` |
| type | 样式风格,可选值为 `card` | `String` | `line` | | type | 样式风格,可选值为 `card` | `String` | `line` |
| duration | 动画时间 (单位秒)) | `Number` | `0.2` | | duration | 动画时间 (单位秒) | `Number` | `0.2` |
| line-width | 底部条宽度 (px) | `Number` | 与当前标签等宽 | | line-width | 底部条宽度 (px) | `Number` | 与当前标签等宽 |
| swipe-threshold | 滚动阈值,设置标签数量超过多少个可滚动 | `Number` | `4` | | swipe-threshold | 滚动阈值,设置标签数量超过多少个可滚动 | `Number` | `4` |

View File

@ -1,4 +1,5 @@
@import '../common/style/var.pcss'; @import '../common/style/var.pcss';
@import '../common/style/hairline.pcss';
$van-tabs-line-height: 44px; $van-tabs-line-height: 44px;
$van-tabs-card-height: 30px; $van-tabs-card-height: 30px;