!39781 按对外文档修复customShadow get接口顺序问题

Merge pull request !39781 from 邹林肯/cs
This commit is contained in:
openharmony_ci 2024-08-07 04:23:09 +00:00 committed by Gitee
commit 48ee7c3cfd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2131,12 +2131,12 @@ const ArkUI_AttributeItem* GetCustomShadow(ArkUI_NodeHandle node)
{
ArkUICustomShadowOptions options;
GetFullImpl()->getNodeModifiers()->getCommonModifier()->getCustomShadow(node->uiNodeHandle, &options);
g_numberValues[NUM_0].i32 = options.radius;
g_numberValues[NUM_1].f32 = options.offsetX;
g_numberValues[NUM_2].f32 = options.offsetY;
g_numberValues[NUM_3].i32 = options.shadowType;
g_numberValues[NUM_4].u32 = options.color;
g_numberValues[NUM_5].i32 = options.colorStrategy;
g_numberValues[NUM_0].f32 = options.radius;
g_numberValues[NUM_1].i32 = options.colorStrategy;
g_numberValues[NUM_2].f32 = options.offsetX;
g_numberValues[NUM_3].f32 = options.offsetY;
g_numberValues[NUM_4].i32 = options.shadowType;
g_numberValues[NUM_5].u32 = options.color;
g_numberValues[NUM_6].i32 = options.fill;
return &g_attributeItem;
}