소스 검색

Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev

 Conflicts:
	src/api/system/area/index.ts
	src/views/system/area/index.vue
YunaiV 2 년 전
부모
커밋
4abe40d413
3개의 변경된 파일26개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/components/XTable/src/XTable.vue
  2. 2 2
      src/layout/components/UserInfo/src/UserInfo.vue
  3. 23 0
      src/views/system/area/area.data.ts

+ 1 - 1
src/components/XTable/src/XTable.vue

@@ -128,7 +128,7 @@ const getColumnsConfig = (options: XTableProps) => {
     proxyForm = true
     options.formConfig = {
       enabled: true,
-      titleWidth: 180,
+      titleWidth: 110,
       titleAlign: 'right',
       items: allSchemas.searchSchema
     }

+ 2 - 2
src/layout/components/UserInfo/src/UserInfo.vue

@@ -66,9 +66,9 @@ const toDocument = () => {
           <Icon icon="ep:menu" />
           <div @click="toDocument">{{ t('common.document') }}</div>
         </ElDropdownItem>
-        <ElDropdownItem divided>
+        <ElDropdownItem divided @click="loginOut">
           <Icon icon="ep:switch-button" />
-          <div @click="loginOut">{{ t('common.loginOut') }}</div>
+          <div>{{ t('common.loginOut') }}</div>
         </ElDropdownItem>
       </ElDropdownMenu>
     </template>

+ 23 - 0
src/views/system/area/area.data.ts

@@ -0,0 +1,23 @@
+import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
+
+// CrudSchema
+const crudSchemas = reactive<VxeCrudSchema>({
+  primaryKey: 'id',
+  primaryType: null,
+  action: false,
+  columns: [
+    {
+      title: '编号',
+      field: 'id',
+      table: {
+        treeNode: true,
+        align: 'left'
+      }
+    },
+    {
+      title: '名字',
+      field: 'name'
+    }
+  ]
+})
+export const { allSchemas } = useVxeCrudSchemas(crudSchemas)