-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathnoarrow.vue
36 lines (30 loc) · 965 Bytes
/
noarrow.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<docs>
---
order: 5
title:
zh-CN: 隐藏箭头
en-US: No arrow
---
## zh-CN
你可以通过 `:showArrow="false"` 隐藏 `a-collapse-panel` 组件的箭头图标。
## en-US
You can hide the arrow icon by passing `showArrow={false}` to `CollapsePanel` component.
</docs>
<template>
<a-collapse v-model:activeKey="activeKey">
<a-collapse-panel key="1" header="This is panel header with arrow icon">
<p>{{ text }}</p>
</a-collapse-panel>
<a-collapse-panel key="2" header="This is panel header with no arrow icon" :show-arrow="false">
<p>{{ text }}</p>
</a-collapse-panel>
</a-collapse>
</template>
<script lang="ts" setup>
import { ref, watch } from 'vue';
const activeKey = ref(['1']);
const text = `A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.`;
watch(activeKey, val => {
console.log('activeKey', val);
});
</script>