Skip to content

Commit 643b3be

Browse files
authored
update 0.17.3 (#90)
* update 0.17.2 * comment js * update 0.17.3.1
1 parent 827bbcd commit 643b3be

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/layout/example/AntDesign.ProLayout.Wasm/Components/Footer.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<FooterView Copyright="2019 蚂蚁金服体验技术部出品" Links="Links" />
1+
<FooterView Copyright="2024 Ant Design Blazor" Links="Links" />
22

33
@code
44
{

src/layout/example/AntDesign.ProLayout.Wasm/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div id="app">Loading...</div>
1616

1717
<script src="_framework/blazor.webassembly.js"></script>
18-
<script src="_content/AntDesign/js/ant-design-blazor.js"></script>
18+
<!--<script src="_content/AntDesign/js/ant-design-blazor.js"></script>-->
1919
<script>navigator.serviceWorker.register('service-worker.js');</script>
2020
</body>
2121
</html>

src/layout/src/AntDesign.ProLayout.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="AntDesign" Version="0.17.1" />
29+
<PackageReference Include="AntDesign" Version="0.17.3.1" />
3030
</ItemGroup>
3131

3232
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">

src/layout/src/wwwroot/AntDesign.ProLayout.lib.module.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ function loadScriptAndStyle() {
2424
customStyle.setAttribute('href', `${prolayoutCss}`);
2525
customStyle.setAttribute('rel', 'stylesheet');
2626

27-
const antblazorStyle = document.querySelector(`[href="${antblazorCss}"]`);
28-
if (antblazorStyle) {
29-
antblazorStyle.after(customStyle);
27+
const cssMark = document.querySelector(`[href="${antblazorCss}"]`) || document.querySelector('[prolayout-css]') || document.querySelector('link');
28+
if (cssMark) {
29+
cssMark.after(customStyle);
3030
}
3131
else {
3232
console.log('no antblazorStyle')
33-
document.head.insertBefore(customStyle, document.querySelector('[prolayout-css]') || document.querySelector('link'));
33+
document.head.appendChild(customStyle);
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)