Skip to content

Commit cd42332

Browse files
update: 链式调用
1 parent 9e861b3 commit cd42332

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

docs/alemonjsDocs/basic/data-type.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ export default event => {
109109
// 一行多个
110110
message.send({
111111
format: Format.create().addButtonGroup(
112-
Format.create()
113-
.createButtonGroup()
112+
Format.createButtonGroup()
114113
.addRow()
115114
.addButton('开始', '/开始游戏')
116115
.addButton('结束', '/结束游戏')
@@ -120,8 +119,7 @@ export default event => {
120119
// 多行多个
121120
message.send({
122121
format: Format.create().addButtonGroup(
123-
Format.create()
124-
.createButtonGroup()
122+
Format.createButtonGroup()
125123
.addRow()
126124
.addButton('开始', '/开始游戏')
127125
.addButton('结束', '/结束游戏')
@@ -132,10 +130,8 @@ export default event => {
132130
})
133131

134132
// 更多类型
135-
const format = Format.create()
136-
format.addButtonGroup(
137-
format
138-
.createButtonGroup()
133+
const format = Format.create().addButtonGroup(
134+
Format.createButtonGroup()
139135
// link
140136
.addRow()
141137
.addButton('访问文档', 'https://alemonjs.com/', { type: 'link' })

src/config/blog.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
22
{
3-
"title": "V2.1.20",
3+
"title": "V2.1.21",
44
"description": "写法简化",
55
"date": "2026-02-26",
6-
"path": "/blog/2026/02/26/v2.1.20",
6+
"path": "/blog/2026/02/26/v2.1.21",
77
"tags": ["更新"],
88
"authors": "ningmengchongshui"
99
},

src/router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Doc22 = lazy(() => import('../docs/intro.md'))
3333
const Doc23 = lazy(() => import('../docs/start.mdx'))
3434

3535
// 自动生成的博客导入
36-
const Blog16 = lazy(() => import('../blog/2026/02/26/v2.1.20.md'))
36+
const Blog16 = lazy(() => import('../blog/2026/02/26/v2.1.21.md'))
3737
const Blog15 = lazy(() => import('../blog/2026/01/22/v2.1.17.md'))
3838
const Blog14 = lazy(() => import('../blog/2026/01/08/v2.1.15.md'))
3939
const Blog13 = lazy(() => import('../blog/2025/05/30/v2.1.0.md'))
@@ -171,7 +171,7 @@ const router = createBrowserRouter([
171171
element: <BlogList />
172172
},
173173
{
174-
path: '2026/02/26/v2.1.20',
174+
path: '2026/02/26/v2.1.21',
175175
element: <Blog16 />
176176
},
177177
{

0 commit comments

Comments
 (0)