mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
fix(react): updating icon type and add caret to internal icons (#20216)
This commit is contained in:
@ -11,10 +11,10 @@ interface IonIconProps {
|
|||||||
ariaLabel?: string;
|
ariaLabel?: string;
|
||||||
color?: string;
|
color?: string;
|
||||||
flipRtl?: boolean;
|
flipRtl?: boolean;
|
||||||
icon?: { ios: string; md: string; };
|
icon?: string;
|
||||||
ios?: { ios: string; md: string; };
|
ios?: string;
|
||||||
lazy?: boolean;
|
lazy?: boolean;
|
||||||
md?: { ios: string; md: string; };
|
md?: string;
|
||||||
mode?: 'ios' | 'md';
|
mode?: 'ios' | 'md';
|
||||||
name?: string;
|
name?: string;
|
||||||
size?: string;
|
size?: string;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import { defineCustomElements } from '@ionic/core/loader';
|
import { defineCustomElements } from '@ionic/core/loader';
|
||||||
import { addIcons } from 'ionicons';
|
import { addIcons } from 'ionicons';
|
||||||
import { arrowBackSharp, chevronBack, chevronForward, closeCircle, closeSharp, menuOutline, menuSharp, reorderThreeOutline, reorderTwoSharp, searchOutline, searchSharp } from 'ionicons/icons';
|
import { arrowBackSharp, caretBackSharp, chevronBack, chevronForward, closeCircle, closeSharp, menuOutline, menuSharp, reorderThreeOutline, reorderTwoSharp, searchOutline, searchSharp } from 'ionicons/icons';
|
||||||
export { AlertButton, AlertInput, setupConfig } from '@ionic/core';
|
export { AlertButton, AlertInput, setupConfig } from '@ionic/core';
|
||||||
export * from './proxies';
|
export * from './proxies';
|
||||||
|
|
||||||
@ -31,6 +31,7 @@ export { RouterDirection } from './hrefprops';
|
|||||||
// Icons that are used by internal components
|
// Icons that are used by internal components
|
||||||
addIcons({
|
addIcons({
|
||||||
'arrow-back-sharp': arrowBackSharp,
|
'arrow-back-sharp': arrowBackSharp,
|
||||||
|
'caret-back-sharp': caretBackSharp,
|
||||||
'chevron-back': chevronBack,
|
'chevron-back': chevronBack,
|
||||||
'chevron-forward': chevronForward,
|
'chevron-forward': chevronForward,
|
||||||
'close-circle': closeCircle,
|
'close-circle': closeCircle,
|
||||||
|
Reference in New Issue
Block a user