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

[Bug] show-preview-button props false is not working in n-upload #1238

Closed
liho98 opened this issue Sep 25, 2021 · 0 comments · Fixed by #1258
Closed

[Bug] show-preview-button props false is not working in n-upload #1238

liho98 opened this issue Sep 25, 2021 · 0 comments · Fixed by #1258
Assignees
Labels
bug Something isn't working

Comments

@liho98
Copy link

liho98 commented Sep 25, 2021

TuSimple/naive-ui version (版本)

2.19.1

Vue version (Vue 版本)

3.2.18

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

Version 93.0.4577.82 (Official Build) (x86_64)

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

Macos bigsur 11.5.2

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/vue3-vite-forked-uuob1?file=/App.vue

Reappearance steps (重现步骤)

  <n-upload
    action="https://www.mocky.io/v2/5e4bafc63100007100d8b70f"
    :default-file-list="previewFileList"
    list-type="image-card"
    :show-preview-button="false". <--- set as false but the preview button is still showing
  >
    Click to Upload
  </n-upload>

Expected results (期望的结果)

the preview button is hide

Actual results (实际的结果)

the preview button is showing

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Sep 25, 2021
@liho98 liho98 changed the title [Bug] show-preview-button props is not working in n-upload [Bug] show-preview-button props false is not working in n-upload Sep 25, 2021
@Volankey Volankey added bug Something isn't working and removed untriaged need to sort labels Sep 26, 2021
@kev1nzh37 kev1nzh37 self-assigned this Sep 27, 2021
kev1nzh37 pushed a commit to kev1nzh37/naive-ui that referenced this issue Sep 28, 2021
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

Successfully merging a pull request may close this issue.

3 participants