mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
feat(arco/Link): add icon slot
This commit is contained in:
parent
e2cbe2513b
commit
a27da9a1f1
@ -44,6 +44,9 @@ export const Link = implementRuntimeComponent({
|
||||
content: {
|
||||
slotProps: Type.Object({}),
|
||||
},
|
||||
icon: {
|
||||
slotProps: Type.Object({}),
|
||||
},
|
||||
},
|
||||
styleSlots: ['content'],
|
||||
events: ['onClick'],
|
||||
@ -58,6 +61,7 @@ export const Link = implementRuntimeComponent({
|
||||
ref={elementRef}
|
||||
status={statusMap[status]}
|
||||
className={css(customStyle?.content)}
|
||||
icon={slotsElements.icon?.({})}
|
||||
onClick={() => {
|
||||
callbackMap?.onClick?.();
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user