AllenChinese

Results 4 comments of AllenChinese

you can do it like this: ```js const SpeedMeasurePlugin = require('speed-measure-webpack-plugin') const smp = new SpeedMeasurePlugin() module.exports = { ..., configureWebpack: smp.wrap({ output: { ... }, plugins: [ ... ]...

可以借助 `scale` 这个值,`this.$refs.cropper.scale`。对输出的尺寸数据进行除以比例系数的方式处理 ``` // 表单提交所需要的比例信息 const singleCoverScale = {} singleCoverScale.x = Math.round((cropX1 - imgX1) / scale) singleCoverScale.y = Math.round((cropY1 - imgY1) / scale) singleCoverScale.width = Math.round((cropX2 - cropX1) /...

可以考虑在自动生成截图框后的下一个事件循环中手动修改截图框的尺寸和位置 ```js this.$nextTick(() => { // auto crop this.$refs.cropper.goAutoCrop() this.$nextTick(() => { // if cropped and has position message, update crop box this.$refs.cropper.cropOffsertX = selfPositionMsg.x this.$refs.cropper.cropOffsertY = selfPositionMsg.y this.$refs.cropper.cropW =...

> > ![image](https://user-images.githubusercontent.com/7843281/71960270-8be34300-322f-11ea-98b0-f3d02e814300.png) > > 挺好的,是我想要的亚子。 > > 就是失焦和清除的处理有点问题。 > > 我写的那个吗?没有问题啊,我写的怎么会有问题。如果你要value绑定 在清除的时候onchange 是null的时候 进行操作就行了。 你好,请问一下我设置 initValue,但日期的回显没成功,如何传 initValue