From 70e7c1c2e8998e80d58447759efdf651105724a9 Mon Sep 17 00:00:00 2001 From: zyy7259 Date: Mon, 18 Jul 2022 16:42:10 +0800 Subject: [PATCH] feat: add getExtraPropValue setExtraPropValue to shell SettingPropEntry --- packages/shell/src/setting-prop-entry.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/shell/src/setting-prop-entry.ts b/packages/shell/src/setting-prop-entry.ts index bffff0843..399ce4c9c 100644 --- a/packages/shell/src/setting-prop-entry.ts +++ b/packages/shell/src/setting-prop-entry.ts @@ -195,6 +195,20 @@ export default class SettingPropEntry { return this[settingPropEntrySymbol].getPropValue(propName); } + /** + * 获取顶层附属属性值 + */ + getExtraPropValue(propName: string) { + return this[settingPropEntrySymbol].getExtraPropValue(propName); + } + + /** + * 设置顶层附属属性值 + */ + setExtraPropValue(propName: string, value: any) { + this[settingPropEntrySymbol].setExtraPropValue(propName, value); + } + /** * 获取设置属性集 * @returns