mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Tab: hairline (#502)
This commit is contained in:
parent
45e847caa8
commit
cb9a63f477
@ -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",
|
||||||
|
@ -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 轻提示'
|
||||||
|
3
example/pages/dialog/index.js
Normal file
3
example/pages/dialog/index.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import Page from '../../common/page';
|
||||||
|
|
||||||
|
Page();
|
8
example/pages/dialog/index.json
Normal file
8
example/pages/dialog/index.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "Dialog 弹出框",
|
||||||
|
"usingComponents": {
|
||||||
|
"demo-block": "../../components/demo-block/index",
|
||||||
|
"van-button": "../../dist/button/index",
|
||||||
|
"van-dialog": "../../dist/dialog/index"
|
||||||
|
}
|
||||||
|
}
|
0
example/pages/dialog/index.wxml
Normal file
0
example/pages/dialog/index.wxml
Normal file
0
example/pages/dialog/index.wxss
Normal file
0
example/pages/dialog/index.wxss
Normal file
1
example/pages/notice-bar/index.wxss
Normal file
1
example/pages/notice-bar/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/notice-bar/index.wxss */
|
@ -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() {
|
||||||
|
1
example/pages/notify/index.wxss
Normal file
1
example/pages/notify/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/notify/index.wxss */
|
1
example/pages/stepper/index.wxss
Normal file
1
example/pages/stepper/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/stepper/index.wxss */
|
1
example/pages/switch-cell/index.wxss
Normal file
1
example/pages/switch-cell/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/switch-cell/index.wxss */
|
1
example/pages/switch/index.wxss
Normal file
1
example/pages/switch/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/switch/index.wxss */
|
1
example/pages/tag/index.wxss
Normal file
1
example/pages/tag/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/tag/index.wxss */
|
@ -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() {
|
||||||
|
1
example/pages/tree-select/index.wxss
Normal file
1
example/pages/tree-select/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/tree-select/index.wxss */
|
0
packages/dialog/README.md
Normal file
0
packages/dialog/README.md
Normal file
0
packages/dialog/dialog.js
Normal file
0
packages/dialog/dialog.js
Normal file
0
packages/dialog/index.js
Normal file
0
packages/dialog/index.js
Normal file
0
packages/dialog/index.json
Normal file
0
packages/dialog/index.json
Normal file
0
packages/dialog/index.pcss
Normal file
0
packages/dialog/index.pcss
Normal file
0
packages/dialog/index.wxml
Normal file
0
packages/dialog/index.wxml
Normal 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('通知内容')
|
||||||
```
|
```
|
||||||
|
@ -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` |
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user