Skip to content

Commit

Permalink
refactor: sheet text
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Sep 11, 2024
1 parent a9abb6d commit 7db5a11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ui-react/lib/Sheet/Sheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ export const ShowSheet = () => {
const [visible, setVisible] = useState(false);
return (
<>
<Button onClick={() => setVisible(true)}>Show Dialog</Button>
<Button onClick={() => setVisible(true)}>Show Sheet</Button>
<Sheet
visible={visible}
onCancel={() => setVisible(false)}
sheetTitle='这是一个基本的sheet 🪗'
/>
</>
);
Expand Down
1 change: 1 addition & 0 deletions packages/ui-react/lib/Sheet/Sheet.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Story = StoryObj<typeof meta>;

const defaultProps: SheetProps = {
visible: false,
sheetTitle: '这是一个基本的sheet 🪗',
};

export const DefaultSheet: Story = {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-react/lib/Sheet/SheetHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface SheetHeaderProps {
}

export const SheetHeader = React.forwardRef<HTMLDivElement, SheetHeaderProps>(
({ content = 'Basic Sheet', onCancel, ...rest }, ref) => {
({ content, onCancel, ...rest }, ref) => {
return (
<>
<div
Expand Down

0 comments on commit 7db5a11

Please sign in to comment.