fix(frontend): 修复 vue-tsc 类型检查报错(21 处)
- defineModel 对象默认值改为工厂函数,消除 art-form / art-search-bar 连锁泛型推断错误 - art-table 改用 element-plus 导出的 TableInstance 替代 InstanceType<typeof ElTable> - STATUS_TAG 收紧为 el-tag 合法字面量联合类型 - SidebarSubmenu 外部链接菜单 index 不再传 undefined
This commit is contained in:
@@ -45,7 +45,7 @@ const grantedRows = computed(() => {
|
||||
}))
|
||||
})
|
||||
|
||||
const STATUS_TAG: Record<string, string> = {
|
||||
const STATUS_TAG: Record<string, 'success' | 'primary' | 'warning' | 'danger' | 'info'> = {
|
||||
published: 'success', testing: 'primary', disabled: 'warning', revoked: 'danger'
|
||||
}
|
||||
const STATUS_LABEL: Record<string, string> = {
|
||||
|
||||
Reference in New Issue
Block a user