0.0.2 • Published 5 years ago
@ncform/nc-array-import v0.0.2
nc-array-import
nc-array-import widget for ncform
Install and basic usage
npm i -s @ncform/nc-array-importAdd 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 installCompiles and hot-reloads for development
npm run serveYou only need to care about src/components/index.vue
Compiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintRun your end-to-end tests
npm run test:e2eRun your unit tests
npm run test:unit0.0.2
5 years ago