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

507 lines
11 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/input/demo/addon.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
style="margin-bottom:16px;"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-wrapper ant-input-group"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-group-addon"
>
2016-11-22 14:28:05 +08:00
Http://
</span>
<input
class="ant-input"
type="text"
value="mysite"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-group-addon"
>
2016-11-22 14:28:05 +08:00
.com
</span>
</span>
</div>
<div
style="margin-bottom:16px;"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-wrapper ant-input-group"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-group-addon"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select ant-select-enabled"
style="width:80px;"
>
2016-11-22 14:28:05 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection__rendered"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="Http://"
>
2016-11-22 14:28:05 +08:00
Http://
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<b />
</span>
</div>
</div>
</span>
<input
class="ant-input"
type="text"
value="mysite"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-group-addon"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select ant-select-enabled"
style="width:70px;"
>
2016-11-22 14:28:05 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection__rendered"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title=".com"
>
2016-11-22 14:28:05 +08:00
.com
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<b />
</span>
</div>
</div>
</span>
</span>
</div>
<div
style="margin-bottom:16px;"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-wrapper ant-input-group"
>
2016-11-22 14:28:05 +08:00
<input
class="ant-input"
type="text"
value="mysite"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-input-group-addon"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-setting"
/>
2016-11-22 14:28:05 +08:00
</span>
</span>
</div>
</div>
`;
exports[`renders ./components/input/demo/autosize-textarea.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
2016-12-04 16:57:38 +08:00
<textarea
class="ant-input"
placeholder="Autosize height based on content lines"
type="textarea"
/>
2016-11-22 14:28:05 +08:00
<div
style="margin:24px 0;"
/>
2016-12-04 16:57:38 +08:00
<textarea
class="ant-input"
placeholder="Autosize height with minimum and maximum number of lines"
type="textarea"
/>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/input/demo/basic.md correctly 1`] = `
2016-12-04 16:57:38 +08:00
<input
class="ant-input"
placeholder="Basic usage"
type="text"
/>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/input/demo/group.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<span
class="ant-input-group ant-input-group-lg"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-col-4"
>
2016-12-04 16:57:38 +08:00
<input
class="ant-input"
type="text"
value="0571"
/>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-col-8"
>
2016-12-04 16:57:38 +08:00
<input
class="ant-input"
type="text"
value="26888888"
/>
2016-11-22 14:28:05 +08:00
</div>
</span>
<br />
<span
class="ant-input-group ant-input-group-compact"
>
<input
class="ant-input"
style="width:20%;"
type="text"
value="0571"
/>
<input
class="ant-input"
style="width:30%;"
type="text"
value="26888888"
/>
</span>
<br />
<span
class="ant-input-group ant-input-group-compact"
>
<div
class="ant-select ant-select-enabled"
>
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
<div
class="ant-select-selection__rendered"
>
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="Zhejiang"
>
Zhejiang
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
<input
class="ant-input"
style="width:50%;"
type="text"
value="Xihu District, Hangzhou"
/>
</span>
<br />
<span
class="ant-input-group ant-input-group-compact"
>
<div
class="ant-select ant-select-enabled"
>
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
<div
class="ant-select-selection__rendered"
>
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="Option1"
>
Option1
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
<input
class="ant-input"
style="width:50%;"
type="text"
value="input content"
/>
<div
class="ant-input-number"
>
<div
class="ant-input-number-handler-wrap"
>
<span
class="ant-input-number-handler ant-input-number-handler-up "
unselectable="unselectable"
>
<span
class="ant-input-number-handler-up-inner"
unselectable="unselectable"
/>
</span>
<span
class="ant-input-number-handler ant-input-number-handler-down "
unselectable="unselectable"
>
<span
class="ant-input-number-handler-down-inner"
unselectable="unselectable"
/>
</span>
</div>
<div
class="ant-input-number-input-wrap"
>
<input
autocomplete="off"
class="ant-input-number-input"
max="Infinity"
min="-Infinity"
value=""
/>
</div>
</div>
</span>
<br />
<span
class="ant-input-group ant-input-group-compact"
>
<input
class="ant-input"
style="width:50%;"
type="text"
value="input content"
/>
<span
class="ant-calendar-picker"
>
<span>
<input
class="ant-calendar-picker-input ant-input"
placeholder="请选择日期"
readonly=""
value=""
/>
<span
class="ant-calendar-picker-icon"
/>
</span>
</span>
</span>
<br />
<span
class="ant-input-group ant-input-group-compact"
>
<div
class="ant-select ant-select-enabled"
>
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
<div
class="ant-select-selection__rendered"
>
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="Option1-1"
>
Option1-1
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
<div
class="ant-select ant-select-enabled"
>
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
<div
class="ant-select-selection__rendered"
>
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="Option2-2"
>
Option2-2
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
</span>
<br />
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/input/demo/presuffix.md correctly 1`] = `
2017-01-05 17:24:14 +08:00
<span
class="ant-input-preSuffix-wrapper"
>
2017-01-05 17:24:14 +08:00
<span
class="ant-input-prefix"
>
2017-01-05 17:24:14 +08:00
<i
class="anticon anticon-user"
/>
2017-01-05 17:24:14 +08:00
</span>
<input
class="ant-input"
placeholder="Enter your userName"
type="text"
value=""
/>
2017-01-05 17:24:14 +08:00
</span>
`;
exports[`renders ./components/input/demo/search-input.md correctly 1`] = `
2017-01-05 17:24:14 +08:00
<span
2017-01-10 15:11:43 +08:00
class="ant-input-preSuffix-wrapper"
style="width:200px;"
>
2017-01-05 17:24:14 +08:00
<input
class="ant-input ant-input-search"
placeholder="input search text"
type="text"
/>
<span
class="ant-input-suffix"
>
2017-01-05 17:24:14 +08:00
<i
class="anticon anticon-search ant-input-search-icon"
/>
</span>
2017-01-05 17:24:14 +08:00
</span>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/input/demo/size.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="example-input"
>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-input-lg"
placeholder="large size"
type="text"
/>
2016-12-04 16:57:38 +08:00
<input
class="ant-input"
placeholder="default size"
type="text"
/>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-input-sm"
placeholder="small size"
type="text"
/>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/input/demo/textarea.md correctly 1`] = `
2016-12-04 16:57:38 +08:00
<textarea
class="ant-input"
rows="4"
type="textarea"
/>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/input/demo/tooltip.md correctly 1`] = `
2017-02-19 15:21:46 +08:00
<input
class="ant-input"
maxlength="25"
placeholder="Input a number"
style="width:120px;"
type="text"
value=""
/>
`;