2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-05-22 06:24:07 +03:00

docs: zh-cn

This commit is contained in:
mengxiong10
2019-11-12 18:52:17 +08:00
parent 23781ef299
commit 4ddfb4e8a6
10 changed files with 167 additions and 29 deletions
+8 -1
View File
@@ -3,11 +3,18 @@ import Vue from 'vue';
import DatePicker from '../src/index';
import '../src/style/index.scss';
import '../src/locale/zh-cn';
import App from './app';
DatePicker.install(Vue);
DatePicker.locale('en');
new Vue({
render: h => h(App),
render: h =>
h(App, {
props: {
changeLocale: DatePicker.locale,
},
}),
}).$mount('#app');