T_DatePicker.qml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import QtQuick
  2. import QtQuick.Controls
  3. import QtQuick.Layouts
  4. import QtQuick.Window
  5. import FluentUI
  6. import "../component"
  7. FluScrollablePage{
  8. title:"TimePicker"
  9. leftPadding:10
  10. rightPadding:10
  11. bottomPadding:20
  12. spacing: 0
  13. FluArea{
  14. Layout.fillWidth: true
  15. Layout.topMargin: 20
  16. height: 80
  17. paddings: 10
  18. ColumnLayout{
  19. anchors{
  20. verticalCenter: parent.verticalCenter
  21. left: parent.left
  22. }
  23. FluText{
  24. text:"showYear=true"
  25. }
  26. FluDatePicker{
  27. }
  28. }
  29. }
  30. CodeExpander{
  31. Layout.fillWidth: true
  32. Layout.topMargin: -1
  33. code:'FluDatePicker{
  34. }'
  35. }
  36. FluArea{
  37. Layout.fillWidth: true
  38. Layout.topMargin: 20
  39. height: 80
  40. paddings: 10
  41. ColumnLayout{
  42. anchors{
  43. verticalCenter: parent.verticalCenter
  44. left: parent.left
  45. }
  46. FluText{
  47. text:"showYear=false"
  48. }
  49. FluDatePicker{
  50. showYear:false
  51. }
  52. }
  53. }
  54. CodeExpander{
  55. Layout.fillWidth: true
  56. Layout.topMargin: -1
  57. code:'FluDatePicker{
  58. showYear:false
  59. }'
  60. }
  61. }