Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
huamu
Commits
1a3c24d6
Commit
1a3c24d6
authored
Oct 14, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改活动列表标签类别
parent
cedbde8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
activity-list-modal.vue
src/view/components/activity-list-modal.vue
+8
-7
No files found.
src/view/components/activity-list-modal.vue
View file @
1a3c24d6
...
@@ -231,18 +231,19 @@ const columns = [
...
@@ -231,18 +231,19 @@ const columns = [
if (typeof tagType === 'string') {
if (typeof tagType === 'string') {
tagType = [tagType]
tagType = [tagType]
}
}
const types = tagType.map(
const types = tagType.map((tag: string) => ({
(tag: string) =>
type: activity?.find((e) => e.name === tag)?.type || 'default',
activity?.find((e) => e.name === tag)?.type || 'default',
name: tag,
)
}))
console.log('123', types)
return h(NSpace, () => [
return h(NSpace, () => [
...types.map((
type
, i) =>
...types.map((
item
, i) =>
h(
h(
NTag,
NTag,
{
{
key: i,
key: i,
size: 'small',
size: 'small',
type: type as
type:
item.
type as
| 'default'
| 'default'
| 'error'
| 'error'
| 'primary'
| 'primary'
...
@@ -250,7 +251,7 @@ const columns = [
...
@@ -250,7 +251,7 @@ const columns = [
| 'success'
| 'success'
| 'warning',
| 'warning',
},
},
{ default: () =>
row['标签类别']
},
{ default: () =>
item.name
},
),
),
),
),
])
])
...
...
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