fix: todo

This commit is contained in:
xingyu 2022-11-28 22:38:24 +08:00
parent 26fd35e31d
commit 227e11f9c7
6 changed files with 14 additions and 10 deletions

View File

@ -12,8 +12,8 @@ VXETable.renderer.add('XDataTimePicker', {
return (
<ElDatePicker
v-model={data[field]}
style="width: 100%"
type={content ? (content as any) : 'datetimerange'}
style="maxWidth: 300px"
value-format="YYYY-MM-DD HH:mm:ss"
range-separator="-"
start-placeholder={t('common.startTimeText')}

View File

@ -39,10 +39,12 @@ $vxe-table-row-striped-background-color: #1d1d1d;
$vxe-table-row-hover-background-color: #1d1e1f;
$vxe-table-row-hover-striped-background-color: #1e1e1e;
$vxe-table-footer-background-color: #1d1e1f;
$vxe-table-row-current-background-color: #9e8787;
$vxe-table-column-current-background-color: #9e8787;
$vxe-table-column-hover-background-color: #9e8787;
$vxe-table-row-hover-current-background-color: #9e8787;
$vxe-table-row-current-background-color: #302d2d;
$vxe-table-column-current-background-color: #302d2d;
$vxe-table-column-hover-background-color: #302d2d;
$vxe-table-row-hover-current-background-color: #302d2d;
$vxe-table-row-checkbox-checked-background-color: #3e3c37 !default;
$vxe-table-row-hover-checkbox-checked-background-color: #615a4a !default;
$vxe-table-menu-background-color: #1d1e1f;
$vxe-table-border-width: 1px !default;
$vxe-table-border-color: #4c4d4f !default;

View File

@ -28,7 +28,6 @@
<XButton preIcon="ep:refresh-right" :title="t('common.reset')" @click="resetQuery()" />
</el-form-item>
</el-form>
<!-- TODO 星语暗黑模式选中后样式有点不太好看 -->
<vxe-table
ref="xTable"
:data="dbTableList"

View File

@ -91,5 +91,4 @@ const crudSchemas = reactive<VxeCrudSchema>({
}
]
})
// TODO 星语:“创建时间”的筛选,超过 table 的边框
export const { allSchemas } = useVxeCrudSchemas(crudSchemas)

View File

@ -54,8 +54,7 @@
@click="exportList('用户数据.xls')"
/>
</template>
<!-- TODO @星语貌似没生效 -->
<template #status="{ row }">
<template #status_default="{ row }">
<el-switch
v-model="row.status"
:active-value="0"

View File

@ -70,7 +70,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
field: 'status',
dictType: DICT_TYPE.COMMON_STATUS,
dictClass: 'number',
isSearch: true
isSearch: true,
table: {
slots: {
default: 'status_default'
}
}
},
{
title: '最后登录时间',