mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 04:59:48 +08:00
style: 高级搜索-年月日时间组件展示
--bug=1047840 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047840
This commit is contained in:
parent
4376d3bc91
commit
073ffd18c8
@ -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
|
||||
|
@ -132,6 +132,10 @@ export const CustomTypeMaps: Record<string, any> = {
|
||||
},
|
||||
DATE: {
|
||||
type: 'DATE_PICKER',
|
||||
propsKey: 'dataProps',
|
||||
props: {
|
||||
showTime: false,
|
||||
},
|
||||
},
|
||||
DATETIME: {
|
||||
type: 'DATE_PICKER',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user