@hbtv/array-input
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    array-input AntDesign的Form组件

    安装方法

    npm install @hbtv/array-input --save

    ChangeLog

    1.0.1

    • 修改了 操作按栏的宽度=> 120

    使用方法

    import React from 'react';
    import {Form} from 'antd';
    import ArrayInput from '@hbtv/array-input';
     
    export default ()=> {
     
      const handleFormFinish = (data: any) => {
        console.log('data', data);
      };
     
      return (
        <Form onFinish={handleFormFinish}>
            <Form.Item label="输入内容" name="content" rules={[{ required: true, message: '请输入' }]}>
              <ArrayInput />
            </Form.Item>
        </Form>
      )
    }
     
     

    API

    参数 说明 类型 默认值
    value string[] undefined
    onChange (string[]) => void undefined
    name 用于key string array-input
    placeholder string undefined
    textArea 是否是textArea boolean true
    showIndex 显示序号 boolean false

    Keywords

    none

    Install

    npm i @hbtv/array-input

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    17.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • gegang
    • zix2002
    • yugong
    • dokey
    • gogoing
    • xuezhidp
    • aa719032411