0615t提交
This commit is contained in:
@@ -26,8 +26,6 @@ odoo.define('code_backend_theme.SidebarMenu', function (require) {
|
||||
}
|
||||
}
|
||||
})
|
||||
//鼠标点击二级菜单,svg图标随着三级菜单的显隐而切换
|
||||
|
||||
|
||||
// $(document).on("mouseover", '.sidebar_menu li', function (event) {
|
||||
// $('.sidebar_menu li').off()
|
||||
|
||||
6
code_backend_theme/static/src/js/chrome/test.js
Normal file
6
code_backend_theme/static/src/js/chrome/test.js
Normal file
@@ -0,0 +1,6 @@
|
||||
odoo.define('code_backend_theme.Sidebarmenu', function (require) {
|
||||
"use strict";
|
||||
$(document).on('click','.dropdown-menu .dropdown-item',function () {
|
||||
console.log(11111111111)
|
||||
})
|
||||
});
|
||||
@@ -113,3 +113,32 @@ svg:nth-of-type(1) {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
//$caret-width: 80px;
|
||||
//
|
||||
.dropdown-toggle[aria-expanded="false"] :after {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 12px;
|
||||
content: "";
|
||||
border-top: $caret-width solid;
|
||||
border-right: $caret-width solid transparent;
|
||||
border-left: $caret-width solid transparent;
|
||||
}
|
||||
|
||||
.dropdown-toggle[aria-expanded="true"]:after {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 12px;
|
||||
content: "";
|
||||
border-top: 0;
|
||||
border-right: $caret-width solid transparent;
|
||||
border-left: $caret-width solid transparent;
|
||||
border-bottom: $caret-width solid;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,19 @@
|
||||
>
|
||||
<t t-set-slot="toggler">
|
||||
<span t-esc="section.name" t-att-data-section="section.id"/>
|
||||
<svg t="1686643514098" class="icon icon1" viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="892" width="200" height="200"><path d="M191.874005 288.29452c-15.95436701 0-29.007661-13.05329399-29.007661-29.007661l0-71.167876c0-15.95436701 13.05329399-29.007661 29.007661-29.007661l643.973754 0c15.95436701 0 29.007661 13.05329399 29.007661 29.007661l0 71.16787599c0 15.95436701-13.05329399 29.007661-29.007661 29.00766101L191.874005 288.29452z" fill="#ffffff" p-id="893"></path>
|
||||
<path d="M835.847759 391.806036c15.95436701 0 21.211091 10.468422 11.68206399 23.264866l-316.65186998 425.214425c-9.529027 12.795421-25.122167 12.795421-34.65017101 0l-316.65084699-425.214425c-9.529027-12.796444-4.272303-23.264866 11.68206399-23.264866L835.847759 391.806036z"
|
||||
fill="#ffffff" p-id="894"></path></svg>
|
||||
<svg t="1686643464598" class="icon icon2" viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="1031" width="200" height="200"><path d="M288.29452 832.125995c0 15.95436701-13.05329399 29.007661-29.007661 29.007661l-71.167876 0c-15.95436701 0-29.007661-13.05329399-29.007661-29.007661l0-643.973754c0-15.95436701 13.05329399-29.007661 29.007661-29.007661l71.16787599 0c15.95436701 0 29.007661 13.05329399 29.00766101 29.007661L288.29452 832.125995z" fill="#ffffff" p-id="1032"></path>
|
||||
<path d="M391.806036 188.152241c0-15.95436701 10.468422-21.211091 23.264866-11.68206399l425.214425 316.65186998c12.795421 9.529027 12.795421 25.122167 0 34.65017101l-425.214425 316.65084699c-12.796444 9.529027-23.264866 4.272303-23.264866-11.68206399L391.806036 188.152241z"
|
||||
fill="#ffffff" p-id="1033"></path></svg>
|
||||
|
||||
<!-- <t t-if="!state.open">-->
|
||||
<!-- <svg t="1686643514098" class="icon icon1" viewBox="0 0 1024 1024" version="1.1"-->
|
||||
<!-- xmlns="http://www.w3.org/2000/svg" p-id="892" width="200" height="200"><path d="M191.874005 288.29452c-15.95436701 0-29.007661-13.05329399-29.007661-29.007661l0-71.167876c0-15.95436701 13.05329399-29.007661 29.007661-29.007661l643.973754 0c15.95436701 0 29.007661 13.05329399 29.007661 29.007661l0 71.16787599c0 15.95436701-13.05329399 29.007661-29.007661 29.00766101L191.874005 288.29452z" fill="#ffffff" p-id="893"></path>-->
|
||||
<!-- <path d="M835.847759 391.806036c15.95436701 0 21.211091 10.468422 11.68206399 23.264866l-316.65186998 425.214425c-9.529027 12.795421-25.122167 12.795421-34.65017101 0l-316.65084699-425.214425c-9.529027-12.796444-4.272303-23.264866 11.68206399-23.264866L835.847759 391.806036z"-->
|
||||
<!-- fill="#ffffff" p-id="894"></path></svg>-->
|
||||
<!--<!– </t>–>-->
|
||||
<!--<!– <t t-if="state.open">–>-->
|
||||
<!-- <svg t="1686643464598" class="icon icon2" viewBox="0 0 1024 1024" version="1.1"-->
|
||||
<!-- xmlns="http://www.w3.org/2000/svg" p-id="1031" width="200" height="200"><path d="M288.29452 832.125995c0 15.95436701-13.05329399 29.007661-29.007661 29.007661l-71.167876 0c-15.95436701 0-29.007661-13.05329399-29.007661-29.007661l0-643.973754c0-15.95436701 13.05329399-29.007661 29.007661-29.007661l71.16787599 0c15.95436701 0 29.007661 13.05329399 29.00766101 29.007661L288.29452 832.125995z" fill="#ffffff" p-id="1032"></path>-->
|
||||
<!-- <path d="M391.806036 188.152241c0-15.95436701 10.468422-21.211091 23.264866-11.68206399l425.214425 316.65186998c12.795421 9.529027 12.795421 25.122167 0 34.65017101l-425.214425 316.65084699c-12.796444 9.529027-23.264866 4.272303-23.264866-11.68206399L391.806036 188.152241z"-->
|
||||
<!-- fill="#ffffff" p-id="1033"></path></svg>-->
|
||||
<!-- </t>-->
|
||||
</t>
|
||||
<t t-call="web.NavBar.SectionsMenu.Dropdown.MenuSlot">
|
||||
<t t-set="items" t-value="section.childrenTree"/>
|
||||
|
||||
Reference in New Issue
Block a user