Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue3_onlineEditor
Overview
Overview
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
pangchong
vue3_onlineEditor
Commits
a5ca43ec
Commit
a5ca43ec
authored
Apr 01, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复额外内容
parent
fb7284af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/lib/XMLProcessor/src/core/Processing.ts
+1
-1
src/lib/XMLProcessor/src/utils/uuid.ts
+5
-0
src/views/editor/functions/index.ts
+2
-3
No files found.
src/lib/XMLProcessor/src/core/Processing.ts
View file @
a5ca43ec
// 引入 TreeRenderResult 类型,该类型定义在 @/lib/XMLProcessor/src/typing 模块中
import
{
NewTreeModification
,
OldTreeModification
,
TreeRenderResult
,
TreeRenderResultFlatted
}
from
'@/lib/XMLProcessor/src/typing'
import
{
md5
}
from
'js-md5'
import
{
getUUID
}
from
'@/util
s'
import
{
getUUID
}
from
'../utils/uuid.t
s'
// 定义 Processing 类,用于处理 XML 数据
export
class
Processing
{
...
...
src/lib/XMLProcessor/src/utils/uuid.ts
0 → 100644
View file @
a5ca43ec
import
{
UUID
}
from
'uuidjs'
export
const
getUUID
=
()
=>
{
return
'g-'
+
UUID
.
generate
()
}
src/views/editor/functions/index.ts
View file @
a5ca43ec
...
...
@@ -3,7 +3,6 @@ import { nodeSet } from '@/configs/node.config'
import
{
IDomEditor
}
from
'@wangeditor/editor'
import
{
treeData
,
treeRef
,
treeSelectedKeys
}
from
'../constants/tree'
import
{
dropdownConfig
,
editorRef
,
editorHtml
}
from
'../constants'
import
{
UUID
}
from
'uuidjs'
import
{
getUUID
}
from
'@/utils'
export
const
handleCreated
=
(
editor
:
IDomEditor
)
=>
{
...
...
@@ -34,8 +33,8 @@ export const setEditorActive = (key: string, callBack?: Function) => {
//获取节点的key
export
const
getKey
=
(
elem
:
any
):
string
=>
{
if
(
!
elem
)
return
''
const
key
=
elem
.
getAttribute
(
'data-key'
)
if
(
key
&&
elem
!=
null
)
{
const
key
=
elem
?
.
getAttribute
(
'data-key'
)
if
(
key
)
{
return
key
}
else
{
elem
=
elem
.
parentElement
...
...
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