Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
viitto
pptist
Commits
ca2518f6
Commit
ca2518f6
authored
Jul 10, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化颜色新增
parent
4bd3c16e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
17 deletions
+23
-17
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+4
-1
colour.vue
src/views/TemplateCenter/colour.vue
+19
-16
No files found.
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
ca2518f6
<
template
>
<
template
>
<div
class=
"
q-mt-xs bg-white q-pa-xs
rounded ElementTemplateData"
>
<div
class=
"
bg-white
rounded ElementTemplateData"
>
<div
class=
"column text-mdall"
>
<div
class=
"column text-mdall"
>
<div
class=
"column"
>
<div
class=
"column"
>
<template
v-if=
"CoverImg&&!isCoverImg"
>
<template
v-if=
"CoverImg&&!isCoverImg"
>
...
@@ -501,6 +501,9 @@
...
@@ -501,6 +501,9 @@
})
})
return
return
}
}
let
color
=
datas
.
addColor
.
Name
.
slice
(
0
,
1
)
let
colorList
=
ColorList
.
value
.
filter
(
x
=>
{
return
x
.
Name
.
toLowerCase
().
includes
(
color
.
toLowerCase
())})
if
(
colorList
.
length
>
0
&&!
datas
.
addColor
.
Code
)
datas
.
addColor
.
Code
=
colorList
[
0
].
ID
if
(
datas
.
addColor
.
Content
.
indexOf
(
'#'
)
==-
1
){
if
(
datas
.
addColor
.
Content
.
indexOf
(
'#'
)
==-
1
){
ElMessage
({
ElMessage
({
showClose
:
true
,
showClose
:
true
,
...
...
src/views/TemplateCenter/colour.vue
View file @
ca2518f6
...
@@ -365,6 +365,9 @@
...
@@ -365,6 +365,9 @@
message
:
'请完善颜色名称'
,
message
:
'请完善颜色名称'
,
type
:
'warning'
,
type
:
'warning'
,
})
})
let
color
=
datas
.
params
.
Name
.
slice
(
0
,
1
)
let
colorList
=
ColorList
.
value
.
filter
(
x
=>
{
return
x
.
Name
.
toLowerCase
().
includes
(
color
.
toLowerCase
())})
if
(
colorList
.
length
>
0
&&!
datas
.
params
.
Code
)
datas
.
addColor
.
Code
=
colorList
[
0
].
ID
if
(
!
datas
.
params
.
Content
){
if
(
!
datas
.
params
.
Content
){
ElMessage
({
ElMessage
({
showClose
:
true
,
showClose
:
true
,
...
...
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