Skip to content

Commit

Permalink
chore: 替换 vxe-table 已废弃的 api
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed May 28, 2024
1 parent 3bc8ca9 commit 7e9eaab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/vxe-table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import VXETablePluginElement from "vxe-table-plugin-element"
VXETable.use(VXETablePluginElement)

/** 全局默认参数 */
VXETable.config({
VXETable.setConfig({
/** 全局尺寸 */
size: "medium",
/** 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡 */
Expand All @@ -27,15 +27,15 @@ VXETable.config({
emptyText: "暂无数据",
rowConfig: {
isHover: true,
isCurrent: true
isCurrent: true,
// 行数据的唯一主键字段名
keyField: "_VXE_ID"
},
columnConfig: {
resizable: false
},
align: "center",
headerAlign: "center",
/** 行数据的唯一主键字段名 */
rowId: "_VXE_ID"
headerAlign: "center"
},
pager: {
// size: "medium",
Expand Down

0 comments on commit 7e9eaab

Please sign in to comment.