https://github.com/afeiship/next-ant-fields-value
Set fields value for ant design based on next.
https://github.com/afeiship/next-ant-fields-value
ant-design fields next value
Last synced: about 1 year ago
JSON representation
Set fields value for ant design based on next.
- Host: GitHub
- URL: https://github.com/afeiship/next-ant-fields-value
- Owner: afeiship
- License: mit
- Created: 2018-01-18T07:42:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T09:05:44.000Z (over 5 years ago)
- Last Synced: 2025-01-06T08:08:25.541Z (about 1 year ago)
- Topics: ant-design, fields, next, value
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-ant-fields-value
> Set fields value for ant design based on 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-fields-value
```
## usage
```js
import '@jswork/next-ant-fields-value';
const obj = {
username: 'afei',
password: '1233',
sex: 'male'
};
const result = nx.antFieldsValue( obj );
// result:
{
username: { value: 'afei' },
password: { value: '1233' },
sex: { value: 'male' }
}
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-ant-fields-value/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-ant-fields-value
[version-url]: https://npmjs.org/package/@jswork/next-ant-fields-value
[license-image]: https://img.shields.io/npm/l/@jswork/next-ant-fields-value
[license-url]: https://github.com/afeiship/next-ant-fields-value/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-ant-fields-value
[size-url]: https://github.com/afeiship/next-ant-fields-value/blob/master/dist/next-ant-fields-value.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-ant-fields-value
[download-url]: https://www.npmjs.com/package/@jswork/next-ant-fields-value