mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 01:11:26 +08:00
767d2d0638
* add allow clear to textarea revert textarea md refactor textarea css fix textarea props bug add test and update snapshot update doc add margin refactor textarea to reuse fixControlledValue and setValue method add clearable input to reuse code refactor clearable input finish refactor refactor clearable input refactor input and textArea finish refactor update test snapshots fix input props bug fix dom issue fix textarea dom issue fix textarea test bug fix textarea dom issue refactor code and fix textarea dom issue fix input dom issue fix typo error update test snapshots fix ci failed issues adjust margin * remove useless code fix ci failed issue * fix textarea padding issue * update snapshots * fix padding issue
171 lines
4.6 KiB
Plaintext
171 lines
4.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Transfer.Search should show cross icon when input value exists 1`] = `
|
|
<Search
|
|
placeholder=""
|
|
value=""
|
|
>
|
|
<div>
|
|
<Input
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value=""
|
|
>
|
|
<ClearableLabeledInput
|
|
element={
|
|
<input
|
|
className="ant-input"
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value=""
|
|
/>
|
|
}
|
|
handleReset={[Function]}
|
|
inputType="input"
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
prefixCls="ant-input"
|
|
type="text"
|
|
value=""
|
|
>
|
|
<input
|
|
className="ant-input"
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value=""
|
|
/>
|
|
</ClearableLabeledInput>
|
|
</Input>
|
|
<span
|
|
className="undefined-action"
|
|
>
|
|
<Icon
|
|
type="search"
|
|
>
|
|
<LocaleReceiver
|
|
componentName="Icon"
|
|
>
|
|
<i
|
|
aria-label="icon: search"
|
|
className="anticon anticon-search"
|
|
>
|
|
<IconReact
|
|
className=""
|
|
type="search-o"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
className=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
key="svg-search"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
key="svg-search-svg-0"
|
|
/>
|
|
</svg>
|
|
</IconReact>
|
|
</i>
|
|
</LocaleReceiver>
|
|
</Icon>
|
|
</span>
|
|
</div>
|
|
</Search>
|
|
`;
|
|
|
|
exports[`Transfer.Search should show cross icon when input value exists 2`] = `
|
|
<Search
|
|
placeholder=""
|
|
value="a"
|
|
>
|
|
<div>
|
|
<Input
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value="a"
|
|
>
|
|
<ClearableLabeledInput
|
|
element={
|
|
<input
|
|
className="ant-input"
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value="a"
|
|
/>
|
|
}
|
|
handleReset={[Function]}
|
|
inputType="input"
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
prefixCls="ant-input"
|
|
type="text"
|
|
value="a"
|
|
>
|
|
<input
|
|
className="ant-input"
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value="a"
|
|
/>
|
|
</ClearableLabeledInput>
|
|
</Input>
|
|
<a
|
|
className="undefined-action"
|
|
href="#"
|
|
onClick={[Function]}
|
|
>
|
|
<Icon
|
|
theme="filled"
|
|
type="close-circle"
|
|
>
|
|
<LocaleReceiver
|
|
componentName="Icon"
|
|
>
|
|
<i
|
|
aria-label="icon: close-circle"
|
|
className="anticon anticon-close-circle"
|
|
>
|
|
<IconReact
|
|
className=""
|
|
type="close-circle-fill"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
className=""
|
|
data-icon="close-circle"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
key="svg-close-circle"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
|
|
key="svg-close-circle-svg-0"
|
|
/>
|
|
</svg>
|
|
</IconReact>
|
|
</i>
|
|
</LocaleReceiver>
|
|
</Icon>
|
|
</a>
|
|
</div>
|
|
</Search>
|
|
`;
|