vue-vben-admin
vue-vben-admin copied to clipboard
自定义表单组件使用CodeEditor初次赋值的问题
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
- [ ] Read the docs.
- [ ] Make sure the code is up to date. (Some bugs have been fixed in the latest code)
- [ ] This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Describe the bug
A clear and concise description of what the bug is..
Reproduction
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
System Info
- Operating System:
- Node version:
- Package manager (npm/yarn/pnpm) and version:
在打开BasicModal中的表单,将CodeEditor作为自定义表单组件使用时,初次使用setFieldsValue赋值时,无法赋值,关闭后再次打开可以赋值,经过测试只有初次赋值时才不能赋值
我也遇到了相同的问题
解决方法是 resetFields()只在新增的时候调用 更新的时候不调用
component 不再支持 CodeEditor
, 使用slot
来引入这个组件吧
component 不再支持
CodeEditor
, 使用slot
来引入这个组件吧
怎么用呢?有没有demo?
使用slot做了个测试,这个地方提示不支持CodeEditor这个组件,如何引入呢?