云
2 天以前 a241b66efcc41e973290a6722fb7a4d79b833ea1
src/components/description/description.vue
@@ -7,9 +7,12 @@
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 },
@@ -99,6 +102,7 @@
      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)) {