form-create-designer icon indicating copy to clipboard operation
form-create-designer copied to clipboard

"vue": "^3.4.31","element-plus": "^2.7.2",使用回显设计表单找不到函数方法

Open haioa opened this issue 1 year ago • 2 comments

<fc-designer ref="designer" :config="config" height="100%" />

<script setup>
import { ref, reactive, onMounted, watch } from 'vue'
const designer = ref()
//初始化动态表单数据
const getRemoteModel = (data) => {
    designer.value.setJson(data)
}
//初始化动态表单配置
const getRemoteOptions = (optionsJson) => {
    designer.value.setOptions(optionsJson)
}

designer.value.setJson is not a function image

haioa avatar Jul 13 '24 16:07 haioa

"@form-create/designer": "^3.2.3",

haioa avatar Jul 13 '24 16:07 haioa

可以试下用designer.value.setRule(data)

yxcboss avatar Jul 16 '24 08:07 yxcboss

文档里面写错了, 已修复

xaboy avatar Sep 17 '24 16:09 xaboy