|
@@ -17,7 +17,7 @@ |
|
|
:key="n" |
|
|
:key="n" |
|
|
:name="'工艺 ' + n" |
|
|
:name="'工艺 ' + n" |
|
|
line="产线1" |
|
|
line="产线1" |
|
|
desc="Lorem ipsum dolor sit amet consectetur, elique! Nemo deserunt quidem facilis eum.sadf sf asdfa skdlj" |
|
|
|
|
|
|
|
|
desc="显示工艺描述的内容" |
|
|
:isActive="n % 2 == 0" /> |
|
|
:isActive="n % 2 == 0" /> |
|
|
</section> |
|
|
</section> |
|
|
</div> |
|
|
</div> |
|
@@ -37,19 +37,27 @@ const ProcessItem = { |
|
|
return ( |
|
|
return ( |
|
|
<div |
|
|
<div |
|
|
class={'process-item' + (this.isActive ? ' active' : '')} |
|
|
class={'process-item' + (this.isActive ? ' active' : '')} |
|
|
style="display: flex; flex-direction: column;"> |
|
|
|
|
|
<div class="process-item__content" style="flex: 1;"> |
|
|
|
|
|
<div class="logo"></div> |
|
|
|
|
|
|
|
|
style="display: flex; flex-direction: column; position: relative;"> |
|
|
|
|
|
<div |
|
|
|
|
|
class="process-item__content" |
|
|
|
|
|
style="flex: 1; display: flex; align-items: center;"> |
|
|
|
|
|
{this.isActive && ( |
|
|
|
|
|
<span style="display: inline-block; width: 10px; height: 10px; border-radius: 100%; background: #0ebe3a; position: absolute; top: 20px; right: 20px;" /> |
|
|
|
|
|
)} |
|
|
|
|
|
<svg-icon |
|
|
|
|
|
icon-class="tree-table" |
|
|
|
|
|
style="margin-left: 12px; width: 48px; height: 48px; color: #0858ff33" |
|
|
|
|
|
/> |
|
|
<div |
|
|
<div |
|
|
class="info" |
|
|
class="info" |
|
|
style="margin-left: 48px; display: flex; flex-direction: column;"> |
|
|
|
|
|
|
|
|
style="margin-left: 12px; display: flex; flex-direction: column;"> |
|
|
<h2 style="margin: 20px 0 0; font-weight: 600; font-size: 18px; "> |
|
|
<h2 style="margin: 20px 0 0; font-weight: 600; font-size: 18px; "> |
|
|
{this.name} |
|
|
{this.name} |
|
|
</h2> |
|
|
</h2> |
|
|
<h3 style="margin: 0; font-weight: 400; font-size: 14px; line-height: 2; color: #888;"> |
|
|
<h3 style="margin: 0; font-weight: 400; font-size: 14px; line-height: 2; color: #888;"> |
|
|
{this.line} |
|
|
{this.line} |
|
|
</h3> |
|
|
</h3> |
|
|
<p style="margin: 0; height: 48px; width: 80%; text-overflow: ellipse; white-space: no-wrap; font-weight: 400; font-size: 14px; line-height: 1.25; color: #888;"> |
|
|
|
|
|
|
|
|
<p style="margin: 0; text-overflow: ellipse; white-space: nowrap; font-weight: 400; font-size: 14px; line-height: 1.25; color: #888;"> |
|
|
{this.desc} |
|
|
{this.desc} |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
@@ -132,8 +140,8 @@ export default { |
|
|
box-shadow: 0 0 6px 1px #ccc; |
|
|
box-shadow: 0 0 6px 1px #ccc; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
&.active { |
|
|
|
|
|
box-shadow: 0 0 6px 1px #18c8bf66; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// &.active { |
|
|
|
|
|
// box-shadow: 0 0 6px 1px #18c8bf66; |
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |