@@ -231,33 +231,38 @@ export class RecordDetail extends SignalWatcher(
|
|||||||
${ArrowDownBigIcon()}
|
${ArrowDownBigIcon()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div style="flex:1;overflow-y: auto;overflow-x: hidden">
|
||||||
style="width: 100%;max-width: var(--affine-editor-width);display: flex;flex-direction: column;margin: 0 auto;box-sizing: border-box;"
|
<div
|
||||||
>
|
style="width: 100%;max-width: var(--affine-editor-width);display: flex;flex-direction: column;margin: 0 auto;box-sizing: border-box;"
|
||||||
${keyed(this.rowId, this.renderHeader())}
|
>
|
||||||
${repeat(
|
${keyed(this.rowId, this.renderHeader())}
|
||||||
properties,
|
${repeat(
|
||||||
v => v.id,
|
properties,
|
||||||
property => {
|
v => v.id,
|
||||||
return keyed(
|
property => {
|
||||||
this.rowId,
|
return keyed(
|
||||||
html` <affine-data-view-record-field
|
this.rowId,
|
||||||
.view="${this.view}"
|
html` <affine-data-view-record-field
|
||||||
.column="${property}"
|
.view="${this.view}"
|
||||||
.rowId="${this.rowId}"
|
.column="${property}"
|
||||||
data-column-id="${property.id}"
|
.rowId="${this.rowId}"
|
||||||
></affine-data-view-record-field>`
|
data-column-id="${property.id}"
|
||||||
);
|
></affine-data-view-record-field>`
|
||||||
}
|
);
|
||||||
)}
|
}
|
||||||
${!this.readonly
|
)}
|
||||||
? html` <div class="add-property" @click="${this._clickAddProperty}">
|
${!this.readonly
|
||||||
<div class="icon">${PlusIcon()}</div>
|
? html` <div
|
||||||
Add Property
|
class="add-property"
|
||||||
</div>`
|
@click="${this._clickAddProperty}"
|
||||||
: nothing}
|
>
|
||||||
|
<div class="icon">${PlusIcon()}</div>
|
||||||
|
Add Property
|
||||||
|
</div>`
|
||||||
|
: nothing}
|
||||||
|
</div>
|
||||||
|
${keyed(this.rowId, this.renderNote())}
|
||||||
</div>
|
</div>
|
||||||
${keyed(this.rowId, this.renderNote())}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user