-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split implementation for skyline.
close #247.
- Loading branch information
Showing
11 changed files
with
585 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"component": true, | ||
"styleIsolation": "apply-shared", | ||
"usingComponents": {} | ||
"usingComponents": { | ||
"slideview-skyline": "/components/slideview/slideviewSkyline" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
<!-- slide-view/slide-view.wxml --> | ||
<view class="weui-slideview weui-movable-view {{icon ? 'weui-slideview_icon' : ''}} ext-class" style="width: 100%;height: 100%;"> | ||
<view bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchend" class="weui-slideview__left left" style="width:100%;"> | ||
<wxs module="handler" src="./slideview.wxs"></wxs> | ||
<view wx:if="{{renderer === 'webview'}}" class="weui-slideview weui-movable-view {{icon ? 'weui-slideview_icon' : ''}} ext-class" style="width: 100%;height: 100%;"> | ||
<view bindtransitionend="{{handler.transitionEnd}}" | ||
show="{{show}}" change:show="{{handler.showChange}}" | ||
rebounce="{{rebounce}}" change:rebounce="{{handler.rebounceChange}}" | ||
duration="{{duration}}" change:duration="{{handler.durationChange}}" | ||
change:disable="{{handler.disableChange}}" disable="{{disable}}" | ||
change:prop="{{handler.sizeReady}}" prop="{{size}}" | ||
bindtouchstart="{{handler.touchstart}}" bindtouchmove="{{handler.touchmove}}" bindtouchend="{{handler.touchend}}" class="weui-slideview__left left" style="width:100%;"> | ||
<slot></slot> | ||
</view> | ||
<view class="weui-slideview__right right"> | ||
<view class="weui-slideview__buttons" style="height:100%;width:100%;" wx:if="{{buttons && buttons.length}}"> | ||
<view wx:for="{{buttons}}" wx:key="index" class='btn weui-slideview__btn__wrp btn-{{index}} {{item.className}}'> | ||
<view wx:for="{{buttons}}" wx:key="index" class='btn weui-slideview__btn__wrp {{item.className}}'> | ||
<view | ||
bind:tap="buttonTap" | ||
bindtap="{{handler.hideButton}}" | ||
data-data="{{item.data}}" | ||
data-index="{{index}}" | ||
class='weui-slideview__btn {{item.extClass}}' | ||
aria-role="button" | ||
> | ||
<view wx:if="{{!icon}}">{{item.text}}</view> | ||
<text wx:if="{{!icon}}">{{item.text}}</text> | ||
<image class="weui-slideview__btn__icon" wx:else src="{{item.src}}"/> | ||
</view> | ||
</view> | ||
</view> | ||
</view> | ||
</view> | ||
<slideview-skyline | ||
wx:elif="{{renderer === 'skyline'}}" | ||
ext-class="ext-class" | ||
buttons="{{buttons}}" | ||
disable="{{disable}}" | ||
duration="{{duration}}" | ||
icon="{{icon}}" | ||
show="{{show}}" | ||
rebounce="{{rebounce}}" | ||
throttle="{{throttle}}" | ||
bind:buttontap="buttonTapByWxs" | ||
bind:hide="hide" | ||
bind:show="show" | ||
> | ||
<slot /> | ||
</slideview-skyline> |
Oops, something went wrong.