mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-09-11 15:19:45 +08:00
[Doc] add Tab preview (#501)
This commit is contained in:
parent
be87ff828c
commit
45e847caa8
@ -35,6 +35,7 @@ const MAP = {
|
|||||||
steps: 'steps-201808092138.png',
|
steps: 'steps-201808092138.png',
|
||||||
switch: 'switch-201808092138.png',
|
switch: 'switch-201808092138.png',
|
||||||
'switch-cell': 'switch-cell-201808221124.png',
|
'switch-cell': 'switch-cell-201808221124.png',
|
||||||
|
tab: 'tab-201809051457.png',
|
||||||
tag: 'tag-201808092138.png',
|
tag: 'tag-201808092138.png',
|
||||||
tabbar: 'tabbar-201808160922.png',
|
tabbar: 'tabbar-201808160922.png',
|
||||||
toast: 'toast-201808191046.png',
|
toast: 'toast-201808191046.png',
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
wx:key="index"
|
wx:key="index"
|
||||||
title="{{ '标签' + item }}"
|
title="{{ '标签' + item }}"
|
||||||
>
|
>
|
||||||
<view class="content">
|
<view class="content-2">
|
||||||
{{ '内容' + item }}
|
{{ '内容' + item }}
|
||||||
</view>
|
</view>
|
||||||
</van-tab>
|
</van-tab>
|
||||||
|
@ -2,3 +2,7 @@
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content-2 {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
@ -1,6 +1,11 @@
|
|||||||
import buttonBehaviors from '../behaviors/button';
|
import buttonBehaviors from '../behaviors/button';
|
||||||
import classnames from '../common/classnames';
|
import classnames from '../common/classnames';
|
||||||
|
|
||||||
|
const booleanProp = {
|
||||||
|
type: Boolean,
|
||||||
|
observer: 'setClasses'
|
||||||
|
};
|
||||||
|
|
||||||
Component({
|
Component({
|
||||||
options: {
|
options: {
|
||||||
addGlobalClass: true
|
addGlobalClass: true
|
||||||
@ -21,26 +26,11 @@ Component({
|
|||||||
value: 'normal',
|
value: 'normal',
|
||||||
observer: 'setClasses'
|
observer: 'setClasses'
|
||||||
},
|
},
|
||||||
plain: {
|
plain: booleanProp,
|
||||||
type: Boolean,
|
block: booleanProp,
|
||||||
observer: 'setClasses'
|
square: booleanProp,
|
||||||
},
|
loading: booleanProp,
|
||||||
disabled: {
|
disabled: booleanProp
|
||||||
type: Boolean,
|
|
||||||
observer: 'setClasses'
|
|
||||||
},
|
|
||||||
loading: {
|
|
||||||
type: Boolean,
|
|
||||||
observer: 'setClasses'
|
|
||||||
},
|
|
||||||
block: {
|
|
||||||
type: Boolean,
|
|
||||||
observer: 'setClasses'
|
|
||||||
},
|
|
||||||
square: {
|
|
||||||
type: Boolean,
|
|
||||||
observer: 'setClasses'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
attached() {
|
attached() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user