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