feat(Tabs): remove default border (#3519)

This commit is contained in:
neverland 2020-08-13 20:59:43 +08:00 committed by GitHub
parent 3634840bb0
commit 2307f28d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View File

@ -191,7 +191,7 @@ Page({
| color | 标签颜色 | _string_ | `#ee0a24` | - | | color | 标签颜色 | _string_ | `#ee0a24` | - |
| z-index | z-index 层级 | _number_ | `1` | - | | z-index | z-index 层级 | _number_ | `1` | - |
| type | 样式风格,可选值为`card` | _string_ | `line` | - | | type | 样式风格,可选值为`card` | _string_ | `line` | - |
| border | 是否展示外边框,仅在`line`风格下生效 | _boolean_ | `true` | - | | border | 是否展示外边框,仅在 `line` 风格下生效 | _boolean_ | `false` | - |
| duration | 动画时间 (单位秒) | _number_ | `0.3` | - | | duration | 动画时间 (单位秒) | _number_ | `0.3` | - |
| line-width | 底部条宽度 (px) | _string \| number_ | `40px` | - | | line-width | 底部条宽度 (px) | _string \| number_ | `40px` | - |
| line-height | 底部条高度 (px) | _string \| number_ | `3px` | - | | line-height | 底部条高度 (px) | _string \| number_ | `3px` | - |

View File

@ -30,11 +30,15 @@ VantComponent({
}, },
props: { props: {
sticky: Boolean,
border: Boolean,
swipeable: Boolean,
titleActiveColor: String,
titleInactiveColor: String,
color: { color: {
type: String, type: String,
observer: 'setLine', observer: 'setLine',
}, },
sticky: Boolean,
animated: { animated: {
type: Boolean, type: Boolean,
observer() { observer() {
@ -43,7 +47,6 @@ VantComponent({
); );
}, },
}, },
swipeable: Boolean,
lineWidth: { lineWidth: {
type: [String, Number], type: [String, Number],
value: 40, value: 40,
@ -54,8 +57,6 @@ VantComponent({
value: -1, value: -1,
observer: 'setLine', observer: 'setLine',
}, },
titleActiveColor: String,
titleInactiveColor: String,
active: { active: {
type: [String, Number], type: [String, Number],
value: 0, value: 0,
@ -69,10 +70,6 @@ VantComponent({
type: String, type: String,
value: 'line', value: 'line',
}, },
border: {
type: Boolean,
value: true,
},
ellipsis: { ellipsis: {
type: Boolean, type: Boolean,
value: true, value: true,