摘要: import { getRandomName, getRandomPhone } from '../../../../utils/RandomUtil';import { Person } from './model/DataModel';@Entry@Componentstruct Contact 阅读全文
posted @ 2025-03-16 14:49 13522679763-任国强 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-03-16 13:42 13522679763-任国强 阅读(7) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct GrandParent { @Provide count: number = 1; build() { Column() { Column({ space: 10 }) { //祖先组件标题 Text('祖先组件').textStyle() //祖先组件 阅读全文
posted @ 2025-03-16 13:27 13522679763-任国强 阅读(7) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct Parent { @State count: number = 1; inc = () => { this.count++ } dec = () => { this.count-- } build() { Column() { Column({ spac 阅读全文
posted @ 2025-03-16 13:23 13522679763-任国强 阅读(6) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct Parent { @State count: number = 1; build() { Column() { Column({ space: 10 }) { //父组件标题 Text('父组件').textStyle() //父组件计数器 Row({ 阅读全文
posted @ 2025-03-16 13:22 13522679763-任国强 阅读(9) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct ScrollerPage { data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] scroller:Scroller = new Scroller() build() 阅读全文
posted @ 2025-03-16 00:10 13522679763-任国强 阅读(12) 评论(0) 推荐(0)