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
133b68f0
Commit
133b68f0
authored
Mar 28, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: AI格式化processing+3
parent
fc3298df
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
components.d.ts
+0
-3
src/views/editor/components/ContentTree.vue
+2
-1
src/views/editor/constants/dummy.ts
+0
-0
No files found.
components.d.ts
View file @
133b68f0
...
...
@@ -7,7 +7,6 @@ export {}
declare
module
'vue'
{
export
interface
GlobalComponents
{
NButton
:
typeof
import
(
'naive-ui'
)[
'NButton'
]
NCard
:
typeof
import
(
'naive-ui'
)[
'NCard'
]
NConfigProvider
:
typeof
import
(
'naive-ui'
)[
'NConfigProvider'
]
NInput
:
typeof
import
(
'naive-ui'
)[
'NInput'
]
...
...
@@ -16,8 +15,6 @@ declare module 'vue' {
NLayoutFooter
:
typeof
import
(
'naive-ui'
)[
'NLayoutFooter'
]
NLayoutHeader
:
typeof
import
(
'naive-ui'
)[
'NLayoutHeader'
]
NMessageProvider
:
typeof
import
(
'naive-ui'
)[
'NMessageProvider'
]
NResult
:
typeof
import
(
'naive-ui'
)[
'NResult'
]
NSpace
:
typeof
import
(
'naive-ui'
)[
'NSpace'
]
NTree
:
typeof
import
(
'naive-ui'
)[
'NTree'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
...
...
src/views/editor/components/ContentTree.vue
View file @
133b68f0
...
...
@@ -21,6 +21,7 @@ import { searchKey, treeData, realComposableData, xmlDOM } from '../constants'
import
FileXML
from
'@/assets/file/CES-QEC-V250-A.xml?raw'
import
type
{
TreeOption
}
from
'naive-ui'
import
{
nodeProps
}
from
'../functions'
import
{
contentDummy
}
from
'@/views/editor/constants/dummy.ts'
const
xmlProcessing
=
useXMLProcessing
()
const
nodeSet
=
[
...
...
@@ -52,7 +53,7 @@ onMounted(function () {
const
res
=
xmlProcessing
.
processXML
(
FileXML
,
nodeSet
)
treeData
.
value
=
res
.
treeData
xmlDOM
.
value
=
res
.
xmlDOM
console
.
log
(
'
all-node'
,
window
.
$t
=
xmlDOM
.
value
)
console
.
log
(
'
dummy-ts'
,
contentDummy
,
xmlProcessing
.
processXML
(
contentDummy
,
nodeSet
)
)
})
function
getAllKeys
(
item
:
TreeOption
[])
{
return
item
.
reduce
(
function
(
q
,
w
)
{
...
...
src/views/editor/constants/dummy.ts
0 → 100644
View file @
133b68f0
This diff is collapsed.
Click to expand it.
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