fix(web): clear vue-tsc errors blocking push
Type attendance rows, remove unused symbols, and harden list item typing after the Ant settings migration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -93,6 +93,14 @@ function entityTagColor(entity: CustomFieldEntity) {
|
||||
return 'blue';
|
||||
}
|
||||
|
||||
function entityLabelOf(field: CustomFieldDefinitionDto) {
|
||||
return entityLabels[field.entityType];
|
||||
}
|
||||
|
||||
function typeLabelOf(field: CustomFieldDefinitionDto) {
|
||||
return typeLabels[field.fieldType];
|
||||
}
|
||||
|
||||
function fieldDescription(field: CustomFieldDefinitionDto) {
|
||||
const parts = [`کلید سیستمی: ${field.key}`];
|
||||
if (field.options?.length) parts.push(`گزینهها: ${field.options.join('، ')}`);
|
||||
@@ -264,9 +272,9 @@ onMounted(load);
|
||||
<a-space wrap>
|
||||
<a-typography-text strong>{{ item.label }}</a-typography-text>
|
||||
<a-tag :color="entityTagColor(item.entityType)" :bordered="false">
|
||||
{{ entityLabels[item.entityType] }}
|
||||
{{ entityLabelOf(item) }}
|
||||
</a-tag>
|
||||
<a-tag :bordered="false">{{ typeLabels[item.fieldType] }}</a-tag>
|
||||
<a-tag :bordered="false">{{ typeLabelOf(item) }}</a-tag>
|
||||
<a-tag v-if="item.required" color="error" :bordered="false">اجباری</a-tag>
|
||||
<a-tag :color="item.isActive ? 'success' : 'default'" :bordered="false">
|
||||
{{ item.isActive ? 'فعال' : 'غیرفعال' }}
|
||||
|
||||
Reference in New Issue
Block a user