Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

movable-area 的@scale 回调有误 #415

Closed
401819111 opened this issue May 27, 2019 · 1 comment
Closed

movable-area 的@scale 回调有误 #415

401819111 opened this issue May 27, 2019 · 1 comment

Comments

@401819111
Copy link

401819111 commented May 27, 2019

问题描述
movable-area 的@scale 回调有误,event.detail中只有:{"scale":scale},而不是文档中提到的{x: x, y: y, scale: scale},

<movable-area class="picture-area" :scale-area="true">
	<movable-view
		class="picture-view"
		:style="{ width: cropperW + 'px', height: cropperH + 'px' }"
		direction="all"
		:x="old.x"
		:y="old.y"
		:scale="true"
		:scale-min="1"
		:scale-max="2"
		@change="movableChange"
		@scale="movableScale">
		 <image :src="localImg" :style="'width:' + cropperW + 'px;height:' + cropperH + 'px'"></image>
	</movable-view>
</movable-area>
movableScale(e) {
	console.log(JSON.stringify(e));
},

预期结果

"detail":{x: x, y: y,"scale":1.4},

实际结果
image

系统信息:

  • 发行平台: [微信小程序、5+ App]
  • HBuilderX版本:1.9.9.20190522
@zhetengbiji
Copy link
Collaborator

已修复,更新 HBuilderX 到 2.0.2 alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants