mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
476 B
TypeScript
31 lines
476 B
TypeScript
import Vue from 'vue';
|
|
import VueDateTime from 'vue-datetime';
|
|
|
|
const options = [
|
|
{
|
|
name: 'SomeName'
|
|
},
|
|
{
|
|
name: 'SomeName2'
|
|
}
|
|
];
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
data: {
|
|
value: null,
|
|
},
|
|
components: {
|
|
'vue-datetime': VueDateTime
|
|
},
|
|
methods: {
|
|
optionConsumer(option: any) {
|
|
},
|
|
},
|
|
template: `
|
|
<vue-datetime :value="value"
|
|
@input="optionConsumer">
|
|
</vue-datetime>
|
|
`
|
|
});
|