Commit 5c1049ad by luyt

feat: table组件添加不使用gltablebutton的默认左边10边距

1 parent 11ccbb7e
......@@ -24,10 +24,10 @@ import '@/theme/theme.scss'
// // import '../dist/glsx-components.css'
// //开发完成后,本地测试使用我们第二次封装的组件
// import './index'
import './index'
//开发完成后,打包后本地测试,我们第二次封装的组件
import './localtest/index'
// import './localtest/index'
Vue.config.productionTip = false
......
......@@ -56,7 +56,7 @@
<sub-el-table-column v-if="item.children" :data="item.children" :tableData="tableData" :getListApi="getListApi"></sub-el-table-column>
</el-table-column>
<el-table-column v-if="tableParams.tableOption" label="操作" :align="tableParams.tableOption.align || 'left'" :width="tableParams.tableOption.width || '200'" fixed="right">
<el-table-column class-name="gl-btns" v-if="tableParams.tableOption" label="操作" :align="tableParams.tableOption.align || 'left'" :width="tableParams.tableOption.width || '200'" fixed="right">
<template slot-scope="scope">
<slot name="auth-button" :scope="scope.row"></slot>
</template>
......@@ -483,6 +483,9 @@ export default {
.el-table .cell {
line-height: 1.2;
}
.gl-btns .el-button+.el-button {
margin-left: 10px;
}
.glsx-table p {
margin: 10px 0;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!