1.0.2 • Published 6 years ago
nc-tmta-config v1.0.2
nc-tmta-config
nc-tmta-config widget for ncform
Install and basic usage
npm i -s nc-tmta-configAdd the widget
import ncTmtaConfig from 'nc-tmta-config';
Vue.use(vueNcform, { extComponents: {ncTmtaConfig} });
// or vm.$ncformAddWidget({name: 'ncTmtaConfig', widget: ncTmtaConfig});Use the widget
{
"type": "object",
"properties": {
"name": {
"type": "string",
"ui": {
"widget": "nc-tmta-config",
"widgetConfig": {
"dataSchema": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"type": "$tmta-widget"
}
},
"form": {
"type": "$ncform"
}
}
},
"minLines": 10,
"maxLines": null
}
}
}
}
}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:unit