提交 | 用户 | 时间
|
820397
|
1 |
<template> |
H |
2 |
<ComponentContainerProperty v-model="formData.style"> |
|
3 |
<el-form label-width="80px" :model="formData"> |
|
4 |
<el-form-item label="上传图片" prop="imgUrl"> |
|
5 |
<UploadImg |
|
6 |
v-model="formData.imgUrl" |
|
7 |
draggable="false" |
|
8 |
height="80px" |
|
9 |
width="100%" |
|
10 |
class="min-w-80px" |
|
11 |
> |
|
12 |
<template #tip> 建议宽度750 </template> |
|
13 |
</UploadImg> |
|
14 |
</el-form-item> |
|
15 |
<el-form-item label="链接" prop="url"> |
|
16 |
<AppLinkInput v-model="formData.url" /> |
|
17 |
</el-form-item> |
|
18 |
</el-form> |
|
19 |
</ComponentContainerProperty> |
|
20 |
</template> |
|
21 |
|
|
22 |
<script setup lang="ts"> |
|
23 |
import { ImageBarProperty } from './config' |
|
24 |
import { usePropertyForm } from '@/components/DiyEditor/util' |
|
25 |
|
|
26 |
// 图片展示属性面板 |
|
27 |
defineOptions({ name: 'ImageBarProperty' }) |
|
28 |
|
|
29 |
const props = defineProps<{ modelValue: ImageBarProperty }>() |
|
30 |
const emit = defineEmits(['update:modelValue']) |
|
31 |
const { formData } = usePropertyForm(props.modelValue, emit) |
|
32 |
</script> |
|
33 |
|
|
34 |
<style scoped lang="scss"></style> |