ant-design/components/checkbox/__tests__/__snapshots__/demo.test.js.snap

525 lines
10 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/checkbox/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Checkbox
</span>
</label>
`;
exports[`renders ./components/checkbox/demo/check-all.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
2019-12-26 15:15:46 +08:00
class="site-checkbox-all-wrapper"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-indeterminate"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Check all
</span>
</label>
</div>
<br />
<div
class="ant-checkbox-group"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Apple"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Apple
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Pear"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Pear
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Orange"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Orange
</span>
</label>
</div>
</div>
`;
exports[`renders ./components/checkbox/demo/controller.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<p
2017-09-20 16:26:18 +08:00
style="margin-bottom:20px"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Checked-Enabled
</span>
</label>
</p>
<p>
<button
class="ant-btn ant-btn-primary ant-btn-sm"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Uncheck
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm"
2017-09-20 16:26:18 +08:00
style="margin-left:10px"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Disable
</span>
</button>
</p>
</div>
`;
exports[`renders ./components/checkbox/demo/disabled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
disabled=""
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
</label>
<br />
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked ant-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
disabled=""
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
</label>
</div>
`;
exports[`renders ./components/checkbox/demo/group.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-checkbox-group"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Apple"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Apple
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Pear"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Pear
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Orange"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Orange
</span>
</label>
</div>
<br />
<br />
2016-11-22 14:28:05 +08:00
<div
class="ant-checkbox-group"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-group-item ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Apple"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Apple
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Pear"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Pear
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Orange"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Orange
</span>
</label>
</div>
<br />
<br />
2016-11-22 14:28:05 +08:00
<div
class="ant-checkbox-group"
>
2016-11-22 14:28:05 +08:00
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-checked ant-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-checkbox-input"
disabled=""
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Apple"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Apple
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
disabled=""
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Pear"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Pear
</span>
</label>
<label
class="ant-checkbox-group-item ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox ant-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-checkbox-input"
disabled=""
type="checkbox"
2018-01-25 18:24:59 +08:00
value="Orange"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
<span>
Orange
</span>
</label>
</div>
</div>
`;
exports[`renders ./components/checkbox/demo/layout.md correctly 1`] = `
<div
class="ant-checkbox-group"
style="width:100%"
>
<div
class="ant-row"
>
<div
class="ant-col ant-col-8"
>
<label
class="ant-checkbox-wrapper"
>
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="A"
/>
<span
class="ant-checkbox-inner"
/>
</span>
<span>
A
</span>
</label>
</div>
<div
class="ant-col ant-col-8"
>
<label
class="ant-checkbox-wrapper"
>
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="B"
/>
<span
class="ant-checkbox-inner"
/>
</span>
<span>
B
</span>
</label>
</div>
<div
class="ant-col ant-col-8"
>
<label
class="ant-checkbox-wrapper"
>
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="C"
/>
<span
class="ant-checkbox-inner"
/>
</span>
<span>
C
</span>
</label>
</div>
<div
class="ant-col ant-col-8"
>
<label
class="ant-checkbox-wrapper"
>
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="D"
/>
<span
class="ant-checkbox-inner"
/>
</span>
<span>
D
</span>
</label>
</div>
<div
class="ant-col ant-col-8"
>
<label
class="ant-checkbox-wrapper"
>
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
2018-01-25 18:24:59 +08:00
value="E"
/>
<span
class="ant-checkbox-inner"
/>
</span>
<span>
E
</span>
</label>
</div>
</div>
</div>
`;