4***@qq.com
4***@qq.com
  • 发布:2022-09-09 11:09
  • 更新:2022-09-09 11:09
  • 阅读:159

vue2 ,Schema Form组件,编译成微信小程序的时候config数据进入vue自定义组件会被JSON.stringify掉方法

分类:uni-app

比如config的数据是[{
key: "status",
component: "fui-switch",
props: {
label: "状态:",
activeText: "上架",
inactiveText: "下架",
},
change: ({ detail: { value } }) => {
this.formData.status = value;
},
},] ,进入组件数据就变成 {
key: "status",
component: "fui-switch",
props: {
label: "状态:",
activeText: "上架",
inactiveText: "下架",
},
},] ,

2022-09-09 11:09 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复