Skip to content

Commit

Permalink
upd: checkbox emp view
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Apr 15, 2021
1 parent 0a7279c commit 15dc7a9
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/packages/checkbox/index.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<template>
<view>
<view :class="['nut-checkbox', 'nut-checkbox-size-' + currentSize]">
<input
type="checkbox"
:name="name"
:class="{ 'nut-checkbox-ani': isAnimated }"
:disabled="isDisabled"
:checked.prop="isChecked"
:value="submittedValue"
@change="changeEvt"
/>
<view class="nut-checkbox-label" v-if="label">
{{ label }}
</view>
<view class="nut-checkbox-label" v-else>
<slot></slot>
</view>
<view :class="['nut-checkbox', 'nut-checkbox-size-' + currentSize]">
<input
type="checkbox"
:name="name"
:class="{ 'nut-checkbox-ani': isAnimated }"
:disabled="isDisabled"
:checked.prop="isChecked"
:value="submittedValue"
@change="changeEvt"
/>
<view class="nut-checkbox-label" v-if="label">
{{ label }}
</view>
<view class="nut-checkbox-label" v-else>
<slot></slot>
</view>
</view>
</template>
Expand Down

0 comments on commit 15dc7a9

Please sign in to comment.