| | |
| | | @click.stop="o.clickFun(scope.row)" |
| | | :key="key" |
| | | > |
| | | {{ o.name }} |
| | | {{ typeof o.name === 'function' ? o.name(scope.row) : o.name }} |
| | | </el-button> |
| | | <el-upload |
| | | :action=" |
| | |
| | | }; |
| | | |
| | | const getOperationColor = (operation, row) => { |
| | | const colorValue = typeof operation?.color === 'function' ? operation.color(row) : operation?.color; |
| | | const baseColor = |
| | | operation?.name === "删除" || operation?.name === "delete" |
| | | ? "#D93025" |
| | | : operation?.name === "详情" |
| | | ? "#67C23A" |
| | | : operation?.color || "var(--el-color-primary)"; |
| | | : colorValue || "var(--el-color-primary)"; |
| | | |
| | | if (isOperationDisabled(operation, row)) { |
| | | return fadeColor(baseColor, 0.35); |