<NME> watermark.wxml
<BEF> <import src="../we-cropper/we-cropper.wxml"/>

<view class="cropper-wrapper">
    <template is="we-cropper" data="{{...cropperOpt}}"/>
            bindtouchstart="touchStart"
            bindtouchmove="touchMove"
            bindtouchend="touchEnd"
            style="width:{{width}}rpx;height:{{height}}rpx;"
            canvas-id="cropper">
    </canvas>
    <view class="classname">
                class="getCropperImage"
                bindtap="getCropperImage">
            生成图片
        </view>
    </view>
</view>
<MSG> update example

<DFF> @@ -5,7 +5,7 @@
             bindtouchstart="touchStart"
             bindtouchmove="touchMove"
             bindtouchend="touchEnd"
-            style="width:{{width}}rpx;height:{{height}}rpx;"
+            style="width:{{width}}px;height:{{height}}px;"
             canvas-id="cropper">
     </canvas>
     <view class="classname">

update example