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

在FormItemGi上使用v-show出现不隐藏问题 #3123

Closed
fightingsun opened this issue Jun 17, 2022 · 0 comments
Closed

在FormItemGi上使用v-show出现不隐藏问题 #3123

fightingsun opened this issue Jun 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@fightingsun
Copy link

TuSimple/naive-ui version (版本)

2.30.4

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

Chome(102.0.5005.115)

System and its version (系统及其版本)

windows10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/rough-rain-103tcc?file=/src/components/TestFormItem.vue

Reappearance steps (重现步骤)

在FormItemGi上使用v-show来控制该FormItemGi的显示或隐藏,判断方式是通过一个select选择框的值,选择框默认值为null,具体问题可参考CodeSandbox中代码

Expected results (期望的结果)

预期是当选择框的值为2时,显示FormItemGi,否则都是隐藏

Actual results (实际的结果)

当选择框的值从null变为1时,FormItemGi却显示了,当从1变为null时,FormitemGi依然显示,非预期结果
当选择框的值从2变为1时,FormItemGi隐藏了,这个达到了预期结果

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jun 17, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants