Commit f36f4add authored by 仇晓婷's avatar 仇晓婷

filed 样试

parent c5779eec
<template> <template>
<Col :span="span" class="filed-col"> <Col :span="span" class="filed-col">
<div class="label"> <div class="label">
<label v-text="name"></label> <label v-text="name"></label>
</div> </div>
<div class="value"> <div class="value">
<slot></slot> <slot></slot>
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
line-height: 40px; line-height: 40px;
>.label { > .label {
background: #f7f7f7; background: #f7f7f7;
flex-grow: 0; flex-grow: 0;
width: 120px; width: 120px;
...@@ -49,25 +49,27 @@ export default { ...@@ -49,25 +49,27 @@ export default {
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
flex-shrink: 0; flex-shrink: 0;
} }
>.value { > .value {
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
flex-grow: 1; flex-grow: 1;
padding-left: 10px; padding-left: 10px;
>div{ > div {
line-height: 30px; line-height: 30px;
} }
} }
} }
} }
} }
.new_detail { .new-detail {
.ivu-row { .ivu-row {
width: 100% !important; width: 100% !important;
.filed-col { .filed-col {
box-sizing: border-box; box-sizing: border-box;
line-height: 70px; line-height: 70px;
>.label { display: flex;
flex-direction: row;
> .label {
display: inline-block; display: inline-block;
width: 100px; width: 100px;
text-align: right; text-align: right;
...@@ -75,7 +77,7 @@ export default { ...@@ -75,7 +77,7 @@ export default {
height: 100%; height: 100%;
font-weight: bold; font-weight: bold;
} }
>p { > .value {
text-align: left; text-align: left;
height: 100%; height: 100%;
word-break: break-all; word-break: break-all;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment