mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-29 22:12:11 +08:00
feat(form): panel点击标题可以展开或者收缩内容
This commit is contained in:
parent
27555d6b2f
commit
310aa47c1d
@ -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>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user