Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-ant-column
Ant table coumn for next.
https://github.com/afeiship/next-ant-column
ant antd column next table
Last synced: about 2 months ago
JSON representation
Ant table coumn for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-ant-column
- Owner: afeiship
- License: mit
- Created: 2020-02-19T09:14:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-14T00:37:31.000Z (12 months ago)
- Last Synced: 2024-12-09T08:03:21.193Z (about 2 months ago)
- Topics: ant, antd, column, next, table
- Language: JavaScript
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-ant-column
> Ant table coumn for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-ant-column
```## usage
```js
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](https://github.com/afeiship/next-ant-column/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-ant-column
[version-url]: https://npmjs.org/package/@jswork/next-ant-column[license-image]: https://img.shields.io/npm/l/@jswork/next-ant-column
[license-url]: https://github.com/afeiship/next-ant-column/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-ant-column
[size-url]: https://github.com/afeiship/next-ant-column/blob/master/dist/next-ant-column.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-ant-column
[download-url]: https://www.npmjs.com/package/@jswork/next-ant-column