2023-07-05 17:48:22 +08:00
|
|
|
require('jquery-ujs');
|
|
|
|
require('jquery-mousewheel');
|
|
|
|
require('jquery-autosize');
|
|
|
|
require('jquery-ui/ui/widget');
|
|
|
|
require('jquery-ui/ui/widgets/mouse');
|
2023-08-09 16:33:58 +08:00
|
|
|
require('jquery-ui/ui/widgets/sortable');
|
2023-07-05 17:48:22 +08:00
|
|
|
require('jquery-ui/ui/widgets/draggable');
|
|
|
|
require('jquery-ui/ui/widgets/droppable');
|
|
|
|
require('jquery-ui/ui/effects/effect-slide');
|
|
|
|
require('hammerjs');
|
|
|
|
import 'bootstrap';
|
2023-08-10 20:32:35 +08:00
|
|
|
import './bootstrap.less';
|
2023-07-05 17:48:22 +08:00
|
|
|
window.moment = require('moment');
|
|
|
|
require('bootstrap-select/js/bootstrap-select');
|
|
|
|
|
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') {
|
2023-06-08 23:33:50 +08:00
|
|
|
caret.removeClass('sn-icon-right').addClass('sn-icon-down');
|
2023-04-03 19:20:10 +08:00
|
|
|
submenu.attr('data-collapsed', false);
|
|
|
|
} else {
|
2023-06-08 23:33:50 +08:00
|
|
|
caret.removeClass('sn-icon-down').addClass('sn-icon-right');
|
2023-04-03 19:20:10 +08:00
|
|
|
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
|
|
|
|
});
|
2023-06-19 21:45:22 +08:00
|
|
|
|
|
|
|
$(document).on('click', '.btn', function() {
|
|
|
|
$(this).blur();
|
|
|
|
});
|
|
|
|
|