feat(form): panel点击标题可以展开或者收缩内容

This commit is contained in:
roymondchen 2025-11-18 19:03:29 +08:00
parent 27555d6b2f
commit 310aa47c1d

View File

@ -9,7 +9,9 @@
<TMagicButton style="padding: 0" link :icon="expand ? CaretBottom : CaretRight" @click="expand = !expand">
</TMagicButton>
<span v-if="config && config.extra" v-html="config.extra" class="m-form-tip"></span>
<slot name="header">{{ filter(config.title) }}</slot>
<slot name="header">
<span style="cursor: pointer" @click="expand = !expand">{{ filter(config.title) }}</span>
</slot>
</div>
</template>