style: 高级搜索-数字类型的通过率加上单位

--bug=1047800 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047800
This commit is contained in:
teukkk 2024-10-22 16:16:55 +08:00 committed by Craftsman
parent 83ca47c242
commit a98f8bc20f
8 changed files with 12 additions and 1 deletions

View File

@ -401,6 +401,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{

View File

@ -368,6 +368,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{

View File

@ -88,7 +88,11 @@
:max-length="255"
:placeholder="t('common.pleaseInput')"
v-bind="item.numberProps"
/>
>
<template v-if="item.numberProps?.suffix" #suffix>
{{ item.numberProps.suffix }}
</template>
</a-input-number>
<MsTagsInput
v-else-if="item.type === FilterType.TAGS_INPUT&& ![OperatorEnum.COUNT_LT, OperatorEnum.COUNT_GT].includes(item.operator as OperatorEnum)"
v-model:model-value="item.value"

View File

@ -31,6 +31,7 @@ export interface NumberProps {
mode: 'embed' | 'button';
precision: number;
step: number;
suffix: string;
}
export interface FilterFormItem {

View File

@ -759,6 +759,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{

View File

@ -1027,6 +1027,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{

View File

@ -671,6 +671,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{

View File

@ -663,6 +663,7 @@
type: FilterType.NUMBER,
numberProps: {
min: 0,
suffix: '%',
},
},
{