diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index f6874b6b..356aae84 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -10,7 +10,7 @@ import { computed, inject, useSlots } from "vue"; import "./index.less"; import { CheckboxSize } from "./interface"; -export interface LayCheckboxProps { +export interface CheckboxProps { name?: string; skin?: string; value: string | number | object; @@ -21,7 +21,7 @@ export interface LayCheckboxProps { size?: CheckboxSize; } -const props = withDefaults(defineProps(), { +const props = withDefaults(defineProps(), { isIndeterminate: false, modelValue: false, disabled: false, diff --git a/package/component/src/component/checkboxGroup/index.vue b/package/component/src/component/checkboxGroup/index.vue index 79bb4a64..38fd7b85 100644 --- a/package/component/src/component/checkboxGroup/index.vue +++ b/package/component/src/component/checkboxGroup/index.vue @@ -8,12 +8,12 @@ export default { import { provide, ref, watch } from "vue"; import { Recordable } from "../../types"; -export interface LayCheckboxGroupProps { +export interface CheckboxGroupProps { modelValue?: Recordable[]; disabled?: boolean; } -const props = withDefaults(defineProps(), { +const props = withDefaults(defineProps(), { modelValue: () => [], disabled: false, }); @@ -22,6 +22,7 @@ const emit = defineEmits(["update:modelValue", "change"]); const modelValue = ref(props.modelValue); const disabled = ref(props.disabled); + provide("checkboxGroup", { name: "LayCheckboxGroup", modelValue: modelValue, diff --git a/package/component/src/component/col/index.vue b/package/component/src/component/col/index.vue index f60f2699..448f05da 100644 --- a/package/component/src/component/col/index.vue +++ b/package/component/src/component/col/index.vue @@ -7,7 +7,7 @@ export default {