style: 高级搜索-年月日时间组件展示

--bug=1047840 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047840
This commit is contained in:
teukkk 2024-10-22 19:17:26 +08:00 committed by Craftsman
parent 4376d3bc91
commit 073ffd18c8
3 changed files with 10 additions and 0 deletions

View File

@ -142,6 +142,7 @@
show-time
value-format="timestamp"
:disabled="isValueDisabled(item)"
v-bind="item.dataProps"
/>
<a-range-picker
v-else-if="item.type === FilterType.DATE_PICKER && item.operator === OperatorEnum.BETWEEN"
@ -150,6 +151,7 @@
value-format="timestamp"
:separator="t('common.to')"
:disabled="isValueDisabled(item)"
v-bind="item.dataProps"
/>
<a-input
v-else

View File

@ -132,6 +132,10 @@ export const CustomTypeMaps: Record<string, any> = {
},
DATE: {
type: 'DATE_PICKER',
propsKey: 'dataProps',
props: {
showTime: false,
},
},
DATETIME: {
type: 'DATE_PICKER',

View File

@ -33,6 +33,9 @@ export interface NumberProps {
step: number;
suffix: string;
}
export interface DataProps {
showTime: boolean;
}
export interface FilterFormItem {
dataIndex?: string; // 第一列下拉的value
@ -43,6 +46,7 @@ export interface FilterFormItem {
customField?: boolean; // 是否是自定义字段
customFieldType?: string; // 自定义字段的类型
cascaderOptions?: CascaderOption[]; // 级联选择的选项
dataProps?: Partial<DataProps>;
numberProps?: Partial<NumberProps>;
selectProps?: Partial<MsSearchSelectProps>; // select的props, 参考 MsSelect
cascaderProps?: Partial<MsCascaderProps>; // cascader的props, 参考 MsCascader