收藏
回答

关于贵网站view组件教程内容的遗漏,请贵网站补全。(如贴中view例子的class属性及值的解释)

问题模块
教程反馈

https://developers.weixin.qq.com/miniprogram/dev/component/view.html

关于贵网站view组件教程内容的遗漏,请贵网站补全。(如贴中view例子的class属性及值的解释)

<view class="section">

<view class="section__title">movable-view区域小于movable-area</view>

<movable-area style="height: 200px; width: 200px; background: red;">

<movable-view style="height: 50px; width: 50px; background: blue;" x="{{x}}" y="{{y}}" direction="all">

</movable-view>

</movable-area>

<view class="btn-area">

<button size="mini" bindtap="tap">click me to move to (30px, 30px)</button>

</view>

<view class="section__title">movable-view区域大于movable-area</view>

<movable-area style="height: 100px; width: 100px; background: red;">

<movable-view style="height: 200px; width: 200px; background: blue;" direction="all">

</movable-view>

</movable-area>

<view class="section__title">可放缩</view>

<movable-area style="height: 200px; width: 200px; background: red;" scale-area>

<movable-view style="height: 50px; width: 50px; background: blue;" direction="all" bindchange="onChange" bindscale="onScale" scale scale-min="0.5" scale-max="4" scale-value="2">

</movable-view>

</movable-area>

</view>


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签