Skip to content

Commit

Permalink
feat: 丰富图标,优化侧边栏切换主题按钮的下拉框定位
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Feb 7, 2023
1 parent 511cef6 commit 452ae1f
Show file tree
Hide file tree
Showing 24 changed files with 245 additions and 10 deletions.
Binary file modified dist/fonts/ch-icon.eot
Binary file not shown.
36 changes: 36 additions & 0 deletions dist/fonts/ch-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/fonts/ch-icon.ttf
Binary file not shown.
Binary file modified dist/fonts/ch-icon.woff
Binary file not shown.
Binary file modified dist/fonts/ch-icon.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/scripts/index-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ var basicConfig = {
'theme'
],
bubble: ['bold', 'italic', 'underline', 'strikethrough', 'sub', 'sup', 'quote', 'ruby', '|', 'size', 'color'], // array or false
sidebar: ['mobilePreview', 'copy'],
sidebar: ['mobilePreview', 'copy', 'theme'],
customMenu: {
customMenuAName: customMenuA,
customMenuBName: customMenuB,
Expand Down
4 changes: 3 additions & 1 deletion examples/scripts/multiple-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ var cherryConfig1 = {
'word',
'graph',
],
sidebar: ['mobilePreview', 'copy', 'theme'],
},
editor: {
height: '600px',
Expand Down Expand Up @@ -135,6 +136,7 @@ var cherryConfig2 = {
'bold',
'italic',
'strikethrough',
'color',
'|',
'list',
{ insert: ['image', 'audio', 'video', 'link', 'hr', 'br', 'code', 'formula', 'toc', 'table', 'pdf', 'word'] },
Expand All @@ -143,7 +145,7 @@ var cherryConfig2 = {
'settings',
'export'
],
sidebar: ['mobilePreview'],
sidebar: ['copy', 'mobilePreview', 'theme'],
},
editor: {
height: '600px',
Expand Down
14 changes: 13 additions & 1 deletion src/sass/ch-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
-moz-osx-font-smoothing: grayscale;
}

.ch-icon-create:before { content: "\EA5A" }
.ch-icon-download:before { content: "\EA5B" }
.ch-icon-edit:before { content: "\EA5C" }
.ch-icon-export:before { content: "\EA5D" }
.ch-icon-folder-open:before { content: "\EA5E" }
.ch-icon-folder:before { content: "\EA5F" }
.ch-icon-help:before { content: "\EA60" }
.ch-icon-pen-fill:before { content: "\EA61" }
.ch-icon-pen:before { content: "\EA62" }
.ch-icon-search:before { content: "\EA63" }
.ch-icon-tips:before { content: "\EA64" }
.ch-icon-list:before { content: "\EA03" }
.ch-icon-check:before { content: "\EA04" }
.ch-icon-square:before { content: "\EA09" }
Expand Down Expand Up @@ -83,4 +94,5 @@
.ch-icon-cherry-table-insert-right:before { content: "\EA56" }
.ch-icon-cherry-table-insert-top:before { content: "\EA57" }
.ch-icon-sort-s:before { content: "\EA58" }
.ch-icon-pinyin:before { content: "\EA59" }
.ch-icon-pinyin:before { content: "\EA59" }
.ch-icon-warn:before { content: "\EA65" }
4 changes: 2 additions & 2 deletions src/sass/cherry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

.cherry-insert-table-menu {
display: block;
position: absolute;
position: fixed;
// z-index: 100;
top: 40px;
left: 40px;
Expand Down Expand Up @@ -635,4 +635,4 @@
@import './themes/dark.scss';
@import './themes/light.scss';
@import './themes/green.scss';
@import './themes/red.scss';
@import './themes/red.scss';
24 changes: 24 additions & 0 deletions src/sass/icons/uEA5A-create.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/sass/icons/uEA5B-download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/sass/icons/uEA5C-edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions src/sass/icons/uEA5D-export.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/sass/icons/uEA5E-folder-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/sass/icons/uEA5F-folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/sass/icons/uEA60-help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/sass/icons/uEA61-pen-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/sass/icons/uEA62-pen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 452ae1f

Please sign in to comment.