Skip to content

Commit 3a8bdc6

Browse files
committed
refactor: remove XmlViewer and TreeView components
1 parent bb9cd7a commit 3a8bdc6

4 files changed

Lines changed: 1 addition & 305 deletions

File tree

projects/shared/utils/virtual-html-parser.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,11 @@ export class VirtualHTMLParser {
7979
node.setAttribute('c-name', node.tagName);
8080
node.setAttribute('c-id', Math.random().toString(36).substring(2, 9));
8181

82-
const pathValue = attrs['v-model'] || attrs[':modelValue'];
82+
const pathValue = attrs['v-model'];
8383
if (pathValue && typeof pathValue === 'string') {
8484
node.setAttribute('path', pathValue);
8585
}
8686

87-
Object.entries(attrs).forEach(([key, value]) => {
88-
if (key.startsWith(':') && key !== ':modelValue' && typeof value === 'string') {
89-
node.setAttribute(`path-${key.substring(1)}`, value);
90-
}
91-
});
92-
9387
currentParent.appendChild(node);
9488

9589
if (!node.isClosingTag) {

projects/template-editor/src/components/preview/Preview.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ import { installMaskDirective } from '../../directives/mask-datetime';
114114
import Paint from '../forms/Paint.vue';
115115
import SimpleContextMenu from '../ContextMenu.vue';
116116
import { installContextMenuDirective } from '../../directives/context-menu';
117-
import XmlViewer from './XmlViewer.vue';
118117
119118
export default {
120119
name: 'Preview',
@@ -226,7 +225,6 @@ export default {
226225
.component('Checkbox', Checkbox)
227226
.component('DatePicker', DatePicker)
228227
.component('Paint', Paint)
229-
.component('XmlViewer', XmlViewer)
230228
.component('ContextMenu', SimpleContextMenu)
231229
.component('ImContextMenu', ImContextMenu)
232230
.component('ImContextMenuItem', ImContextMenuItem);

projects/template-editor/src/components/preview/TreeView.vue

Lines changed: 0 additions & 187 deletions
This file was deleted.

projects/template-editor/src/components/preview/XmlViewer.vue

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)