@tmagic/editor 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css
CHANGED
package/dist/tmagic-editor.js
CHANGED
|
@@ -544,6 +544,10 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
544
544
|
}
|
|
545
545
|
return Array.isArray(model.codeId) ? model.codeId.join("/") : index;
|
|
546
546
|
}
|
|
547
|
+
const codeContent = codeBlockService.getCodeContentById(model.codeId);
|
|
548
|
+
if (codeContent) {
|
|
549
|
+
return codeContent.name;
|
|
550
|
+
}
|
|
547
551
|
return model.codeId || index;
|
|
548
552
|
},
|
|
549
553
|
items: [
|
|
@@ -5337,6 +5337,10 @@
|
|
|
5337
5337
|
}
|
|
5338
5338
|
return Array.isArray(model.codeId) ? model.codeId.join("/") : index;
|
|
5339
5339
|
}
|
|
5340
|
+
const codeContent = codeBlockService.getCodeContentById(model.codeId);
|
|
5341
|
+
if (codeContent) {
|
|
5342
|
+
return codeContent.name;
|
|
5343
|
+
}
|
|
5340
5344
|
return model.codeId || index;
|
|
5341
5345
|
},
|
|
5342
5346
|
items: [
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.7.
|
|
2
|
+
"version": "1.7.3",
|
|
3
3
|
"name": "@tmagic/editor",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"moveable": "^0.53.0",
|
|
58
58
|
"serialize-javascript": "^7.0.0",
|
|
59
59
|
"sortablejs": "^1.15.6",
|
|
60
|
-
"@tmagic/design": "1.7.
|
|
61
|
-
"@tmagic/
|
|
62
|
-
"@tmagic/
|
|
63
|
-
"@tmagic/
|
|
64
|
-
"@tmagic/
|
|
60
|
+
"@tmagic/design": "1.7.3",
|
|
61
|
+
"@tmagic/stage": "1.7.3",
|
|
62
|
+
"@tmagic/table": "1.7.3",
|
|
63
|
+
"@tmagic/utils": "1.7.3",
|
|
64
|
+
"@tmagic/form": "1.7.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/events": "^3.0.3",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"monaco-editor": "^0.48.0",
|
|
76
76
|
"typescript": "^5.9.3",
|
|
77
77
|
"vue": "^3.5.24",
|
|
78
|
-
"@tmagic/core": "1.7.
|
|
78
|
+
"@tmagic/core": "1.7.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"typescript": {
|
|
@@ -56,6 +56,13 @@ const codeConfig = computed<GroupListConfig>(() => ({
|
|
|
56
56
|
|
|
57
57
|
return Array.isArray(model.codeId) ? model.codeId.join('/') : index;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
const codeContent = codeBlockService.getCodeContentById(model.codeId);
|
|
61
|
+
|
|
62
|
+
if (codeContent) {
|
|
63
|
+
return codeContent.name;
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
return model.codeId || index;
|
|
60
67
|
},
|
|
61
68
|
items: [
|