Skip to content

Commit 70e7c1c

Browse files
zyy7259JackLian
authored andcommitted
feat: add getExtraPropValue setExtraPropValue to shell SettingPropEntry
1 parent 1fa2694 commit 70e7c1c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/shell/src/setting-prop-entry.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,20 @@ export default class SettingPropEntry {
195195
return this[settingPropEntrySymbol].getPropValue(propName);
196196
}
197197

198+
/**
199+
* 获取顶层附属属性值
200+
*/
201+
getExtraPropValue(propName: string) {
202+
return this[settingPropEntrySymbol].getExtraPropValue(propName);
203+
}
204+
205+
/**
206+
* 设置顶层附属属性值
207+
*/
208+
setExtraPropValue(propName: string, value: any) {
209+
this[settingPropEntrySymbol].setExtraPropValue(propName, value);
210+
}
211+
198212
/**
199213
* 获取设置属性集
200214
* @returns

0 commit comments

Comments
 (0)