瀏覽代碼

feat: 合并

snihwxf 3 月之前
父節點
當前提交
9ca1e18d44
共有 1 個文件被更改,包括 17 次插入1 次删除
  1. 17 1
      apps/web-baicai/src/views/system/menu/components/grant.vue

+ 17 - 1
apps/web-baicai/src/views/system/menu/components/grant.vue

@@ -141,4 +141,20 @@ const loadTreeData = async () => {
     </Form>
   </Drawer>
 </template>
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+:deep(.ant-tree-title) {
+  .tree-actions {
+    display: none;
+    margin-left: 20px;
+  }
+}
+
+:deep(.ant-tree-title:hover) {
+  .tree-actions {
+    display: flex;
+    flex: auto;
+    justify-content: flex-end;
+    margin-left: 20px;
+  }
+}
+</style>