chenlu
3 天以前 e5ea2c30e33f280ffc8a0ce78224ef99fb6679b1
north-glass-erp/northglass-erp/src/components/ImageSizeEditor.vue
@@ -80,7 +80,8 @@
  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 }
})
@@ -126,10 +127,14 @@
  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