feat: 🚀 文章分类
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
:accept="fileType.join(',')"
|
||||
>
|
||||
<!-- disabled -->
|
||||
<el-input v-model="videoShowUrl" style="width: 414px" @click.stop @input="handleInput" disabled>
|
||||
<el-input v-model="videoShowUrl" style="width: 414px" @click.stop @input="handleInput">
|
||||
<template #prepend
|
||||
><el-icon :size="20" style="cursor: pointer"><FolderAdd /></el-icon
|
||||
></template>
|
||||
@@ -45,7 +45,7 @@ interface UploadFileProps {
|
||||
fileType?: any[]; //视频类型限制 ==> 非必传(默认为[".mp4", ".avi", ".mov"])
|
||||
borderRadius?: string; // 组件边框圆角 ==> 非必传(默认为 8px)
|
||||
}
|
||||
const videoShowUrl = ref(null);
|
||||
const videoShowUrl = ref<any>(null);
|
||||
// 接受父组件参数
|
||||
const props = withDefaults(defineProps<UploadFileProps>(), {
|
||||
videoUrl: "",
|
||||
@@ -98,6 +98,7 @@ const handleHttpUpload = async (options: UploadRequestOptions) => {
|
||||
};
|
||||
|
||||
const handleInput = () => {
|
||||
emit("update:videoUrl", videoShowUrl.value);
|
||||
console.log("会触发吗");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user