mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
parent
3fcf9de2b6
commit
99f0db6ea6
@ -1778,78 +1778,33 @@ exports[`renders components/button/demo/icon.tsx extend context correctly 1`] =
|
|||||||
|
|
||||||
exports[`renders components/button/demo/legacy-group.tsx extend context correctly 1`] = `
|
exports[`renders components/button/demo/legacy-group.tsx extend context correctly 1`] = `
|
||||||
Array [
|
Array [
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group ant-btn-group-sm"
|
||||||
class="ant-btn-group ant-btn-group-sm"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
Button 1
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display: inline-block; cursor: not-allowed;"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events: none;"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
<button
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
>
|
type="button"
|
||||||
<div
|
>
|
||||||
class="ant-tooltip-arrow"
|
<span>
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
Button 2
|
||||||
/>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="ant-tooltip-content"
|
<span
|
||||||
>
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
<div
|
style="display: inline-block; cursor: not-allowed;"
|
||||||
class="ant-tooltip-inner"
|
>
|
||||||
role="tooltip"
|
|
||||||
>
|
|
||||||
Tooltip
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events: none;"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -1872,100 +1827,98 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
</span>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
class="ant-tooltip-arrow"
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip-arrow"
|
class="ant-tooltip-inner"
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
role="tooltip"
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-content"
|
|
||||||
>
|
>
|
||||||
<div
|
Tooltip
|
||||||
class="ant-tooltip-inner"
|
</div>
|
||||||
role="tooltip"
|
</div>
|
||||||
>
|
</div>
|
||||||
Tooltip
|
<button
|
||||||
</div>
|
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-arrow"
|
||||||
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-inner"
|
||||||
|
role="tooltip"
|
||||||
|
>
|
||||||
|
Tooltip
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>,
|
</div>,
|
||||||
<br />,
|
<br />,
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group"
|
||||||
class="ant-btn-group"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-primary"
|
Button 1
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display: inline-block; cursor: not-allowed;"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events: none;"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
<button
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
class="ant-btn ant-btn-primary"
|
||||||
>
|
type="button"
|
||||||
<div
|
>
|
||||||
class="ant-tooltip-arrow"
|
<span>
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
Button 2
|
||||||
/>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="ant-tooltip-content"
|
<span
|
||||||
>
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
<div
|
style="display: inline-block; cursor: not-allowed;"
|
||||||
class="ant-tooltip-inner"
|
>
|
||||||
role="tooltip"
|
|
||||||
>
|
|
||||||
Tooltip
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events: none;"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -1988,100 +1941,98 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
</span>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
class="ant-tooltip-arrow"
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip-arrow"
|
class="ant-tooltip-inner"
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
role="tooltip"
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-content"
|
|
||||||
>
|
>
|
||||||
<div
|
Tooltip
|
||||||
class="ant-tooltip-inner"
|
</div>
|
||||||
role="tooltip"
|
</div>
|
||||||
>
|
</div>
|
||||||
Tooltip
|
<button
|
||||||
</div>
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-arrow"
|
||||||
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-inner"
|
||||||
|
role="tooltip"
|
||||||
|
>
|
||||||
|
Tooltip
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>,
|
</div>,
|
||||||
<br />,
|
<br />,
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group ant-btn-group-lg"
|
||||||
class="ant-btn-group ant-btn-group-lg"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-lg"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 1
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-lg"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 2
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
|
style="display: inline-block; cursor: not-allowed;"
|
||||||
>
|
>
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display: inline-block; cursor: not-allowed;"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events: none;"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-arrow"
|
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-content"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-inner"
|
|
||||||
role="tooltip"
|
|
||||||
>
|
|
||||||
Tooltip
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events: none;"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -2104,23 +2055,66 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
</span>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
class="ant-tooltip-arrow"
|
||||||
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-tooltip-arrow"
|
class="ant-tooltip-inner"
|
||||||
style="position: absolute; bottom: 0px; left: 0px;"
|
role="tooltip"
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="ant-tooltip-content"
|
|
||||||
>
|
>
|
||||||
<div
|
Tooltip
|
||||||
class="ant-tooltip-inner"
|
</div>
|
||||||
role="tooltip"
|
</div>
|
||||||
>
|
</div>
|
||||||
Tooltip
|
<button
|
||||||
</div>
|
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
|
||||||
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-arrow"
|
||||||
|
style="position: absolute; bottom: 0px; left: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-content"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-tooltip-inner"
|
||||||
|
role="tooltip"
|
||||||
|
>
|
||||||
|
Tooltip
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1621,59 +1621,33 @@ exports[`renders components/button/demo/icon.tsx correctly 1`] = `
|
|||||||
|
|
||||||
exports[`renders components/button/demo/legacy-group.tsx correctly 1`] = `
|
exports[`renders components/button/demo/legacy-group.tsx correctly 1`] = `
|
||||||
Array [
|
Array [
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group ant-btn-group-sm"
|
||||||
class="ant-btn-group ant-btn-group-sm"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
Button 1
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display:inline-block;cursor:not-allowed"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events:none"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 2
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
|
style="display:inline-block;cursor:not-allowed"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events:none"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -1696,62 +1670,60 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</span>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>,
|
</div>,
|
||||||
<br />,
|
<br />,
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group"
|
||||||
class="ant-btn-group"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-primary"
|
Button 1
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display:inline-block;cursor:not-allowed"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events:none"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 2
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
|
style="display:inline-block;cursor:not-allowed"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events:none"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -1774,62 +1746,60 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</span>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>,
|
</div>,
|
||||||
<br />,
|
<br />,
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-btn-group ant-btn-group-lg"
|
||||||
class="ant-btn-group ant-btn-group-lg"
|
>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-lg"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 1
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-lg"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Button 2
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="ant-tooltip-disabled-compatible-wrapper"
|
||||||
|
style="display:inline-block;cursor:not-allowed"
|
||||||
>
|
>
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 1
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Button 2
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<span
|
|
||||||
class="ant-tooltip-disabled-compatible-wrapper"
|
|
||||||
style="display:inline-block;cursor:not-allowed"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
|
||||||
disabled=""
|
|
||||||
style="pointer-events:none"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-label="download"
|
|
||||||
class="anticon anticon-download"
|
|
||||||
role="img"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
data-icon="download"
|
|
||||||
fill="currentColor"
|
|
||||||
focusable="false"
|
|
||||||
height="1em"
|
|
||||||
viewBox="64 64 896 896"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
<button
|
<button
|
||||||
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
||||||
|
disabled=""
|
||||||
|
style="pointer-events:none"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -1852,7 +1822,31 @@ Array [
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</span>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-lg ant-btn-icon-only"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-label="download"
|
||||||
|
class="anticon anticon-download"
|
||||||
|
role="img"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
data-icon="download"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>,
|
</div>,
|
||||||
]
|
]
|
||||||
`;
|
`;
|
||||||
|
@ -1,30 +1,28 @@
|
|||||||
import React from 'react';
|
|
||||||
import { DownloadOutlined } from '@ant-design/icons';
|
import { DownloadOutlined } from '@ant-design/icons';
|
||||||
import { Button, Tooltip } from 'antd';
|
import { Button, Tooltip } from 'antd';
|
||||||
import type { ButtonGroupProps } from 'antd/es/button';
|
import type { ButtonGroupProps } from 'antd/es/button';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
const getGroup = (props?: ButtonGroupProps) => (
|
const CustomGroup: React.FC<ButtonGroupProps> = (props) => (
|
||||||
<div>
|
<Button.Group {...props}>
|
||||||
<Button.Group {...props}>
|
<Button type="primary">Button 1</Button>
|
||||||
<Button type="primary">Button 1</Button>
|
<Button type="primary">Button 2</Button>
|
||||||
<Button type="primary">Button 2</Button>
|
<Tooltip title="Tooltip">
|
||||||
<Tooltip title="Tooltip">
|
<Button type="primary" icon={<DownloadOutlined />} disabled />
|
||||||
<Button type="primary" icon={<DownloadOutlined />} disabled />
|
</Tooltip>
|
||||||
</Tooltip>
|
<Tooltip title="Tooltip">
|
||||||
<Tooltip title="Tooltip">
|
<Button type="primary" icon={<DownloadOutlined />} />
|
||||||
<Button type="primary" icon={<DownloadOutlined />} />
|
</Tooltip>
|
||||||
</Tooltip>
|
</Button.Group>
|
||||||
</Button.Group>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const App: React.FC = () => (
|
const App: React.FC = () => (
|
||||||
<>
|
<>
|
||||||
{getGroup({ size: 'small' })}
|
<CustomGroup size="small" />
|
||||||
<br />
|
<br />
|
||||||
{getGroup()}
|
<CustomGroup />
|
||||||
<br />
|
<br />
|
||||||
{getGroup({ size: 'large' })}
|
<CustomGroup size="large" />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user