ankurk91 / vue-bootstrap-datetimepicker

Vue.js component for eonasdan bootstrap datetimepicker
MIT License
223 stars 66 forks source link

slowly load #37

Closed alexeydg closed 6 years ago

alexeydg commented 6 years ago

If set v-model to component then first load calendar after click is very slow : 3-5s

ankurk91 commented 6 years ago

Can you replicate your issue on this jsfiddle

https://jsfiddle.net/01407frf/381/ I dont see any lag.

Are you using inline configs ?

alexeydg commented 6 years ago

i found problem. I set config as <date-picker name="date" v-model="date" :config="{format:'DD.MM.YYYY HH:00',showClear: true,showClose: true}"></date-picker> https://jsfiddle.net/01407frf/385/ Then component work very slow. set config in variable

  data() {
            return {
                config: {format:'DD.MM.YYYY HH:00',showClear: true,showClose: true},

all work very quickly!