electron-vue引入ant-desigin-vue使用ant自定义指令 v-decorator报销
<a-form-item>
<a-input
v-decorator="[
'username',
{
rules: [{ required: true, message: '请输入账号' }],
initialValue: 'sg_lyc1',
},
]"
placeholder="账号"
>
<a-icon
slot="prefix"
type="user"
style="color: rgba(0,0,0,.25)"
/>
</a-input>
</a-form-item>
解决办法
在 .electron-vue/webpack.renderer.config.js 添加 ant-design-vue
let whiteListedModules = ['vue', 'ant-design-vue']
参考 https://github.com/vueComponent/ant-design-vue/issues/134
原文地址:https://www.cnblogs.com/ybixian/p/11407862.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。