mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-09 22:49:45 +08:00
tab 加上最小宽度
This commit is contained in:
parent
8a37c3397b
commit
9a09bf123c
3
dist/tab/index.wxss
vendored
3
dist/tab/index.wxss
vendored
@ -40,6 +40,9 @@
|
|||||||
display: block;
|
display: block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.zui-tab__bd--scroll .zui-tab__item {
|
||||||
|
min-width: 80px;
|
||||||
|
}
|
||||||
.zui-tab__bd--scroll .zui-tab__text {
|
.zui-tab__bd--scroll .zui-tab__text {
|
||||||
margin: 0 20px;
|
margin: 0 20px;
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,29 @@ Page(Object.assign({}, ZUI.Tab, {
|
|||||||
}],
|
}],
|
||||||
selectedId: '1',
|
selectedId: '1',
|
||||||
scroll: true
|
scroll: true
|
||||||
|
},
|
||||||
|
tab3: {
|
||||||
|
list: [{
|
||||||
|
id: '1',
|
||||||
|
title: '商品1'
|
||||||
|
}, {
|
||||||
|
id: '2',
|
||||||
|
title: '商品2'
|
||||||
|
}, {
|
||||||
|
id: '3',
|
||||||
|
title: '商品3'
|
||||||
|
}, {
|
||||||
|
id: '4',
|
||||||
|
title: '商品4'
|
||||||
|
}, {
|
||||||
|
id: '5',
|
||||||
|
title: '商品5'
|
||||||
|
}, {
|
||||||
|
id: '6',
|
||||||
|
title: '商品6'
|
||||||
|
}],
|
||||||
|
selectedId: '1',
|
||||||
|
scroll: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -7,4 +7,7 @@
|
|||||||
<view style="margin: 20px 0">
|
<view style="margin: 20px 0">
|
||||||
<template is="zui-tab" data="{{tab: tab2, componentId: 'tab2'}}"></template>
|
<template is="zui-tab" data="{{tab: tab2, componentId: 'tab2'}}"></template>
|
||||||
</view>
|
</view>
|
||||||
|
<view style="margin: 20px 0">
|
||||||
|
<template is="zui-tab" data="{{tab: tab3, componentId: 'tab3'}}"></template>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user