mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-12 03:01:11 +00: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 style="padding: 0" link :icon="expand ? CaretBottom : CaretRight" @click="expand = !expand">
|
||||||
</TMagicButton>
|
</TMagicButton>
|
||||||
<span v-if="config && config.extra" v-html="config.extra" class="m-form-tip"></span>
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user