pdf sheets from new excel
This commit is contained in:
@@ -62,14 +62,8 @@ export function DatasheetDocument(props: { model: DatasheetModel; assets: Assets
|
||||
<Footer locale={model.locale} siteUrl={CONFIG.siteUrl} />
|
||||
|
||||
{model.voltageTables.map((t: DatasheetVoltageTable) => (
|
||||
<View key={t.voltageLabel}>
|
||||
<Section
|
||||
title={`${model.labels.crossSection} — ${t.voltageLabel}`}
|
||||
// Prevent orphaned voltage headings at page bottom; let the rest flow.
|
||||
minPresenceAhead={140}
|
||||
>
|
||||
{t.metaItems.length ? <KeyValueGrid items={t.metaItems} /> : null}
|
||||
</Section>
|
||||
<View key={t.voltageLabel} style={{ marginBottom: 14 }}>
|
||||
<Text style={styles.sectionTitle}>{`${model.labels.crossSection} — ${t.voltageLabel}`}</Text>
|
||||
|
||||
<DenseTable table={{ columns: t.columns, rows: t.rows }} firstColLabel={firstColLabel} />
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user