diff --git a/components/packages/Platform/JlPlatform.d.ts b/components/packages/Platform/JlPlatform.d.ts index e0adb25..0e11358 100644 --- a/components/packages/Platform/JlPlatform.d.ts +++ b/components/packages/Platform/JlPlatform.d.ts @@ -46,6 +46,7 @@ export declare abstract class JlPlatform extends JlGraphic { codeGraphic?: CodeGraphic; constructor(categoryType: CategoryType); get datas(): IPlatformData; + get code(): string; doRepaint(): void; } export {}; diff --git a/components/packages/Platform/JlPlatform.js b/components/packages/Platform/JlPlatform.js index fcfa18e..5734cd2 100644 --- a/components/packages/Platform/JlPlatform.js +++ b/components/packages/Platform/JlPlatform.js @@ -194,6 +194,9 @@ class JlPlatform extends JlGraphic { get datas() { return this.getDatas(); } + get code() { + return this.datas.code; + } doRepaint() { this.doorGraphic?.clear(); const platformConsts = this.platformConsts;