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
4bd7a974
Commit
4bd7a974
authored
Apr 09, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹性盒子
parent
aeda1008
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
180 additions
and
3 deletions
+180
-3
brick.vue
components/page/wall/brick.vue
+0
-0
index.vue
components/page/wall/index.vue
+31
-0
basic.vue
layouts/basic.vue
+3
-3
index.vue
pages/go/flow/index.vue
+0
-0
brick.vue
pages/go/wall/brick.vue
+0
-0
index.vue
pages/go/wall/index.vue
+146
-0
No files found.
components/page/wall/brick.vue
0 → 100644
View file @
4bd7a974
components/page/wall/index.vue
0 → 100644
View file @
4bd7a974
<
template
>
<div
class=
"henq-wall"
>
<div
class=
"henq-brick"
v-width=
"5%"
>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:{
column
:{
type
:
Number
,
default
:
20
},
brickHeight
:{
type
:
Number
,
default
:
25
}
}
}
</
script
>
<
style
lang=
"less"
>
.henq-wall{
border: 2px solid #ddd;;
.henq-brick{
border: 1px solid #ddd;
display: table-cell;
}
}
</
style
>
\ No newline at end of file
layouts/basic.vue
View file @
4bd7a974
...
...
@@ -10,9 +10,9 @@
<Icon
type=
"ios-keypad"
></Icon>
树形
</MenuItem>
<MenuItem
name=
"3"
>
<MenuItem
name=
"3"
to=
"/go/wall"
>
<Icon
type=
"ios-analytics"
></Icon>
Item 3
墙
</MenuItem>
<MenuItem
name=
"4"
>
<Icon
type=
"ios-paper"
></Icon>
...
...
@@ -51,7 +51,7 @@
height: 100%;
padding: 20px;
.hp100{
height: 10
0%;
min-height: 9
0%;
}
}
}
...
...
pages/go/flow/index.vue
0 → 100644
View file @
4bd7a974
pages/go/wall/brick.vue
0 → 100644
View file @
4bd7a974
pages/go/wall/index.vue
0 → 100644
View file @
4bd7a974
<
template
>
<div
id=
"wall-test"
>
<Split
v-model=
"split"
>
<div
slot=
"left"
class=
"henq-wall"
>
<div
class=
"henq-brick"
v-for=
"(li,i) in list"
:key=
"i"
v-width=
"width(li)"
v-height=
"li.rows*40"
>
<!--
<div
class=
"filed"
>
{{
li
.
name
}}
</div>
-->
<div
class=
"pkg"
>
<div
class=
"title"
>
{{
li
.
name
}}
</div>
<div
class=
"content"
>
{{
li
.
span
}}
|
{{
li
.
rows
}}
|
{{
li
.
value
}}
</div>
</div>
</div>
<div
class=
"clear"
></div>
</div>
<div
slot=
"right"
class=
"tools"
>
<Table
:columns=
"cols"
:data=
"items"
size=
"small"
height=
"800"
>
<!--
<Input
slot=
"value"
slot-scope=
"
{row,i}" v-model="row.value" /> -->
<InputNumber
slot=
"span"
slot-scope=
"
{row,index}"
v-model="row.span"
@on-change="setRow(row,index)"
/>
<InputNumber
slot=
"rows"
slot-scope=
"
{row,index}"
v-model="row.rows"
@on-change="setRow(row,index)"
/>
</Table>
</div>
</Split>
<div
class=
"clear"
></div>
</div>
</
template
>
<
script
>
export
default
{
layout
:
"basic"
,
data
()
{
return
{
items
:
[],
cols
:
[
{
key
:
"id"
,
title
:
"id"
,
width
:
50
},
{
key
:
"name"
,
title
:
"名称"
},
// {key:"value",title:"值",slot:"value"},
{
key
:
"span"
,
title
:
"宽"
,
slot
:
"span"
},
{
key
:
"rows"
,
title
:
"高"
,
slot
:
"rows"
}
],
// list:[],
split
:
0.8
};
},
created
()
{
let
items
=
[];
for
(
let
i
=
0
;
i
<
20
;
i
++
)
{
items
.
push
({
id
:
i
,
name
:
"hahah"
+
i
,
value
:
i
+
"大家爱,才是真爱。。。"
,
span
:
5
,
rows
:
1
,
hide
:
false
});
}
this
.
items
=
items
;
this
.
list
=
items
;
},
methods
:
{
width
(
row
)
{
return
4.8
*
row
.
span
+
"%"
;
},
setRow
(
row
,
i
)
{
let
item
=
this
.
items
[
i
];
item
.
rows
=
row
.
rows
;
item
.
span
=
row
.
span
;
this
.
$set
(
this
.
items
,
i
,
item
);
}
},
computed
:
{
list
()
{
return
this
.
items
.
filter
(
u
=>
{
return
!
u
.
hide
;
});
}
},
props
:
{
column
:
{
type
:
Number
,
default
:
20
},
brickHeight
:
{
type
:
Number
,
default
:
25
}
}
};
</
script
>
<
style
lang=
"less"
>
@border-color: #ddd;
#wall-test {
.henq-wall {
width: 100%;
border: 2px solid @border-color;
display: flex;
.henq-brick {
border: 1px solid @border-color;
// border-bottom: 1px solid @border-color;
display: block;
line-height: 30px;
justify-content:flex-start;
align-items:flex-start;
float: left;
flex-grow: 0;
margin: 2px;
// align-self: flex-start;
// margin-top: -1px;
// margin-left: -1px;
.pkg {
width: 100%;
height: 100%;
display: flex;
.title {
width: 100px;
background: #f7f7f7;
text-align: right;
padding: 0 5px;
}
.content {
flex: 1;
}
}
}
.clear {
clear: both;
}
}
.tools {
width: 100%;
}
}
</
style
>
\ No newline at end of file
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