mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
a307a7acf7
* remove unnecessary computed props for classNames * rollback autocomplete optimization for possible css style order issue * update snapshots * remove more unnecessary computed props at Input
238 lines
5.4 KiB
Plaintext
238 lines
5.4 KiB
Plaintext
exports[`test renders ./components/input/demo/addon.md correctly 1`] = `
|
|
<div>
|
|
<div
|
|
style="margin-bottom:16px;">
|
|
<span
|
|
class="ant-input-wrapper ant-input-group">
|
|
<span
|
|
class="ant-input-group-addon">
|
|
Http://
|
|
</span>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value="mysite" />
|
|
<span
|
|
class="ant-input-group-addon">
|
|
.com
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
style="margin-bottom:16px;">
|
|
<span
|
|
class="ant-input-wrapper ant-input-group">
|
|
<span
|
|
class="ant-input-group-addon">
|
|
<div
|
|
class="ant-select ant-select-enabled"
|
|
style="width:80px;">
|
|
<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="Http://">
|
|
Http://
|
|
</div>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none;"
|
|
unselectable="unselectable">
|
|
<b />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value="mysite" />
|
|
<span
|
|
class="ant-input-group-addon">
|
|
<div
|
|
class="ant-select ant-select-enabled"
|
|
style="width:70px;">
|
|
<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=".com">
|
|
.com
|
|
</div>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none;"
|
|
unselectable="unselectable">
|
|
<b />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
style="margin-bottom:16px;">
|
|
<span
|
|
class="ant-input-wrapper ant-input-group">
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value="mysite" />
|
|
<span
|
|
class="ant-input-group-addon">
|
|
<i
|
|
class="anticon anticon-setting" />
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/autosize-textarea.md correctly 1`] = `
|
|
<div>
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<textarea
|
|
class="ant-input"
|
|
placeholder="Autosize height based on content lines"
|
|
type="textarea" />
|
|
</span>
|
|
<div
|
|
style="margin:24px 0;" />
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<textarea
|
|
class="ant-input"
|
|
placeholder="Autosize height with minimum and maximum number of lines"
|
|
type="textarea" />
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/basic.md correctly 1`] = `
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input"
|
|
placeholder="Basic usage"
|
|
type="text" />
|
|
</span>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/group.md correctly 1`] = `
|
|
<div>
|
|
<span
|
|
class="ant-input-group ant-input-group-lg">
|
|
<div
|
|
class="ant-col-4">
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value="0571" />
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="ant-col-8">
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value="26888888" />
|
|
</span>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/search-input.md correctly 1`] = `
|
|
<div
|
|
class="ant-input-search-wrapper">
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input ant-input-search"
|
|
placeholder="input search text"
|
|
type="text" />
|
|
</span>
|
|
<i
|
|
class="anticon anticon-search ant-input-search-icon" />
|
|
</div>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/size.md correctly 1`] = `
|
|
<div
|
|
class="example-input">
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input ant-input-lg"
|
|
placeholder="large size"
|
|
type="text" />
|
|
</span>
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input"
|
|
placeholder="default size"
|
|
type="text" />
|
|
</span>
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input ant-input-sm"
|
|
placeholder="small size"
|
|
type="text" />
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/textarea.md correctly 1`] = `
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<textarea
|
|
class="ant-input"
|
|
rows="4"
|
|
type="textarea" />
|
|
</span>
|
|
`;
|
|
|
|
exports[`test renders ./components/input/demo/tooltip.md correctly 1`] = `
|
|
<div
|
|
class="numeric-input-demo">
|
|
<div>
|
|
<span
|
|
class="ant-input-wrapper">
|
|
<input
|
|
class="ant-input"
|
|
maxlength="25"
|
|
placeholder="input a number"
|
|
type="text"
|
|
value="" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|