mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: undefined 不能跳过 slot 的初始化
This commit is contained in:
parent
197745eb88
commit
34cd56e2c3
@ -356,7 +356,7 @@ export function upgradePropConfig(config: OldPropConfig, collector: ConfigCollec
|
||||
if (slotName && initialValue === true) {
|
||||
initialFn = (value: any, defaultValue: any) => {
|
||||
// initialValue 为 true,但 value 为 false / '' 等值,说明被关闭了
|
||||
if (!value) return value;
|
||||
if (value === false || value === '') return value;
|
||||
if (isJSBlock(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user