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'
1783
1783
```
1784
1784
</div >
1785
1785
<div >
1786
- 
1786
+ 
1787
1787
</div >
1788
1788
</div >
1789
1789
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
+
1790
1816
Original file line number Diff line number Diff line change 279
279
@close =" () => {}"
280
280
/>
281
281
282
+ <Toggle />
282
283
284
+ <DatePicker
285
+ v-model:valueStart =" valueStart"
286
+ :column =" { type: 'datetime' }"
287
+ label =" Pick start"
288
+ />
289
+
283
290
</div >
284
291
285
292
@@ -305,7 +312,9 @@ import { Table } from '@/afcl'
305
312
import { ProgressBar } from ' @/afcl' ;
306
313
import { Skeleton } from ' @/afcl' ;
307
314
import { Spinner } from ' @/afcl' ;
315
+ import { Toggle } from ' @/afcl' ;
308
316
import { IconSearchOutline } from ' @iconify-prerendered/vue-flowbite'
317
+ import { DatePicker } from ' @/afcl' ;
309
318
import CustomRangePicker from " @/components/CustomRangePicker.vue" ;
310
319
import Toast from ' @/components/Toast.vue' ;
311
320
@@ -321,8 +330,12 @@ watch(files, (files) => {
321
330
const enable = ref (false )
322
331
const selected = ref (null )
323
332
const selected2 = ref ([])
333
+ const valueStart = ref ()
324
334
325
335
336
+ watch (valueStart , (newVal ) => {
337
+ console .log (' New start value:' , newVal );
338
+ });
326
339
327
340
function doSmth(){
328
341
You can’t perform that action at this time.
0 commit comments