| | |
| | | @click="handleConfirm"> |
| | | 确认 |
| | | </el-button> |
| | | <el-button :disabled="loading" @click="handleCancel">取消</el-button> |
| | | <el-button :disabled="loading" @click="handleCancel">{{ cancelButtonText }}</el-button> |
| | | </slot> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | // 详情模式不展示“确认”按钮,其它类型正常显示 |
| | | const showConfirm = computed(() => props.operationType !== "detail"); |
| | | const cancelButtonText = computed(() => |
| | | props.operationType === "detail" ? "关闭" : "取消" |
| | | ); |
| | | |
| | | const computedTitle = computed(() => { |
| | | if (typeof props.title === "function") { |
| | |
| | | text-align: center; |
| | | } |
| | | </style> |
| | | |