Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5c1049ad
authored
Sep 19, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: table组件添加不使用gltablebutton的默认左边10边距
1 parent
11ccbb7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
src/main.js
src/packages/Table/src/index.vue
src/main.js
View file @
5c1049a
...
@@ -24,10 +24,10 @@ import '@/theme/theme.scss'
...
@@ -24,10 +24,10 @@ import '@/theme/theme.scss'
// // import '../dist/glsx-components.css'
// // import '../dist/glsx-components.css'
// //开发完成后,本地测试使用我们第二次封装的组件
// //开发完成后,本地测试使用我们第二次封装的组件
//
import './index'
import
'./index'
//开发完成后,打包后本地测试,我们第二次封装的组件
//开发完成后,打包后本地测试,我们第二次封装的组件
import
'./localtest/index'
//
import './localtest/index'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
src/packages/Table/src/index.vue
View file @
5c1049a
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<sub-el-table-column
v-if=
"item.children"
:data=
"item.children"
:tableData=
"tableData"
:getListApi=
"getListApi"
></sub-el-table-column>
<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>
<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"
>
<
template
slot-scope=
"scope"
>
<slot
name=
"auth-button"
:scope=
"scope.row"
></slot>
<slot
name=
"auth-button"
:scope=
"scope.row"
></slot>
</
template
>
</
template
>
...
@@ -483,6 +483,9 @@ export default {
...
@@ -483,6 +483,9 @@ export default {
.el-table
.cell
{
.el-table
.cell
{
line-height
:
1.2
;
line-height
:
1.2
;
}
}
.gl-btns
.el-button
+
.el-button
{
margin-left
:
10px
;
}
.glsx-table
p
{
.glsx-table
p
{
margin
:
10px
0
;
margin
:
10px
0
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment