0.2.1 • Published 5 years ago

taro-use-form-test v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

测试中

import useForm from 'taro-use-form-test';


export default function MeEdit() {
  const { register, handleSubmit, errors, setValue, getValue } = useForm({
    verifyLazy: true
  })
  ...
  return (
    <View className='form-item'>
        <Text className='text-decoration required'>我的名字</Text>
        <AtInput
          ref={ref => {
            register(ref, {
              required: {
                rule: true,
                error: '请填写名字'
              }
            })
          }}
          name='alias'
          className='input'
          maxLength={16}
          placeholder='请输入你的真实姓名'
          placeholderStyle={PLACEHOLDER_STYLE}
          value={getValue('alias')}
        />
    </View>
  )
}
0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago