mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-17 11:19:42 +00:00
!42102 AttributeUpdater调用时增加id打印和判空操作
Merge pull request !42102 from yihao lin/ark
This commit is contained in:
commit
cc6be419fb
@ -4573,6 +4573,7 @@ function attributeModifierFunc<T>(modifier: AttributeModifier<T>,
|
||||
modifierBuilder: (nativePtr: KNode, classType: ModifierType, modifierJS: ModifierJS) => ArkComponent)
|
||||
{
|
||||
if (modifier === undefined || modifier === null) {
|
||||
ArkLogConsole.info("custom modifier is undefined");
|
||||
return;
|
||||
}
|
||||
const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
|
||||
@ -4608,6 +4609,10 @@ function attributeModifierFuncWithoutStateStyles<T>(modifier: AttributeModifier<
|
||||
componentBuilder: (nativePtr: KNode) => ArkComponent,
|
||||
modifierBuilder: (nativePtr: KNode, classType: ModifierType, modifierJS: ModifierJS) => ArkComponent)
|
||||
{
|
||||
if (modifier === undefined || modifier === null) {
|
||||
ArkLogConsole.info("custom modifier is undefined");
|
||||
return;
|
||||
}
|
||||
const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
|
||||
let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
|
||||
let component = this.createOrGetNode(elmtId, () => {
|
||||
|
@ -4577,6 +4577,10 @@ function attributeModifierFunc(modifier, componentBuilder, modifierBuilder) {
|
||||
}
|
||||
|
||||
function attributeModifierFuncWithoutStateStyles(modifier, componentBuilder, modifierBuilder) {
|
||||
if (modifier === undefined || modifier === null) {
|
||||
ArkLogConsole.info("custom modifier is undefined");
|
||||
return;
|
||||
}
|
||||
const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
|
||||
let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
|
||||
let component = this.createOrGetNode(elmtId, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user