Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"axios": "~0.28.0",
"css-tree": "^2.3.1",
"eslint-linter-browserify": "8.57.0",
"monaco-editor": "0.33.0",
"monaco-editor": "0.51.0",
"prettier": "2.7.1",
"vue-draggable-next": "2.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/configurator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@vue/shared": "^3.3.4",
"monaco-editor": "0.33.0",
"monaco-editor": "0.51.0",
"vue-draggable-next": "2.1.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/design-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"eslint-linter-browserify": "8.57.0",
"file-saver": "^2.0.5",
"html2canvas": "^1.4.1",
"monaco-editor": "0.33.0",
"monaco-editor": "0.51.0",
"prettier": "2.7.1",
"sortablejs": "^1.14.0",
"vue-i18n": "^9.9.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/plugins/script/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ export default {
minimap: {
enabled: false
},
placeholder: `// ✅ 函数声明可以保存
\n function topLevelFunction(){ \n
\u200B \u200B const message = 'hello tiny-engine.' \n
\u200B \u200B console.log(message)
\n }
\n
// ❌ 顶层/常规 变量声明 \n const someVariable = 42 \n
// ❌ 表达式 \n const result = someVariable + 10`,

// 禁用滚动条边边一直显示的边框
overviewRulerBorder: false,
renderLineHighlightOnlyWhenFocus: true
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"monaco-editor": "0.33.0"
"monaco-editor": "0.51.0"
},
"devDependencies": {
"@opentiny/tiny-engine-vite-plugin-meta-comments": "workspace:*",
Expand Down