0.1.9 • Published 4 years ago
@ncform/nc-date-picker v0.1.9
nc-date-picker
nc-date-picker widget for ncform
Install and basic usage
npm i -s @ncform/nc-date-pickerAdd the widget
import ncDatePicker from '@ncform/nc-date-picker';
Vue.use(vueNcform, { extComponents: {ncDatePicker} });
// or vm.$ncformAddWidget({name: 'ncDatePicker', widget: ncDatePicker});Use the widget
{
"type": "object",
"properties": {
"name": {
"type": "string",
"widget": "nc-date-picker",
"widgetConfig": {
type: 'datetime',
valueFormat: 'timestamp',
valueDigits: 10
}
}
}
}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