mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -36,7 +36,7 @@ export class MobileTableCell extends SignalWatcher(
|
||||
}
|
||||
`;
|
||||
|
||||
private _cell = createRef<DataViewCellLifeCycle>();
|
||||
private readonly _cell = createRef<DataViewCellLifeCycle>();
|
||||
|
||||
@property({ attribute: false })
|
||||
accessor column!: TableColumn;
|
||||
|
||||
@@ -53,7 +53,7 @@ export class MobileTableColumnHeader extends SignalWatcher(
|
||||
}
|
||||
`;
|
||||
|
||||
private _clickColumn = () => {
|
||||
private readonly _clickColumn = () => {
|
||||
if (this.tableViewManager.readonly$.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export class MobileTableGroup extends SignalWatcher(
|
||||
) {
|
||||
static override styles = styles;
|
||||
|
||||
private clickAddRow = () => {
|
||||
private readonly clickAddRow = () => {
|
||||
this.view.rowAdd('end', this.group?.key);
|
||||
requestAnimationFrame(() => {
|
||||
const selectionController = this.viewEle.selectionController;
|
||||
@@ -68,7 +68,7 @@ export class MobileTableGroup extends SignalWatcher(
|
||||
});
|
||||
};
|
||||
|
||||
private clickAddRowInStart = () => {
|
||||
private readonly clickAddRowInStart = () => {
|
||||
this.view.rowAdd('start', this.group?.key);
|
||||
requestAnimationFrame(() => {
|
||||
const selectionController = this.viewEle.selectionController;
|
||||
@@ -86,7 +86,7 @@ export class MobileTableGroup extends SignalWatcher(
|
||||
});
|
||||
};
|
||||
|
||||
private clickGroupOptions = (e: MouseEvent) => {
|
||||
private readonly clickGroupOptions = (e: MouseEvent) => {
|
||||
const group = this.group;
|
||||
if (!group) {
|
||||
return;
|
||||
@@ -111,7 +111,7 @@ export class MobileTableGroup extends SignalWatcher(
|
||||
]);
|
||||
};
|
||||
|
||||
private renderGroupHeader = () => {
|
||||
private readonly renderGroupHeader = () => {
|
||||
if (!this.group) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class MobileTableHeader extends SignalWatcher(
|
||||
}
|
||||
`;
|
||||
|
||||
private _onAddColumn = () => {
|
||||
private readonly _onAddColumn = () => {
|
||||
if (this.readonly) return;
|
||||
this.tableViewManager.propertyAdd('end');
|
||||
this.editLastColumnTitle();
|
||||
|
||||
@@ -45,7 +45,7 @@ export class MobileDataViewTable extends DataViewBase<
|
||||
}
|
||||
`;
|
||||
|
||||
private _addRow = (
|
||||
private readonly _addRow = (
|
||||
tableViewManager: TableSingleView,
|
||||
position: InsertToPosition | number
|
||||
) => {
|
||||
|
||||
Reference in New Issue
Block a user