Skip to content

Commit

Permalink
feat: improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Apr 11, 2023
1 parent 21425c8 commit 1bb8d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const onCompact: any = () => {
The color opacity is 0.5
</p>
</div>
<p>You can see all the css in <span class="font-bold">Devtools</span></p>
</div>
</div>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ export const presetTheme = <T extends {}>(options: PresetThemeOptions<T>): Prese
return curTheme
}

Object.assign(originalTheme, mergeDeep(originalTheme, recursiveTheme(
return mergeDeep(originalTheme, recursiveTheme(
keys.reduce((obj, key) => {
return mergeDeep(obj, theme[key])
}, {} as T),
)))
))
},
rules: [
[
Expand Down

1 comment on commit 1bb8d25

@vercel
Copy link

@vercel vercel bot commented on 1bb8d25 Apr 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.