Skip to content

Commit

Permalink
fix(site): fixed the official website style exception and icon parse …
Browse files Browse the repository at this point in the history
…error (#2105)
  • Loading branch information
zzcr authored Sep 12, 2024
1 parent ecc4f7d commit e20f70a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/sites/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"vue": "^3.4.31",
"vue-i18n": "^9.1.10",
"vue-router": "4.1.5",
"xlsx": "~0.18.5"
"xlsx": "^0.18.5"
},
"devDependencies": {
"@opentiny-internal/unplugin-virtual-template": "workspace:~",
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/src/views/components/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,11 @@ export default defineComponent({
display: flex;
flex-direction: column;
background: #fafafa;
padding: 32px 24px 48px;
padding: 26px 18px 42px;
.pc-demo {
flex: 1;
padding: 6px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/src/views/components/float-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default defineComponent({
.style-settings-title {
margin-bottom: 2px;
font-size: 4px;
font-size: 14px;
line-height: 32px;
font-weight: 600;
color: #000000;
Expand All @@ -349,7 +349,7 @@ export default defineComponent({
flex-direction: column;
.tiny-radio .tiny-radio__label {
font-size: 4px;
font-size: 14px;
line-height: 32px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-common/src/generateIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const generateId = (vnode, idMaps) => {
}
}

if (vnode?.children) {
if (Array.isArray(vnode?.children)) {
vnode.children.forEach((item) => {
generateId(item, idMaps)
})
Expand Down Expand Up @@ -48,7 +48,7 @@ const generateUrl = (vnode, idMaps) => {
}
})

if (vnode.children) {
if (Array.isArray(vnode?.children)) {
vnode.children.forEach((item) => {
generateUrl(item, idMaps)
})
Expand Down

0 comments on commit e20f70a

Please sign in to comment.