props.js 2.0 KB

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