Skip to content

Commit

Permalink
fix(theme-editor): could not resolve "@vicons/ionicons5" error, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Aug 29, 2022
1 parent e5d3492 commit 540ceae
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 210 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## NEXT_VERSION

### Fixes

- Fix could not resolve "@vicons/ionicons5" error, closes [#3616](https://github.com/tusen-ai/naive-ui/issues/3616).

## 2.33.0

### Breaking Changes
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## NEXT_VERSION

### Fixes

- 修复 Could not resolve "@vicons/ionicons5" 异常,关闭 [#3616](https://github.com/tusen-ai/naive-ui/issues/3616)

## 2.33.0

### Breaking Changes
Expand Down
16 changes: 16 additions & 0 deletions src/theme-editor/src/MaximizeIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { h, defineComponent } from 'vue'

export const MaximizeIcon = defineComponent({
render () {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<g fill="none">
<path
d="M8.5 2a.5.5 0 0 0 0 1h3.793L3 12.293V8.5a.5.5 0 0 0-1 0v4.9a.6.6 0 0 0 .6.6h4.9a.5.5 0 0 0 0-1H3.707L13 3.707V7.5a.5.5 0 0 0 1 0V2.6a.6.6 0 0 0-.6-.6H8.5z"
fill="currentColor"
></path>
</g>
</svg>
)
}
})
18 changes: 18 additions & 0 deletions src/theme-editor/src/MinimizeIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { h, defineComponent } from 'vue'

export const MinimizeIcon = defineComponent({
render () {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path
d="M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18H4z"
fill="currentColor"
></path>
<path
d="M30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586L30 3.416z"
fill="currentColor"
></path>
</svg>
)
}
})
Loading

0 comments on commit 540ceae

Please sign in to comment.