| | |
| | | |
| | | import { computed, defineComponent, ref, unref, useAttrs } from 'vue'; |
| | | |
| | | import { get, getNestedValue, isFunction } from '..\..\packages\utils\src'; |
| | | import { get, getNestedValue, isFunction } from '@vben/utils'; |
| | | |
| | | import { Card, Descriptions } from 'ant-design-vue'; |
| | | |
| | | import { automaticApproval } from '#/store/audit-policy'; |
| | | import { isAuditField } from '#/utils/audit-ui-policy'; |
| | | |
| | | const props = { |
| | | bordered: { default: true, type: Boolean }, |
| | |
| | | const { data, schema } = unref(getProps); |
| | | return unref(schema) |
| | | .map((item) => { |
| | | if (automaticApproval.value && isAuditField(item)) return null; |
| | | const { contentMinWidth, field, render, show, span } = item; |
| | | |
| | | if (show && isFunction(show) && !show(data)) { |