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

Link: add link component #15052

Merged
merged 13 commits into from
Apr 19, 2019
Merged

Link: add link component #15052

merged 13 commits into from
Apr 19, 2019

Conversation

iamkun
Copy link
Member

@iamkun iamkun commented Apr 10, 2019

预览地址 https://deploy-preview-15052--element.netlify.com/#/zh-CN/component/link

等中文文档 review 之后 再翻译英文文档

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@element-bot
Copy link
Member

element-bot commented Apr 10, 2019

Deploy preview for element ready!

Built with commit 1b5c236

https://deploy-preview-15052--element.netlify.com

@iamkun iamkun changed the title Link component [WIP] Link: add link component Apr 10, 2019
@wacky6
Copy link
Contributor

wacky6 commented Apr 12, 2019

原生属性我觉得还是应该传递一下。reltargetnametabindexdownload 这些还是比较常用的。

click 事件要不要 preventDefault ? isHover 纯 css 就可以。

如果作为统一风格 / 替代原生 <a href> 的方案,个人觉得 functional component 更合适一点。

@island205 island205 added the kiwi label Apr 12, 2019
}, true);
vm.$el.click();

setTimeout(_ => {
Copy link
Contributor

Choose a reason for hiding this comment

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

使用 async 函数。

<template v-if="$slots.icon"><slot v-if="$slots.icon" name="icon"></slot></template>

<!-- underline -->
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer ::after

@iamkun
Copy link
Member Author

iamkun commented Apr 19, 2019

review 都已经修改, functional component 讨论下来暂时先不做 看看用户反馈

@ziyoung ziyoung added this to the 2.8.0 milestone Apr 19, 2019
@ziyoung ziyoung changed the title [WIP] Link: add link component Link: add link component Apr 19, 2019
@ziyoung ziyoung merged commit 5ecf4c2 into ElemeFE:dev Apr 19, 2019
@iamkun iamkun deleted the feat/link branch May 6, 2019 07:02
FAKER-A pushed a commit to FAKER-A/element that referenced this pull request May 7, 2019
weisiren168 pushed a commit to weisiren168/element that referenced this pull request Jun 20, 2019
lzq4047 pushed a commit to lzq4047/element that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants