mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 处理 slot 被关闭的情况
This commit is contained in:
parent
29148f79f9
commit
662c9d67bd
@ -355,6 +355,8 @@ export function upgradePropConfig(config: OldPropConfig, collector: ConfigCollec
|
||||
let initialFn = (slotName ? null : initial) || initialValue;
|
||||
if (slotName && initialValue === true) {
|
||||
initialFn = (value: any, defaultValue: any) => {
|
||||
// initialValue 为 true,但 value 为 false / '' 等值,说明被关闭了
|
||||
if (!value) return value;
|
||||
if (isJSBlock(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user