Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added custom tag #15

Merged
merged 9 commits into from
May 26, 2020
Merged

added custom tag #15

merged 9 commits into from
May 26, 2020

Conversation

LIUSHANYIN
Copy link
Collaborator

No description provided.

@@ -10,21 +10,25 @@ interface IProps {
color?: string;
size?: string;
classPrefix?: string;
tag?: string;
tag?: 'a';
url?: string;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icons shouldn't have url and replace

}: IProps) {
const CustomTag = tag || 'a';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom icon tag should be 'i' by default

});
} else {
Object.assign(iconProps, {
target: '_blank'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these don't belong here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. I just think maybe one day we need the icon to be an 'a' tag. I will delete these codes.

@@ -10,21 +10,21 @@ interface IProps {
color?: string;
size?: string;
classPrefix?: string;
tag?: string;
tag?: 'i';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think tag name should be a string here. 'i' is just the default value, not enum

@mxdi9i7
Copy link
Owner

mxdi9i7 commented May 26, 2020

Missing story

@mxdi9i7 mxdi9i7 merged commit 0bbbedc into master May 26, 2020
@mxdi9i7 mxdi9i7 deleted the shanyin/customtag branch May 26, 2020 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants