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
8c921716
authored
Mar 12, 2023
by
chiwenda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改菜单找不到图标时报错
parent
1757515b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/components/Icon/src/IconSelect.vue
+8
-3
No files found.
src/components/Icon/src/IconSelect.vue
View file @
8c921716
...
@@ -45,17 +45,22 @@ const tabsList = [
...
@@ -45,17 +45,22 @@ const tabsList = [
const
pageList
=
computed
(()
=>
{
const
pageList
=
computed
(()
=>
{
if
(
currentPage
.
value
===
1
)
{
if
(
currentPage
.
value
===
1
)
{
return
copyIconList
[
currentActiveType
.
value
]
return
copyIconList
[
currentActiveType
.
value
]
.
filter
((
v
)
=>
v
.
includes
(
filterValue
.
value
))
?
.
filter
((
v
)
=>
v
.
includes
(
filterValue
.
value
))
.
slice
(
currentPage
.
value
-
1
,
pageSize
.
value
)
.
slice
(
currentPage
.
value
-
1
,
pageSize
.
value
)
}
else
{
}
else
{
return
copyIconList
[
currentActiveType
.
value
]
return
copyIconList
[
currentActiveType
.
value
]
.
filter
((
v
)
=>
v
.
includes
(
filterValue
.
value
))
?
.
filter
((
v
)
=>
v
.
includes
(
filterValue
.
value
))
.
slice
(
.
slice
(
pageSize
.
value
*
(
currentPage
.
value
-
1
),
pageSize
.
value
*
(
currentPage
.
value
-
1
),
pageSize
.
value
*
(
currentPage
.
value
-
1
)
+
pageSize
.
value
pageSize
.
value
*
(
currentPage
.
value
-
1
)
+
pageSize
.
value
)
)
}
}
})
})
const
iconCount
=
computed
(()
=>
{
return
copyIconList
[
currentActiveType
.
value
]
==
undefined
?
0
:
copyIconList
[
currentActiveType
.
value
].
length
})
const
iconItemStyle
=
computed
(():
ParameterCSSProperties
=>
{
const
iconItemStyle
=
computed
(():
ParameterCSSProperties
=>
{
return
(
item
)
=>
{
return
(
item
)
=>
{
...
@@ -159,7 +164,7 @@ watch(
...
@@ -159,7 +164,7 @@ watch(
<ElPagination
<ElPagination
small
small
:total=
"
copyIconList[currentActiveType].length as unknown as number
"
:total=
"
iconCount
"
:page-size=
"pageSize"
:page-size=
"pageSize"
:current-page=
"currentPage"
:current-page=
"currentPage"
background
background
...
...
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