feat(checkbox): 整理 checkbox 组件

This commit is contained in:
就眠仪式 2021-10-12 14:47:22 +08:00
parent 83c05c3cac
commit 6e9c4f3153

View File

@ -1,6 +1,6 @@
<template>
<span @click="handleClick">
<input type="checkbox" :name="name" title="写作" :value="label" />
<input type="checkbox" :name="name" :value="label" />
<div
class="layui-unselect"
:class="[
@ -22,13 +22,14 @@
<script setup name="LayCheckbox" lang="ts">
import { defineProps, ref, watch } from 'vue'
const props = defineProps<{
modelValue: string[]
label: string
disabled?: boolean
name?: string
skin?: string
}>()
const props =
defineProps<{
modelValue: string[]
label: string
disabled?: boolean
name?: string
skin?: string
}>()
const hasValue = ref(false)