-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from oceanbase/dengfuping-design
improve(design): div => React.Fragment for ConfigProvider nested App
- Loading branch information
Showing
6 changed files
with
148 additions
and
280 deletions.
There are no files selected for viewing
140 changes: 28 additions & 112 deletions
140
packages/design/src/config-provider/__tests__/__snapshots__/prefixCls.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 |
---|---|---|
@@ -1,121 +1,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ConfigProvider prefixCls prefixCls 1`] = ` | ||
<div | ||
class="ant-app" | ||
exports[`ConfigProvider prefixCls iconPrefixCls 1`] = ` | ||
<span | ||
aria-label="plus" | ||
class="anticon anticon-plus" | ||
role="img" | ||
> | ||
<button | ||
class="ant-btn ant-btn-default" | ||
type="button" | ||
<svg | ||
aria-hidden="true" | ||
data-icon="plus" | ||
fill="currentColor" | ||
focusable="false" | ||
height="1em" | ||
viewBox="64 64 896 896" | ||
width="1em" | ||
> | ||
<span> | ||
button | ||
</span> | ||
</button> | ||
<div | ||
class="customPrefixCls-app" | ||
> | ||
<button | ||
class="customPrefixCls-btn customPrefixCls-btn-default" | ||
type="button" | ||
> | ||
<span> | ||
button | ||
</span> | ||
</button> | ||
<div | ||
class="customPrefixCls-app" | ||
> | ||
<button | ||
class="customPrefixCls-btn customPrefixCls-btn-default" | ||
type="button" | ||
> | ||
<span> | ||
button | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<path | ||
d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" | ||
/> | ||
<path | ||
d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" | ||
/> | ||
</svg> | ||
</span> | ||
`; | ||
|
||
exports[`ConfigProvider prefixCls iconPrefixCls 1`] = ` | ||
<div | ||
class="ant-app" | ||
exports[`ConfigProvider prefixCls prefixCls 1`] = ` | ||
<button | ||
class="ant-btn ant-btn-default" | ||
type="button" | ||
> | ||
<span | ||
aria-label="plus" | ||
class="anticon anticon-plus" | ||
role="img" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
data-icon="plus" | ||
fill="currentColor" | ||
focusable="false" | ||
height="1em" | ||
viewBox="64 64 896 896" | ||
width="1em" | ||
> | ||
<path | ||
d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" | ||
/> | ||
<path | ||
d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" | ||
/> | ||
</svg> | ||
<span> | ||
button | ||
</span> | ||
<div | ||
class="ant-app" | ||
> | ||
<span | ||
aria-label="plus" | ||
class="customIconPrefixCls customIconPrefixCls-plus" | ||
role="img" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
data-icon="plus" | ||
fill="currentColor" | ||
focusable="false" | ||
height="1em" | ||
viewBox="64 64 896 896" | ||
width="1em" | ||
> | ||
<path | ||
d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" | ||
/> | ||
<path | ||
d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" | ||
/> | ||
</svg> | ||
</span> | ||
<div | ||
class="ant-app" | ||
> | ||
<span | ||
aria-label="plus" | ||
class="customIconPrefixCls customIconPrefixCls-plus" | ||
role="img" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
data-icon="plus" | ||
fill="currentColor" | ||
focusable="false" | ||
height="1em" | ||
viewBox="64 64 896 896" | ||
width="1em" | ||
> | ||
<path | ||
d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" | ||
/> | ||
<path | ||
d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" | ||
/> | ||
</svg> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</button> | ||
`; |
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
18 changes: 1 addition & 17 deletions
18
packages/design/src/config-provider/__tests__/__snapshots__/styleProviderProps.test.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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ConfigProvider styleProviderProps ConfigProvider styleProviderProps.hashPriority 1`] = ` | ||
<div | ||
class="ant-app" | ||
> | ||
<div /> | ||
<div | ||
class="ant-app" | ||
> | ||
<div /> | ||
</div> | ||
<div | ||
class="ant-app" | ||
> | ||
<div /> | ||
</div> | ||
</div> | ||
`; | ||
exports[`ConfigProvider styleProviderProps ConfigProvider styleProviderProps.hashPriority 1`] = `<div />`; |
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
Oops, something went wrong.