2021-10-25 17:13:23 +00:00
|
|
|
::: title 基础使用
|
2021-10-19 14:28:44 +00:00
|
|
|
:::
|
|
|
|
|
2021-10-01 10:20:41 +00:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2021-10-12 04:58:17 +00:00
|
|
|
<lay-collapse :openKeys="openKeys">
|
|
|
|
<lay-collapse-item title="标题" id="1"> 内容 </lay-collapse-item>
|
|
|
|
<lay-collapse-item title="标题" id="2"> 内容 </lay-collapse-item>
|
|
|
|
<lay-collapse-item title="标题" id="3"> 内容 </lay-collapse-item>
|
2021-10-01 10:20:41 +00:00
|
|
|
</lay-collapse>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
2021-10-12 15:52:46 +00:00
|
|
|
const openKeys = ref(["1","2","3"])
|
2021-10-12 04:58:17 +00:00
|
|
|
|
2021-10-01 10:20:41 +00:00
|
|
|
return {
|
2021-10-12 04:58:17 +00:00
|
|
|
openKeys
|
2021-10-01 10:20:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-10-12 03:30:07 +00:00
|
|
|
:::
|
2021-10-12 06:27:33 +00:00
|
|
|
|
2021-11-04 16:07:45 +00:00
|
|
|
::: title Collapse 属性
|
2021-10-12 18:32:29 +00:00
|
|
|
:::
|
2021-10-12 10:00:09 +00:00
|
|
|
|
2021-11-07 07:55:08 +00:00
|
|
|
::: table
|
|
|
|
|
2021-10-25 17:14:17 +00:00
|
|
|
| Name | Description | Accepted Values |
|
|
|
|
| -------- | ----------- | --------------- |
|
|
|
|
| openKeys | 打开的目录 | `array` |
|
2021-10-13 02:19:38 +00:00
|
|
|
|
2021-11-07 07:55:08 +00:00
|
|
|
:::
|
2021-10-13 02:19:38 +00:00
|
|
|
|
2021-11-07 07:55:08 +00:00
|
|
|
::: title Collapse-item 属性
|
2021-10-13 02:19:38 +00:00
|
|
|
:::
|
|
|
|
|
2021-11-07 07:55:08 +00:00
|
|
|
::: table
|
|
|
|
|
2021-10-25 17:14:17 +00:00
|
|
|
| Name | Description | Accepted Values |
|
|
|
|
| ----- | ----------- | --------------- |
|
|
|
|
| id | 编号 | -- |
|
|
|
|
| title | 标题 | -- |
|
2021-11-07 07:55:08 +00:00
|
|
|
|
2021-11-07 07:56:24 +00:00
|
|
|
:::
|