Conflicts:
	src/api/system/area/index.ts
	src/views/system/area/index.vue
pull/50/MERGE
YunaiV 2023-03-25 00:46:42 +08:00
commit 4abe40d413
3 changed files with 26 additions and 3 deletions

View File

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

View File

@ -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>

View File

@ -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)