0.1.0 • Published 6 years ago
@ncform/nc-form v0.1.0
nc-form
nc-form widget for ncform
Install and basic usage
npm i -s @ncform/nc-formAdd 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"
}
}
}
}
}
}
}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.1.0
6 years ago