# arkui子系统ChangeLog ## cl.arkui.1 Navigation menus属性显示变更 **变更影响** menus的value属性值不做显示,如果需要显示,可以使用自定义Builder显示。 **示例:** ```ts @Entry @Component struct Index { build() { Column() { Navigation() { Text('Navigation') }.title("Navigation Menu") .menus([ {icon: 'common/image/icon.png', value: 'menu1'}, {icon: 'common/image/icon.png', value: 'menu2'}, {icon: 'common/image/icon.png', value: 'menu3'} ]) } } } ``` API Version 9:menus的value属性会显示 ![Navigation](figures/navigation_menu_api9.png) API Version 10: menus中的value属性不显示 ![Navigation](figures/navigation_menu_api10.png) ## cl.arkui.2 Navigation的titleMode属性Free模式默认显示位置变更 **变更影响** 1. Navigation组件自定义标题并titleMode设置为Full模式或Free模式显示位置相同 2. 使用自定义title结合Free模式的标签会出现标签位置向右偏移 **示例:** ```ts @Entry @Component struct Index { @Builder NavigationTile() { Column() { Text('title').fontColor('#182431').fontSize(30).lineHeight(41) Text('subTitle').fontColor('#182431').fontSize(14).lineHeight(19).margin(top:2, bottom: 20) } } build() { Column() { Navigation() { Text('Navigation') }.title(this.NavigationTitle) .titleMode(NavigationTitleMode.Free) .menus([ {icon: 'common/image/icon.png', value: 'menu1'} ]) } } } ``` API Version 9: Free模式显示位置 ![Navigation](figures/navigation_title_mode_free_sdk9.png) API Version 10: Free模式显示位置与Full模式显示位置相同 ![Navigation](figures/navigation_title_mode_free_sdk10.png) ## cl.arkui.3 字符串异常值默认变更 **变更影响** 包含数字的非法字符串不会解析为数字部分,而是视为非法值,按照规则设定为默认值 **示例:** ```ts @Entry @Component struct GridRowExample { @State bgColors: Color[] = [Color.Red, Color.Orange, Color.Yellow, Color.Green, Color.Pink, Color.Grey, Color.Blue, Color.Brown] @State currentBp: string = 'unknown' build() { Column() { GridRow({ columns: 5, gutter: { x: 5, y: 10 }, breakpoints: { value: ["400vp", "600vp", "800vp"], reference: BreakpointsReference.WindowSize }, direction: GridRowDirection.Row }) { ForEach(this.bgColors, (color) => { GridCol({ span: { xs: 1, sm: 2, md: 3, lg: 4 } }) { Row().width("100%").height("20vp") }.borderColor(color).borderWidth(2) }) }.width("100%").height("100%") }.width("80pv").margin({ left: 10, top: 5, bottom: 5 }).height(200) .border({ color: '#880606', width: 2 }) } } API Version 9:上方示例中的GridRow设定width中的"80pv"会等同于width设定字符串"80" API Version 10: 上方示例中的GridRow的width中的"80pv"会被视为异常值,所以GridRow的width设定为默认值,相当于未设定