update 在线编辑器定义可配置的源文件source属性

master
管理员 8 months ago
parent 7251f6a8e9
commit adaac86f04

@ -31,9 +31,9 @@ import { ref, computed, onMounted, getCurrentInstance } from 'vue'
// Quill.register(ImageResize) // Quill.register(ImageResize)
const source = ref(false)
const height = ref(100)
onMounted(async () => { onMounted(async () => {
await proxy.$nextTick() await proxy.$nextTick()
@ -80,9 +80,16 @@ const props = defineProps({
server: { server: {
type: String, type: String,
default: "/system/oss/upload" 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 { proxy } = getCurrentInstance();
// //
const uploadUrl = computed(() => import.meta.env.VITE_APP_BASE_API + props.server); const uploadUrl = computed(() => import.meta.env.VITE_APP_BASE_API + props.server);

Loading…
Cancel
Save