2.0.2-publish

This commit is contained in:
Xu Chang 2022-12-05 20:21:05 +08:00
parent 84cb854c97
commit 52c7f322b4
2 changed files with 51 additions and 5 deletions

View File

@ -0,0 +1,46 @@
<wxs src="./swipe-cell.wxs" module="swipe"></wxs>
<view
class="{{prefix}}-class {{classPrefix}}"
data-key="cell"
capture-bind:tap="onTap"
bindtouchstart="{{disabled || swipe.startDrag}}"
capture-bind:touchmove="{{disabled || swipe.onDrag}}"
bindtouchend="{{disabled || swipe.endDrag}}"
bindtouchcancel="{{disabled || swipe.endDrag}}"
opened="{{opened}}"
change:opened="{{swipe.onOpenedChange}}"
leftWidth="{{leftWidth}}"
rightWidth="{{rightWidth}}"
change:leftWidth="{{swipe.initLeftWidth}}"
change:rightWidth="{{swipe.initRightWidth}}"
>
<view id="wrapper">
<view class="{{classPrefix}}__left" data-key="left">
<slot name="left" />
<view
wx:for="{{left}}"
class="{{item.className}}"
style="{{item.style}}"
wx:key="index"
data-action="{{item}}"
bind:tap="onActionTap"
>
{{item.text}}
</view>
</view>
<slot />
<view class="{{classPrefix}}__right" data-key="right">
<slot name="right" />
<view
wx:for="{{right}}"
class="{{item.className}}"
style="{{item.style}}"
wx:key="index"
data-action="{{item}}"
bind:tap="onActionTap"
>
{{item.text}}
</view>
</view>
</view>
</view>

View File

@ -16,11 +16,11 @@
"@wangeditor/editor-for-react": "^1.0.4",
"classnames": "^2.3.1",
"dayjs": "^1.11.5",
"oak-common-aspect": "file:../oak-common-aspect",
"oak-domain": "file:../oak-domain",
"oak-external-sdk": "file:../oak-external-sdk",
"oak-frontend-base": "file:../oak-frontend-base",
"oak-memory-tree-store": "file:../oak-memory-tree-store",
"oak-common-aspect": "^2.0.2",
"oak-domain": "^2.0.2",
"oak-external-sdk": "^1.0.5",
"oak-frontend-base": "^2.0.1",
"oak-memory-tree-store": "^2.0.1",
"qr-image": "^3.2.0",
"react-scripts": "^5.0.1",
"sha1": "^1.1.1",