mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 02:47:12 +00:00
fix: 增加必要的方法
This commit is contained in:
parent
b8b265866b
commit
96aeadcb0b
@ -24,7 +24,6 @@
|
||||
"setup:test": "./scripts/setup-for-test.sh",
|
||||
"setup:skip-build": "./scripts/setup-skip-build.sh",
|
||||
"start": "./scripts/start.sh",
|
||||
"start:demo": "./scripts/start.sh @ali/lowcode-demo",
|
||||
"test": "lerna run test --stream",
|
||||
"test:snapshot": "lerna run test:snapshot",
|
||||
"watchdog:build": "node ./scripts/watchdog.js",
|
||||
|
||||
@ -153,6 +153,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
||||
if (value === undefined && isInitialValueNotEmpty(initialValue)) {
|
||||
const _initialValue = typeof initialValue === 'function' ? initialValue(field.internalToShellPropEntry()) : initialValue;
|
||||
field.setValue(_initialValue);
|
||||
value = _initialValue;
|
||||
}
|
||||
|
||||
let _onChange = extraProps?.onChange;
|
||||
|
||||
@ -124,6 +124,14 @@ export default class SettingPropEntry {
|
||||
this[settingPropEntrySymbol].setPropValue(propName, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 清空指定属性值
|
||||
* @param propName
|
||||
*/
|
||||
clearPropValue(propName: string | number) {
|
||||
this[settingPropEntrySymbol].clearPropValue(propName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置的默认值
|
||||
* @returns
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user