feat: 统一操作列样式并优化按钮交互与构建配置
- 新增全局样式文件兼容旧浏览器的表格操作列居中布局 - 调整操作列宽度、对齐方式和按钮类型以优化交互体验 - 修改 vite 配置每次构建清空输出目录,避免冗余文件 - 为关键操作添加确认弹窗,防止误操作 - 简化下拉菜单按钮,提升界面简洁性
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
<span v-else style="color:#909399">全部显示</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="160" align="center" fixed="right">
|
||||
<el-table-column label="操作" width="120" align="center" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button v-if="can('produce.station:edit')" link type="primary" size="small" @click="openName(row)">改名</el-button>
|
||||
<el-dropdown trigger="click" @command="(c) => stationCommand(row, c)">
|
||||
@@ -94,7 +94,7 @@
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="tabs">页签</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.station:edit')" :command="row.status === 'ENABLED' ? 'disable' : 'enable'" :style="row.status === 'ENABLED' ? 'color:#f56c6c' : ''">{{ row.status === 'ENABLED' ? '停用' : '启用' }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.station:edit')" :command="row.status === 'ENABLED' ? 'disable' : 'enable'" :style="row.status === 'ENABLED' ? 'color:#e6a23c' : ''">{{ row.status === 'ENABLED' ? '停用' : '启用' }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.station:delete') && !row.isBuiltin" command="del" divided style="color:#f56c6c">删除</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user