Skip to content

Commit

Permalink
update:icon
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Mar 27, 2019
1 parent ba1254f commit d4f11ed
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 77 deletions.
7 changes: 6 additions & 1 deletion src/icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ export default {
}
};
</script>
```
```

#### TODO

- 图标内容
- 按需加载包过大问题
17 changes: 10 additions & 7 deletions src/icon/icon.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<template>
<!-- <i
:class="`wyaicon wyaicon-${type}`"
@click="$emit('click', $event)"
/> -->
<svg class="icon" aria-hidden="true">
<svg class="vc-icon" aria-hidden="true">
<use :xlink:href="`#icon-${type}`"/>
</svg>
</template>
<script>
import "./iconfont";
import '../style/index.scss';
export default {
name: "vc-icon",
Expand All @@ -27,4 +22,12 @@ export default {
}
};
</script>
<style></style>
<style>
.vc-icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
29 changes: 13 additions & 16 deletions src/icon/iconfont.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/icon/svg.js

Large diffs are not rendered by default.

52 changes: 0 additions & 52 deletions src/style/core/iconfont.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/style/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import "mixins/index";
@import "themes/index";
@import "core/iconfont";

0 comments on commit d4f11ed

Please sign in to comment.