Commit 35c3a195 authored by zhangwenshuai's avatar zhangwenshuai

update rate

parent 98f42885
...@@ -3,6 +3,7 @@ import { Rate } from 'antd'; ...@@ -3,6 +3,7 @@ import { Rate } from 'antd';
import { antiAssign } from '../../../../utils/utils'; import { antiAssign } from '../../../../utils/utils';
import s from './index.less'; import s from './index.less';
import { ApolloRateProps } from '../editInterface'; import { ApolloRateProps } from '../editInterface';
import { onBlurFn } from '../onBlurFn';
export const ApolloRate = (props: ApolloRateProps) => { export const ApolloRate = (props: ApolloRateProps) => {
const { onChange } = props; const { onChange } = props;
...@@ -14,10 +15,14 @@ export const ApolloRate = (props: ApolloRateProps) => { ...@@ -14,10 +15,14 @@ export const ApolloRate = (props: ApolloRateProps) => {
'maxPopHeight', 'maxPopHeight',
'getCalendarContainer', 'getCalendarContainer',
'getCalendarContainer', 'getCalendarContainer',
'origin',
]); ]);
const changeValue = (value) => { const changeValue = (value) => {
if (typeof onChange === 'function') { if (typeof onChange === 'function') {
if (typeof onBlurFn === 'function') {
onBlurFn({ ...props, value });
}
onChange(value); onChange(value);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment