From 4855f92f96f0b2392f78e3b3820052944e9b19a8 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 5 Jan 2024 16:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/packages/Platform/JlPlatform.d.ts | 1 + components/packages/Platform/JlPlatform.js | 3 +++ 2 files changed, 4 insertions(+) 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;