vue3-ace-editor
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -28,15 +28,17 @@ import type { VAceEditorInstance } from './types'; | ||
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ | ||
printMargin: number | boolean; | ||
theme: string; | ||
value: string; | ||
lang: string; | ||
theme: string; | ||
readonly: boolean; | ||
wrap: boolean; | ||
printMargin: number | boolean; | ||
} & { | ||
readonly?: boolean | undefined; | ||
wrap?: boolean | undefined; | ||
options?: Record<string, any> | undefined; | ||
placeholder?: string | undefined; | ||
options?: Record<string, any> | undefined; | ||
}>, { | ||
lang: string; | ||
theme: string; | ||
readonly: boolean; | ||
wrap: boolean; | ||
printMargin: number | boolean; | ||
theme: string; | ||
lang: string; | ||
}>; |
@@ -65,3 +65,3 @@ import ace from 'ace-builds'; | ||
}); | ||
this._ro = new ResizeObserver(([entry]) => editor.resize()); | ||
this._ro = new ResizeObserver(() => editor.resize()); | ||
this._ro.observe(this.$el); | ||
@@ -111,4 +111,7 @@ this.$emit('init', editor); | ||
}, | ||
lang(val) { | ||
this._editor.setOption('mode', 'ace/mode/' + val); | ||
}, | ||
} | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -70,3 +70,3 @@ import ace from 'ace-builds'; | ||
}); | ||
this._ro = new ResizeObserver(([entry]) => editor.resize()); | ||
this._ro = new ResizeObserver(() => editor.resize()); | ||
this._ro.observe(this.$el); | ||
@@ -115,3 +115,6 @@ this.$emit('init', editor); | ||
}, | ||
lang(this: VAceEditorInstance, val: string) { | ||
this._editor.setOption('mode', 'ace/mode/' + val); | ||
}, | ||
} | ||
}); |
{ | ||
"name": "vue3-ace-editor", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Like vue2-ace-editor but more functional and supports Vue 3", | ||
@@ -20,4 +20,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"typescript": "^4.1.3" | ||
"typescript": "^4.2.2" | ||
} | ||
} |
@@ -9,2 +9,3 @@ { | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"allowSyntheticDefaultImports": true, | ||
@@ -11,0 +12,0 @@ "resolveJsonModule": true, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16223
331