index.jsx 855 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { defineComponent, provide } from 'vue'
  2. export default defineComponent({
  3. name: 'CipConfigProvide',
  4. inheritAttrs: true,
  5. props: {
  6. searchReset: {
  7. type: Boolean,
  8. default: false
  9. },
  10. searchGrid: {
  11. type: [Boolean, Number]
  12. },
  13. limit: {
  14. type: Object,
  15. default: () => ({})
  16. },
  17. buttonConfigMap: Object, // 用于cip-button全局配置
  18. layout: {
  19. type: Object,
  20. default: () => ({})
  21. },
  22. number: {
  23. type: Object,
  24. default: () => ({})
  25. },
  26. paginationCompact: Boolean, // 用于cip-pagination是否开启紧凑模式(注: 数据中台使用紧凑模式)
  27. customInputComponents: Object,
  28. withQuery: {
  29. type: Boolean,
  30. default: undefined
  31. }
  32. },
  33. setup (props, { slots }) {
  34. provide('cip-config', props)
  35. return () => slots.default?.()
  36. }
  37. })