Skip to content

Commit 16704a5

Browse files
committed
升级包
1 parent a4e8127 commit 16704a5

File tree

23 files changed

+61
-69
lines changed

23 files changed

+61
-69
lines changed

src/Meowv.Blog.Admin/Meowv.Blog.Admin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="AntDesign.Pro.Layout" Version="0.1.0-nightly-210129055145" />
11+
<PackageReference Include="AntDesign.Pro.Layout" Version="0.1.0-nightly-210416065052" />
1212
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.9" />
1313
<PackageReference Include="Vditor" Version="0.1.0-nightly-201209082656" />
1414

src/Meowv.Blog.Admin/Pages/Categories/CategoryList.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Column @bind-Field="@context.Name" Title="分类名称" Sortable="false"></Column>
1818
<Column @bind-Field="@context.Alias" Title="分类别名" Sortable="false"></Column>
1919
<ActionColumn Title="操作">
20-
<Space Size="middle">
20+
<Space Size="@("small")">
2121
<SpaceItem>
2222
<Button Type="@ButtonType.Primary" OnClick="_ => Open(context)">编辑</Button>
2323
</SpaceItem>

src/Meowv.Blog.Admin/Pages/FriendLinks/FriendLinkList.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@context.Url
1919
</Column>
2020
<ActionColumn Title="操作">
21-
<Space Size="middle">
21+
<Space Size="@("small")">
2222
<SpaceItem>
2323
<Button Type="@ButtonType.Primary" OnClick="_ => Open(context)">编辑</Button>
2424
</SpaceItem>

src/Meowv.Blog.Admin/Pages/Messages/MessageList.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public async Task<IReadOnlyList<MessageDto>> GetMessageListAsync(int page, int l
6565

6666
public async Task HandlePageIndexChange(PaginationEventArgs args)
6767
{
68-
messages = await GetMessageListAsync(args.PageIndex, limit);
68+
messages = await GetMessageListAsync(args.Page, limit);
6969
StateHasChanged();
7070
}
7171

src/Meowv.Blog.Admin/Pages/Posts/PostAdd.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
{
5252
<Row>
5353
<AntDesign.Col Span="12">
54-
<Input @ref="_inputRef"
55-
Placeholder="输入标签"
54+
<Input Placeholder="输入标签"
5655
@bind-Value="_inputValue"
5756
Style="margin-top:5px;width:100%;"
5857
OnBlur="HandleInputConfirm" />

src/Meowv.Blog.Admin/Pages/Posts/PostAdd.razor.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public partial class PostAdd
2525

2626
string _inputValue, _selectedValue;
2727

28-
Input<string> _inputRef;
29-
3028
List<string> lstTags { get; set; } = new List<string>();
3129

3230
List<GetAdminCategoryDto> categories = new List<GetAdminCategoryDto>();
@@ -121,11 +119,9 @@ private void OnChange(DateTimeChangedEventArgs args)
121119

122120
private void Close() => visible = false;
123121

124-
async Task OnChecked()
122+
void OnChecked()
125123
{
126124
inputVisible = !inputVisible;
127-
if (_inputRef != null)
128-
await _inputRef.Focus();
129125
}
130126

131127
void OnClose(string item)

src/Meowv.Blog.Admin/Pages/Posts/PostEdit.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
{
5252
<Row>
5353
<AntDesign.Col Span="12">
54-
<Input @ref="_inputRef"
55-
Placeholder="输入标签"
54+
<Input Placeholder="输入标签"
5655
@bind-Value="_inputValue"
5756
Style="margin-top:5px;width:100%;"
5857
OnBlur="HandleInputConfirm" />

src/Meowv.Blog.Admin/Pages/Posts/PostEdit.razor.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public partial class PostEdit
2828

2929
string _inputValue, _selectedValue;
3030

31-
Input<string> _inputRef;
32-
3331
List<string> lstTags { get; set; } = new List<string>();
3432

3533
List<GetAdminCategoryDto> categories = new List<GetAdminCategoryDto>();
@@ -132,11 +130,9 @@ private void OnChange(DateTimeChangedEventArgs args)
132130

133131
private void Close() => visible = false;
134132

135-
async Task OnChecked()
133+
void OnChecked()
136134
{
137135
inputVisible = !inputVisible;
138-
if (_inputRef != null)
139-
await _inputRef.Focus();
140136
}
141137

142138
void OnClose(string item)

src/Meowv.Blog.Admin/Pages/Posts/PostList.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</Column>
3535
<Column @bind-Field="@context.CreatedAt" Title="创建时间" Sortable="false"></Column>
3636
<ActionColumn Title="操作">
37-
<Space Size="middle">
37+
<Space Size="@("small")">
3838
<SpaceItem>
3939
<Button Type="@ButtonType.Primary" OnClick="(() => Goto(context.Id))">编辑</Button>
4040
</SpaceItem>

src/Meowv.Blog.Admin/Pages/Sayings/SayingList.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<Column @bind-Field="@context.Id" Title="Id" Sortable="false"></Column>
2323
<Column @bind-Field="@context.Content" Title="内容" Sortable="false"></Column>
2424
<ActionColumn Title="操作">
25-
<Space Size="middle">
25+
<Space Size="@("small")">
2626
<SpaceItem>
2727
<Popconfirm Title="确定删除吗?"
2828
Icon="close-circle"

0 commit comments

Comments
 (0)