New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ra-antd-table

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ra-antd-table

Customizable editable table component based on React and antd-table

unpublished
latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

ra-antd-table

基于react antd进行拓展的表格组件

安装

npm install ra-antd-table

使用示例

import EditTable from "ra-antd-table";

const columns = [
    {
        key: "name",
        dataIndex: "name",
        sortKey: "name",
        title: "姓名"
    },
    {
        key: "age",
        dataIndex: "age",
        sortKey: "age",
        filterKey: "age",
        totalKey: "age",
        width: 180,
        title: "年龄"
    },
    {
        key: "size",
        dataIndex: "size",
        sortKey: "size",
        filterKey: "size",
        title: "位置"
    }
];

const data = [
    {
        key: "1",
        name: "SystemLight",
        age: 23,
        size: 1
    },
    {
        key: "2",
        name: "Lisys",
        age: 18,
        size: 2
    },
    {
        key: "3",
        name: "kirito",
        age: 12,
        size: 3
    }
];

function App() {
    const [colState, setColState] = useState(columns);
    return (
        <>
            <div className={"s-wrap"} style={{paddingTop: 15}}>
                <EditTable
                    columns={colState}
                    data={data} title={"表格标题"}
                    onResize={(e, {size}, i) => {
                        colState[i].width = size.width;
                        setColState([...colState]);
                    }}
                    onChangeHide={(idx, status) => {
                        colState[idx].hide = status;
                        setColState([...colState]);
                    }}
                    onChangePin={(idx, val) => {
                        colState[idx].fixed = val === "none" ? undefined : val;
                        setColState([...colState]);
                    }}
                />
            </div>
        </>
    );
}

FAQs

Package last updated on 22 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts