diff --git a/web/src/views/backend/routine/attachment/index.vue b/web/src/views/backend/routine/attachment/index.vue index 936d2d26..f1d6635d 100644 --- a/web/src/views/backend/routine/attachment/index.vue +++ b/web/src/views/backend/routine/attachment/index.vue @@ -62,7 +62,7 @@ const { t } = useI18n() const tableRef = ref() const optBtn = defaultOptButtons(['edit', 'delete']) -optBtn[1].popconfirm.title = t('routine.attachment.Files and records will be deleted at the same time Are you sure?') +optBtn[1].popconfirm!.title = t('routine.attachment.Files and records will be deleted at the same time Are you sure?') const baTable = new baTableClass(new baTableApi(routineAttachment), { column: [ diff --git a/web/types/table.d.ts b/web/types/table.d.ts index 90f179cb..d1650792 100644 --- a/web/types/table.d.ts +++ b/web/types/table.d.ts @@ -3,6 +3,7 @@ import { Component, ComponentPublicInstance } from 'vue' import Table from '/@/components/table/index.vue' import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults' import type { PopconfirmProps } from 'element-plus' +import { Mutable } from 'element-plus/es/utils' declare global { /* baTable */ @@ -200,7 +201,7 @@ declare global { class?: string type: ButtonType icon: string - popconfirm?: Partial + popconfirm?: Partial> disabledTip?: boolean // 自定义点击事件 click?: (row: TableRow, field: TableColumn) => void @@ -209,7 +210,7 @@ declare global { // 按钮是否禁用,请返回布尔值 disabled?: (row: TableRow, field: TableColumn) => boolean // 自定义el-button属性 - attr?: Partial + attr?: Partial> } /* 表格行 */