style: 移动端流转树主轴连线与卡片排版优化
- 中央垂直线首行从 50% 起、末行到 50% 止,不再冒出 - FlowCard 时间独占一行,操作日志独立一行靠右对齐
This commit is contained in:
@ -12,10 +12,10 @@
|
||||
<text v-if="isWarehouseTask" class="fc-warehouse-in">📥 转入在库: {{ formatUserName(node.assignee_id) }}</text>
|
||||
<text v-else class="fc-assignee">👤 {{ formatUserName(node.assignee_id) || '未分配' }}</text>
|
||||
</view>
|
||||
<view class="fc-bottom">
|
||||
<text class="fc-time">⏰ {{ fmtDate(node.created_at) }}{{ node.completed_at ? '→' + fmtDate(node.completed_at) : '→至今' }}</text>
|
||||
<text v-if="node.records && node.records.length" class="fc-records" @tap.stop="$emit('viewRecords', node)">📋{{ node.records.length }}条 ›</text>
|
||||
</view>
|
||||
<!-- 时间独占一行 -->
|
||||
<text class="fc-time">⏰ {{ fmtDate(node.created_at) }}{{ node.completed_at ? '→' + fmtDate(node.completed_at) : '→至今' }}</text>
|
||||
<!-- 操作日志:时间下方独立一行,靠右对齐 -->
|
||||
<text v-if="node.records && node.records.length" class="fc-records" @tap.stop="$emit('viewRecords', node)">📋{{ node.records.length }}条 ›</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -106,7 +106,8 @@ export default {
|
||||
.fc-meta { margin-top: 4px; font-size: 11px; }
|
||||
.fc-assignee { color: #4b5563; }
|
||||
.fc-warehouse-in { color: #059669; font-weight: 700; }
|
||||
.fc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 6px; }
|
||||
.fc-time { font-size: 10px; color: #9ca3af; }
|
||||
.fc-records { font-size: 10px; color: #2563eb; font-weight: 600; }
|
||||
/* 时间独占一行 */
|
||||
.fc-time { display: block; font-size: 10px; color: #9ca3af; margin-top: 6px; }
|
||||
/* 操作日志:独立一行靠右对齐 */
|
||||
.fc-records { display: block; text-align: right; margin-top: 4px; font-size: 11px; color: #2563eb; font-weight: 600; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user