mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +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) {
|
if (slotName && initialValue === true) {
|
||||||
initialFn = (value: any, defaultValue: any) => {
|
initialFn = (value: any, defaultValue: any) => {
|
||||||
// initialValue 为 true,但 value 为 false / '' 等值,说明被关闭了
|
// initialValue 为 true,但 value 为 false / '' 等值,说明被关闭了
|
||||||
if (!value) return value;
|
if (value === false || value === '') return value;
|
||||||
if (isJSBlock(value)) {
|
if (isJSBlock(value)) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user