|
49 | 49 | > |
50 | 50 | <div class="flex"> |
51 | 51 | <AppIcon iconName="app-workspace"></AppIcon> |
52 | | - <span class="ml-4"> {{ space.name }}</span> |
| 52 | + <span class="ml-4 ellipsis" :title="space.name"> {{ space.name }}</span> |
53 | 53 | </div> |
54 | 54 | </el-checkbox> |
55 | 55 | </el-checkbox-group> |
|
69 | 69 | <div class="flex-between"> |
70 | 70 | <div class="flex align-center"> |
71 | 71 | <AppIcon iconName="app-workspace"></AppIcon> |
72 | | - <span class="ml-4 lighter">{{ ele.name }}</span> |
| 72 | + <span class="ml-4 lighter ellipsis" :title="ele.name">{{ ele.name }}</span> |
73 | 73 | </div> |
74 | 74 | <el-button link> |
75 | 75 | <el-icon @click="clearWorkspace(ele)" :size="18"> |
76 | | - <Close/> |
| 76 | + <Close /> |
77 | 77 | </el-icon> |
78 | 78 | </el-button> |
79 | 79 | </div> |
|
89 | 89 | </template> |
90 | 90 |
|
91 | 91 | <script lang="ts" setup> |
92 | | -import {ref, computed} from 'vue' |
93 | | -import type {CheckboxValueType} from 'element-plus' |
| 92 | +import { ref, computed } from 'vue' |
| 93 | +import type { CheckboxValueType } from 'element-plus' |
94 | 94 | import authorizationApi from '@/api/system-shared/authorization' |
95 | 95 | import workspaceApi from '@/api/workspace/workspace' |
96 | | -import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts"; |
| 96 | +import { loadPermissionApi } from '@/utils/dynamics-api/permission-api.ts' |
97 | 97 |
|
98 | 98 | const checkAll = ref(false) |
99 | 99 | const isIndeterminate = ref(true) |
@@ -122,7 +122,7 @@ const handleCheckedWorkspaceChange = (value: CheckboxValueType[]) => { |
122 | 122 | isIndeterminate.value = checkedCount > 0 && checkedCount < workspace.value.length |
123 | 123 | } |
124 | 124 |
|
125 | | -const open = async ({id}: any, type = 'Knowledge') => { |
| 125 | +const open = async ({ id }: any, type = 'Knowledge') => { |
126 | 126 | knowledge_id = id |
127 | 127 | loading.value = true |
128 | 128 | currentType = type |
@@ -161,5 +161,4 @@ defineExpose({ |
161 | 161 | open, |
162 | 162 | }) |
163 | 163 | </script> |
164 | | -<style lang="scss"> |
165 | | -</style> |
| 164 | +<style lang="scss"></style> |
0 commit comments