style: 高级搜索-数字类型的通过率加上单位
--bug=1047800 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047800
This commit is contained in:
parent
83ca47c242
commit
a98f8bc20f
|
@ -401,6 +401,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -368,6 +368,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -88,7 +88,11 @@
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
:placeholder="t('common.pleaseInput')"
|
:placeholder="t('common.pleaseInput')"
|
||||||
v-bind="item.numberProps"
|
v-bind="item.numberProps"
|
||||||
/>
|
>
|
||||||
|
<template v-if="item.numberProps?.suffix" #suffix>
|
||||||
|
{{ item.numberProps.suffix }}
|
||||||
|
</template>
|
||||||
|
</a-input-number>
|
||||||
<MsTagsInput
|
<MsTagsInput
|
||||||
v-else-if="item.type === FilterType.TAGS_INPUT&& ![OperatorEnum.COUNT_LT, OperatorEnum.COUNT_GT].includes(item.operator as OperatorEnum)"
|
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"
|
v-model:model-value="item.value"
|
||||||
|
|
|
@ -31,6 +31,7 @@ export interface NumberProps {
|
||||||
mode: 'embed' | 'button';
|
mode: 'embed' | 'button';
|
||||||
precision: number;
|
precision: number;
|
||||||
step: number;
|
step: number;
|
||||||
|
suffix: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FilterFormItem {
|
export interface FilterFormItem {
|
||||||
|
|
|
@ -759,6 +759,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1027,6 +1027,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -671,6 +671,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -663,6 +663,7 @@
|
||||||
type: FilterType.NUMBER,
|
type: FilterType.NUMBER,
|
||||||
numberProps: {
|
numberProps: {
|
||||||
min: 0,
|
min: 0,
|
||||||
|
suffix: '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue