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

The empty slot of cascader does not work with filtering no result #3862

Closed
litt1e-p opened this issue Oct 13, 2022 · 0 comments
Closed

The empty slot of cascader does not work with filtering no result #3862

litt1e-p opened this issue Oct 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@litt1e-p
Copy link

litt1e-p commented Oct 13, 2022

TuSimple/naive-ui version (版本)

2.33.5

Vue version (Vue 版本)

3.2.40

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

106.0.5249.119 64bit

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

window 10 64bit

Node version (Node 版本)

v16.13.0

Reappearance link (重现链接)

https://codesandbox.io/s/ur6z10?file=/src/Demo.vue:414-719

Reappearance steps (重现步骤)

  1. define my empty slot
<n-cascader
      v-model:value="value"
      placeholder="没啥用的值"
      :expand-trigger="hoverTrigger ? 'hover' : 'click'"
      :options="options"
      :check-strategy="checkStrategyIsChild ? 'child' : 'all'"
      :show-path="showPath"
      :filterable="filterable"
      @update:value="handleUpdateValue">
      <template #empty>
        <div>no found!</div>
      </template>
</n-cascader>
  1. filter with some keywords that no result represented
  2. the bug will occur

Expected results (期望的结果)

work with my slot content

Actual results (实际的结果)

still showing the default empty slot

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Oct 13, 2022
@litt1e-p litt1e-p changed the title The empty slot of cascader does not work The empty slot of cascader does not work with filtering no result Oct 13, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Oct 23, 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