update
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
ref="base-list-table"
|
||||
:cell-style="{ padding: 0 }"
|
||||
:header-cell-style="/** 重写表格样式 **/ {
|
||||
padding: '8px 0',
|
||||
padding: '5px 0',
|
||||
}"
|
||||
row-key="id"
|
||||
:lazy="true"
|
||||
@@ -45,12 +45,13 @@
|
||||
:width="head.width || null"
|
||||
:min-width="head.minWidth || null"
|
||||
:fixed="head.fixed || null"
|
||||
:show-overflow-tooltip="head.showOverflowTooltip || true"
|
||||
:tooltip-effect="head.tooltipEffect || 'light'"
|
||||
filter-placement="top"
|
||||
:align="head.align || null"
|
||||
v-bind="head.more"
|
||||
>
|
||||
:show-overflow-tooltip="head.showOverflowTooltip || !(head.prop === 'operations')"
|
||||
>
|
||||
<!-- :show-overflow-tooltip="head.showOverflowTooltip || true" -->
|
||||
<!-- 子组件 -->
|
||||
<template v-if="head.prop" slot-scope="scope">
|
||||
<component
|
||||
|
||||
@@ -22,9 +22,12 @@ export default function () {
|
||||
prop: "operations",
|
||||
name: "操作",
|
||||
fixed: "right",
|
||||
width: 120,
|
||||
width: 90,
|
||||
subcomponent: TableOperaionComponent,
|
||||
options: [{ name: "add-sub", permission: "pms:material:save" }, { name: "edit", label: "编辑", icon: "edit-outline" }, { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:material:save" },],
|
||||
options: [
|
||||
// { name: "add-sub", permission: "pms:material:save" },
|
||||
{ name: "edit", label: "编辑", icon: "edit-outline" },
|
||||
{ name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:material:save" },],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user