File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
example/AntDesign.ProLayout.Wasm Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- <FooterView Copyright =" 2019 蚂蚁金服体验技术部出品 " Links =" Links" />
1+ <FooterView Copyright =" 2024 Ant Design Blazor " Links =" Links" />
22
33@code
44{
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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)'==''" >
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments