4***@qq.com
4***@qq.com
  • 发布:2020-06-01 11:53
  • 更新:2020-06-01 11:53
  • 阅读:651

#插件讨论# 【 动态配置表单 - 511724494@qq.com 】下载了怎么会有这个错误啊

分类:uni-app

Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:31:33.065 (Emitted value instead of an instance of Error)
11:31:33.068 Errors compiling template:
11:31:33.070 avoid using JavaScript keyword as property name: "if"
11:31:33.073 Raw expression: @click="if(type != 'show')itemValue[detailItem.textName] = value.valueCode"
11:31:33.079 107| <view class="item-content">
11:31:33.080 108| <radio-group>
11:31:33.082 109| <label class="item-radio" v-for="(value, index) in detailItem.values" :key="index" @click="if(type != 'show')itemValue[detailItem.textName] = value.valueCode">
11:31:33.082 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:31:33.085 110| <radio :disabled="type == 'show'" :value="value.valueCode" :checked="itemValue[detailItem.textName] == value.valueCode" />
11:31:33.085 111| {{ value.valueName }}
11:31:33.088 at E:\inputtype\lh-configurationForm_1.0.2_example\components\lh-configurationForm\lh-configurationForm.vue:0

下载了怎么会有这个错误啊,怎么解决?

2020-06-01 11:53 负责人:无 分享
已邀请:

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