2021-07-22 03:32:42 +08:00
|
|
|
window.bwipjs = require('bwip-js');
|
2022-05-09 17:50:14 +08:00
|
|
|
window.Decimal = require('decimal.js');
|
2023-04-03 19:20:10 +08:00
|
|
|
|
|
|
|
$(document).on('click', '.sci--layout--menu-item[data-submenu=true]', (e) => {
|
|
|
|
const item = $(e.currentTarget);
|
|
|
|
const caret = item.find('.show-submenu');
|
|
|
|
const submenu = item.next();
|
|
|
|
e.preventDefault();
|
|
|
|
if (submenu.attr('data-collapsed') === 'true') {
|
|
|
|
caret.removeClass('fa-caret-up').addClass('fa-caret-down');
|
|
|
|
submenu.attr('data-collapsed', false);
|
|
|
|
} else {
|
|
|
|
caret.removeClass('fa-caret-down').addClass('fa-caret-up');
|
|
|
|
submenu.attr('data-collapsed', true);
|
|
|
|
}
|
|
|
|
});
|
2023-04-19 20:16:22 +08:00
|
|
|
|
|
|
|
$(document).on('click', '.sci--layout--navigator-open', (e) => {
|
|
|
|
navigatorContainer.$data.navigatorCollapsed = false
|
|
|
|
});
|