Skip to content

Commit

Permalink
fix: modify util function
Browse files Browse the repository at this point in the history
  • Loading branch information
mirari committed Jan 3, 2024
1 parent 0670e91 commit d05dd3c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 134 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"publish:next": "npm run build && npm publish --tag next"
},
"peerDependencies": {
"vue": "^3.0.0",
"viewerjs": "^1.11.0"
"viewerjs": "^1.11.0",
"vue": "^3.0.0"
},
"dependencies": {
"lodash": "^4.17.21"
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@antfu/eslint-config": "^0.27.0",
Expand Down
7 changes: 6 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { h, render } from 'vue'
import Viewer from 'viewerjs'
import { assign } from './util'
import { assign } from 'lodash-es'

export interface ViewerApiOptions {
images: Array<string | object>
Expand Down
2 changes: 1 addition & 1 deletion src/directive.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Viewer from 'viewerjs'
import debounce from 'lodash/debounce'
import { debounce } from 'lodash-es'
import { nextTick, watch } from 'vue'
import type { Directive, DirectiveBinding, VNode } from 'vue'

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { App } from 'vue'
import defaults from 'lodash/defaults'
import { defaults } from 'lodash-es'
import Viewer from 'viewerjs'
import api from './api'
import directive from './directive'
Expand Down
127 changes: 0 additions & 127 deletions src/util.ts

This file was deleted.

0 comments on commit d05dd3c

Please sign in to comment.