ant-design/components/badge/__tests__/__snapshots__/index.test.js.snap

3163 lines
71 KiB
Plaintext
Raw Normal View History

2018-05-25 17:00:32 +08:00
// 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"
>
2019-04-16 14:22:22 +08:00
<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=""
>
2019-04-16 14:22:22 +08:00
<AnimateChild
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count="3.5"
data-show={true}
key="scrollNumber"
2019-04-16 14:22:22 +08:00
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"
>
2019-04-16 14:22:22 +08:00
3.5
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge render Badge status/color when contains children 1`] = `
Array [
<span
class="ant-badge ant-badge-status"
>
<a />
<sup
class="ant-scroll-number ant-badge-dot ant-badge-status-success"
data-show="true"
title="5"
/>
</span>,
<span
class="ant-badge ant-badge-status"
>
<a />
<sup
class="ant-scroll-number ant-badge-dot ant-badge-status-blue"
data-show="true"
title="5"
/>
</span>,
<span
class="ant-badge ant-badge-status"
>
<a />
<sup
class="ant-scroll-number ant-badge-dot"
data-show="true"
style="background:#08c"
title="5"
/>
</span>,
]
`;
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="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit current"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
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="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit current"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
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="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit current"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
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="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit current"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
</span>
</sup>
</span>
</div>
`;
feat: added rtl direction to all of ant-design components (#19380) * rtl demo change en-us description * change bundlesize css limit * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * fix pagination.tsx compile error * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * fix select component arrow issue * RTL: form component * add pagination rtl test * fix test lint error * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * some fixes to RTL components * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * fix switch component text rtl issue * fix table grouped header text-align * add rtl support to whole demo with RTL button * Update rtl demo responsive * RTL: page-header component * RTL: typography component * RTL: Dropdown (Partial) * update config-provider doc * RTL: input component * RTL: select component * RTL: switch component * RTL: tree component * fix rtl demo lint * rtl demo change en-us description * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * RTL: form component * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * fix lost changes after rebase * fix lint errors * RTL: Transfer Component * RTL: upload component * RTL: update avatar demo * RTL: comment component * RTL: collapse component * RTL: carousel component * update snapshots * RTL: Card component * RTL: descriptions component * RTL: Empty component * RTL: list component * RTL: slider component * slider component import/order * add shared rtlTest * RTL: Statistic component * RTL: tooltip components * RTL: popover component * RTL: timeline component * RTL: tag component * RTL: alert component * RTL: drawer component * RTL: Tab component * change direction definition * RTL: progress component * input.tsx, remove duplicate after rebase * fix demo.less after rebase * fix ant-row-rtl after rebase * fix upload issues in rtl * badge rtl demo margin fix * fix: tabs with icon margin * fix: radio-wrapper margin * fix: table component after rebase * fix: centered modal text-align * update slider snapshot * RTL: popconfirm component * RTL: back-top component * RTL: spin component * RTL: result component * RTL: skeleton component * RTL: menu component * RTL: time-picker component * RTL: calendar component * RTL: date-picker component * RTL: home page * update snapshots * test: add auto-complete rtl test * test: add avatar component rtl tests * test: add badge component rtl tests * test: add breadcrumb component rtl tests * test: add button components rtl tests * test: add card component rtl tests * test: add carousel component rtl tests * test: add cascader component rtl tests * test: add checkbox component rtl tests * test: add collapse component rtl tests * test: add comment component rtl tests * test: add dropdown component rtl tests * test: add empty component rtl tests * test: add form component rtl tests * test: add grid component rtl tests * test: add input component rtl tests * test: add search component rtl tests * test: add input-number component rtl tests * test: add layout component rtl tests * test: add list component rtl tests * test: add mentions component rtl tests * test: add modal component rtl tests * test: add page-header component rtl tests * test: add pagination component rtl tests * test: add radio component rtl tests * test: add rate component rtl tests * test: add select component rtl tests * test: add slider component rtl tests * test: add steps component rtl tests * test: add switch component rtl tests * test: add table component rtl tests * test: add transfer component rtl tests * test: add tree component rtl tests * test: add tree-select component rtl tests * test: add typography component rtl tests * test: add upload component rtl tests * test: add affix component rtl tests * update calendar tests * increase css file maxSize * update snapshots * remove workflows to allow push * remove duplicate reverse prop from slider * fix: remove table demo from config-provider * fix: remove table demo from config-provider * fix lint error * Added direction property to ConfigProvider * cascader rtl tests added * update config-provider doc * RTL: grid system * RTL: input component * RTL: switch component * fix rtl demo lint * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * fix pagination.tsx compile error * RTL: button and button-group * RTL: Steps component * fix rtl demo style * RTL: form component * add pagination rtl test * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * RTL: input component * RTL: select component * RTL: switch component * RTL: tree component * fix rtl demo lint * rtl demo change en-us description * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * RTL: form component * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * input.tsx, remove duplicate after rebase * fix ant-row-rtl after rebase * update snapshots * test: add cascader component rtl tests * test: add pagination component rtl tests * update calendar tests * update snapshots * fix: remove table demo from config-provider * fix: remove table demo from config-provider * fix lint error * update direction.md icons * dropdown and cascader default placement in rtl * update snapshots * fix lint errors * remove duplicate import * update snapshots * update snapshot * update calendar snapshot * update snapshots * integrate with new rc-picker * update snapshots * fix lint errors * update snapshot * update snapshots * update snapshots * update snapshots :| * update snapshots * fix compile error. * fix typo after rebase * update snapshots * remove workflows to allow push * update snapshots * update snapshots * fix dist error * front-page css fix * update snapshots * fix lint and test issues * restore cascader index.less * update snapshots * fix logo in rtl and demo controls * ci errors * resolve steps/index.tsx conflicts * tooltip family demo remove inline style * resolve table/Table.tsx conflicts * resolve modal/Modal.tsx conflicts * resolve cascader/index.tsx conflicts * add workflows from upstream * update snapshots * revert logo to default * fix codebox demo direction of placements * resolve tooltip overlayClassName conflicts * update snapshots * update popover test * fix: cascader miss popupClassName * fix: fix select missing dropdownClassName * chore: Update snapshot * chore: Adjust menu use rtl logic * docs: Update demo line color Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
exports[`Badge rtl render component should be rendered correctly in RTL direction 1`] = `
<span
class="ant-badge ant-badge-not-a-wrapper ant-badge-rtl"
/>
`;
exports[`Badge rtl render component should be rendered correctly in RTL direction 2`] = `
<span
class="ant-badge ant-badge-rtl"
>
<a
class="head-example"
href="#"
>
head
</a>
<sup
class="ant-scroll-number ant-badge-count"
data-show="true"
style="left:10px;margin-top:10px"
title="5"
>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1500%);-webkit-transform:translateY(-1500%);transform:translateY(-1500%)"
>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit current"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
<p
class="ant-scroll-number-only-unit"
>
0
</p>
<p
class="ant-scroll-number-only-unit"
>
1
</p>
<p
class="ant-scroll-number-only-unit"
>
2
</p>
<p
class="ant-scroll-number-only-unit"
>
3
</p>
<p
class="ant-scroll-number-only-unit"
>
4
</p>
<p
class="ant-scroll-number-only-unit"
>
5
</p>
<p
class="ant-scroll-number-only-unit"
>
6
</p>
<p
class="ant-scroll-number-only-unit"
>
7
</p>
<p
class="ant-scroll-number-only-unit"
>
8
</p>
<p
class="ant-scroll-number-only-unit"
>
9
</p>
</span>
</sup>
</span>
`;
2018-05-25 17:00:32 +08:00
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"
2018-06-02 13:18:11 +08:00
style="background-color:#fff;color:#999;border-color:#d9d9d9;box-shadow:0 0 0 1px #d9d9d9 inset"
2018-05-25 17:00:32 +08:00
title="4"
>
<span
class="ant-scroll-number-only"
2018-06-02 13:18:11 +08:00
style="transition:none;-ms-transform:translateY(-1400%);-webkit-transform:translateY(-1400%);transform:translateY(-1400%)"
2018-05-25 17:00:32 +08:00
>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
0
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
1
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
2
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
3
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
4
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
5
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
6
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
7
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
8
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
9
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
0
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
1
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
2
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
3
</p>
<p
class="ant-scroll-number-only-unit current"
2018-05-25 17:00:32 +08:00
>
4
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
5
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
6
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
7
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
8
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
9
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
0
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
1
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
2
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
3
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
4
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
5
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
6
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
7
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
8
</p>
<p
class="ant-scroll-number-only-unit"
2018-05-25 17:00:32 +08:00
>
9
</p>
</span>
</sup>
</span>
`;
exports[`Badge should render when count is changed 1`] = `
<Badge
count={10}
>
2019-04-16 14:22:22 +08:00
<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=""
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<AnimateChild
2018-05-25 17:00:32 +08:00
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={10}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2019-04-16 14:22:22 +08:00
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
2018-05-25 17:00:32 +08:00
data-show={true}
title={10}
>
2019-04-16 14:22:22 +08:00
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1900%)",
"msTransform": "translateY(-1900%)",
"transform": "translateY(-1900%)",
"transition": "none",
}
}
>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
2018-05-25 17:00:32 +08:00
</Badge>
`;
exports[`Badge should render when count is changed 2`] = `
<Badge
count={11}
>
2019-04-16 14:22:22 +08:00
<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=""
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<AnimateChild
2018-05-25 17:00:32 +08:00
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2019-04-16 14:22:22 +08:00
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
2018-05-25 17:00:32 +08:00
data-show={true}
title={11}
>
2019-04-16 14:22:22 +08:00
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
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="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
2018-05-25 17:00:32 +08:00
</Badge>
`;
exports[`Badge should render when count is changed 3`] = `
<Badge
count={11}
>
2019-04-16 14:22:22 +08:00
<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=""
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<AnimateChild
2018-05-25 17:00:32 +08:00
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2019-04-16 14:22:22 +08:00
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
2018-05-25 17:00:32 +08:00
data-show={true}
title={11}
>
2019-04-16 14:22:22 +08:00
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": undefined,
}
}
>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
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="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
2018-05-25 17:00:32 +08:00
</Badge>
`;
exports[`Badge should render when count is changed 4`] = `
<Badge
count={111}
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<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=""
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<AnimateChild
2018-05-25 17:00:32 +08:00
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count="99+"
2019-04-16 14:22:22 +08:00
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2019-04-16 14:22:22 +08:00
prefixCls="ant-scroll-number"
title={111}
2019-04-16 14:22:22 +08:00
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
2018-05-25 17:00:32 +08:00
data-show={true}
title={111}
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
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="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
2018-05-25 17:00:32 +08:00
</Badge>
`;
exports[`Badge should render when count is changed 5`] = `
<Badge
count={10}
>
<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"
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={10}
>
99+
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 6`] = `
2018-05-25 17:00:32 +08:00
<Badge
count={9}
>
2019-04-16 14:22:22 +08:00
<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=""
2018-05-25 17:00:32 +08:00
>
2019-04-16 14:22:22 +08:00
<AnimateChild
2018-05-25 17:00:32 +08:00
animation={Object {}}
2019-04-16 14:22:22 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
2019-04-16 14:22:22 +08:00
<ScrollNumber
className="ant-badge-count"
count={9}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2019-04-16 14:22:22 +08:00
prefixCls="ant-scroll-number"
title={9}
>
<sup
className="ant-scroll-number ant-badge-count"
2018-05-25 17:00:32 +08:00
data-show={true}
title={9}
>
2019-04-16 14:22:22 +08:00
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
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="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="0"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="1"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="2"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="3"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="4"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="5"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="6"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="7"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="8"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="9"
>
9
</p>
<p
className="ant-scroll-number-only-unit current"
2019-04-16 14:22:22 +08:00
key="10"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="11"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="12"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="13"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="14"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="15"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="16"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="17"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="18"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="19"
>
9
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="20"
>
0
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="21"
>
1
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="22"
>
2
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="23"
>
3
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="24"
>
4
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="25"
>
5
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="26"
>
6
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="27"
>
7
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="28"
>
8
</p>
<p
className="ant-scroll-number-only-unit"
2019-04-16 14:22:22 +08:00
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
2018-05-25 17:00:32 +08:00
</Badge>
`;
exports[`Badge should support offset when count is a ReactNode 1`] = `
<span
class="ant-badge"
>
<a
class="head-example"
href="#"
2019-08-11 16:38:04 +08:00
>
head
</a>
<span
class="ant-scroll-number-custom-component custom"
style="right:-10px;margin-top:20px;color:#f5222d"
/>
</span>
`;