Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fe611197
authored
Feb 29, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
2023-06-25:perf: ImageViewer组件优化
parent
d884f71d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/components/ImageViewer/index.ts
+2
-2
src/components/ImageViewer/src/ImageViewer.vue
+1
-1
src/components/ImageViewer/src/types.ts
+1
-1
No files found.
src/components/ImageViewer/index.ts
View file @
fe611197
...
@@ -12,7 +12,7 @@ export function createImageViewer(options: ImageViewerProps) {
...
@@ -12,7 +12,7 @@ export function createImageViewer(options: ImageViewerProps) {
initialIndex
=
0
,
initialIndex
=
0
,
infinite
=
true
,
infinite
=
true
,
hideOnClickModal
=
false
,
hideOnClickModal
=
false
,
appendToBody
=
false
,
teleported
=
false
,
zIndex
=
2000
,
zIndex
=
2000
,
show
=
true
show
=
true
}
=
options
}
=
options
...
@@ -23,7 +23,7 @@ export function createImageViewer(options: ImageViewerProps) {
...
@@ -23,7 +23,7 @@ export function createImageViewer(options: ImageViewerProps) {
propsData
.
initialIndex
=
initialIndex
propsData
.
initialIndex
=
initialIndex
propsData
.
infinite
=
infinite
propsData
.
infinite
=
infinite
propsData
.
hideOnClickModal
=
hideOnClickModal
propsData
.
hideOnClickModal
=
hideOnClickModal
propsData
.
appendToBody
=
appendToBody
propsData
.
teleported
=
teleported
propsData
.
zIndex
=
zIndex
propsData
.
zIndex
=
zIndex
propsData
.
show
=
show
propsData
.
show
=
show
...
...
src/components/ImageViewer/src/ImageViewer.vue
View file @
fe611197
...
@@ -13,7 +13,7 @@ const props = defineProps({
...
@@ -13,7 +13,7 @@ const props = defineProps({
initialIndex
:
propTypes
.
number
.
def
(
0
),
initialIndex
:
propTypes
.
number
.
def
(
0
),
infinite
:
propTypes
.
bool
.
def
(
true
),
infinite
:
propTypes
.
bool
.
def
(
true
),
hideOnClickModal
:
propTypes
.
bool
.
def
(
false
),
hideOnClickModal
:
propTypes
.
bool
.
def
(
false
),
appendToBody
:
propTypes
.
bool
.
def
(
false
),
teleported
:
propTypes
.
bool
.
def
(
false
),
show
:
propTypes
.
bool
.
def
(
false
)
show
:
propTypes
.
bool
.
def
(
false
)
})
})
...
...
src/components/ImageViewer/src/types.ts
View file @
fe611197
...
@@ -4,6 +4,6 @@ export interface ImageViewerProps {
...
@@ -4,6 +4,6 @@ export interface ImageViewerProps {
initialIndex
?:
number
initialIndex
?:
number
infinite
?:
boolean
infinite
?:
boolean
hideOnClickModal
?:
boolean
hideOnClickModal
?:
boolean
appendToBody
?:
boolean
teleported
?:
boolean
show
?:
boolean
show
?:
boolean
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment