master
wangbing 6 years ago
parent c80ef67b51
commit 2bfc192b5b

@ -14,6 +14,16 @@
}); });
setTimeout(callback, 3000) setTimeout(callback, 3000)
}, },
showLoad:function(message){
if(message) {
this.indicator.open(message);
}else {
this.indicator.open();
}
},
closeLoad:function(){
this.indicator.close();
},
alert: function (message, callback) { alert: function (message, callback) {
this.$messageBox.alert(message, "").then(callback); this.$messageBox.alert(message, "").then(callback);
}, },
@ -135,9 +145,12 @@
Vue.component('wb-field-date', { Vue.component('wb-field-date', {
data: function () { data: function () {
var startDate = new Date();
startDate.setFullYear(1990, 0, 1);
return { return {
selectValue: '', selectValue: '',
clearVisible: false, clearVisible: false,
startDate:startDate
} }
}, },
computed: { computed: {
@ -172,7 +185,7 @@
' <div class="mint-field-clear" v-if="clearVisible" @click="onClear"><i class="mintui mintui-field-error"></i></div>' + ' <div class="mint-field-clear" v-if="clearVisible" @click="onClear"><i class="mintui mintui-field-error"></i></div>' +
' </div>' + ' </div>' +
' </div>' + ' </div>' +
' <mt-datetime-picker ref="picker" type="date" v-model="selectValue" @confirm="onConfirm" year-format="{value}" month-format="{value}" date-format="{value}"></mt-datetime-picker>' + ' <mt-datetime-picker ref="picker" type="date" :startDate="startDate" v-model="selectValue" @confirm="onConfirm" year-format="{value}" month-format="{value}" date-format="{value}"></mt-datetime-picker>' +
'</a>' '</a>'
}); });

Loading…
Cancel
Save

Powered by TurnKey Linux.