color-picker.wxml 1.2 KB

1234567891011121314151617181920
  1. <view class="dialog {{show ? 'dialog_show' : ''}}">
  2. <view wx:if="{{mask}}" class="weui-mask" catchtap="close" catchtouchmove="close"></view>
  3. <view class="weui-actionsheet {{show ? 'weui-actionsheet_toggle' : ''}}" catchtouchmove="preventdefault">
  4. <view class="weui-half-screen-dialog__hd">
  5. <view class="weui-half-screen-dialog__hd__side" bindtap="close">
  6. <a class="weui-icon-btn">
  7. <i class="weui-icon-close-thin"></i>
  8. </a>
  9. </view>
  10. <view class="weui-half-screen-dialog__hd__main">
  11. <strong class="weui-half-screen-dialog__title">请选择颜色</strong>
  12. <view class="weui-half-screen-dialog__subtitle">可通过下方滑块颜色预览</view>
  13. </view>
  14. </view>
  15. <movable-area class="target" style="background-color:{{hueColor}}">
  16. <movable-view direction="all" bindchange="changeSV" x="{{x}}" y="{{y}}" animation="{{false}}" class="iconfont icon-ios-locate-outline" bindtouchend="onEnd"></movable-view>
  17. </movable-area>
  18. <slider bindchanging="changeHue" activeColor="transparent" backgroundColor="transparent" class="ribbon" max="360" value="{{hsv.h}}" block-color="{{colorRes}}" bindtouchend="onEnd" />
  19. </view>
  20. </view>