提交 07902eac 编写于 作者: D DCloud_LXH

fix: slider click display NaN

上级 62dee3f8
......@@ -6,6 +6,7 @@ import {
CustomEventTrigger,
useCustomEvent,
EmitEvent,
withWebEvent,
} from '../../helpers/useEvent'
import { UniFormCtx, uniFormKey } from '../form'
......@@ -95,7 +96,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
const { setBgColor, setBlockBg, setActiveColor, setBlockStyle } = state
return (
<uni-slider ref={sliderRef} onClick={_onClick}>
<uni-slider ref={sliderRef} onClick={withWebEvent(_onClick)}>
<div class="uni-slider-wrapper">
<div class="uni-slider-tap-area">
<div style={setBgColor.value} class="uni-slider-handle-wrapper">
......
......@@ -6140,7 +6140,7 @@ var index$e = /* @__PURE__ */ defineBuiltInComponent({
} = state;
return vue.createVNode("uni-slider", {
"ref": sliderRef,
"onClick": _onClick
"onClick": withWebEvent(_onClick)
}, [vue.createVNode("div", {
"class": "uni-slider-wrapper"
}, [vue.createVNode("div", {
......
......@@ -8356,7 +8356,7 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({
} = state2;
return createVNode("uni-slider", {
"ref": sliderRef,
"onClick": _onClick
"onClick": withWebEvent(_onClick)
}, [createVNode("div", {
"class": "uni-slider-wrapper"
}, [createVNode("div", {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册