Skip to content

Commit

Permalink
feat(cascader): cascader panel support option slot (#4513)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Aug 29, 2024
1 parent 0a2e50e commit 6d022d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/cascader/cascader-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineComponent({
trigger={props.trigger}
cascaderContext={cascaderContext.value}
empty={props.empty}
v-slots={{ empty: slots.empty }}
v-slots={{ empty: slots.empty, option: slots.option, loadingText: slots.loadingText }}
/>
);
},
Expand Down
24 changes: 6 additions & 18 deletions test/unit/snap/__snapshots__/csr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44044,10 +44044,8 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/input.vue 1
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</span>
Expand Down Expand Up @@ -47282,10 +47280,8 @@ exports[`csr snapshot test > csr test ./src/date-picker/_example/custom-icon.vue
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>

Expand Down Expand Up @@ -47404,10 +47400,8 @@ exports[`csr snapshot test > csr test ./src/date-picker/_example/custom-icon.vue
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>

Expand Down Expand Up @@ -65018,10 +65012,8 @@ exports[`csr snapshot test > csr test ./src/form/_example/login.vue 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>

Expand Down Expand Up @@ -78511,10 +78503,8 @@ exports[`csr snapshot test > csr test ./src/input/_example/password.vue 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>

Expand Down Expand Up @@ -78572,10 +78562,8 @@ exports[`csr snapshot test > csr test ./src/input/_example/password.vue 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 3a4 4 0 00-4 4v3h8V7a4 4 0 00-4-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12v8h13v-8h-13zM9 15h6v2H9v-2z"
d="M12 3a4 4 0 014 4v3H8V7a4 4 0 014-4zm6 7V7A6 6 0 006 7v3H3.5v12h17V10H18zM5.5 12h13v8h-13v-8zM9 15h6v2H9v-2z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</span>
Expand Down
Loading

0 comments on commit 6d022d8

Please sign in to comment.