Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
b91c8489
Commit
b91c8489
authored
Jul 29, 2022
by
若依
Committed by
Gitee
Jul 29, 2022
Browse files
Options
Browse Files
Download
Plain Diff
!538 优化表格上右侧工具条(搜索按钮显隐&右侧样式凸出)
Merge pull request !538 from abbfun/N/A
parents
aff54ab5
d4475d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
ruoyi-ui/src/components/RightToolbar/index.vue
ruoyi-ui/src/components/RightToolbar/index.vue
+19
-2
No files found.
ruoyi-ui/src/components/RightToolbar/index.vue
View file @
b91c8489
<
template
>
<div
class=
"top-right-btn"
>
<div
class=
"top-right-btn"
:style=
"style"
>
<el-row>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
v-if=
"search"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"toggleSearch()"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
...
...
@@ -42,6 +42,23 @@ export default {
columns
:
{
type
:
Array
,
},
search
:
{
type
:
Boolean
,
default
:
true
,
},
gutter
:
{
type
:
Number
,
default
:
10
,
},
},
computed
:
{
style
()
{
const
ret
=
{};
if
(
this
.
gutter
)
{
ret
.
marginRight
=
`
${
this
.
gutter
/
2
}
px`
;
}
return
ret
;
}
},
created
()
{
// 显隐列初始默认隐藏列
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment