Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KMPMaxHap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dsq
KMPMaxHap
Commits
e8d013af
Commit
e8d013af
authored
Feb 13, 2026
by
dsq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除日志相关
parent
1d653b01
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
54 deletions
+0
-54
ComponentDemos.kt
...p/src/commonMain/kotlin/com.dong.maxhap/ComponentDemos.kt
+0
-2
TestFaultLogDemo.kt
...mmonMain/kotlin/com.dong.maxhap/demos/TestFaultLogDemo.kt
+0
-51
Navigation.kt
...ommonMain/kotlin/com.dong.maxhap/navigation/Navigation.kt
+0
-1
No files found.
composeApp/src/commonMain/kotlin/com.dong.maxhap/ComponentDemos.kt
View file @
e8d013af
...
@@ -16,7 +16,6 @@ import com.dong.maxhap.navigation.*
...
@@ -16,7 +16,6 @@ import com.dong.maxhap.navigation.*
import
androidx.compose.foundation.shape.RoundedCornerShape
import
androidx.compose.foundation.shape.RoundedCornerShape
import
androidx.compose.runtime.getValue
import
androidx.compose.runtime.getValue
import
androidx.compose.runtime.setValue
import
androidx.compose.runtime.setValue
import
com.dong.maxhap.demos.TestFaultLogDemo
import
com.dong.maxhap.demos.material.*
import
com.dong.maxhap.demos.material.*
import
com.dong.maxhap.demos.ui.UiBoxDemo
import
com.dong.maxhap.demos.ui.UiBoxDemo
import
com.dong.maxhap.demos.benchmark.*
import
com.dong.maxhap.demos.benchmark.*
...
@@ -149,7 +148,6 @@ internal fun DemoScreen(demo: ComponentDemo, onBack: () -> Unit) {
...
@@ -149,7 +148,6 @@ internal fun DemoScreen(demo: ComponentDemo, onBack: () -> Unit) {
// ui
// ui
"ui_box"
->
UiBoxDemo
()
"ui_box"
->
UiBoxDemo
()
"ui_hap"
->
NestedPagesMain
()
"ui_hap"
->
NestedPagesMain
()
"ui_fault"
->
TestFaultLogDemo
()
// foundation
// foundation
"foundation_basic_text"
->
FoundationBasicTextDemo
()
"foundation_basic_text"
->
FoundationBasicTextDemo
()
"foundation_lazy_column"
->
FoundationLazyColumnDemo
()
"foundation_lazy_column"
->
FoundationLazyColumnDemo
()
...
...
composeApp/src/commonMain/kotlin/com.dong.maxhap/demos/TestFaultLogDemo.kt
deleted
100644 → 0
View file @
1d653b01
package
com.dong.maxhap.demos
import
androidx.compose.foundation.layout.*
import
androidx.compose.material.*
import
androidx.compose.runtime.*
import
androidx.compose.ui.Alignment
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.graphics.Color
import
androidx.compose.ui.text.font.FontWeight
import
androidx.compose.ui.unit.dp
import
androidx.compose.ui.unit.sp
import
com.dong.maxhap.nestedlib1.NestedPage1
@Composable
internal
fun
TestFaultLogDemo
()
{
Column
(
modifier
=
Modifier
.
fillMaxSize
()
.
padding
(
16
.
dp
),
horizontalAlignment
=
Alignment
.
CenterHorizontally
,
verticalArrangement
=
Arrangement
.
Center
)
{
Button
(
onClick
=
{
val
list
=
listOf
(
"A"
,
"B"
,
"C"
)
// 直接越界访问 - 立即崩溃
val
item
=
list
[
5
]
// ArrayIndexOutOfBoundsException
println
(
item
)
},
modifier
=
Modifier
.
fillMaxWidth
()
.
height
(
50
.
dp
),
colors
=
ButtonDefaults
.
buttonColors
(
backgroundColor
=
Color
(
0
xFF4CAF50
)
)
)
{
Text
(
text
=
"点击触发越界"
,
fontSize
=
18
.
sp
,
fontWeight
=
FontWeight
.
Medium
,
color
=
Color
.
White
)
}
Spacer
(
modifier
=
Modifier
.
height
(
20
.
dp
))
}
}
\ No newline at end of file
composeApp/src/commonMain/kotlin/com.dong.maxhap/navigation/Navigation.kt
View file @
e8d013af
...
@@ -13,7 +13,6 @@ data class ComponentDemo(
...
@@ -13,7 +13,6 @@ data class ComponentDemo(
val
componentDemos
:
List
<
ComponentDemo
>
=
listOf
(
val
componentDemos
:
List
<
ComponentDemo
>
=
listOf
(
// ui
// ui
ComponentDemo
(
"ui_hap"
,
"测试大批量页面"
,
ComposeGroup
.
Ui
),
ComponentDemo
(
"ui_hap"
,
"测试大批量页面"
,
ComposeGroup
.
Ui
),
ComponentDemo
(
"ui_fault"
,
"测试Fault日志"
,
ComposeGroup
.
Ui
),
ComponentDemo
(
"ui_box"
,
"Box"
,
ComposeGroup
.
Ui
),
ComponentDemo
(
"ui_box"
,
"Box"
,
ComposeGroup
.
Ui
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment