OMG so many Buefy things...and much to be done yet it seems

these changes are all with Buefy "forms" support in mind.  hopefully didn't
break any legacy/jquery stuff... and yeah, lots more left to do still for the
sake of Buefy forms
This commit is contained in:
Lance Edgar 2019-05-22 15:31:23 -05:00
parent eea3f671af
commit 6c3722737d
13 changed files with 192 additions and 73 deletions

View file

@ -11,7 +11,6 @@ const TailboneDatepicker = {
'icon="calendar-alt"',
':date-formatter="formatDate"',
':date-parser="parseDate"',
':value="value ? parseDate(value) : null"',
'@input="dateChanged"',
'>',
'</b-datepicker>'
@ -20,7 +19,6 @@ const TailboneDatepicker = {
props: {
name: String,
id: String,
value: String
},
methods: {
@ -43,8 +41,7 @@ const TailboneDatepicker = {
},
dateChanged(date) {
this.value = this.formatDate(date)
this.$emit('input', this.value)
this.$emit('input', this.formatDate(date))
}
}

View file

@ -0,0 +1,23 @@
const TailboneTimepicker = {
template: [
'<b-timepicker',
':name="name"',
':id="id"',
'editable',
'placeholder="Click to select ..."',
'icon-pack="fas"',
'icon="clock"',
'hour-format="12"',
'>',
'</b-timepicker>'
].join(' '),
props: {
name: String,
id: String
}
}
Vue.component('tailbone-timepicker', TailboneTimepicker)