diff --git a/docs/docs/zh-CN/components/collapse.md b/docs/docs/zh-CN/components/collapse.md index 9cf02231..42dc569d 100644 --- a/docs/docs/zh-CN/components/collapse.md +++ b/docs/docs/zh-CN/components/collapse.md @@ -1,10 +1,11 @@ ::: demo @@ -14,7 +15,10 @@ import { ref } from 'vue' export default { setup() { + const openKeys = ref(["1","2"]) + return { + openKeys } } } diff --git a/src/module/collapse/index.vue b/src/module/collapse/index.vue index 844391a1..22736341 100644 --- a/src/module/collapse/index.vue +++ b/src/module/collapse/index.vue @@ -4,4 +4,21 @@ - + + diff --git a/src/module/collapseItem/index.vue b/src/module/collapseItem/index.vue index 32d1bbba..24dd304a 100644 --- a/src/module/collapseItem/index.vue +++ b/src/module/collapseItem/index.vue @@ -13,16 +13,23 @@