update app_web_ent

This commit is contained in:
Ivan Office
2024-08-17 05:05:53 +08:00
parent 912eb14967
commit 315e12686a
8 changed files with 144 additions and 46 deletions

View File

@@ -1,13 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<!--<t t-name="app_web_enterprise.EnterpriseNavBar" t-inherit="web_enterprise.EnterpriseNavBar" t-inherit-mode="extension">-->
<!--&lt;!&ndash; todo: 以下主要是测试,改这个主图标为 O &ndash;&gt;-->
<!-- <xpath expr="//a[hasclass('o_menu_toggle')]" position="replace">-->
<!-- <a href="#" class="o_menu_toggle fa fa-2x fa-opera" style="font-size: 2em;" accesskey="h" t-ref="menuApps" t-on-click.prevent="() => this.hm.toggle()">-->
<!-- </a>-->
<!-- </xpath>-->
<!--</t>-->
<t t-name="app_web_enterprise.EnterpriseNavBar" t-inherit="web_enterprise.EnterpriseNavBar" t-inherit-mode="extension">
<!-- todo: 以下主要是测试,改这个主图标为 O -->
<xpath expr="//a[hasclass('o_menu_toggle')]" position="replace">
<a href="#" class="o_menu_toggle" t-att-class="{'hasImage': currentApp &amp;&amp; currentApp.webIconData}" accesskey="h" t-ref="menuApps" t-on-click.prevent="() => this.hm.toggle()">
<i class="o_menu_toggle_icon text-primary fa fa-2x fa-opera" style="padding-right:8px;" role="img"/>
<img
t-if="currentApp &amp;&amp; currentApp.webIconData"
t-att-src="currentApp.webIconData"
class="o_menu_brand_icon d-none d-lg-inline position-absolute start-0 h-100 ps-1 ms-2"
t-att-alt="currentApp.name"
t-ref="appIcon"/>
<span
t-if="currentApp"
t-esc="currentApp.name"
class="o_menu_brand d-none d-md-flex ms-3 pe-0"/>
</a>
</xpath>
</t>
<!-- 菜单有下拉箭头, owl的在 web.NavBar 首行用 MenuDropdown 下拉的用 DropdownItem -->
<!-- owl NavBar-->
<t t-name="app_web_enterprise.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">