Skip to content

Commit

Permalink
fix: 让 float pane 可控制 (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed May 30, 2024
1 parent 4c081df commit 25c8267
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/float-pane/float-pane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ const FloatPane = defineComponent({
return [`${prefixCls}-container`, props.contentClass].filter(Boolean);
});

ctx.expose({
show() {
innerVisible.value = true;
},
});

return () => (
<Teleport
disabled={!getContainer.value?.()}
Expand Down

0 comments on commit 25c8267

Please sign in to comment.