From 35c3a1951e76a3d3267168b402da2dd8bbbd7a3c Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Tue, 4 Aug 2020 17:57:13 +0800 Subject: [PATCH] update rate --- components/apolloTable/component/base/edit/rate/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/apolloTable/component/base/edit/rate/index.tsx b/components/apolloTable/component/base/edit/rate/index.tsx index 50c0012..99eb39a 100644 --- a/components/apolloTable/component/base/edit/rate/index.tsx +++ b/components/apolloTable/component/base/edit/rate/index.tsx @@ -3,6 +3,7 @@ import { Rate } from 'antd'; import { antiAssign } from '../../../../utils/utils'; import s from './index.less'; import { ApolloRateProps } from '../editInterface'; +import { onBlurFn } from '../onBlurFn'; export const ApolloRate = (props: ApolloRateProps) => { const { onChange } = props; @@ -14,10 +15,14 @@ export const ApolloRate = (props: ApolloRateProps) => { 'maxPopHeight', 'getCalendarContainer', 'getCalendarContainer', + 'origin', ]); const changeValue = (value) => { if (typeof onChange === 'function') { + if (typeof onBlurFn === 'function') { + onBlurFn({ ...props, value }); + } onChange(value); } }; -- 2.21.0