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:
+8
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user