mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/detached' into dev
This commit is contained in:
		
							
								
								
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							| @@ -5,7 +5,7 @@ | |||||||
|  |  | ||||||
|   // Disable the default formatter, use eslint instead |   // Disable the default formatter, use eslint instead | ||||||
|   "prettier.enable": false, |   "prettier.enable": false, | ||||||
|   "editor.formatOnSave": true, |   "editor.formatOnSave": false, | ||||||
|  |  | ||||||
|   // Auto fix |   // Auto fix | ||||||
|   "editor.codeActionsOnSave": { |   "editor.codeActionsOnSave": { | ||||||
|   | |||||||
| @@ -25,14 +25,15 @@ const props = defineProps({ | |||||||
|   } |   } | ||||||
| }) | }) | ||||||
|  |  | ||||||
| const dictItem = computed(() => { | const dictItem = computed((): LabelValueState => { | ||||||
|   try { |   try { | ||||||
|     return props.dict.find((d) => d.value === String(props.value) || d.value === Number(props.value)) |     return props.dict.find( | ||||||
|  |       (d) => d.value === String(props.value) || d.value === Number(props.value) | ||||||
|  |     ) || { label: '', value: '' } | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|     return [] |     return { label: '', value: '' } | ||||||
|   } |   } | ||||||
| } | }) | ||||||
| ) |  | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| <style lang="scss" scoped></style> | <style lang="scss" scoped></style> | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ | |||||||
| import HeaderRightBar from '../HeaderRightBar/index.vue' | import HeaderRightBar from '../HeaderRightBar/index.vue' | ||||||
| import MenuFoldBtn from '../MenuFoldBtn.vue' | import MenuFoldBtn from '../MenuFoldBtn.vue' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Header' }) | defineOptions({ name: 'LayoutHeader' }) | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| <style lang="scss" scoped> | <style lang="scss" scoped> | ||||||
| @@ -31,6 +31,7 @@ defineOptions({ name: 'Header' }) | |||||||
| .header { | .header { | ||||||
|   display: flex; |   display: flex; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|  |  | ||||||
|   .header-right { |   .header-right { | ||||||
|     flex: 1; |     flex: 1; | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import { useAppStore, useTabsStore } from '@/stores' | import { useAppStore, useTabsStore } from '@/stores' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Main' }) | defineOptions({ name: 'LayoutMain' }) | ||||||
| const appStore = useAppStore() | const appStore = useAppStore() | ||||||
| const tabsStore = useTabsStore() | const tabsStore = useTabsStore() | ||||||
| </script> | </script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 秋帆
					秋帆