1# 程序访问控制子系统变更说明
2
3## cl.access_token.1 安全控件offset属性设置行为变更
4
5**访问级别**
6
7公开接口
8
9**变更原因**
10
11应用在集成安全控件时,安全控件通过offset属性设置相对父组件的偏移后,若被父组件裁剪不能完整显示时,其仍可响应点击授权,存在隐私安全风险,可能被恶意应用利用。
12
13**变更影响**
14
15该变更为不兼容变更。
16
17变更前:
18
19应用在集成安全控件时,安全控件通过offset属性设置相对父组件的偏移后,且被父组件裁剪不能完整显示时,其仍可响应点击授权。
20
21例如:
22
23安全控件设置offset属性后被父组件裁剪不能完整显示时,安全控件仍可响应点击授权。
24
25![be_clipped](security_component_be_clipped.png)
26
27变更后:
28
29应用在集成安全控件时,安全控件通过offset属性设置相对父组件的偏移后,且被父组件裁剪不能完整显示时,其不可响应点击授权。
30
31例如:
32
33安全控件设置offset属性后被父组件裁剪不能完整显示时,安全控件不响应点击授权。
34
35![be_clipped](security_component_be_clipped.png)
36
37**起始 API Level**
38
3910
40
41**变更发生版本**
42
43从OpenHarmony SDK 5.0.0.46 版本开始。
44
45**变更的接口/组件**
46
47@internal/component/ets/location_button.d.ts中 LocationButton接口。
48
49@internal/component/ets/save_button.d.ts中 SaveButton接口。
50
51@internal/component/ets/paste_button.d.ts中 PasteButton接口。
52
53**适配指导**
54
55安全控件设置offset属性后被父组件裁剪不能完整显示时,可通过调整offset({x: value, y: value})中x或y值,使得安全控件完整显示。
56
57![not_be_clipped](security_component_not_be_clipped.png)
58