style(prettier): reset code style with prettier
This commit is contained in:
@@ -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 }"
|
||||
></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>
|
||||
|
||||
Reference in New Issue
Block a user