提交
This commit is contained in:
1 parent
33c038b8d9
commit
54b27a3f0e
253 files changed
+30060
-14298
No files matched your search
@@ -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 }
|
||||
}
|
||||
Reference in new issue
Block a user