Showing
2 changed files
with
8 additions
and
1 deletions
| ... | ... | @@ -2,7 +2,12 @@ | 
| 2 | 2 | <!-- eslint-disable vue/no-mutating-props --> | 
| 3 | 3 | <template> | 
| 4 | 4 | <collapse-item name="视频" expanded> | 
| 5 | - <setting-item-box name="源" alone> | |
| 5 | + <setting-item-box name="名字" alone> | |
| 6 | + <setting-item> | |
| 7 | + <n-input disabled v-model:value="optionData.text" size="small"></n-input> | |
| 8 | + </setting-item> | |
| 9 | + </setting-item-box> | |
| 10 | + <setting-item-box name="上传" alone> | |
| 6 | 11 | <FileUpload | 
| 7 | 12 | :fileSizeConst="fileSizeConst" | 
| 8 | 13 | :max="1" | 
| ... | ... | @@ -71,6 +76,7 @@ const props = defineProps({ | 
| 71 | 76 | }) | 
| 72 | 77 | |
| 73 | 78 | const handleFileStaticUri = (value: UploadFileInfo[]) => { | 
| 79 | + props.optionData.text=value[0]?.name as string | |
| 74 | 80 | props.optionData.dataset = value[0]?.url as string | 
| 75 | 81 | } | 
| 76 | 82 | </script> | ... | ... |