neverland ffa3fddfae
[bugfix] remove unnecessary props (#323)
* fix: Tabbar icon line-height

* [new feature] progress add showPivot prop

* [new feature] TabItem support vue-router

* [new feature] update document header style

* [Doc] add toast english ducoment

* [bugfix] Search box-sizing wrong

* [Doc] update vant-demo respo

* [Doc] translate theme & demo pages

* [Doc] add Internationalization document

* [bugfix] remove unnecessary props
2017-11-16 03:12:13 -06:00

33 lines
531 B
Vue

<template>
<van-cell :title="title" class="van-switch-cell">
<van-switch v-bind="$props" @input="$emit('input', $event)" />
</van-cell>
</template>
<script>
import Cell from '../cell';
import Switch from '../switch';
export default {
name: 'van-switch-cell',
components: {
[Cell.name]: Cell,
[Switch.name]: Switch
},
props: {
title: String,
value: Boolean,
loading: Boolean,
disabled: Boolean
},
watch: {
value() {
this.$emit('change', this.value);
}
}
};
</script>