amis 'Reaction[Reaction@4818]' TypeError: t3.onChange is not a function

disho6za  于 3个月前  发布在  React
关注(0)|答案(3)|浏览(81)
实现场景:

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一样定义也报一样的错误

k7fdbhmy

k7fdbhmy1#

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

u1ehiz5o

u1ehiz5o2#

请问你解决了吗

相关问题