如何使用
<lx-upload v-model="modelValue" ></lx-upload>
Props
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
modelValue | 上传的图片 | string[] | string | - | - |
width | 上传组件盒子的宽度 | string | - | - |
radius | 图片圆角 | string | 16rpx | - |
spacing | 每张图片的间隔 | number | 10 | - |
rowNum | 每一行展示的图片数 | number | 3 | - |
limit | 最大上传数量 | number | 3 | - |
readOnly | 是否为仅查看模式 | boolean | false | true |