nc-array-import widget for ncform
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,
}
}
},
}
}
npm install
npm run serve
You only need to care about src/components/index.vue
npm run build
npm run test
npm run lint
npm run test:e2e
npm run test:unit