airyland / vux-loader

hack into vue-loader
64 stars 38 forks source link

能不能加个可以自定义 svg 文件位置的环境变量 ?或者别的什么方式 #53

Closed 285858315 closed 6 years ago

285858315 commented 6 years ago

现在的图标文件都放在 node_modules/vux/src/icons 下,有点别扭。

airyland commented 6 years ago

额,项目 icon 你就直接放项目下来引用,不需要用 vux 自带的 icons 吧。。

285858315 commented 6 years ago

是用 type 不指定路径么?

airyland commented 6 years ago

对于默认 x-icon,vux-loader 会根据 type 找到图标路径。

285858315 commented 6 years ago

可以 了。

285858315 commented 6 years ago

多谢。

xieyihao commented 6 years ago

请问icon x-icon组件里的图标不够用,怎样引入自定义的svg呢? issues、segmentfault未找到使用例子,文档是仅是一句描述,没能理解怎么使用.

组件来自于 Ionicons(MIT),你可以在网站上面看到所有的图标。 该组件无法在script引入的方式中使用,需要自行拷贝 svg 资源。