实现场景:
vue3 dialog 中集成amis-editor
<template #title>
{{ parameter.title }}
<span>
<el-radio-group v-model="viewModel">
<el-radio-button label="电脑"></el-radio-button>
<el-radio-button label="手机"></el-radio-button>
</el-radio-group>
</span>
<div>
<el-button @onclick="onPreview">预览</el-button>
<el-button type="success" @click="onSave">保存</el-button>
<el-button type="info" @click="dialogVisible = false">关闭</el-button>
</div>
</div>
</template>
<div class="editor-inner">
<section class="table-page">
<amisEditor
class-name="is-fixed"
:is-mobile="parameter.isMobile"
:preview="parameter.isPreview"
theme="cxd"
:value="parameter.schemaJson"
:on-change="onPageChange"
:on-save="onSave"
:action-options="actionOptions"
></amisEditor>
</section>
</div>
存在的问题:
:on-change="onPageChange" 一直报错,像save一样定义也报一样的错误
3条答案
按热度按时间k7fdbhmy1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
u1ehiz5o2#
请问你解决了吗
l0oc07j23#
没有