Skip to content

Commit

Permalink
perf: remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Aug 23, 2023
1 parent eada157 commit caab3a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/result-table/ResultTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { computed, ComputedRef, h, reactive } from "vue";
import { NDataTable, NSkeleton, NSpace } from "naive-ui";
import type { TableColumns } from "naive-ui/es/data-table/src/interface";
import type { DataTableColumns } from "naive-ui";
import { storeToRefs } from "pinia";
import Detail from "@/components/result-table/Detail.vue";
Expand Down Expand Up @@ -54,7 +54,7 @@ const pagination = reactive({
},
});
const columns: TableColumns<RowData> = [
const columns: DataTableColumns<RowData> = [
{
title: "PyPI 项目名 / 模块名",
key: "plugin.module_name",
Expand Down
4 changes: 1 addition & 3 deletions src/types/row.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { InternalRowData } from "naive-ui/es/data-table/src/interface";

import type { Plugins } from "@/types/plugins";
import type { Results } from "@/types/results";
export interface RowData extends InternalRowData {
export interface RowData {
plugin: Plugins[keyof Plugins];
result: Results[keyof Results];
}

0 comments on commit caab3a1

Please sign in to comment.