We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87ad915 commit 707e1a4Copy full SHA for 707e1a4
components/icon/IconFont.jsx
@@ -26,8 +26,9 @@ export default function create (options) {
26
const Iconfont = {
27
functional: true,
28
name: 'AIconfont',
29
+ props: Icon.props,
30
render (h, context) {
- const { props, slots, listeners } = context
31
+ const { props, slots, listeners, data } = context
32
const { type, ...restProps } = props
33
const slotsMap = slots()
34
const children = slotsMap.default
@@ -40,9 +41,7 @@ export default function create (options) {
40
41
content = children
42
}
43
return (
- <Icon
44
- {...{ props: restProps, on: listeners }}
45
- >
+ <Icon {...{ ...data, props: restProps, on: listeners }}>
46
{content}
47
</Icon>
48
0 commit comments