-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e104fe4
commit de0b0ba
Showing
3 changed files
with
102 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
packages/semi-ui/collapsible/_story/__snapshots__/collapsible.stories.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Collapsible 1`] = ` | ||
<Demo> | ||
<div> | ||
<Button | ||
block={false} | ||
disabled={false} | ||
htmlType="button" | ||
onClick={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseEnter={[Function]} | ||
onMouseLeave={[Function]} | ||
prefixCls="semi-button" | ||
size="default" | ||
theme="light" | ||
type="primary" | ||
> | ||
<button | ||
aria-disabled={false} | ||
className="semi-button semi-button-primary semi-button-light" | ||
disabled={false} | ||
onClick={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseEnter={[Function]} | ||
onMouseLeave={[Function]} | ||
type="button" | ||
> | ||
<span | ||
className="semi-button-content" | ||
onClick={[Function]} | ||
x-semi-prop="children" | ||
> | ||
显示更多 | ||
</span> | ||
</button> | ||
</Button> | ||
<Collapsible | ||
collapseHeight={0} | ||
duration={250} | ||
fade={false} | ||
isOpen={false} | ||
keepDOM={false} | ||
lazyRender={false} | ||
motion={true} | ||
> | ||
<div | ||
className="semi-collapsible-wrapper" | ||
onTransitionEnd={[Function]} | ||
style={ | ||
Object { | ||
"height": 0, | ||
"opacity": 1, | ||
"overflow": "hidden", | ||
"transitionDuration": "0ms", | ||
} | ||
} | ||
> | ||
<div | ||
style={ | ||
Object { | ||
"overflow": "hidden", | ||
} | ||
} | ||
x-semi-prop="children" | ||
/> | ||
</div> | ||
</Collapsible> | ||
</div> | ||
</Demo> | ||
`; |