From 6b96269aac8d1999813f920c9131b1ed35695210 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 16 Oct 2024 18:16:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E5=8C=BA=E9=97=B4=E5=8A=9F=E8=83=BD=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/ConditionDefaultConfiguration.vue | 43 +- .../custom-component/v-query/NumberInput.vue | 95 ++++ .../v-query/QueryConditionConfiguration.vue | 405 +++++++++++++++++- .../custom-component/v-query/StyleInject.vue | 4 + 4 files changed, 524 insertions(+), 23 deletions(-) create mode 100644 core/core-frontend/src/custom-component/v-query/NumberInput.vue diff --git a/core/core-frontend/src/custom-component/v-query/ConditionDefaultConfiguration.vue b/core/core-frontend/src/custom-component/v-query/ConditionDefaultConfiguration.vue index 810cf0c467..2460beb0e3 100644 --- a/core/core-frontend/src/custom-component/v-query/ConditionDefaultConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/ConditionDefaultConfiguration.vue @@ -320,6 +320,13 @@ defineExpose({ mult, single }) +const handleInputStart = value => { + curComponent.value.defaultNumValueStart = value.replace(/[^\d.]/g, '') +} + +const handleInputEnd = value => { + curComponent.value.defaultNumValueEnd = value.replace(/[^\d.]/g, '') +} + + + + + 数值 + 最小值 + 最大值 + + + + + diff --git a/core/core-frontend/src/custom-component/v-query/StyleInject.vue b/core/core-frontend/src/custom-component/v-query/StyleInject.vue index e879532c6a..032a5b275a 100644 --- a/core/core-frontend/src/custom-component/v-query/StyleInject.vue +++ b/core/core-frontend/src/custom-component/v-query/StyleInject.vue @@ -3,6 +3,7 @@ import { provide, PropType } from 'vue' import Select from './Select.vue' import Time from './Time.vue' import TextSearch from './TextSearch.vue' +import NumberInput from './NumberInput.vue' import Tree from './Tree.vue' interface SelectConfig { @@ -56,6 +57,9 @@ const filterTypeCom = (displayType: string) => { if (displayType === '8') { return TextSearch } + if (displayType === '22') { + return NumberInput + } return ['1', '7'].includes(displayType) ? Time : displayType === '9' ? Tree : Select } provide('$custom-style-filter', props.customStyle)