props.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export const configProvideProps = {
  2. searchReset: {
  3. type: Boolean,
  4. default: false
  5. },
  6. searchGrid: {
  7. type: [Boolean, Number],
  8. default: false
  9. },
  10. limit: {
  11. type: Object,
  12. default: () => ({}) // { input?: number,textarea?: number }
  13. },
  14. buttonConfigMap: Object, // 用于cip-button全局配置 Record<string, {type: string ,icon: string , text: string}>
  15. layout: {
  16. type: Object,
  17. default: () => ({}) // { hideHeader?: boolean, padding?: boolean, compact?: boolean }
  18. },
  19. table: {
  20. type: Object,
  21. default: () => ({}) // { defaultViewValue?: string }
  22. },
  23. number: {
  24. type: Object,
  25. default: () => ({}) // { precision?: number, thousandSeparator?: string }
  26. },
  27. paginationCompact: Boolean, // 用于cip-pagination是否开启紧凑模式(注: 数据中台使用紧凑模式)
  28. customInputComponents: Object,
  29. withQuery: { // tabs判断路由相同时是否包含query
  30. type: Boolean,
  31. default: undefined
  32. },
  33. fileUpload: Function, // 默认的文件上传方法 需要使用file组件时建议填写
  34. logout: Function, // main组件登出方法
  35. defaultViewValue: { // 默认值全局配置
  36. type: [String, Number]
  37. },
  38. namespace: { // 样式命名空间
  39. type: String,
  40. default: 'el'
  41. },
  42. range: { // {separate: boolean // range组件师傅分开}
  43. type: Object,
  44. default: () => ({})
  45. }
  46. }