import React, { useState, useLayoutEffect, Component } from 'react';
import { storiesOf } from '@storybook/react';
import { Button, Modal, TreeSelect, Row, Col, Avatar, Icon, Select as BasicSelect,
Form,
useFormState,
useFormApi,
useFieldApi,
useFieldState,
withFormState,
withFormApi,
withField,
ArrayField,
AutoComplete,
Collapse } from '../../../index';
const InputGroupDemo = () => {
const selectProps = {
style: { width: '100px' },
placeholder: '国家',
field: 'country',
rules: [
{ required: true }
]
};
return (
<>
+86
+1
+83
手机号码), required: true }} labelPosition='top' extraText='i am extraText of Form.InputGroup'>
美国+1
香港+852
中国+86
日本+81
'always errors'} showClear />
手机号码), required: true }}
labelPosition='top'
extraTextPosition='middle'
extraText='i am extraText of Form.InputGroup'>
美国+1
香港+852
中国+86
日本+81
'always errors'} showClear />
手机号码), required: true }} labelPosition='left' style={{ width: 400 }}>
美国+1
香港+852
中国+86
日本+81
手机号码), required: true }}
labelPosition='left'
extraTextPosition='bottom'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} showClear />
手机号码), required: true }}
labelPosition='left'
extraTextPosition='middle'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} rules={[{ required: true }]} showClear />
手机号码), required: true }}
labelPosition='left'
extraTextPosition='bottom'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} showClear />
手机号码), required: true }}
labelPosition='left'
extraTextPosition='middle'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} rules={[{ required: true }]} showClear />
手机号码), required: true }}
labelPosition='top'
extraTextPosition='bottom'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} showClear />
手机号码), required: true }}
labelPosition='top'
extraTextPosition='middle'
extraText='i am extraText of Form.InputGroup'
style={{ width: 400 }}
>
美国+1
香港+852
中国+86
日本+81
'always errors'} rules={[{ required: true }]} showClear />
>
);
};
export { InputGroupDemo };