global.d.ts 891 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. declare const __UNI_PLATFORM__:
  2. | 'h5'
  3. | 'app'
  4. | 'mp-alipay'
  5. | 'mp-baidu'
  6. | 'mp-jd'
  7. | 'mp-kuaishou'
  8. | 'mp-lark'
  9. | 'mp-qq'
  10. | 'mp-toutiao'
  11. | 'mp-weixin'
  12. | 'quickapp-webview'
  13. | 'quickapp-webview-huawei'
  14. | 'quickapp-webview-union'
  15. declare const __VITE_APP_PROXY__: 'true' | 'false'
  16. /** 字段分组映射 */
  17. type IFieldGroup<T> = {
  18. /** 分组标题 */
  19. title?: stirng
  20. /** 分组样式表 */
  21. class?: stirng[]
  22. /** 所需角色,未设置则都可见 */
  23. roles?: string[]
  24. /** 组内包含的 字段信息 */
  25. fields: {
  26. /** 字段显示标题 */
  27. title: string
  28. /** 字段对应的key */
  29. key?: string
  30. /** 字段 样式 */
  31. keyClass
  32. /** 前缀内容 */
  33. preInfo: string
  34. /** 单位 */
  35. unit: string
  36. /** 显示条件 */
  37. show: (args: T) => boolean
  38. /** 呈现内容 */
  39. view: (args: T & string) => string
  40. }[]
  41. }