| | |
| | | maxHeight: { type: Number, default: 3000 }, |
| | | |
| | | fit: { type: String, default: 'contain' }, |
| | | |
| | | marginX: { type: String, default: '30px' }, |
| | | marginY: { type: String, default: '50px' }, |
| | | dialogTitle: { type: String, default: '设置图片尺寸' }, |
| | | showHint: { type: Boolean, default: true } |
| | | }) |
| | |
| | | return { |
| | | width: `${w}px`, |
| | | height: `${h}px`, |
| | | margin: props.margin, |
| | | marginLeft: props.marginX, |
| | | marginRight: props.marginX, |
| | | marginTop: props.marginY, |
| | | marginBottom: props.marginY |
| | | } |
| | | } |
| | | |
| | | |
| | | const openSizeDialog = (img, index) => { |
| | | const key = getKey(img, index) |
| | | activeKey.value = key |