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
feature(dao-svg): add svg #192
Conversation
由于这个问题,本来周一要解决,而且重要性比较高,请 @ZhuJingSi @jamiefang 尽快review并推进,如果需要其他同事帮助,请尽快involve |
examples/routers/svg.vue
Outdated
console.log(this.svgs); | ||
}, | ||
}; | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意文件格式,建议将编辑器添加editorconfig
update |
svg 需要文档么?以及设计师怎么添加图标需要在某处说明吧 |
需要! 文档 会 提 另一个 pr 的 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
和老的 dao-style 对比少了一个图标? |
svg-sprite-loader 升级没问题?DCE-UI 里的不能升级,不然有些图标就解析不了,不知什么原因 @vivian-xu @jamiefang |
@ZhuJingSi 我之前在 DCE-UI 里试过,目前是没问题 |
@vivian-xu 好像少了 color-icon_websphere 等几个图标,可以和以前 demo 站上的图标做对比 |
@cinderyx 不是所有图标都解析不了,是一部分 |
好 我看下 |
这个图标可能我之前并没有commit过。
… On 28 Jun 2017, at 11:18 AM, CIN ***@***.***> wrote:
@vivian-xu <https://github.com/vivian-xu> 好像少了 color-icon_websphere 这个图标
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#192 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGrTtYpEVbY1EswfC934U0NepwJvJ_epks5sIcYMgaJpZM4OFQjy>.
|
update |
@ZhuJingSi Vivian的更新是否可以满足你的要求,如果可以的话,请尽快的推进这个PR的发展。 |
src/components/dao-svg/svg.js
Outdated
@@ -1,4 +1,4 @@ | |||
// import all svg | |||
const requireAll = requireContext => requireContext.keys().map(requireContext); | |||
const requireAll = requireContext => requireContext.keys().forEach(requireContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么用 foreach 不用 map?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我不需要它返回一个新的数组给我啊。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
步骤一
请您按照规范确认这个PR的类型:
步骤二
完成以下内容的填写,您就可以顺利提交 Pull Request:
1. 填写Pull Reqeust主要针对的类型于下一行,选项有:bug/feature(特性)/enhancement(增强)/docs(文档)
feature
2. Pull Request的简要介绍(请填于下一行)
3. Pull Request针对问题的重现方式(没有请在下一行填“无”)
无
4. Pull Request可能涉及到的组件范围(没有请在下一行填“无”)
无