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
b6debe5a
Commit
b6debe5a
authored
Jun 04, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增判断条件
parent
a192041b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
text.ts
src/utils/psdParser/text.ts
+5
-2
index.vue
src/views/Editor/Thumbnails/index.vue
+5
-3
No files found.
src/utils/psdParser/text.ts
View file @
b6debe5a
...
...
@@ -70,9 +70,12 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
if
(
objectEFFFects
&&
objectEFFFects
.
data
?.
FrFX
?.
enab
){
stroke
=
getStrokeHandler
(
objectEFFFects
)
}
let
content
=
`<p><span style="
${
style
}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
value
)}
</span></p>`
const
valuesStr
=
value
.
split
(
'
\
r'
)
let
content
=
''
valuesStr
.
forEach
((
x
:
any
)
=>
{
content
+=
`<p><span style="
${
style
}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
x
)}
</span></p>`
})
const
isVertical
=
item
.
layer
.
adjustments
.
typeTool
.
obj
.
textData
.
Ornt
.
value
!=
'Hrzn'
if
(
isVertical
)
{
let
checkWord
=
value
[
0
]
+
value
[
value
.
length
-
1
]
...
...
src/views/Editor/Thumbnails/index.vue
View file @
b6debe5a
...
...
@@ -466,7 +466,7 @@ const GetTripTemplate = async () =>{
}
else
if
(
SlidesData
.
length
>
0
){
SlidesData
.
forEach
((
x
:
any
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
if
(
y
.
contentStr
&&
y
.
content
.
includes
(
y
.
contentStr
)){
if
(
y
.
contentStr
&&
y
.
content
&&
y
.
content
.
includes
(
y
.
contentStr
)){
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
if
(
temp
!=
y
.
contentStr
)
{
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
...
...
@@ -707,10 +707,12 @@ const sellGetTripTemplate = async () =>{
if
(
SalesBack
.
value
==
0
)
slidesStore
.
setTitle
(
dataRes
.
data
.
data
.
Title
)
if
(
SalesBack
.
value
==
0
&&
searchData
.
value
.
sellId
){
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
console
.
log
(
dataObj
.
TempData
)
let
newSlides
=
[]
await
SlidesData
.
forEach
((
x
,
i
)
=>
{
SlidesData
.
forEach
((
x
,
i
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
if
(
y
.
contentStr
&&
y
.
content
.
includes
(
y
.
contentStr
)){
if
(
y
.
contentStr
&&
y
.
content
&&
y
.
content
.
includes
(
y
.
contentStr
)){
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
if
(
temp
!=
y
.
contentStr
)
{
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
...
...
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