perf: 大优化,移除 @pureadmin/components , 打包大小未启用压缩前减少 0.4 MB , 首屏请求减少 2.3 MB 的资源

This commit is contained in:
xiaoxian521
2022-11-26 23:37:00 +08:00
parent 63f2540745
commit 4f786d6262
28 changed files with 416 additions and 803 deletions

View File

@@ -1,4 +1,4 @@
import { message } from "@pureadmin/components";
import { message } from "@/utils/message";
import { tableData } from "../data";
import { ref, computed } from "vue";
@@ -15,11 +15,14 @@ export function useColumns() {
);
const handleEdit = (index: number, row) => {
message.success(`您编辑了第 ${index} 行,数据为:${JSON.stringify(row)}`);
message(
`您编辑了第 ${index} 行,数据为:${JSON.stringify(row)}`,
"success"
);
};
const handleDelete = (index: number, row) => {
message.error(`您删除了第 ${index} 行,数据为:${JSON.stringify(row)}`);
message(`您删除了第 ${index} 行,数据为:${JSON.stringify(row)}`, "info");
};
const columns: TableColumnList = [