Skip to content

Commit

Permalink
feat: MonacoWebpackPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 14, 2022
1 parent fc7c199 commit f5076e0
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 69 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"css-loader": "^6.6.0",
"http-proxy-middleware": "^2.0.6",
"lib": "^4.3.3",
"monaco-editor": "0.30.1",
"monaco-editor-webpack-plugin": "6.0.0",
"postcss-custom-properties": "^12.1.4",
"react": "^16.14.0",
"react-dom": "^16.14.0",
Expand Down
15 changes: 15 additions & 0 deletions packages/VueAmisSdk/src/VueAmisSdk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
:preview="isPreview"
:isMobile="isMobile"
@onChange="onChange"
@onPreview="onPreview"
@onSave="onSave"
:value="schema"
:plugins="plugins"
:showCustomRenderersPanel="showCustomRenderersPanel"
/>
</div>
</template>
Expand Down Expand Up @@ -36,6 +39,10 @@ export default {
type: Boolean,
default: false,
},
showCustomRenderersPanel: {
type: Boolean,
default: false,
},
theme: {
type: String,
default: "ang",
Expand Down Expand Up @@ -72,6 +79,14 @@ export default {
this.schema = e;
this.$emit("change", e);
},
onSave(e) {
console.log(e)
this.$emit("onSave", e);
},
onPreview(e) {
console.log(e)
this.$emit("onPreview", e);
},
},
};
</script>
Loading

0 comments on commit f5076e0

Please sign in to comment.