props.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // @ts-nocheck
  2. export default {
  3. /** 取消按钮文字 */
  4. cancelBtn: {
  5. type: String,
  6. default: null,
  7. },
  8. cancelStyle: {
  9. type: String,
  10. default: null
  11. },
  12. /** 确定按钮文字 */
  13. confirmBtn: {
  14. type: String,
  15. default: null,
  16. },
  17. confirmStyle: {
  18. type: String,
  19. default: null
  20. },
  21. /** 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言 */
  22. customLocale: {
  23. type: String,
  24. default: 'zh',
  25. },
  26. /** 选择器的最大可选时间,默认为当前时间+10年 */
  27. end: {
  28. type: [String, Number],
  29. default: null,
  30. },
  31. /** 列选项过滤函数,支持自定义列内容。(type 值可为: year, month, date, hour, minute, second) */
  32. customFilter: {
  33. type: Function,
  34. },
  35. /** 用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/format) */
  36. format: {
  37. type: String,
  38. default: 'YYYY-MM-DD HH:mm:ss',
  39. },
  40. /**1 = year = 年;2 = month = 月;4 = date = 日;8 = hour = 时; 16 = minute = 分; 32 = second = 秒 */
  41. mode: {
  42. type: [String, Number],
  43. default: 1|2|4,
  44. },
  45. /** 选择器的最小可选时间,默认为当前时间-10年 */
  46. start: {
  47. type: [String, Number],
  48. default: null,
  49. },
  50. /** 时间间隔步数,示例:`{ minute: 5 }` */
  51. steps: {
  52. type: Object,
  53. },
  54. /** 标题 */
  55. title: {
  56. type: String,
  57. default: null,
  58. },
  59. titleStyle: {
  60. type: String,
  61. default: null
  62. },
  63. /** 选中值 */
  64. value: {
  65. type: [String, Number],
  66. default: null,
  67. },
  68. /** 选中值,非受控属性 */
  69. defaultValue: {
  70. type: [String, Number],
  71. default: null,
  72. },
  73. modelValue: {
  74. type: [String, Number],
  75. default: null
  76. },
  77. itemHeight: {
  78. type: String,
  79. default: null
  80. },
  81. itemColor: {
  82. type: String,
  83. default: null
  84. },
  85. itemFontSize: {
  86. type: String,
  87. default: null
  88. },
  89. itemActiveColor: {
  90. type: String,
  91. default: null
  92. },
  93. indicatorStyle: {
  94. type: String,
  95. default: null
  96. },
  97. bgColor:{
  98. type: String,
  99. default: null
  100. },
  101. groupHeight:{
  102. type: String,
  103. default: null
  104. },
  105. radius:{
  106. type: String,
  107. default: null
  108. },
  109. showUnit: {
  110. type: Boolean,
  111. default: true
  112. },
  113. resetIndex: {
  114. type: Boolean
  115. },
  116. minHour: {
  117. type: Number,
  118. default: 0
  119. },
  120. maxHour: {
  121. type: Number,
  122. default: 23
  123. },
  124. minMinute: {
  125. type: Number,
  126. default: 0
  127. },
  128. maxMinute: {
  129. type: Number,
  130. default: 59
  131. },
  132. }