chore: 替换 vxe-table 已废弃的 api
This commit is contained in:
parent
3bc8ca91f6
commit
7e9eaab9da
@ -7,7 +7,7 @@ import VXETablePluginElement from "vxe-table-plugin-element"
|
|||||||
VXETable.use(VXETablePluginElement)
|
VXETable.use(VXETablePluginElement)
|
||||||
|
|
||||||
/** 全局默认参数 */
|
/** 全局默认参数 */
|
||||||
VXETable.config({
|
VXETable.setConfig({
|
||||||
/** 全局尺寸 */
|
/** 全局尺寸 */
|
||||||
size: "medium",
|
size: "medium",
|
||||||
/** 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡 */
|
/** 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡 */
|
||||||
@ -27,15 +27,15 @@ VXETable.config({
|
|||||||
emptyText: "暂无数据",
|
emptyText: "暂无数据",
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
isHover: true,
|
isHover: true,
|
||||||
isCurrent: true
|
isCurrent: true,
|
||||||
|
// 行数据的唯一主键字段名
|
||||||
|
keyField: "_VXE_ID"
|
||||||
},
|
},
|
||||||
columnConfig: {
|
columnConfig: {
|
||||||
resizable: false
|
resizable: false
|
||||||
},
|
},
|
||||||
align: "center",
|
align: "center",
|
||||||
headerAlign: "center",
|
headerAlign: "center"
|
||||||
/** 行数据的唯一主键字段名 */
|
|
||||||
rowId: "_VXE_ID"
|
|
||||||
},
|
},
|
||||||
pager: {
|
pager: {
|
||||||
// size: "medium",
|
// size: "medium",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user