This commit is contained in:
zlwu committed 2026-07-05 10:07:24 +08:00
1 parent 33c038b8d9
commit 54b27a3f0e
253 files changed
+30060 -14298

No files matched your search

+9 -1
View File
@@ -1,4 +1,4 @@
import type { TagType, ViewField } from '@/components/business/system-view-dialog/types'
import type { TagType, ViewField, ViewHighlight } from '@/components/business/system-view-dialog/types'
import { formatViewValue } from '@/components/business/system-view-dialog/types'
type DictStoreLike = {
@@ -37,3 +37,11 @@ export function crmTagField(
): ViewField {
return { label, value: display || '—', tagType, ...extra }
}
export function crmHighlight(
label: string,
value: unknown,
extra?: Partial<ViewHighlight>
): ViewHighlight {
return { label, value: formatViewValue(value), ...extra }
}