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

1395 lines
37 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
2018-12-26 22:34:29 +08:00
exports[`Input allowClear should change type when click 1`] = `
<Input
allowClear={true}
type="text"
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value="111"
2019-04-16 14:22:22 +08:00
>
2018-12-26 22:34:29 +08:00
<span
className="ant-input-affix-wrapper"
2018-12-26 22:34:29 +08:00
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value="111"
/>
<span
className="ant-input-suffix"
2018-12-26 22:34:29 +08:00
>
<ForwardRef(CloseCircleFilled)
className="ant-input-clear-icon"
onClick={[Function]}
role="button"
2018-12-26 22:34:29 +08:00
>
<ForwardRef(AntdIcon)
2019-11-06 10:34:53 +08:00
className="ant-input-clear-icon"
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 01-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "close-circle",
"theme": "filled",
2019-11-06 10:34:53 +08:00
}
}
onClick={[Function]}
role="button"
2018-12-26 22:34:29 +08:00
>
2019-11-06 10:34:53 +08:00
<span
aria-label="close-circle"
className="anticon anticon-close-circle ant-input-clear-icon"
onClick={[Function]}
role="button"
tabIndex={-1}
2018-12-26 22:34:29 +08:00
>
<IconReact
2018-12-26 22:34:29 +08:00
className=""
2019-11-06 10:34:53 +08:00
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 01-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "close-circle",
"theme": "filled",
2019-11-06 10:34:53 +08:00
}
}
2018-12-26 22:34:29 +08:00
>
<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
2019-11-06 10:34:53 +08:00
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 01-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>
2019-11-06 10:34:53 +08:00
</span>
</ForwardRef(AntdIcon)>
</ForwardRef(CloseCircleFilled)>
</span>
2018-12-26 22:34:29 +08:00
</span>
</ClearableLabeledInput>
2018-12-26 22:34:29 +08:00
</Input>
`;
exports[`Input allowClear should change type when click 2`] = `
<Input
allowClear={true}
type="text"
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
2018-12-26 22:34:29 +08:00
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
2018-12-26 22:34:29 +08:00
</Input>
`;
exports[`Input allowClear should not show icon if defaultValue is undefined, null or empty string 1`] = `
<Input
allowClear={true}
defaultValue={null}
type="text"
>
<ClearableLabeledInput
allowClear={true}
defaultValue={null}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
exports[`Input allowClear should not show icon if defaultValue is undefined, null or empty string 2`] = `
<Input
allowClear={true}
type="text"
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
exports[`Input allowClear should not show icon if defaultValue is undefined, null or empty string 3`] = `
<Input
allowClear={true}
defaultValue=""
type="text"
>
<ClearableLabeledInput
allowClear={true}
defaultValue=""
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
exports[`Input allowClear should not show icon if value is undefined, null or empty string 1`] = `
<Input
allowClear={true}
type="text"
value={null}
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
value={null}
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
exports[`Input allowClear should not show icon if value is undefined, null or empty string 2`] = `
<Input
allowClear={true}
type="text"
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
exports[`Input allowClear should not show icon if value is undefined, null or empty string 3`] = `
<Input
allowClear={true}
type="text"
value=""
>
<ClearableLabeledInput
allowClear={true}
element={
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
value=""
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
type="text"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper"
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
/>
</span>
</ClearableLabeledInput>
</Input>
`;
feat: added rtl direction to all of ant-design components (#19380) * rtl demo change en-us description * change bundlesize css limit * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * fix pagination.tsx compile error * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * fix select component arrow issue * RTL: form component * add pagination rtl test * fix test lint error * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * some fixes to RTL components * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * fix switch component text rtl issue * fix table grouped header text-align * add rtl support to whole demo with RTL button * Update rtl demo responsive * RTL: page-header component * RTL: typography component * RTL: Dropdown (Partial) * update config-provider doc * RTL: input component * RTL: select component * RTL: switch component * RTL: tree component * fix rtl demo lint * rtl demo change en-us description * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * RTL: form component * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * fix lost changes after rebase * fix lint errors * RTL: Transfer Component * RTL: upload component * RTL: update avatar demo * RTL: comment component * RTL: collapse component * RTL: carousel component * update snapshots * RTL: Card component * RTL: descriptions component * RTL: Empty component * RTL: list component * RTL: slider component * slider component import/order * add shared rtlTest * RTL: Statistic component * RTL: tooltip components * RTL: popover component * RTL: timeline component * RTL: tag component * RTL: alert component * RTL: drawer component * RTL: Tab component * change direction definition * RTL: progress component * input.tsx, remove duplicate after rebase * fix demo.less after rebase * fix ant-row-rtl after rebase * fix upload issues in rtl * badge rtl demo margin fix * fix: tabs with icon margin * fix: radio-wrapper margin * fix: table component after rebase * fix: centered modal text-align * update slider snapshot * RTL: popconfirm component * RTL: back-top component * RTL: spin component * RTL: result component * RTL: skeleton component * RTL: menu component * RTL: time-picker component * RTL: calendar component * RTL: date-picker component * RTL: home page * update snapshots * test: add auto-complete rtl test * test: add avatar component rtl tests * test: add badge component rtl tests * test: add breadcrumb component rtl tests * test: add button components rtl tests * test: add card component rtl tests * test: add carousel component rtl tests * test: add cascader component rtl tests * test: add checkbox component rtl tests * test: add collapse component rtl tests * test: add comment component rtl tests * test: add dropdown component rtl tests * test: add empty component rtl tests * test: add form component rtl tests * test: add grid component rtl tests * test: add input component rtl tests * test: add search component rtl tests * test: add input-number component rtl tests * test: add layout component rtl tests * test: add list component rtl tests * test: add mentions component rtl tests * test: add modal component rtl tests * test: add page-header component rtl tests * test: add pagination component rtl tests * test: add radio component rtl tests * test: add rate component rtl tests * test: add select component rtl tests * test: add slider component rtl tests * test: add steps component rtl tests * test: add switch component rtl tests * test: add table component rtl tests * test: add transfer component rtl tests * test: add tree component rtl tests * test: add tree-select component rtl tests * test: add typography component rtl tests * test: add upload component rtl tests * test: add affix component rtl tests * update calendar tests * increase css file maxSize * update snapshots * remove workflows to allow push * remove duplicate reverse prop from slider * fix: remove table demo from config-provider * fix: remove table demo from config-provider * fix lint error * Added direction property to ConfigProvider * cascader rtl tests added * update config-provider doc * RTL: grid system * RTL: input component * RTL: switch component * fix rtl demo lint * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * fix pagination.tsx compile error * RTL: button and button-group * RTL: Steps component * fix rtl demo style * RTL: form component * add pagination rtl test * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * RTL: input component * RTL: select component * RTL: switch component * RTL: tree component * fix rtl demo lint * rtl demo change en-us description * RTL: modal component (exclude confirm) * RTL: table component * RTL: pagination component * cleanup rtl demo * RTL: button and button-group * RTL: Steps component * fix rtl demo style * fix input suffix icon alignment * RTL: form component * RTL: rate component * RTL: radio and radio group components * RTL: tree-select component * RTL: badge component * fix rtl issue in inline form * fix input component rtl padding issue * add rtl support to whole demo with RTL button * input.tsx, remove duplicate after rebase * fix ant-row-rtl after rebase * update snapshots * test: add cascader component rtl tests * test: add pagination component rtl tests * update calendar tests * update snapshots * fix: remove table demo from config-provider * fix: remove table demo from config-provider * fix lint error * update direction.md icons * dropdown and cascader default placement in rtl * update snapshots * fix lint errors * remove duplicate import * update snapshots * update snapshot * update calendar snapshot * update snapshots * integrate with new rc-picker * update snapshots * fix lint errors * update snapshot * update snapshots * update snapshots * update snapshots :| * update snapshots * fix compile error. * fix typo after rebase * update snapshots * remove workflows to allow push * update snapshots * update snapshots * fix dist error * front-page css fix * update snapshots * fix lint and test issues * restore cascader index.less * update snapshots * fix logo in rtl and demo controls * ci errors * resolve steps/index.tsx conflicts * tooltip family demo remove inline style * resolve table/Table.tsx conflicts * resolve modal/Modal.tsx conflicts * resolve cascader/index.tsx conflicts * add workflows from upstream * update snapshots * revert logo to default * fix codebox demo direction of placements * resolve tooltip overlayClassName conflicts * update snapshots * update popover test * fix: cascader miss popupClassName * fix: fix select missing dropdownClassName * chore: Update snapshot * chore: Adjust menu use rtl logic * docs: Update demo line color Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
exports[`Input rtl render component should be rendered correctly in RTL direction 1`] = `
<input
class="ant-input ant-input-rtl"
type="text"
value=""
/>
`;
exports[`Input rtl render component should be rendered correctly in RTL direction 2`] = `
<span
class="ant-input-group ant-input-group-rtl"
/>
`;
exports[`Input should support maxLength 1`] = `
<Input
2018-12-28 14:40:10 +08:00
maxLength={3}
type="text"
>
<ClearableLabeledInput
element={
<input
className="ant-input"
maxLength={3}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
2019-04-16 14:22:22 +08:00
maxLength={3}
prefixCls="ant-input"
2019-04-16 14:22:22 +08:00
type="text"
value=""
>
<input
className="ant-input"
maxLength={3}
onBlur={[Function]}
2019-04-16 14:22:22 +08:00
onChange={[Function]}
onFocus={[Function]}
2019-04-16 14:22:22 +08:00
onKeyDown={[Function]}
type="text"
value=""
2019-04-16 14:22:22 +08:00
/>
</ClearableLabeledInput>
</Input>
`;
exports[`Input should support size 1`] = `
<Input
size="large"
type="text"
>
<ClearableLabeledInput
element={
<input
className="ant-input ant-input-lg"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
size="large"
type="text"
value=""
>
<input
className="ant-input ant-input-lg"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
value=""
/>
</ClearableLabeledInput>
</Input>
`;
exports[`Input should support size in form 1`] = `
<ForwardRef(InternalForm)
size="large"
>
<SizeContextProvider
size="large"
>
<ForwardRef(Form)
className="ant-form ant-form-horizontal"
form={
Object {
"__INTERNAL__": Object {
"name": undefined,
},
"getFieldError": [Function],
"getFieldValue": [Function],
"getFieldsError": [Function],
"getFieldsValue": [Function],
"getInternalHooks": [Function],
"isFieldTouched": [Function],
"isFieldValidating": [Function],
"isFieldsTouched": [Function],
"isFieldsValidating": [Function],
"resetFields": [Function],
"scrollToField": [Function],
"setFields": [Function],
"setFieldsValue": [Function],
"submit": [Function],
"validateFields": [Function],
}
}
size="large"
>
<form
className="ant-form ant-form-horizontal"
onSubmit={[Function]}
size="large"
>
<FormItem>
<Row
className="ant-form-item"
gutter={0}
key="row"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<FormItemLabel
prefixCls="ant-form"
/>
<FormItemInput
errors={Array []}
onDomErrorVisibleChange={[Function]}
prefixCls="ant-form"
validateStatus=""
>
<Col
className="ant-form-item-control"
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<Input
type="text"
>
<ClearableLabeledInput
element={
<input
className="ant-input ant-input-lg"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
prefixCls="ant-input"
size="large"
type="text"
value=""
>
<input
className="ant-input ant-input-lg"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
value=""
/>
</ClearableLabeledInput>
</Input>
</div>
<ForwardRef
motionAppear={true}
motionName="show-help"
onLeaveEnd={[Function]}
removeOnLeave={true}
visible={false}
>
<CSSMotion
internalRef={null}
motionAppear={true}
motionEnter={true}
motionLeave={true}
motionName="show-help"
onLeaveEnd={[Function]}
removeOnLeave={true}
visible={false}
/>
</ForwardRef>
</div>
</Col>
</FormItemInput>
</div>
</Row>
</FormItem>
</form>
</ForwardRef(Form)>
</SizeContextProvider>
</ForwardRef(InternalForm)>
`;
2017-11-01 12:12:16 +08:00
exports[`Input.Search should support suffix 1`] = `
<Search
2017-11-06 19:00:36 +08:00
enterButton={false}
2017-11-01 12:12:16 +08:00
suffix="suffix"
>
2019-04-16 14:22:22 +08:00
<Input
className="ant-input-search"
onChange={[Function]}
2019-04-16 14:22:22 +08:00
onPressEnter={[Function]}
prefixCls="ant-input"
suffix={
Array [
null,
<ForwardRef(SearchOutlined)
2019-04-16 14:22:22 +08:00
className="ant-input-search-icon"
onClick={[Function]}
/>,
]
}
type="text"
>
<ClearableLabeledInput
className="ant-input-search"
element={
<input
className="ant-input ant-input-search"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
type="text"
/>
}
focused={false}
handleReset={[Function]}
inputType="input"
onChange={[Function]}
onPressEnter={[Function]}
prefixCls="ant-input"
suffix={
Array [
null,
<ForwardRef(SearchOutlined)
className="ant-input-search-icon"
onClick={[Function]}
/>,
]
}
type="text"
value=""
2017-11-01 12:12:16 +08:00
>
2019-04-16 14:22:22 +08:00
<span
className="ant-input-search ant-input-affix-wrapper"
2019-04-16 14:22:22 +08:00
>
<input
className="ant-input"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
style={null}
type="text"
value=""
/>
<span
className="ant-input-suffix"
2017-11-01 12:12:16 +08:00
>
<ForwardRef(SearchOutlined)
className="ant-input-search-icon"
key="searchIcon"
onClick={[Function]}
2018-07-18 10:33:54 +08:00
>
<ForwardRef(AntdIcon)
2019-11-06 10:34:53 +08:00
className="ant-input-search-icon"
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "search",
"theme": "outlined",
2019-11-06 10:34:53 +08:00
}
}
onClick={[Function]}
2018-09-02 19:53:29 +08:00
>
2019-11-06 10:34:53 +08:00
<span
aria-label="search"
className="anticon anticon-search ant-input-search-icon"
onClick={[Function]}
2019-11-06 10:34:53 +08:00
role="img"
tabIndex={-1}
2018-09-02 19:53:29 +08:00
>
<IconReact
2019-04-16 14:22:22 +08:00
className=""
2019-11-06 10:34:53 +08:00
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "search",
"theme": "outlined",
2019-11-06 10:34:53 +08:00
}
}
>
<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
2019-11-06 10:34:53 +08:00
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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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>
2019-11-06 10:34:53 +08:00
</span>
</ForwardRef(AntdIcon)>
</ForwardRef(SearchOutlined)>
</span>
2019-04-16 14:22:22 +08:00
</span>
</ClearableLabeledInput>
2019-04-16 14:22:22 +08:00
</Input>
2017-11-01 12:12:16 +08:00
</Search>
`;
exports[`TextArea allowClear should change type when click 1`] = `
<TextArea
allowClear={true}
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value="111"
>
2018-12-26 22:34:29 +08:00
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
2018-12-26 22:34:29 +08:00
>
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value="111"
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value="111"
/>
</ResizeObserver>
</ResizableTextArea>
<ForwardRef(CloseCircleFilled)
className="ant-input-textarea-clear-icon"
2019-04-16 14:22:22 +08:00
onClick={[Function]}
role="button"
2018-12-26 22:34:29 +08:00
>
<ForwardRef(AntdIcon)
2019-11-06 10:34:53 +08:00
className="ant-input-textarea-clear-icon"
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 01-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "close-circle",
"theme": "filled",
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
}
}
onClick={[Function]}
role="button"
2018-12-26 22:34:29 +08:00
>
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
<span
aria-label="close-circle"
className="anticon anticon-close-circle ant-input-textarea-clear-icon"
2019-04-16 14:22:22 +08:00
onClick={[Function]}
role="button"
tabIndex={-1}
2018-12-26 22:34:29 +08:00
>
2019-04-16 14:22:22 +08:00
<IconReact
className=""
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
icon={
Object {
"icon": Object {
"attrs": Object {
"focusable": "false",
"viewBox": "64 64 896 896",
},
"children": Array [
Object {
"attrs": Object {
"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 01-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",
},
"tag": "path",
},
],
"tag": "svg",
},
"name": "close-circle",
"theme": "filled",
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
}
}
2018-12-26 22:34:29 +08:00
>
2019-04-16 14:22:22 +08:00
<svg
aria-hidden="true"
2018-12-26 22:34:29 +08:00
className=""
2019-04-16 14:22:22 +08:00
data-icon="close-circle"
fill="currentColor"
focusable="false"
height="1em"
key="svg-close-circle"
viewBox="64 64 896 896"
width="1em"
2018-12-26 22:34:29 +08:00
>
2019-04-16 14:22:22 +08:00
<path
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
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 01-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"
2019-04-16 14:22:22 +08:00
key="svg-close-circle-svg-0"
/>
</svg>
</IconReact>
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
</span>
</ForwardRef(AntdIcon)>
</ForwardRef(CloseCircleFilled)>
2018-12-26 22:34:29 +08:00
</span>
</ClearableLabeledInput>
</TextArea>
2018-12-26 22:34:29 +08:00
`;
exports[`TextArea allowClear should change type when click 2`] = `
<TextArea
2018-12-26 22:34:29 +08:00
allowClear={true}
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
2018-12-26 22:34:29 +08:00
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
2018-12-26 22:34:29 +08:00
`;
exports[`TextArea allowClear should not show icon if defaultValue is undefined, null or empty string 1`] = `
<TextArea
allowClear={true}
defaultValue={null}
>
<ClearableLabeledInput
allowClear={true}
defaultValue={null}
element={
<ResizableTextArea
allowClear={true}
defaultValue={null}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
defaultValue={null}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea allowClear should not show icon if defaultValue is undefined, null or empty string 2`] = `
<TextArea
allowClear={true}
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea allowClear should not show icon if defaultValue is undefined, null or empty string 3`] = `
<TextArea
allowClear={true}
defaultValue=""
>
<ClearableLabeledInput
allowClear={true}
defaultValue=""
element={
<ResizableTextArea
allowClear={true}
defaultValue=""
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
defaultValue=""
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea allowClear should not show icon if value is undefined, null or empty string 1`] = `
<TextArea
allowClear={true}
value={null}
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
value={null}
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea allowClear should not show icon if value is undefined, null or empty string 2`] = `
<TextArea
allowClear={true}
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
2019-04-16 14:22:22 +08:00
value=""
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
>
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</span>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea allowClear should not show icon if value is undefined, null or empty string 3`] = `
<TextArea
allowClear={true}
value=""
2017-11-01 12:12:16 +08:00
>
<ClearableLabeledInput
allowClear={true}
element={
<ResizableTextArea
allowClear={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
value=""
/>
2019-04-16 14:22:22 +08:00
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<span
className="ant-input-affix-wrapper ant-input-affix-wrapper-textarea-with-clear-btn"
2017-11-01 12:12:16 +08:00
>
<ResizableTextArea
allowClear={true}
2019-04-16 14:22:22 +08:00
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
2019-04-16 14:22:22 +08:00
style={null}
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
2017-11-01 12:12:16 +08:00
>
<textarea
className="ant-input"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
2019-04-16 14:22:22 +08:00
</span>
</ClearableLabeledInput>
</TextArea>
2017-11-01 12:12:16 +08:00
`;
exports[`TextArea should support disabled 1`] = `
<TextArea
disabled={true}
>
<ClearableLabeledInput
2019-04-16 14:22:22 +08:00
disabled={true}
element={
<ResizableTextArea
disabled={true}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<ResizableTextArea
disabled={true}
2019-04-16 14:22:22 +08:00
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input ant-input-disabled"
disabled={true}
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</ClearableLabeledInput>
</TextArea>
`;
exports[`TextArea should support maxLength 1`] = `
<TextArea
2018-12-28 14:40:10 +08:00
maxLength={10}
>
<ClearableLabeledInput
element={
<ResizableTextArea
maxLength={10}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
/>
}
handleReset={[Function]}
inputType="text"
maxLength={10}
prefixCls="ant-input"
value=""
2019-04-16 14:22:22 +08:00
>
<ResizableTextArea
2019-04-16 14:22:22 +08:00
maxLength={10}
onChange={[Function]}
onKeyDown={[Function]}
prefixCls="ant-input"
value=""
>
<ResizeObserver
disabled={true}
onResize={[Function]}
>
<textarea
className="ant-input"
maxLength={10}
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
value=""
/>
</ResizeObserver>
</ResizableTextArea>
</ClearableLabeledInput>
</TextArea>
`;