Commit 0e6c187008dd7637641f054ad893ae573baff36e
1 parent
c8eb95b9
style
Showing
3 changed files
with
8 additions
and
6 deletions
yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
| 1 | -import { DescriptionsSchema } from '@/types/descriptions' | |
| 2 | -import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict' | |
| 3 | 1 | import { reactive } from 'vue' |
| 2 | + | |
| 4 | 3 | import { |
| 5 | 4 | FormItemRenderOptions, |
| 6 | 5 | VxeColumnPropTypes, |
| ... | ... | @@ -9,10 +8,12 @@ import { |
| 9 | 8 | VxeTableDefines |
| 10 | 9 | } from 'vxe-table' |
| 11 | 10 | import { eachTree } from 'xe-utils' |
| 11 | +import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict' | |
| 12 | 12 | import { useI18n } from '@/hooks/web/useI18n' |
| 13 | -import { VxeTableColumn } from '@/types/table' | |
| 14 | 13 | import { FormSchema } from '@/types/form' |
| 14 | +import { VxeTableColumn } from '@/types/table' | |
| 15 | 15 | import { ComponentOptions } from '@/types/components' |
| 16 | +import { DescriptionsSchema } from '@/types/descriptions' | |
| 16 | 17 | |
| 17 | 18 | export type VxeCrudSchema = { |
| 18 | 19 | primaryKey?: string // 主键ID |
| ... | ... | @@ -146,11 +147,11 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { |
| 146 | 147 | } |
| 147 | 148 | const searchSchemaItem = { |
| 148 | 149 | // 默认为 input |
| 149 | - folding: searchSchema.length > 2, | |
| 150 | + folding: searchSchema.length > 3, | |
| 150 | 151 | itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender, |
| 151 | 152 | field: schemaItem.field, |
| 152 | 153 | title: schemaItem.search?.title || schemaItem.title, |
| 153 | - span: 8 | |
| 154 | + span: 6 | |
| 154 | 155 | } |
| 155 | 156 | |
| 156 | 157 | searchSchema.push(searchSchemaItem) | ... | ... |
yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/dataTimePicker.tsx
| ... | ... | @@ -13,7 +13,7 @@ VXETable.renderer.add('XDataTimePicker', { |
| 13 | 13 | <ElDatePicker |
| 14 | 14 | v-model={data[field]} |
| 15 | 15 | type={content ? (content as any) : 'datetimerange'} |
| 16 | - style="maxWidth: 330px" | |
| 16 | + style="maxWidth: 300px" | |
| 17 | 17 | value-format="YYYY-MM-DD HH:mm:ss" |
| 18 | 18 | range-separator="-" |
| 19 | 19 | start-placeholder={t('common.startTimeText')} | ... | ... |
yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts