nc-demo widget for ncform
npm i -s nc-demo
Add the widget
import ncDemo from 'nc-demo';
Vue.use(vueNcform, { extComponents: {ncDemo} });
// or vm.$ncformAddWidget({name: 'ncDemo', widget: ncDemo});
Use the widget
{
"type": "object",
"properties": {
"name": {
"type": "string",
"widget": "nc-demo",
"widgetConfig": {
}
}
}
}
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