From b223552a0c4bc787ad251add025a93d77527ffbe Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 18 十二月 2021 23:36:28 +0800 Subject: [PATCH] 2021-12-18 --- src/mob/searchconfig/searchdragelement/card.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mob/searchconfig/searchdragelement/card.jsx b/src/mob/searchconfig/searchdragelement/card.jsx index 388db7c..7441342 100644 --- a/src/mob/searchconfig/searchdragelement/card.jsx +++ b/src/mob/searchconfig/searchdragelement/card.jsx @@ -1,7 +1,7 @@ import React from 'react' import { useDrag, useDrop } from 'react-dnd' import { Icon, Popover, Form } from 'antd' -import { Range } from 'antd-mobile' +import { Slider } from 'antd-mobile' import moment from 'moment' import asyncComponent from '@/utils/asyncComponent' @@ -72,9 +72,10 @@ <div className="am-list-line"> {card.labelShow !== 'false' ? <div className="am-input-label">{card.label}</div> : null} <div className="am-input-control"> - <Range + <Slider min={card.minValue || 0} max={card.maxValue || 20} + range={true} value={value} /> </div> -- Gitblit v1.8.0