Collapse组件
Consistency
Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;
Feedback
<template>
<open-collapse v-model="activeNames" @change="handleChange">
<open-collapse-item title="Consistency" name="1">
<div>
Consistent with real life: in line with the process and logic of real life, and comply with
languages and habits that the users are used to;
</div>
</open-collapse-item>
<open-collapse-item title="Feedback" name="2">
<div>
Operation feedback: enable the users to clearly perceive their operations by style updates
and interactive effects;
</div>
</open-collapse-item>
</open-collapse>
</template>
<script setup lang="ts">
import OpenCollapse, { CollapseItem as OpenCollapseItem } from '@open-design/components/collapse';
import { ref } from 'vue';
const activeNames = ref(['1']);
const handleChange = (val: string[]) => {
console.log(val);
};
</script>