data-cell-g
TypeScript icon, indicating that this package has built-in type declarations

0.1.124 • Public • Published

data-cell-g


Basic field-type components that support read-write separation based on antd with React

NPM version

Screenshot

Demo

online example: https://favori.gitee.io/gantd-landing (CodePen)

install

rc-tabs

Feature

  • Data-intensive field components for business
  • Support read and write separation
  • Keep UI style with antd

Usage

import React, { useState } from 'react';
import { Input, InputTelePhone, InputEmail, SwitchStatus } from 'data-cell-g';

function BasicUse() {
  const [edit, setEdit] = useState('CANCEL')
  return <>
    <Button onClick={() => setEdit(SwitchStatus)} style={{ marginBottom: 5 }} size="small">{!(edit === 'EDIT') ? 'toEdit' : 'toRead'}</Button>
    <Input edit={edit}/>
    <InputTelePhone edit={edit}/>
    <InputEmail edit={edit}/>
    </>
}

React.render(<BasicUse/>, mountNode);

API

Documentation

Contact

Anthor

GantFDT

License

MIT

/data-cell-g/

    Package Sidebar

    Install

    npm i data-cell-g

    Weekly Downloads

    38

    Version

    0.1.124

    License

    MIT

    Unpacked Size

    949 kB

    Total Files

    361

    Last publish

    Collaborators

    • favori
    • eyelly
    • vvey
    • zhangdousang
    • solinma
    • yunfang
    • wujiaxian
    • liuyanlu
    • superchenwb