feat 完善注释
This commit is contained in:
@@ -15,7 +15,6 @@ const emit = defineEmits<{
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 设计 35/36:整幅宽卡——左侧「默认抬头」蓝胶囊,右侧操作按钮;下方三栏字段 -->
|
||||
<div class="invoice-title-card">
|
||||
<div class="invoice-title-card__top">
|
||||
<span v-if="invoiceTitle.isDefault" class="invoice-title-card__badge">默认抬头</span>
|
||||
@@ -54,27 +53,24 @@ const emit = defineEmits<{
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计 35:卡片 (70,229) 1780×129 / (70,372) 1780×88
|
||||
.invoice-title-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
width: 1780px;
|
||||
min-height: 88px;
|
||||
padding: 0 33.56px 0 27px; // 徽标 x98.58、按钮右缘 1820.6(卡内 1750.6)
|
||||
padding: 0 33.56px 0 27px;
|
||||
border: 1px solid @finance-card-line;
|
||||
border-radius: @radius-base;
|
||||
background: @white;
|
||||
box-sizing: border-box;
|
||||
|
||||
// 顶行:徽标 (98.58,249) 88.17×22 + 操作按钮 (1632.4,277.5) 各 12/500
|
||||
&__top {
|
||||
.flex(row, space-between, center);
|
||||
height: 49px; // 徽标盒 y249(卡顶 229 + 20 居中)
|
||||
height: 49px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// 「默认抬头」胶囊:蓝底白字 11/500
|
||||
&__badge {
|
||||
.flex(row, center, center);
|
||||
height: 22px;
|
||||
@@ -91,7 +87,6 @@ const emit = defineEmits<{
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
// 操作按钮:纯文字 12/500 #4B5563,盒距 20.8(文字盒 67.2/43.2/43.2 + 间隔 4)
|
||||
&__actions {
|
||||
.flex(row, flex-end, center);
|
||||
gap: 24px;
|
||||
@@ -112,17 +107,16 @@ const emit = defineEmits<{
|
||||
}
|
||||
}
|
||||
|
||||
// 三栏:列起点(卡内,卡 x70 → 内容 x97/579/1061)= 0 / 482 / 964
|
||||
&__cols {
|
||||
.flex(row, flex-start, flex-start);
|
||||
gap: 0;
|
||||
padding-top: 2px; // 顶行 59 → 标签 ink y293(卡内 64)
|
||||
padding-bottom: 30px; // 值底 y335(卡内 106)→ 卡底 358
|
||||
padding-top: 2px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
&__col {
|
||||
.flex(column, flex-start, flex-start);
|
||||
gap: 8px; // 标签 ink 293 → 值 ink 316
|
||||
gap: 8px;
|
||||
width: 482px;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user