Skip to content

Commit

Permalink
fix: codeEditor 增加暴露方法 getInstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jan 2, 2024
1 parent 1b84a0f commit 57fbdc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ma-codeEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ onMounted(() => {
emit('update:modelValue', toRaw(props.valueType === 'value' ? instance.getValue() : instance.getModel()))
})
})

const getInstance = () => instance

defineExpose({ getInstance })
</script>

<style scoped lang="less">
Expand Down

0 comments on commit 57fbdc0

Please sign in to comment.