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)