mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-18 03:20:03 +08:00
feat(editor): menu配置支持事件
This commit is contained in:
parent
33fcee66df
commit
fcede5c0ac
@ -39,7 +39,12 @@
|
|||||||
</template>
|
</template>
|
||||||
</TMagicDropdown>
|
</TMagicDropdown>
|
||||||
|
|
||||||
<component v-else-if="data.type === 'component'" v-bind="data.props || {}" :is="data.component"></component>
|
<component
|
||||||
|
v-else-if="data.type === 'component'"
|
||||||
|
v-bind="data.props || {}"
|
||||||
|
v-on="(data as MenuComponent).listeners || {}"
|
||||||
|
:is="data.component"
|
||||||
|
></component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user