Comparing version 2.8.0 to 2.8.1
@@ -16,5 +16,3 @@ import React from 'react'; | ||
className?: string; | ||
character?: ({ index: number }: { | ||
index: any; | ||
}) => React.ReactNode | React.ReactNode; | ||
character?: (props: StarProps) => React.ReactNode | React.ReactNode; | ||
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; | ||
@@ -21,0 +19,0 @@ tabIndex?: number; |
@@ -10,5 +10,3 @@ import React from 'react'; | ||
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void; | ||
character?: ({ index: number }: { | ||
index: any; | ||
}) => React.ReactNode | React.ReactNode; | ||
character?: (props: StarProps) => React.ReactNode | React.ReactNode; | ||
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; | ||
@@ -15,0 +13,0 @@ focused?: boolean; |
@@ -96,5 +96,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
value = _this$props5.value; | ||
var characterNode = typeof character === 'function' ? character({ | ||
index: index | ||
}) : character; | ||
var characterNode = typeof character === 'function' ? character(this.props) : character; | ||
var start = React.createElement("li", { | ||
@@ -101,0 +99,0 @@ className: this.getClassName() |
@@ -16,5 +16,3 @@ import React from 'react'; | ||
className?: string; | ||
character?: ({ index: number }: { | ||
index: any; | ||
}) => React.ReactNode | React.ReactNode; | ||
character?: (props: StarProps) => React.ReactNode | React.ReactNode; | ||
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; | ||
@@ -21,0 +19,0 @@ tabIndex?: number; |
@@ -10,5 +10,3 @@ import React from 'react'; | ||
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void; | ||
character?: ({ index: number }: { | ||
index: any; | ||
}) => React.ReactNode | React.ReactNode; | ||
character?: (props: StarProps) => React.ReactNode | React.ReactNode; | ||
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; | ||
@@ -15,0 +13,0 @@ focused?: boolean; |
@@ -108,5 +108,3 @@ "use strict"; | ||
value = _this$props5.value; | ||
var characterNode = typeof character === 'function' ? character({ | ||
index: index | ||
}) : character; | ||
var characterNode = typeof character === 'function' ? character(this.props) : character; | ||
@@ -113,0 +111,0 @@ var start = _react.default.createElement("li", { |
{ | ||
"name": "rc-rate", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "React Star Rate Component", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -147,3 +147,3 @@ # rc-rate | ||
<td>character</td> | ||
<td>ReactNode | ({index}) => ReactNode</td> | ||
<td>ReactNode | (props) => ReactNode</td> | ||
<td>ā </td> | ||
@@ -150,0 +150,0 @@ <td>The each character of rate</td> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47920
1148