matfish2 / vue-formular

a comprehensive vue.js form component
https://www.npmjs.com/package/vue-formular
MIT License
43 stars 11 forks source link

v-date can not disabled? #17

Closed JianiYang closed 7 years ago

JianiYang commented 7 years ago

when I want to add the attribute disabled to a v-date , it can still be a white blank . No matter I set it by html or js ,it might give the user a wrong info . Is there a way to change the css ?

JianiYang commented 7 years ago

It seems worked in the demo ,but when I trying to use it in my project ,there is a "moment is not defined".I tried to add a require as

require(['vue', 'text', 'vuex', 'vueresource', 'moment', 'store'], function () {
    require(['vueformular'],function(){

but not work QAQ

matfish2 commented 7 years ago

moment should be available globally

window.moment = require('moment');

JianiYang commented 7 years ago

Uncaught TypeError: moment(...).format is not a function(…)

It still failure whit the window.moment = require(['moment']);