Skip to content

Commit

Permalink
🔨 format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
novrain committed Dec 14, 2023
1 parent b2011cf commit f027c1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/widgets/src/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,13 +1850,13 @@ export namespace TabBar {
let extra = data.title.iconClass;
return extra ? `${name} ${extra}` : name;
}

/**
* Create the class name for the tab closeicon.
* Create the class name for the tab closeIcon.
*
* @param data - The data to use for the tab.
*
* @returns The full class name for the tab closeicon.
* @returns The full class name for the tab closeIcon.
*/
createCloseIconClass(data: IRenderData<any>): string {
let name = 'lm-TabBar-tabCloseIcon';
Expand Down
16 changes: 10 additions & 6 deletions packages/widgets/src/title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,17 @@ export class Title<T> implements IDisposable {
this._closable = value;
this._changed.emit(undefined);
}

/**
* Get the closeIcon renderer for the title.
*
* #### Notes
* The default value is undefined.
*/
* Get the closeIcon renderer for the title.
*
* #### Notes
* The default value is undefined.
*/
get closeIcon() {
return this._closeIcon;
}

/**
* Set the closeIcon renderer for the title.
*
Expand All @@ -281,15 +282,18 @@ export class Title<T> implements IDisposable {
this._closeIcon = value;
this._changed.emit(undefined);
}

/**
* Get the closeIcon class name for the title.
*
* #### Notes
* The default value is an empty string.
*/

get closeIconClass() {
return this._closeIconClass;
}

/**
* Set the closeIcon class name for the title.
*
Expand Down

0 comments on commit f027c1d

Please sign in to comment.