Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
ef666dba
Commit
ef666dba
authored
Oct 20, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
1586601e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
28 deletions
+53
-28
actions.vue
components/page/actions.vue
+40
-16
index.vue
pages/project/plan/index.vue
+13
-12
No files found.
components/page/actions.vue
View file @
ef666dba
<
template
>
<
template
>
<ul
class=
"actions"
>
<div
class=
"actions"
>
<li
class=
"item"
v-for=
"(li, i) in items"
@
click=
"detail(li)"
>
<div
:class=
"li.confirm ? 'confirm' : 'item'"
v-for=
"(li, i) in items"
@
click=
"detail(li)"
>
<span
v-if=
"mode == 'text'"
class=
"text"
v-text=
"li.label"
></span>
<span
v-if=
"mode == 'text'"
class=
"text"
v-text=
"li.label"
></span>
<Tooltip
v-if=
"mode == 'icon'"
:content=
"li.label"
<Tooltip
v-if=
"mode == 'icon'"
:content=
"li.label"
><Icon
:type=
"li.icon"
><Icon
:type=
"li.icon"
...
@@ -9,8 +13,8 @@
...
@@ -9,8 +13,8 @@
<Icon
type=
"li.icon"
/>
<Icon
type=
"li.icon"
/>
<span
class=
"text"
v-text=
"li.label"
></span>
<span
class=
"text"
v-text=
"li.label"
></span>
</div>
</div>
</
li
>
</
div
>
</
ul
>
</
div
>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -29,9 +33,14 @@ export default {
...
@@ -29,9 +33,14 @@ export default {
return
[
return
[
{
label
:
"复制"
,
icon
:
"md-copy"
,
vclick
:
""
},
{
label
:
"复制"
,
icon
:
"md-copy"
,
vclick
:
""
},
{
label
:
"新增"
,
icon
:
"md-add"
,
vclick
:
""
},
{
label
:
"新增"
,
icon
:
"md-add"
,
vclick
:
""
},
{
label
:
"删除"
,
icon
:
"md-trash"
,
vclick
:
""
},
{
label
:
"删除"
,
icon
:
"md-trash"
,
vclick
:
""
,
confirm
:
true
},
{
label
:
"移动"
,
icon
:
"md-move"
,
vclick
:
""
},
{
label
:
"移动"
,
icon
:
"md-move"
,
vclick
:
""
},
{
label
:
"派发"
,
icon
:
"ios-alarm"
,
vclick
:
""
},
{
label
:
"派发"
,
icon
:
"ios-alarm"
,
vclick
:
""
,
confirm
:
"确认要进行派发吗?"
,
},
];
];
},
},
},
},
...
@@ -77,17 +86,32 @@ export default {
...
@@ -77,17 +86,32 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
@size:20px;//按钮大小
@distince:5px;//按钮间距
@color:black;//主色
@color-hover:#106ffe;//主悬浮色
@color-confirm:red;// 二次确认色
.actions {
.actions {
ul {
display: inline-block;
li {
.item,
float: left;
.confirm {
list-style: none;
display: inline-block;
width: 20px;
list-style: none;
height: 20px;
width: @size;
text-align: center;
height: @size;
margin-left: 5px;
text-align: center;
color: red;
margin-left:@distince;
}
cursor: pointer;
border: 1px dotted @color;
line-height: @size;
}
.item:hover {
border: 1px solid @color-hover;
color: @color-hover;
}
.confirm:hover {
border: 1px solid @color-confirm;
color: @color-confirm;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/project/plan/index.vue
View file @
ef666dba
...
@@ -79,18 +79,19 @@ export default {
...
@@ -79,18 +79,19 @@ export default {
key
:
"action"
,
key
:
"action"
,
width
:
150
,
width
:
150
,
align
:
"center"
,
align
:
"center"
,
// render:(h,params)=>{
render
:(
h
,
params
)
=>
{
// return h("Actions"
return
h
(
"Actions"
// ,{
,{
// attrs:{
attrs
:{
// row:params,
row
:
params
,
// },
// on:{
},
// 'on-click':()=>this.rowclick
on
:{
// }
'on-click'
:
this
.
rowclick
// }
}
// )
}
// }
)
}
// render: (h, params) => {
// render: (h, params) => {
// return h("div", { class: "action" }, [
// return h("div", { class: "action" }, [
// h(
// h(
...
...
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