2017-03-17 18:56:30 +08:00
|
|
|
// 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
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Checkbox
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/checkbox/demo/check-all.md correctly 1`] = `
|
2020-07-07 22:06:00 +08:00
|
|
|
Array [
|
2020-11-06 17:09:21 +08:00
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2020-11-06 17:09:21 +08:00
|
|
|
<span
|
|
|
|
class="ant-checkbox ant-checkbox-indeterminate"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2020-11-06 17:09:21 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2020-11-06 17:09:21 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Check all
|
|
|
|
</span>
|
|
|
|
</label>,
|
|
|
|
<div
|
|
|
|
class="ant-divider ant-divider-horizontal"
|
|
|
|
role="separator"
|
|
|
|
/>,
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-group"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Apple"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Apple
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Pear"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Pear
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Orange"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Orange
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-07 22:06:00 +08:00
|
|
|
</div>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/checkbox/demo/controller.md correctly 1`] = `
|
2020-07-07 22:06:00 +08:00
|
|
|
Array [
|
2016-11-22 14:28:05 +08:00
|
|
|
<p
|
2017-09-20 16:26:18 +08:00
|
|
|
style="margin-bottom:20px"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2018-11-20 15:13:16 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Checked-Enabled
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-07 22:06:00 +08:00
|
|
|
</p>,
|
2016-11-22 14:28:05 +08:00
|
|
|
<p>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Uncheck
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
2020-03-13 15:09:40 +08:00
|
|
|
style="margin:0 10px"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Disable
|
|
|
|
</span>
|
|
|
|
</button>
|
2020-07-07 22:06:00 +08:00
|
|
|
</p>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
|
|
|
|
2021-04-22 20:15:23 +08:00
|
|
|
exports[`renders ./components/checkbox/demo/debug-line.md correctly 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-space ant-space-horizontal ant-space-align-center"
|
|
|
|
style="border:1px solid red;margin-bottom:16px"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
style="margin-right:8px"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
style="margin-right:8px"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
Bamboo
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
value="little"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Little
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space ant-space-horizontal ant-space-align-center"
|
|
|
|
style="border:1px solid red;margin-bottom:16px"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
style="margin-right:8px"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-radio-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-radio"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-radio-input"
|
|
|
|
type="radio"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-radio-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
style="margin-right:8px"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
Bamboo
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-radio-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-radio"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-radio-input"
|
|
|
|
type="radio"
|
|
|
|
value="little"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-radio-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Little
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
style="border:1px solid red;margin-bottom:16px;display:flex;align-items:center"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<div>
|
|
|
|
Bamboo
|
|
|
|
</div>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
value="little"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Little
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
style="border:1px solid red;margin-bottom:16px;display:flex;align-items:center"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-radio-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-radio"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-radio-input"
|
|
|
|
type="radio"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-radio-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<div>
|
|
|
|
Bamboo
|
|
|
|
</div>
|
|
|
|
<label
|
|
|
|
class="ant-radio-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-radio"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-radio-input"
|
|
|
|
type="radio"
|
|
|
|
value="little"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-radio-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Little
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/checkbox/demo/disabled.md correctly 1`] = `
|
2020-07-07 22:06:00 +08:00
|
|
|
Array [
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2018-11-20 15:13:16 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
disabled=""
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
2020-07-07 22:06:00 +08:00
|
|
|
</label>,
|
|
|
|
<br />,
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2018-11-20 15:13:16 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked ant-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
disabled=""
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
2020-07-07 22:06:00 +08:00
|
|
|
</label>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/checkbox/demo/group.md correctly 1`] = `
|
2020-07-07 22:06:00 +08:00
|
|
|
Array [
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-group"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Apple"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Apple
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Pear"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Pear
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Orange"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Orange
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-07 22:06:00 +08:00
|
|
|
</div>,
|
|
|
|
<br />,
|
|
|
|
<br />,
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-group"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Apple"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Apple
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Pear"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Pear
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Orange"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Orange
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-07 22:06:00 +08:00
|
|
|
</div>,
|
|
|
|
<br />,
|
|
|
|
<br />,
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-group"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-disabled ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-checked ant-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
disabled=""
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Apple"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Apple
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox ant-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
disabled=""
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Pear"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Pear
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
2020-09-06 13:07:39 +08:00
|
|
|
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-checkbox-group-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-08-24 12:56:25 +08:00
|
|
|
class="ant-checkbox ant-checkbox-disabled"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
2017-08-24 12:56:25 +08:00
|
|
|
disabled=""
|
2017-03-17 18:56:30 +08:00
|
|
|
type="checkbox"
|
2018-01-25 18:24:59 +08:00
|
|
|
value="Orange"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2017-02-28 16:14:41 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Orange
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-07 22:06:00 +08:00
|
|
|
</div>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
2017-04-14 16:20:09 +08:00
|
|
|
|
|
|
|
exports[`renders ./components/checkbox/demo/layout.md correctly 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-checkbox-group"
|
2017-12-27 10:18:48 +08:00
|
|
|
style="width:100%"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-row"
|
|
|
|
>
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
class="ant-col ant-col-8"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<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"
|
2017-04-14 16:20:09 +08:00
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
A
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
class="ant-col ant-col-8"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<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"
|
2017-04-14 16:20:09 +08:00
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
B
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
class="ant-col ant-col-8"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<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"
|
2017-04-14 16:20:09 +08:00
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
C
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
class="ant-col ant-col-8"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<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"
|
2017-04-14 16:20:09 +08:00
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
D
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
class="ant-col ant-col-8"
|
2017-04-14 16:20:09 +08:00
|
|
|
>
|
|
|
|
<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"
|
2017-04-14 16:20:09 +08:00
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
E
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|