el-row 设置内容(按钮>>)的居中效果

博客涉及ElementUI和Vue.js相关内容,但具体信息仅提及‘看图说话’,推测可能围绕ElementUI组件在Vue.js项目中的应用展示等信息技术内容展开。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

看图说话:

 

<el-table :data="HeadItemData" style="width: 100%" max-height="400" >> <el-table-column label="字节序号" width="100"> <template #default="{ row }"> <span :style="{ color: row.byteNo > 32 ? 'red' : 'inherit' }"> {{ row.byteNo }} </span> </template> </el-table-column> <el-table-column label="字节数" width="100" prop="len" ></el-table-column> <el-table-column label="数据类型" width="120" prop="dataType"> <template v-slot="scope"> <!-- 数据区不选择数据类型 --> <el-select v-model="scope.row.dataType" placeholder="请选择数据类型" :disabled="scope.row.itemApp === '8'" @change="(val) => handleDataTypeChange(scope.row, val)" > <el-option label="int8" value="1"></el-option> <el-option label="uint8" value="2"></el-option> </el-select> </template ></el-table-column> <el-table-column label="范围" width="210" prop="range" ><template v-slot="scope"> <div class="range-inputs"> <el-input v-model="scope.row.startRange" " placeholder="起始值" clearable style="width: 80px" ></el-input> <span style="margin: 0 5px">-</span> <el-input v-model="scope.row.endRange" " placeholder="结束值" clearable style="width: 80px" ></el-input></div></template ></el-table-column> <el-table-column label="数据项应用类型" width="180" prop="itemApp"> <template v-slot="scope"> <el-select v-model="scope.row.itemApp" " placeholder="请选择数据项应用类型" > <el-option v-for="opt in getOptions(scope.$index)" :key="opt.value" :label="opt.label" :value="opt.value" /> </el-select> </template ></el-table-column> <el-table-column label="校验类型" width="160" prop="verifyType" ><template v-slot="scope"> <el-select v-model="scope.row.verifyType" :disabled="scope.row.itemApp !== '7'" :placeholder=" scope.row.itemApp === '7' ? '请选择校验类型' : '-' " > <el-option label="求和取模" value="0"></el-option> <el-option label="求和取低字节" value="1"></el-option> </el-select> </template ></el-table-column> <el-table-column label="默认值" width="210" prop="default" ><template #header> <div style="display: inline"> 默认值 <el-input v-model="globalDefault" placeholder="请输入默认值" @input="debouncedUpdateDefaults" /> </div> </template> <template #default="scope"> {{ scope.row.default }} </template></el-table-column > <el-table-column label="操作" width="150" fixed="right"> <template v-slot="scope" ><el-button type="text" >上移</el-button ><el-button type="text" >下移</el-button ><el-button type="text" @click="deleteItem(scope.$index)" >删除</el-button ></template > </el-table-column> </el-table>在表格倒数第二行固定添加一个按钮(此行只有行中间有个按钮“+”)
03-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值