Skip to content

Commit 5e00102

Browse files
committed
feat: 增加extra
1 parent 966d318 commit 5e00102

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Dialog/Content/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ const Content = React.forwardRef<ContentRef, ContentProps>((props, ref) => {
3737

3838
const panelRef = useRef<PanelRef>(null);
3939

40+
const hasExtra =
41+
extra !== null &&
42+
extra !== undefined &&
43+
typeof extra !== 'boolean' &&
44+
!(typeof extra === 'string' && extra.trim() === '');
45+
4046
// ============================== Refs ==============================
4147
React.useImperativeHandle(ref, () => ({
4248
...panelRef.current,

0 commit comments

Comments
 (0)