Skip to content

Commit f28cdf4

Browse files
committed
library: Remove LazyColumn Component
1 parent d0de1c7 commit f28cdf4

File tree

15 files changed

+34
-137
lines changed

15 files changed

+34
-137
lines changed

docs/.vitepress/locales/en_US.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@ export default defineConfig({
9090
{ text: 'ListPopup', link: '/components/listpopup' },
9191
]
9292
},
93-
{
94-
text: 'Special Components',
95-
collapsed: false,
96-
items: [
97-
{ text: 'LazyColumn', link: '/components/lazycolumn' },
98-
]
99-
},
10093
{
10194
text: 'Extended Components',
10295
collapsed: false,

docs/.vitepress/locales/zh_CN.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,6 @@ export default defineConfig({
110110
{ text: 'ListPopup', link: '/zh_CN/components/listpopup' },
111111
]
112112
},
113-
{
114-
text: '特殊组件',
115-
collapsed: false,
116-
items: [
117-
{ text: 'LazyColumn', link: '/zh_CN/components/lazycolumn' },
118-
]
119-
},
120113
{
121114
text: '扩展组件',
122115
collapsed: false,

docs/components/floatingactionbutton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
`FloatingActionButton` is a floating button component in Miuix, typically used to display the most important or frequently used actions on a page. It usually floats above the interface with a prominent visual effect for quick user access.
44

5-
This component is commonly used in conjunction with the `Scaffold` component to maintain consistent layout and behavior across different pages in the application.
5+
This component is typically used in conjunction with the `Scaffold` component to maintain consistent layout and behavior across different pages in the application.
66

77
## Import
88

docs/components/index.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ The Scaffold component provides a suitable container for cross-platform popup wi
3838
| [ColorPicker](../components/colorpicker) | Color selection control | Theme settings, color selection |
3939
| [ListPopup](../components/listpopup) | List popup window component | Option selection, feature list |
4040

41-
## Special Components
42-
43-
| Component | Description | Common Usage |
44-
| -------------------------------------- | ------------------------------------ | ------------------------------- |
45-
| [LazyColumn](../components/lazycolumn) | Lazy loading vertical list component | Long list display, data loading |
46-
4741
## Extended Components
4842

4943
| Component | Description | Common Usage |

docs/components/lazycolumn.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/components/topappbar.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Scaffold(
6363
topBar = {
6464
TopAppBar(
6565
title = "Title",
66-
largeTitle = "Large Title",
66+
largeTitle = "Large Title", // If not specified, title value will be used
6767
scrollBehavior = scrollBehavior
6868
)
6969
}
@@ -72,7 +72,9 @@ Scaffold(
7272
LazyColumn(
7373
modifier = Modifier
7474
.fillMaxSize()
75-
// Bind top bar scroll behavior
75+
// If you want to add the overscroll effect, please add it before the scroll behavior
76+
.overScrollVertical()
77+
// Bind TopAppBar scroll behavior
7678
.nestedScroll(topAppBarScrollBehavior.nestedScrollConnection),
7779
contentPadding = PaddingValues(top = paddingValues.calculateTopPadding())
7880
) {

docs/guide/utils.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ Miuix provides easy-to-use overscroll effects for smoother and more natural scro
5050

5151
### Vertical Overscroll
5252

53+
### 垂直越界回弹
54+
5355
```kotlin
5456
LazyColumn(
55-
modifier = Modifier.overScrollVertical()
57+
modifier = Modifier
58+
// Add overscroll effect
59+
.overScrollVertical()
60+
// If you want to bind the TopAppBar scroll behavior, please add it after the overscroll effect
61+
.nestedScroll(scrollBehavior.nestedScrollConnection)
5662
) {
5763
// List content
5864
}

docs/zh_CN/components/index.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ Scaffold 组件为跨平台提供了一个合适的弹出窗口的容器。`Supe
3838
| [ColorPicker](../components/colorpicker) | 选择颜色的控件 | 主题设置、颜色选择 |
3939
| [ListPopup](../components/listpopup) | 列表弹出窗口组件 | 选项选择、功能列表 |
4040

41-
42-
## 特殊组件
43-
44-
| 组件 | 描述 | 常见用途 |
45-
| -------------------------------------- | -------------------- | -------------------- |
46-
| [LazyColumn](../components/lazycolumn) | 懒加载的垂直列表组件 | 长列表展示、数据加载 |
47-
4841
## 扩展组件
4942

5043
| 组件 | 描述 | 常见用途 |

docs/zh_CN/components/lazycolumn.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/zh_CN/components/topappbar.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Scaffold(
6363
topBar = {
6464
TopAppBar(
6565
title = "标题",
66-
largeTitle = "大标题",
66+
largeTitle = "大标题", // 如果不指定,将使用 title 的值
6767
scrollBehavior = scrollBehavior
6868
)
6969
}
@@ -72,7 +72,9 @@ Scaffold(
7272
LazyColumn(
7373
modifier = Modifier
7474
.fillMaxSize()
75-
// 绑定顶部栏的滚动行为
75+
// 如需添加越界回弹效果,则应在绑定滚动行为之前添加
76+
.overScrollVertical()
77+
// 绑定 TopAppBar 滚动事件
7678
.nestedScroll(topAppBarScrollBehavior.nestedScrollConnection),
7779
contentPadding = PaddingValues(top = paddingValues.calculateTopPadding())
7880
) {

0 commit comments

Comments
 (0)