Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给n-form-item-gi设置v-show时,初始状态为不显示时,无法控制元素的显示隐藏 #6644

Open
5 tasks done
maddenBoy opened this issue Dec 25, 2024 · 0 comments
Labels
untriaged need to sort

Comments

@maddenBoy
Copy link

描述错误

给n-form-item-gi设置v-show时,初始状态为不显示时,无法控制元素的显示隐藏

复现步骤

1、打开链接(https://codesandbox.io/p/sandbox/competent-frost-hrlr46?file=%2Fsrc%2FDemo.vue%3A2%2C33-2%2C40)
2、点击控制显示/隐藏按钮,可以发现使用v-show控制的input框没有显示,而v-if的textarea可以显示

最小复现链接

https://codesandbox.io/p/sandbox/competent-frost-hrlr46?file=%2Fsrc%2FDemo.vue%3A2%2C33-2%2C40

系统信息

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics        
    Memory: 15.90 GB / 31.40 GB
  Binaries:
    Node: 16.18.0 - ~\AppData\Local\Volta\tools\image\node\16.18.0\node.EXE
    npm: 8.19.2 - ~\AppData\Local\Volta\tools\image\node\16.18.0\npm.CMD
    pnpm: 9.14.4 - C:\Program Files\Volta\pnpm.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    naive-ui: 2.40.3 => 2.40.3
    vue: ^3.5.13 => 3.5.13

使用的包管理器

pnpm

验证

@maddenBoy maddenBoy added the untriaged need to sort label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

1 participant