style(prettier): reset code style with prettier

This commit is contained in:
落小梅
2021-10-12 11:30:07 +08:00
parent aee99c49c9
commit 2b59e008f3
148 changed files with 4296 additions and 4191 deletions

View File

@@ -3,11 +3,11 @@
<input type="radio" :value="label" :name="name" />
<div
class="layui-unselect layui-form-radio"
@click="handleClick"
:class="{
'layui-form-radioed': modelValue == label,
'layui-radio-disbaled layui-disabled': disabled,
}"
@click="handleClick"
>
<i
v-if="modelValue != label"
@@ -21,7 +21,7 @@
:class="{ 'layui-form-radioed': modelValue == label }"
>&#xe643;</i
>
<span><slot></slot></span>
<span><slot /></span>
</div>
</span>
</template>
@@ -29,13 +29,12 @@
<script setup name="LayRadio" lang="ts">
import { defineProps, defineEmits } from 'vue'
const props =
defineProps<{
modelValue: string
disabled?: boolean
label?: string
name: string
}>()
const props = defineProps<{
modelValue: string
disabled?: boolean
label?: string
name: string
}>()
const emit = defineEmits(['update:modelValue'])
@@ -45,4 +44,4 @@ const handleClick = function () {
}
emit('update:modelValue', props.label)
}
</script>
</script>