Skip to content

Commit 37f9fce

Browse files
authored
get reusetabs title from menu (#188)
1 parent 7976033 commit 37f9fce

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.template.config/template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
"type": "computed",
6969
"value": "(host != 'webapp')"
7070
},
71+
"IsNotFull":{
72+
"type": "computed",
73+
"value": "(!full)"
74+
},
7175
"skipRestore": {
7276
"type": "parameter",
7377
"datatype": "bool",

src/AntDesign.Pro/Layouts/BasicLayout.razor

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
5757
protected override async Task OnInitializedAsync()
5858
{
59-
//#if (!full)
59+
#if IsNotFull
6060
_menuData = new[]{
6161
new MenuDataItem
6262
{
@@ -66,12 +66,11 @@
6666
Icon = "smile",
6767
}
6868
};
69-
//#else
70-
69+
#else
7170
_localizationChanged = (sender, args) => InvokeAsync(StateHasChanged);
7271
LocalizationService.LanguageChanged += _localizationChanged;
7372
_menuData = await HttpClient.GetFromJsonAsync<MenuDataItem[]>("data/menu.json");
74-
//#endif
73+
#endif
7574
}
7675

7776
public LinkItem[] Links { get; set; } =

src/AntDesign.Pro/Pages/Dashboard/Analysis/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@namespace AntDesign.Pro.Template.Pages.Dashboard.Analysis
22
@page "/"
3-
@attribute [ReuseTabsPage(Title ="Home", Pin =true, Closable =false, Order =0)]
3+
@attribute [ReuseTabsPage(Pin = true, Closable = false, Order =0)]
44

55
<GridContent>
66
<Row Type="flex" Gutter="24">

0 commit comments

Comments
 (0)