https://github.com/ncform/nc-array-import
ncform array import widget
https://github.com/ncform/nc-array-import
Last synced: 4 months ago
JSON representation
ncform array import widget
- Host: GitHub
- URL: https://github.com/ncform/nc-array-import
- Owner: ncform
- Created: 2020-12-05T13:33:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-05T14:00:08.000Z (over 5 years ago)
- Last Synced: 2025-09-21T08:51:59.177Z (9 months ago)
- Language: Vue
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nc-array-import
nc-array-import widget for [ncform](https://github.com/ncform/ncform)
## Install and basic usage
```
npm i -s @ncform/nc-array-import
```
**Add the widget**
```
import ncArrayImport from '@ncform/nc-array-import';
Vue.use(vueNcform, { extComponents: { ncArrayImport } });
// or vm.$ncformAddWidget({name: 'ncArrayImport', widget: ncArrayImport});
```
**Use the widget**
```
{
"type": "object",
"properties": {
"qq": {
"type": "array",
"items": {
"type": "number",
"ui": {},
},
"ui": {
"showLegend": false,
"label": "QQ号",
"widget": "nc-array-import",
"widgetConfig": {
"disableCollapse": true,
}
}
},
}
}
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
You only need to care about `src/components/index.vue`
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Run your end-to-end tests
```
npm run test:e2e
```
### Run your unit tests
```
npm run test:unit
```