fix: tree style
							parent
							
								
									14aef34e44
								
							
						
					
					
						commit
						14cd061671
					
				|  | @ -73,4 +73,10 @@ const getClass = computed(() => [ | ||||||
|     margin-left: 10px; |     margin-left: 10px; | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | html[data-theme="dark"] { | ||||||
|  |   .@{prefix-cls} { | ||||||
|  |     color: rgb(255 255 255 85%); | ||||||
|  |   } | ||||||
|  | } | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| <script lang="ts" setup> | <script lang="ts" setup> | ||||||
| import { computed, ref, useSlots, watch } from 'vue' | import { computed, ref, useSlots, watch } from 'vue' | ||||||
| import { Dropdown, InputSearch, Menu, MenuDivider, MenuItem } from 'ant-design-vue' | import { Dropdown, InputSearch, Menu, MenuDivider } from 'ant-design-vue' | ||||||
| import { useDebounceFn } from '@vueuse/core' | import { useDebounceFn } from '@vueuse/core' | ||||||
| import { ToolbarEnum } from '../types/tree' | import { ToolbarEnum } from '../types/tree' | ||||||
| import { Icon } from '@/components/Icon' | import { Icon } from '@/components/Icon' | ||||||
|  | @ -169,9 +169,9 @@ watch( | ||||||
|         <template #overlay> |         <template #overlay> | ||||||
|           <Menu @click="handleMenuClick"> |           <Menu @click="handleMenuClick"> | ||||||
|             <template v-for="item in toolbarList" :key="item.value"> |             <template v-for="item in toolbarList" :key="item.value"> | ||||||
|               <MenuItem v-bind="{ key: item.value }"> |               <Menu.Item v-bind="{ key: item.value }"> | ||||||
|                 {{ item.label }} |                 {{ item.label }} | ||||||
|               </MenuItem> |               </Menu.Item> | ||||||
|               <MenuDivider v-if="item.divider" /> |               <MenuDivider v-if="item.divider" /> | ||||||
|             </template> |             </template> | ||||||
|           </Menu> |           </Menu> | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| @tree-prefix-cls: ~"@{namespace}-tree"; | @tree-prefix-cls: ~"@{namespace}-tree"; | ||||||
| 
 | 
 | ||||||
| .@{tree-prefix-cls} { | .@{tree-prefix-cls} { | ||||||
|   background-color: @component-background; |   // background-color: @component-background; | ||||||
| 
 | 
 | ||||||
|   .ant-tree-node-content-wrapper { |   .ant-tree-node-content-wrapper { | ||||||
|     position: relative; |     position: relative; | ||||||
|  | @ -50,3 +50,12 @@ | ||||||
|     border-bottom: 1px solid @border-color-base; |     border-bottom: 1px solid @border-color-base; | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | html[data-theme="dark"] { | ||||||
|  |   .@{tree-prefix-cls} { | ||||||
|  |     &-header { | ||||||
|  |       background-color: #1f1f1f; | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -26,7 +26,7 @@ onMounted(() => { | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|   <div class="m-4 mr-0 overflow-hidden bg-white"> |   <div class="m-4 mr-0 overflow-hidden"> | ||||||
|     <BasicTree |     <BasicTree | ||||||
|       title="部门列表" |       title="部门列表" | ||||||
|       toolbar |       toolbar | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xingyu
						xingyu