2018-05-15 01:52:44 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`renders ./components/rate/demo/basic.md correctly 1`] = `
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/rate/demo/character.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="false" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-heart"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-heart"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-heart"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-heart"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-heart"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-heart"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-heart"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-heart"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-heart"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-heart"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
</ul> <br>
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate" style="font-size: 36px;">
|
|
|
|
<li role="radio" aria-checked="false" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">A</div>
|
|
|
|
<div class="ant-rate-star-second">A</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">A</div>
|
|
|
|
<div class="ant-rate-star-second">A</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">A</div>
|
|
|
|
<div class="ant-rate-star-second">A</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">A</div>
|
|
|
|
<div class="ant-rate-star-second">A</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">A</div>
|
|
|
|
<div class="ant-rate-star-second">A</div>
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
</ul> <br>
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="false" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">好</div>
|
|
|
|
<div class="ant-rate-star-second">好</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">好</div>
|
|
|
|
<div class="ant-rate-star-second">好</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">好</div>
|
|
|
|
<div class="ant-rate-star-second">好</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">好</div>
|
|
|
|
<div class="ant-rate-star-second">好</div>
|
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-05-15 01:52:44 +00:00
|
|
|
<div class="ant-rate-star-first">好</div>
|
|
|
|
<div class="ant-rate-star-second">好</div>
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
</ul> <br>
|
2018-05-15 01:52:44 +00:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/rate/demo/clear.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul> allowClear: true
|
|
|
|
<br>
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul> allowClear: false
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/rate/demo/disabled.md correctly 1`] = `
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="-1" role="radiogroup" class="ant-rate ant-rate-disabled">
|
|
|
|
<li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/rate/demo/half.md correctly 1`] = `
|
2018-11-08 11:59:09 +00:00
|
|
|
<ul tabindex="0" role="radiogroup" class="ant-rate">
|
|
|
|
<li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="true" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-half ant-rate-star-active">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-08 11:59:09 +00:00
|
|
|
<li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div>
|
|
|
|
<div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
`;
|
|
|
|
|
2018-11-08 11:59:09 +00:00
|
|
|
exports[`renders ./components/rate/demo/text.md correctly 1`] = `<span><ul tabindex="0" role="radiogroup" class="ant-rate"><li role="radio" aria-checked="true" aria-posinset="1" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li role="radio" aria-checked="true" aria-posinset="2" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li role="radio" aria-checked="true" aria-posinset="3" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li role="radio" aria-checked="false" aria-posinset="4" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li role="radio" aria-checked="false" aria-posinset="5" aria-setsize="5" tabindex="0" class="ant-rate-star ant-rate-star-zero"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li></ul> <span class="ant-rate-text">3 stars</span></span>`;
|