mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-23 20:00:19 +08:00
fix(CodeEditor): add readonly prop (#572)
This commit is contained in:
parent
2f8b2183ec
commit
9cd293c283
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="h-full">
|
||||
<CodeMirrorEditor :value="getValue" @change="handleValueChange" :mode="mode" />
|
||||
<CodeMirrorEditor :value="getValue" @change="handleValueChange" :mode="mode" :readonly="readonly" />
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
@ -24,6 +24,10 @@
|
||||
type: String,
|
||||
default: MODE.JSON,
|
||||
},
|
||||
readonly: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
emits: ['change'],
|
||||
setup(props, { emit }) {
|
||||
|
Loading…
Reference in New Issue
Block a user