Skip to content

Commit

Permalink
fix: 修复 icons 工具方法集中的 createElement() 方法中的一次设置多个样式的问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohaixiao committed Aug 23, 2023
1 parent 5807b16 commit 182329d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion anchors.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion anchors.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chapters.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chapters.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/outline.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/outline.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion drawer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion drawer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion outline.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion outline.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yaohaixiao/outline.js",
"version": "3.18.0",
"version": "3.18.1",
"description": "outline.js - 自动生成文章导读(Table of Contents)导航的 JavaScript 工具。",
"main": "outline.min.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/icons/createElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const createElement = (name, options = {}) => {
$svg.setAttribute('class', 'outline-icon__svg')
$svg.setAttribute('width', '200')
$svg.setAttribute('height', '200')
$svg.style = cssRules
$svg.style.cssText = cssRules
}

return $icon
Expand Down
2 changes: 1 addition & 1 deletion toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion toolbar.min.js.map

Large diffs are not rendered by default.

0 comments on commit 182329d

Please sign in to comment.