2023-06-07 21:59:21 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2017-03-17 18:56:30 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 1`] = `
|
2018-01-09 16:18:20 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2018-01-09 16:18:20 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
0
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 2`] = `
|
2018-01-09 16:18:20 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2018-01-09 16:18:20 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
0
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 3`] = `
|
2018-01-09 16:18:20 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2018-01-09 16:18:20 +08:00
|
|
|
type="button"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 1`] = `
|
2016-11-14 18:31:08 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-14 18:31:08 +08:00
|
|
|
<span>
|
|
|
|
按 钮
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 2`] = `
|
2017-05-02 20:16:18 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-05-02 20:16:18 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2019-10-27 21:59:16 +08:00
|
|
|
<span
|
2023-04-11 11:37:31 +08:00
|
|
|
class="ant-btn-icon"
|
2019-10-27 21:59:16 +08:00
|
|
|
>
|
2023-04-11 11:37:31 +08:00
|
|
|
<span
|
|
|
|
aria-label="search"
|
|
|
|
class="anticon anticon-search"
|
|
|
|
role="img"
|
2019-10-27 21:59:16 +08:00
|
|
|
>
|
2023-04-11 11:37:31 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2019-10-27 21:59:16 +08:00
|
|
|
</span>
|
2017-05-02 20:16:18 +08:00
|
|
|
<span>
|
|
|
|
按钮
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 3`] = `
|
2022-01-02 15:16:21 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2022-01-02 15:16:21 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-label="search"
|
|
|
|
class="anticon anticon-search"
|
|
|
|
role="img"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
按钮
|
|
|
|
</span>
|
|
|
|
</button>
|
2017-05-02 20:16:18 +08:00
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 4`] = `
|
2022-01-02 15:16:21 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2022-01-02 15:16:21 +08:00
|
|
|
type="button"
|
2018-05-01 19:36:11 +08:00
|
|
|
>
|
2022-01-02 15:16:21 +08:00
|
|
|
<span
|
2023-04-11 11:37:31 +08:00
|
|
|
class="ant-btn-icon"
|
2022-01-02 15:16:21 +08:00
|
|
|
>
|
2023-04-11 11:37:31 +08:00
|
|
|
<span
|
|
|
|
aria-label="search"
|
|
|
|
class="anticon anticon-search"
|
|
|
|
role="img"
|
2022-01-02 15:16:21 +08:00
|
|
|
>
|
2023-04-11 11:37:31 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2022-01-02 15:16:21 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
按钮
|
|
|
|
</span>
|
|
|
|
</button>
|
2018-05-01 19:36:11 +08:00
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 5`] = `
|
2018-05-01 19:36:11 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default ant-btn-loading"
|
2018-05-01 19:36:11 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2019-08-13 14:07:17 +08:00
|
|
|
<span
|
2023-04-11 11:37:31 +08:00
|
|
|
class="ant-btn-icon ant-btn-loading-icon"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2020-04-10 15:39:07 +08:00
|
|
|
<span
|
|
|
|
aria-label="loading"
|
2020-11-14 00:43:12 +08:00
|
|
|
class="anticon anticon-loading anticon-spin"
|
2020-04-10 15:39:07 +08:00
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2020-04-10 15:39:07 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="loading"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 1024 1024"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2019-08-13 14:07:17 +08:00
|
|
|
</span>
|
2018-05-01 19:36:11 +08:00
|
|
|
<span>
|
|
|
|
按钮
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 6`] = `
|
2018-05-01 19:36:11 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default ant-btn-loading"
|
2018-05-01 19:36:11 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2019-08-13 14:07:17 +08:00
|
|
|
<span
|
2023-04-11 11:37:31 +08:00
|
|
|
class="ant-btn-icon ant-btn-loading-icon"
|
2021-12-04 17:06:36 +08:00
|
|
|
style="width: 0px; opacity: 0; transform: scale(0);"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2020-04-10 15:39:07 +08:00
|
|
|
<span
|
|
|
|
aria-label="loading"
|
2021-12-04 17:06:36 +08:00
|
|
|
class="anticon anticon-loading anticon-spin ant-btn-loading-icon-motion-appear ant-btn-loading-icon-motion-appear-start ant-btn-loading-icon-motion"
|
2020-04-10 15:39:07 +08:00
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2020-04-10 15:39:07 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="loading"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 1024 1024"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2019-08-13 14:07:17 +08:00
|
|
|
</span>
|
2018-05-01 19:36:11 +08:00
|
|
|
<span>
|
|
|
|
按 钮
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders Chinese characters correctly 7`] = `
|
2019-09-16 11:23:26 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2019-09-16 11:23:26 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
按 钮
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button renders correctly 1`] = `
|
2016-11-14 18:31:08 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-14 18:31:08 +08:00
|
|
|
<span>
|
|
|
|
Follow
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
2017-11-29 11:20:22 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 1`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default ant-btn-rtl"
|
2020-01-02 19:10:16 +08:00
|
|
|
type="button"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 2`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default ant-btn-lg ant-btn-rtl"
|
2020-01-02 19:10:16 +08:00
|
|
|
type="button"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 3`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default ant-btn-sm ant-btn-rtl"
|
2020-01-02 19:10:16 +08:00
|
|
|
type="button"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 4`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<div
|
|
|
|
class="ant-btn-group ant-btn-group-rtl"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 5`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<div
|
|
|
|
class="ant-btn-group ant-btn-group-lg ant-btn-group-rtl"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 6`] = `
|
2020-01-02 19:10:16 +08:00
|
|
|
<div
|
|
|
|
class="ant-btn-group ant-btn-group-sm ant-btn-group-rtl"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button rtl render component should be rendered correctly in RTL direction 7`] = `
|
2020-04-05 21:18:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-btn-group ant-btn-group-rtl"
|
|
|
|
/>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should handle fragment as children 1`] = `
|
2021-06-11 16:32:46 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2021-06-11 16:32:46 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
text
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should merge text if children using variable 1`] = `
|
2019-05-17 12:04:47 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2019-05-17 12:04:47 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
This is a test 1
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should not render as link button when href is undefined 1`] = `
|
2018-12-03 10:39:00 +08:00
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
button
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should render empty button without errors 1`] = `
|
2020-09-02 18:30:27 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-09-02 18:30:27 +08:00
|
|
|
type="button"
|
|
|
|
/>
|
2019-09-16 11:23:26 +08:00
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should support custom icon className 1`] = `
|
2023-04-11 11:37:31 +08:00
|
|
|
<div>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-btn-icon custom-icon"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-label="search"
|
|
|
|
class="anticon anticon-search"
|
|
|
|
role="img"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should support custom icon styles 1`] = `
|
2023-04-11 11:37:31 +08:00
|
|
|
<div>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary ant-btn-icon-only"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-btn-icon"
|
|
|
|
style="color: red;"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-label="search"
|
|
|
|
class="anticon anticon-search"
|
|
|
|
role="img"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Button should support link button 1`] = `
|
2017-11-29 11:20:22 +08:00
|
|
|
<a
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-15 17:18:55 +08:00
|
|
|
href="https://ant.design"
|
2017-11-29 11:20:22 +08:00
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
link button
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
`;
|