props.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import defprops from '../../libs/config/props';
  2. export default {
  3. props: {
  4. // 滑块的移动过渡时间,单位ms
  5. duration: {
  6. type: Number,
  7. default: defprops.tabs.duration
  8. },
  9. // tabs标签数组
  10. list: {
  11. type: Array,
  12. default: defprops.tabs.list
  13. },
  14. // 滑块颜色
  15. lineColor: {
  16. type: String,
  17. default: defprops.tabs.lineColor
  18. },
  19. // 菜单选择中时的样式
  20. activeStyle: {
  21. type: [String, Object],
  22. default: defprops.tabs.activeStyle
  23. },
  24. // 菜单非选中时的样式
  25. inactiveStyle: {
  26. type: [String, Object],
  27. default: defprops.tabs.inactiveStyle
  28. },
  29. // 滑块长度
  30. lineWidth: {
  31. type: [String, Number],
  32. default: defprops.tabs.lineWidth
  33. },
  34. // 滑块高度
  35. lineHeight: {
  36. type: [String, Number],
  37. default: defprops.tabs.lineHeight
  38. },
  39. // 滑块背景显示大小,当滑块背景设置为图片时使用
  40. lineBgSize: {
  41. type: String,
  42. default: defprops.tabs.lineBgSize
  43. },
  44. // 菜单item的样式
  45. itemStyle: {
  46. type: [String, Object],
  47. default: defprops.tabs.itemStyle
  48. },
  49. // 菜单是否可滚动
  50. scrollable: {
  51. type: Boolean,
  52. default: defprops.tabs.scrollable
  53. },
  54. // 当前选中标签的索引
  55. current: {
  56. type: [Number, String],
  57. default: defprops.tabs.current
  58. },
  59. // 默认读取的键名
  60. keyName: {
  61. type: String,
  62. default: defprops.tabs.keyName
  63. }
  64. }
  65. }