tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: [Checkbox]组件的checked属性在非group中不生效

Open AcWrong02 opened this issue 7 months ago • 5 comments

Version

latest

Vue Version

3

Link to minimal reproduction

<template>
    <tiny-checkbox label="复选框1" name="name2" :checked="true"></tiny-checkbox>
</template>

<script>
import { Checkbox, CheckboxGroup } from '@opentiny/vue'

export default {
  components: {
    TinyCheckbox: Checkbox,
    TinyCheckboxGroup: CheckboxGroup
  },
}
</script>

Step to reproduce

复制到Playground中,发现设置checked为true无效

What is expected

在某些场景下,我需要对单独的checkbox使用checked属性,期望它可以生效。

What is actually happening

单独的checkbox使用checked属性不生效

What is your project name

null

Any additional comments (optional)

No response

AcWrong02 avatar Jul 23 '24 16:07 AcWrong02