处理下拉箭头

This commit is contained in:
ivan deng
2023-02-17 00:04:44 +08:00
parent 3477d98a53
commit 2e2dac8712
4 changed files with 28 additions and 16 deletions

View File

@@ -18,7 +18,7 @@
{ {
'name': "App web enterprise enhance,企业版界面增强", 'name': "App web enterprise enhance,企业版界面增强",
'version': '16.23.02.14', 'version': '16.23.02.16',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -9,4 +9,19 @@
} }
} }
} }
}
// 上方菜单下拉group 也有箭头
.o_main_navbar {
.o-dropdown {
.dropdown-menu_group.dropdown-header::after {
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 4px solid transparent;
}
}
} }

View File

@@ -13,9 +13,16 @@
</a> </a>
</xpath> </xpath>
</t> </t>
<!-- web.NavBar.SectionsMenu--> <!-- 菜单有下拉箭头, owl的在 web.NavBar 首行用 MenuDropdown 下拉的用 DropdownItem -->
<!-- 没有子菜单时调用web.DropdownItem--> <!-- owl NavBar-->
<!-- web.UserMenu--> <t t-name="app_web_enterprise.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">
<xpath expr="//MenuDropdown" position="attributes">
<attribute name="showCaret">true</attribute>
</xpath>
</t>
<!-- <t t-name="app_web_enterprise.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit="web.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit-mode="extension">-->
<!-- <xpath expr="//DropdownItem[1]" position="attributes">-->
<!-- <attribute name="showCaret">true</attribute>-->
<!-- </xpath>-->
<!-- </t>-->
</templates> </templates>

View File

@@ -1,18 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve"> <templates id="template" xml:space="preserve">
<!-- <t t-extend="HomeMenu.Content">--> <!-- <t t-extend="HomeMenu.Content">-->
<!-- <t t-jquery=".o_home_menu_footer" t-operation="inner">--> <!-- <t t-jquery=".o_home_menu_footer" t-operation="inner">-->
<!-- <img src='/web/binary/company_logo' alt="Logo"/>--> <!-- <img src='/web/binary/company_logo' alt="Logo"/>-->
<!-- </t>--> <!-- </t>-->
<!-- </t>--> <!-- </t>-->
<!-- 菜单有下拉箭头, owl的在 web.NavBar.SectionsMenu 有group的用 MenuDropdown 直接操作的用 DropdownItem -->
<t t-name="app_web_enterprise.Dropdown" t-inherit="web.Dropdown">
<xpath expr="//div[hasclass('o-dropdown')]" position="attributes">
<attribute name="t-att-class">
{{ directionCaretClass || ''}}
{{ state.open ? 'show' : ''}}</attribute>
</xpath>
</t>
</templates> </templates>