nc-date-picker widget for ncform
npm i -s @ncform/nc-date-picker
Add 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
}
}
}
}
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