How to create and call an async function如何创建和调用异步函数
Using async functions in Swift is done in two steps: declaring the function itself as being async, then calling that function using await.在 Swift 中使用异步函数分两步完...
What’s the difference between actors, classes, and structs? Actors、Classes和 Structs 之间有什么区别?
Swift provides four concrete nominal types for defining custom objects: actors, classes, structs, and enums. Each of these works a little differently from the others, but the first...
巡检计划巡检状态选项添加颜色
列表页面添加 在 index.vue 中添加,如下的代码 <!-- 巡检计划状态添加颜色显示 --> <template v-if='column.leapKey === 'select' && column.prop === 'inspectionPlanStatus''>...
Collection 集合
Kotlin 的 Collections(集合)分为不可变集合和可变集合。不可变集合是只读集合,元素在创建之后不能被修改,常见的不可变集合方法有: List 中的 listOf()、ListOf<T>() Set 中的 setOf(...
Bottom Navigation
创建 Screen HomeScreen 的可组合函数 @Composable fun HomeScreen() { Column( modifier = Modifier.fillMaxSize(), horizontalAlignment = Alignment.CenterHorizontally ) { Button( onClick...
observeAsState
observeAsState 是 Jetpack Compose 中用于 将 LiveData 转换为 Compose 可观察状态(State) 的扩展函数。 作用让 LiveData 的变化自动触发Compose UI 重组。 基本用法 // 无默认值 val user b...












