Skip to content

Commit

Permalink
chore(container-context): 规范代码 (#3060)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjinping committed Dec 16, 2024
1 parent e74f89c commit b163677
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions packages/ui/drawer/stories/container.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import Drawer from '../src'
import Button from '@hi-ui/button'
import Provider from '@hi-ui/provider'

/**
* @title 局部容器抽屉
Expand Down Expand Up @@ -32,21 +31,19 @@ export const Container = () => {
zIndex: 0,
}}
>
<Provider container={document.body}>
<Button type="primary" onClick={() => setVisible(!visible)}>
open
</Button>
<Drawer
title="抽屉标题"
style={{ position: 'absolute' }}
container={container}
visible={visible}
closeable={false}
onClose={() => setVisible(false)}
>
我是一段文字,也可以是表单、表格、步骤条等等
</Drawer>
</Provider>
<Button type="primary" onClick={() => setVisible(!visible)}>
open
</Button>
<Drawer
title="抽屉标题"
style={{ position: 'absolute' }}
container={container}
visible={visible}
closeable={false}
onClose={() => setVisible(false)}
>
我是一段文字,也可以是表单、表格、步骤条等等
</Drawer>
</div>
</>
)
Expand Down

0 comments on commit b163677

Please sign in to comment.