|
@@ -11,7 +11,7 @@ import { upload, dataURLtoBlob } from '@/services/file';
|
|
import { delImage, addCollection, updateCollection } from '@/services/api';
|
|
import { delImage, addCollection, updateCollection } from '@/services/api';
|
|
import { baseVer } from '@/services/upgrade';
|
|
import { baseVer } from '@/services/upgrade';
|
|
import { debounce } from './debouce';
|
|
import { debounce } from './debouce';
|
|
-import { deepClone } from '@meta2d/core';
|
|
|
|
|
|
+import { deepClone, isDomShapes } from '@meta2d/core';
|
|
|
|
|
|
const assets = reactive({
|
|
const assets = reactive({
|
|
home: 'https://le5le.com',
|
|
home: 'https://le5le.com',
|
|
@@ -553,12 +553,30 @@ const calcElem = (node: any) => {
|
|
if (!node) {
|
|
if (!node) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ let tag = '中';
|
|
|
|
+ if (
|
|
|
|
+ isDomShapes.includes(node.name) ||
|
|
|
|
+ node.name.endsWith('Dom') ||
|
|
|
|
+ meta2d.store.options.domShapes.includes(node.name)
|
|
|
|
+ ) {
|
|
|
|
+ tag = 'dom';
|
|
|
|
+ } else if (node.template) {
|
|
|
|
+ tag = '模板';
|
|
|
|
+ } else if (node.name === 'image') {
|
|
|
|
+ if (node.isBottom) {
|
|
|
|
+ tag = '下层';
|
|
|
|
+ } else {
|
|
|
|
+ tag = '上层';
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ tag = '中层';
|
|
|
|
+ }
|
|
const elem: any = {
|
|
const elem: any = {
|
|
label: (node as any).description || node.name,
|
|
label: (node as any).description || node.name,
|
|
value: node.id,
|
|
value: node.id,
|
|
locked: node.locked,
|
|
locked: node.locked,
|
|
visible: node.visible,
|
|
visible: node.visible,
|
|
|
|
+ tag,
|
|
};
|
|
};
|
|
|
|
|
|
if (!node.children) {
|
|
if (!node.children) {
|