mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
feat: add componentMeta getter for setingPropEntry
This commit is contained in:
parent
de1f60bbee
commit
2f8b9545de
@ -3,6 +3,7 @@ import { CompositeValue, FieldConfig } from '@alilc/lowcode-types';
|
||||
import { settingPropEntrySymbol } from './symbols';
|
||||
import Node from './node';
|
||||
import SettingTopEntry from './setting-top-entry';
|
||||
import ComponentMeta from './component-meta';
|
||||
|
||||
export default class SettingPropEntry {
|
||||
private readonly [settingPropEntrySymbol]: SettingField;
|
||||
@ -89,6 +90,13 @@ export default class SettingPropEntry {
|
||||
return this[settingPropEntrySymbol].isSettingField;
|
||||
}
|
||||
|
||||
/**
|
||||
* componentMeta
|
||||
*/
|
||||
get componentMeta(): ComponentMeta | null {
|
||||
return ComponentMeta.create(this[settingPropEntrySymbol].componentMeta);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 key 值
|
||||
* @param key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user