JSFiddle - React, Tailwind, and code Playground
by ke zheng
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui@2.0.11/lib/index.js"></script>
<div id="app">
<template>
<div class="block">
<span class="demonstration">date</span>
<el-date-picker v-model="value8" type="date" placeholder="选择日期" default-value="2010-10-01">
</el-date-picker>
</div>
</template>
</div>
CSS
@import url("//unpkg.com/element-ui@2.0.11/lib/theme-chalk/index.css");
Babel + JSX
var Main = {
data: function() {
return {
value8: '',
};
},
mounted: function() {
setTimeout(function() {
this.value8 = '2017-02-01'
}.bind(this), 1000)
}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')