11< meta charset ="utf-8 ">
22< title > Vue Datepicker UI Demo</ title >
33< script src ="https://unpkg.com/vue "> </ script >
4- < script src =". /lib/vuedatepickerui.umd.js "> </ script >
5- < link rel ="stylesheet " href =". /lib/vuedatepickerui.css ">
4+ < script src ="/lib/vuedatepickerui.umd.js "> </ script >
5+ < link rel ="stylesheet " href ="/lib/vuedatepickerui.css ">
66
77
88< div id ="app ">
@@ -13,6 +13,25 @@ <h1>VUE DATEPICKER COMPONENT</h1>
1313 < span class ="install "> npm install vue-datepicker-ui</ span > or
1414 < span class ="install "> yarn add vue-datepicker-ui</ span >
1515 </ div >
16+ < div class ="package ">
17+ < code class ="install " id ="jsFile ">
18+ import 'vue-datepicker-ui/lib/vuedatepickerui.css';
19+ import VuedatepickerUi from 'vue-datepicker-ui';
20+
21+ Vue.component('Datepicker', VueDatepickerUi)
22+ </ code >
23+ or
24+ < code class ="install " id ="componentFile ">
25+ import 'vue-datepicker-ui/lib/vuedatepickerui.css';
26+ import VueDatepickerUi from 'vue-datepicker-ui';
27+
28+ export default {
29+ components: {
30+ Datepicker: VueDatepickerUi
31+ }
32+ }
33+ </ code >
34+ </ div >
1635 < code class ="code " v-html ="exampleCode "> </ code >
1736 </ div >
1837 < div class ="viewCode ">
@@ -225,6 +244,29 @@ <h3>{{ example.title }}</h3>
225244 margin-bottom : 30px ;
226245 }
227246
247+ .titles .using code .install {
248+ white-space : pre;
249+ text-align : left;
250+ line-height : 30px ;
251+ width : 100% ;
252+ }
253+
254+ .titles .using code .install ::before {
255+ color : # dff ;
256+ opacity : .4 ;
257+ text-align : center;
258+ width : 100% ;
259+ display : block;
260+ }
261+
262+ .titles .using code .install # componentFile ::before {
263+ content : "// component.vue" ;
264+ }
265+
266+ .titles .using code .install # jsFile ::before {
267+ content : "// main.js" ;
268+ }
269+
228270 .titles .using .code {
229271 background : # 000 ;
230272 display : block;
0 commit comments