feat: 🚀 文章分类

This commit is contained in:
2025-04-11 10:54:56 +08:00
parent 473aa04ea4
commit bbf953f47a
10 changed files with 156 additions and 63 deletions

View File

@@ -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("会触发吗");
};