props.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. export default {
  2. layoutNoPadding: {}, // 布局组件是否不需要padding
  3. layoutCompact: {},
  4. searchFieldList: {},
  5. defaultSearchFilter: {},
  6. dialogWidth: {},
  7. tableColumns: {},
  8. tableRowKey: [String, Function],
  9. tableTreeProps: Object,
  10. withSearch: {
  11. type: Boolean,
  12. default: true
  13. },
  14. withIndex: {
  15. type: Boolean,
  16. default: true
  17. },
  18. withTableHandle: {
  19. type: Boolean,
  20. default: true
  21. },
  22. withHandle: {
  23. type: Boolean,
  24. default: true
  25. },
  26. withCreate: { // 新建按钮
  27. type: Boolean,
  28. default: true
  29. },
  30. batchDelete: { // 批量删除
  31. type: Boolean,
  32. default: false
  33. },
  34. tableSelectType: {
  35. type: String
  36. },
  37. tableSelectable: Function,
  38. tableAttrs: { type: Object, default: () => ({}) },
  39. permission: { type: Object, default: () => ({}) }, // 权限控制
  40. tableHandleWidth: {
  41. type: String,
  42. default: '135px'
  43. },
  44. withTableDeleteButton: { type: Boolean, default: true },
  45. judgeTableDeleteButtonFn: { type: Function },
  46. formLabelWidth: String,
  47. formFieldList: Array,
  48. formGrid: { default: 1 }, // [Number, Boolean]
  49. updateFormFieldList: Array,
  50. formLabelSuffix: String, // 表单域标签的后缀
  51. entity: {},
  52. itemType: {},
  53. curdFn: {},
  54. fetchInfo: Boolean, // 查看和编辑时是否开启fetch
  55. componentData: {
  56. type: Object
  57. },
  58. // 作为选择组件的一部分
  59. checkRow: {
  60. type: [Object, Array]
  61. },
  62. checkType: { // radio, checkbox
  63. type: String,
  64. validate: (val) => {
  65. return ['radio', 'checkbox'].includes(val)
  66. }
  67. },
  68. labelWidth: {
  69. type: String,
  70. default: '85px'
  71. },
  72. outParams: { type: Object },
  73. defaultExpandAll: { type: Boolean },
  74. withPagination: {
  75. type: Boolean,
  76. default: true
  77. },
  78. pageSizes: { type: Array },
  79. cache: Boolean,
  80. autoSelected: {
  81. type: Boolean,
  82. default: false
  83. }
  84. }