Skip to content

Commit

Permalink
feat(kernel): support updating orderIdx of AccountInfoUnit (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
zccz14 authored Nov 2, 2024
1 parent 9ba7093 commit e8bb6c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions common/changes/@yuants/kernel/2024-11-02-18-10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yuants/kernel",
"comment": "support updating orderIdx of AccountInfoUnit",
"type": "minor"
}
],
"packageName": "@yuants/kernel"
}
2 changes: 2 additions & 0 deletions libraries/kernel/etc/kernel.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class AccountInfoUnit extends BasicUnit {
// (undocumented)
onInit(): void | Promise<void>;
// (undocumented)
orderIdx: number;
// (undocumented)
productDataUnit: ProductDataUnit;
// (undocumented)
quoteDataUnit: QuoteDataUnit;
Expand Down
2 changes: 1 addition & 1 deletion libraries/kernel/src/units/AccountInfoUnit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class AccountInfoUnit extends BasicUnit {
}
}

private orderIdx = 0;
orderIdx = 0;

private mapAccountIdToBalance: Record<string, number> = {};

Expand Down
5 changes: 5 additions & 0 deletions ui/web/src/modules/DesktopLayout/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ body[theme-mode='dark'] {
body[theme-mode='dark'] .flexlayout__tab {
background-color: #141414;
}

/* SEMI TABLE STYLE FIX */
.semi-table-tbody > .semi-table-row > .semi-table-row-cell {
word-break: break-all;
}

0 comments on commit e8bb6c9

Please sign in to comment.