mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
fix: code style
This commit is contained in:
@@ -8,22 +8,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import VanLoading from '../loading';
|
||||
/**
|
||||
* van-switch
|
||||
* @module components/switch
|
||||
* @desc 开关
|
||||
* @param {boolean} [value=false] - 开关状态
|
||||
* @param {boolean} [disabled=false] - 禁用
|
||||
* @param {boolean} [loading=false] - loading状态
|
||||
*
|
||||
* @example
|
||||
* <van-switch :checked="true" :disabled="false"></van-switch>
|
||||
*/
|
||||
import Loading from '../loading';
|
||||
|
||||
export default {
|
||||
name: 'van-switch',
|
||||
components: {
|
||||
'van-loading': VanLoading
|
||||
[Loading.name]: Loading
|
||||
},
|
||||
props: {
|
||||
value: Boolean,
|
||||
|
Reference in New Issue
Block a user