File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed
adminforth/documentation/docs/tutorial/03-Customization Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -1783,8 +1783,34 @@ import { JsonViever } from '@/afcl'
17831783 ```
17841784</div >
17851785 <div >
1786- 
1786+ 
17871787 </div >
17881788</div >
17891789
1790+ ## Date picker
1791+
1792+ ``` ts
1793+ import { DatePicker } from ' @/afcl' ;
1794+ const datePickerValue = ref ()
1795+ ```
1796+
1797+ ### Basic
1798+ <div class =" split-screen " >
1799+
1800+ <div >
1801+ ``` html
1802+ <DatePicker
1803+ v-model:datePickerValue =" datePickerValue"
1804+ :column =" { type: 'datetime' }"
1805+ label =" Pick start"
1806+ />
1807+ ```
1808+ </div >
1809+ <div >
1810+ 
1811+ </div >
1812+ </div >
1813+
1814+
1815+
17901816
Original file line number Diff line number Diff line change 279279 @close =" () => {}"
280280 />
281281
282+ <Toggle />
282283
284+ <DatePicker
285+ v-model:valueStart =" valueStart"
286+ :column =" { type: 'datetime' }"
287+ label =" Pick start"
288+ />
289+
283290 </div >
284291
285292
@@ -305,7 +312,9 @@ import { Table } from '@/afcl'
305312import { ProgressBar } from ' @/afcl' ;
306313import { Skeleton } from ' @/afcl' ;
307314import { Spinner } from ' @/afcl' ;
315+ import { Toggle } from ' @/afcl' ;
308316import { IconSearchOutline } from ' @iconify-prerendered/vue-flowbite'
317+ import { DatePicker } from ' @/afcl' ;
309318import CustomRangePicker from " @/components/CustomRangePicker.vue" ;
310319import Toast from ' @/components/Toast.vue' ;
311320
@@ -321,8 +330,12 @@ watch(files, (files) => {
321330const enable = ref (false )
322331const selected = ref (null )
323332const selected2 = ref ([])
333+ const valueStart = ref ()
324334
325335
336+ watch (valueStart , (newVal ) => {
337+ console .log (' New start value:' , newVal );
338+ });
326339
327340function doSmth(){
328341
You can’t perform that action at this time.
0 commit comments