@jswork/next-ant-column

1.1.4 • Public • Published

next-ant-column

Ant table coumn for next.

version license size download

installation

npm install -S @jswork/next-ant-column

usage

import '@jswork/next-ant-column';

// use multiple args
get fields() {
  return [
    nx.antColumn('ID', 'id'),
    nx.antColumn('用户名', 'username'),
  ]
}

// or use an array
get fields() {
  return nx.antColumn([
    { title: 'ID', key: 'id' },
    { title: '昵称', key: 'nickname' },
    { title: '头像', key: 'avatar' }
  ]);
}

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-ant-column

Homepage

js.work

Weekly Downloads

6

Version

1.1.4

License

MIT

Unpacked Size

6.87 kB

Total Files

6

Last publish

Collaborators

  • afeiship