diff --git a/demo/public/index.html b/demo/public/index.html index 972ae92..39faa56 100644 --- a/demo/public/index.html +++ b/demo/public/index.html @@ -3,7 +3,7 @@ - Admin Framework Demo + Admin Framework
diff --git a/src/components/treeGrid/component/subTreeGrid.vue b/src/components/treeGrid/component/subTreeGrid.vue index 0768382..3c8edd2 100644 --- a/src/components/treeGrid/component/subTreeGrid.vue +++ b/src/components/treeGrid/component/subTreeGrid.vue @@ -4,35 +4,31 @@ - + }"> @@ -212,7 +208,8 @@ table { /* 确保表格可以在容器内滚动 */ .endTbody { - max-height: calc(100vh - 200px); /* 预留头部和其他元素的空间 */ + max-height: calc(100vh - 200px); + /* 预留头部和其他元素的空间 */ overflow-y: auto; } @@ -236,7 +233,7 @@ table { transition: background-color 0.2s; &:hover { - background-color: rgba(45,140,240,0.05); + background-color: rgba(45, 140, 240, 0.05); } } @@ -247,7 +244,7 @@ table { line-height: 18px; text-align: center; border-radius: 2px; - background: rgba(45,140,240,0.08); + background: rgba(45, 140, 240, 0.08); color: #2d8cf0; margin-right: 6px; cursor: pointer; @@ -256,6 +253,7 @@ table { .tr-row { padding: 0px 5px; + td { text-align: center; word-wrap: break-word; @@ -295,7 +293,7 @@ table { line-height: 1.5; text-align: left; border-bottom: 1px solid #e8eaec; - + /* 基础文本溢出处理 */ &:not(.td-operations) { white-space: nowrap; @@ -307,7 +305,8 @@ table { /* 展开列样式 */ .td-expand { width: auto; - min-width: 200px; /* 给展开图标和文本预留足够空间 */ + min-width: 200px; + /* 给展开图标和文本预留足够空间 */ } /* 操作列样式 */ @@ -315,13 +314,16 @@ table { text-align: right; white-space: nowrap; width: auto; - min-width: 180px; /* 增加按钮空间 */ + min-width: 180px; + /* 增加按钮空间 */ padding-right: 16px; - overflow: visible !important; /* 强制确保内容可见 */ + overflow: visible !important; + /* 强制确保内容可见 */ position: relative; - z-index: 1; /* 确保按钮在最上层 */ + z-index: 1; + /* 确保按钮在最上层 */ } - + /* 确保操作列中的按钮组样式 */ .td-operations .ivu-btn-group { display: inline-flex; diff --git a/src/views/system/sys_menu.vue b/src/views/system/sys_menu.vue index a65bd11..3f532aa 100644 --- a/src/views/system/sys_menu.vue +++ b/src/views/system/sys_menu.vue @@ -167,7 +167,6 @@ export default { { key: 'operat', title: '操作', - type: 'template', width: 500, render: (h, params) => { let btns = [