Commit 133b68f0 by qlintonger xeno

feat: AI格式化processing+3

parent fc3298df
......@@ -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']
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment