diff --git a/admin-ui/src/components/Editor/index.vue b/admin-ui/src/components/Editor/index.vue index 634b676..943ff30 100644 --- a/admin-ui/src/components/Editor/index.vue +++ b/admin-ui/src/components/Editor/index.vue @@ -31,9 +31,9 @@ import { ref, computed, onMounted, getCurrentInstance } from 'vue' // Quill.register(ImageResize) -const source = ref(false) -const height = ref(100) + + onMounted(async () => { await proxy.$nextTick() @@ -80,9 +80,16 @@ const props = defineProps({ server: { type: String, default: "/system/oss/upload" + }, + source: { + type: Boolean, + default: false, } }); +const source = ref(props.source); +const height = ref(props.height || props.minHeight || 100); + const { proxy } = getCurrentInstance(); // 上传的图片服务器地址 const uploadUrl = computed(() => import.meta.env.VITE_APP_BASE_API + props.server);