ant-design/components/badge/__tests__/__snapshots__/index.test.js.snap
2019-04-16 14:22:22 +08:00

2917 lines
56 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Badge badge should support float number 1`] = `
<span
class="ant-badge ant-badge-not-a-wrapper"
>
<sup
class="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show="true"
title="3.5"
>
3.5
</sup>
</span>
`;
exports[`Badge badge should support float number 2`] = `
<Badge
count="3.5"
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count="3.5"
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title="3.5"
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title="3.5"
>
3.5
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge render correct with negative number 1`] = `
<div>
<span
class="ant-badge ant-badge-not-a-wrapper"
>
<sup
class="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show="true"
title="-10"
>
<span
class="ant-scroll-number-symbol"
>
-
</span>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1100%);-webkit-transform:translateY(-1100%);transform:translateY(-1100%)"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class="current"
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1000%);-webkit-transform:translateY(-1000%);transform:translateY(-1000%)"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class="current"
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
</sup>
</span>
<span
class="ant-badge ant-badge-not-a-wrapper"
>
<sup
class="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show="true"
title="-10"
>
<span
class="ant-scroll-number-symbol"
>
-
</span>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1100%);-webkit-transform:translateY(-1100%);transform:translateY(-1100%)"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class="current"
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1000%);-webkit-transform:translateY(-1000%);transform:translateY(-1000%)"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class="current"
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
</sup>
</span>
</div>
`;
exports[`Badge should be compatible with borderColor style 1`] = `
<span
class="ant-badge ant-badge-not-a-wrapper"
>
<sup
class="ant-scroll-number ant-badge-count"
data-show="true"
style="background-color:#fff;color:#999;border-color:#d9d9d9;box-shadow:0 0 0 1px #d9d9d9 inset"
title="4"
>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1400%);-webkit-transform:translateY(-1400%);transform:translateY(-1400%)"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class="current"
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
</sup>
</span>
`;
exports[`Badge should render when count is changed 1`] = `
<Badge
count={10}
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={10}
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={10}
>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1900%)",
"msTransform": "translateY(-1900%)",
"transform": "translateY(-1900%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className="current"
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 2`] = `
<Badge
count={11}
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={11}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1000%)",
"msTransform": "translateY(-1000%)",
"transform": "translateY(-1000%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className="current"
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 3`] = `
<Badge
count={11}
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={11}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": undefined,
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": undefined,
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 4`] = `
<Badge
count={10}
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={10}
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={10}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 5`] = `
<Badge
count={9}
dot={false}
overflowCount={99}
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count"
count={9}
data-show={true}
key="scrollNumber"
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={9}
>
<sup
className="ant-scroll-number ant-badge-count"
data-show={true}
title={9}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1000%)",
"msTransform": "translateY(-1000%)",
"transform": "translateY(-1000%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className="current"
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should support offset when count is a ReactNode 1`] = `
<span
class="ant-badge"
>
<a
class="head-example"
href="#"
/>
<span
class="ant-scroll-number-custom-component custom"
style="right:-10px;margin-top:20px;color:#f5222d"
/>
</span>
`;