Browse Source

[fix] 前端通用模块

按照杨老师说的,修改操作栏下拉菜单的样式,修改通用dropdownToggle方法
dev
liuxiaoxu 1 month ago
parent
commit
ff499fc88f
  1. 4
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

4
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -331,8 +331,8 @@ var table = {
var actions = [];
actions.push('<div class="btn-group" style="width:100px;display: flex; justify-content: center; align-items: center;">');
actions.push('<button type="button" class="btn btn-xs dropdown-toggle" data-toggle="dropdown" aria-expanded="false">');
actions.push('<i class="fa fa-lg fa-cog"></i>&nbsp;'); // fa-lg 类可以使图标变大
actions.push('<span class="fa fa-lg fa-chevron-down"></span>'); // fa-lg 类可以使图标变大
actions.push('更多操作&nbsp;');
actions.push('<span class="fa fa-lg fa-chevron-down"></span>'); // 如果需要,可以保留这个图标
actions.push('</button>');
actions.push('<ul class="dropdown-menu">');
actions.push(value.replace(/<a/g,"<li><a").replace(/<\/a>/g,"</a></li>"));

Loading…
Cancel
Save