vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

自定义表单组件使用CodeEditor初次赋值的问题

Open 15643701048a opened this issue 2 years ago • 1 comments

⚠️ 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赋值时,无法赋值,关闭后再次打开可以赋值,经过测试只有初次赋值时才不能赋值

15643701048a avatar Jun 28 '22 09:06 15643701048a

我也遇到了相同的问题
解决方法是 resetFields()只在新增的时候调用 更新的时候不调用

lifei110196 avatar Aug 13 '22 02:08 lifei110196

component 不再支持 CodeEditor, 使用slot 来引入这个组件吧

wangjue666 avatar Oct 23 '23 10:10 wangjue666

component 不再支持 CodeEditor, 使用slot 来引入这个组件吧

怎么用呢?有没有demo?

auqf avatar Dec 11 '23 07:12 auqf

image image image 使用slot做了个测试,这个地方提示不支持CodeEditor这个组件,如何引入呢?

auqf avatar Jan 05 '24 09:01 auqf