@@ -36,23 +36,23 @@ const (
3636 CapStateHover = "state_hover"
3737 CapStateDisabled = "state_disabled"
3838 // CapStateGeometry:状态态(selected/hover/disabled)能否覆盖几何(padding/margin/字号)。
39- // 当前渲染消费仅限颜色/ 边框/字重——resolveState 判定不看几何、effectiveNode 也不合并几何,
40- // 故状态态的 padding/margin/font_size 在 schema 可写但不渲染(假字段 )→ 有状态的 view 标 unsupported。
41- CapStateGeometry = "state_geometry"
42- CapLayers = "layers"
43- CapShadowOffset = "shadow_offset"
44- CapShadowBlurSpread = "shadow_blur_spread"
45- CapLineSpacing = "line_spacing"
46- CapColGap = "col_gap"
47- CapTitleGap = "title_gap"
48- CapItemSpacing = "item_spacing"
49- CapBandGap = "band_gap"
50- CapRowGap = "row_gap"
51- CapIndexLabels = "index_labels"
52- CapAccentBar = "accent_bar"
53- CapFooterArrowImage = "footer_arrow_image"
54- CapPager = "pager"
55- CapModeStates = "mode_states"
39+ // 状态态支持颜色/背景图/渐变/ 边框/字体/层覆盖,**唯几何不支持**——状态改几何会牵动行高/列宽
40+ // 致候选框跳动(effectiveNode 不合并几何、resolveState 判定不看几何 )→ 有状态的 view 标 unsupported。
41+ CapStateGeometry = "state_geometry"
42+ CapLayers = "layers"
43+ CapShadowOffset = "shadow_offset"
44+ CapShadowBlurSpread = "shadow_blur_spread"
45+ CapLineSpacing = "line_spacing"
46+ CapColGap = "col_gap"
47+ CapTitleGap = "title_gap"
48+ CapItemSpacing = "item_spacing"
49+ CapBandGap = "band_gap"
50+ CapRowGap = "row_gap"
51+ CapIndexLabels = "index_labels"
52+ CapAccentBar = "accent_bar"
53+ CapFooterArrowImage = "footer_arrow_image"
54+ CapPager = "pager"
55+ CapModeStates = "mode_states"
5656)
5757
5858// capabilityKeys 能力键白名单。
@@ -120,7 +120,7 @@ var ThemeCapabilities = []ViewCapability{
120120 CapBackgroundColor : CapSupported , CapBackgroundImage : CapSupported , CapLayers : CapSupported ,
121121 CapStateSelected : CapSupported , CapStateHover : CapSupported ,
122122 CapStateDisabled : CapUnsupported , // 候选项无禁用业务语义(Candidate 无 disabled 字段)
123- CapStateGeometry : CapUnsupported , // 状态态仅覆盖颜色/ 边框/字重,几何不渲染
123+ CapStateGeometry : CapUnsupported , // 几何不随状态变(避免跳动);色/图/渐变/ 边框/字体/层可覆盖
124124 CapBackgroundGradient : CapSupported ,
125125 }},
126126 {"index" , map [string ]CapabilityStatus {
@@ -129,18 +129,18 @@ var ThemeCapabilities = []ViewCapability{
129129 CapBackgroundShape : CapSupported , CapIndexLabels : CapSupported ,
130130 CapStateSelected : CapSupported , CapStateHover : CapSupported ,
131131 CapStateDisabled : CapUnsupported ,
132- CapStateGeometry : CapUnsupported , // 状态态仅覆盖颜色/ 边框/字重,几何不渲染
132+ CapStateGeometry : CapUnsupported , // 几何不随状态变(避免跳动);色/图/渐变/ 边框/字体/层可覆盖
133133 CapBackgroundGradient : CapSupported ,
134134 }},
135135 {"text" , map [string ]CapabilityStatus {
136136 CapMargin : CapSupported , CapTextColor : CapSupported , CapFont : CapSupported ,
137137 CapStateSelected : CapSupported , CapStateHover : CapSupported , CapStateDisabled : CapUnsupported ,
138- CapStateGeometry : CapUnsupported , // 状态态仅覆盖颜色/字重,几何不渲染
138+ CapStateGeometry : CapUnsupported , // 几何不随状态变(避免跳动);色/图/渐变/边框/字体可覆盖
139139 }},
140140 {"comment" , map [string ]CapabilityStatus {
141141 CapMargin : CapSupported , CapTextColor : CapSupported , CapFont : CapSupported ,
142142 CapStateSelected : CapSupported , CapStateHover : CapSupported , CapStateDisabled : CapUnsupported ,
143- CapStateGeometry : CapUnsupported , // 状态态仅覆盖颜色/字重,几何不渲染
143+ CapStateGeometry : CapUnsupported , // 几何不随状态变(避免跳动);色/图/渐变/边框/字体可覆盖
144144 }},
145145 {"accent_bar" , map [string ]CapabilityStatus {
146146 CapAccentBar : CapSupported , CapBackgroundColor : CapSupported ,
@@ -187,7 +187,7 @@ var ThemeCapabilities = []ViewCapability{
187187 CapPadding : CapSupported , CapBorder : CapSupported ,
188188 CapBackgroundColor : CapSupported , CapTextColor : CapSupported , CapFont : CapSupported ,
189189 CapStateHover : CapSupported , CapStateDisabled : CapSupported ,
190- CapStateGeometry : CapUnsupported , // 状态态仅覆盖颜色/ 边框/字重,几何不渲染
190+ CapStateGeometry : CapUnsupported , // 几何不随状态变(避免跳动);色/图/渐变/ 边框/字体/层可覆盖
191191 }},
192192 {"menu.separator" , map [string ]CapabilityStatus {
193193 CapBackgroundColor : CapSupported , // 作分隔线色
0 commit comments