diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index 7e8c973e..b99bf92c 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -112,7 +112,9 @@ const handleClick = function () { :type=" props.isIndeterminate && isChecked ? 'layui-icon-subtraction' - : isChecked ? 'layui-icon-ok' : '' + : isChecked + ? 'layui-icon-ok' + : '' " > diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 848d90f5..ed61f841 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -54,7 +54,6 @@ const emit = defineEmits([ const slot = useSlots(); const slots = slot.default && slot.default(); - const allChecked = ref(false); const hasChecked = ref(false); const tableDataSource = ref([...props.dataSource]); diff --git a/package/document/src/document/zh-CN/components/checkbox.md b/package/document/src/document/zh-CN/components/checkbox.md index 6fa4276c..ccd62b01 100644 --- a/package/document/src/document/zh-CN/components/checkbox.md +++ b/package/document/src/document/zh-CN/components/checkbox.md @@ -62,7 +62,7 @@ export default { ::: title 复选框组 ::: -::: demo +::: demo 方便通过数组生成 checkbox 复选框。