first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1 @@
23c05ee4-1029-4584-96fd-ec653edfe4fd

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
{
"component": true
}

View File

@@ -0,0 +1,22 @@
<template name="actions">
<block wx:for="{{ actions }}" wx:for-item="action" wx:key="index">
<view class="{{ classes.action }} {{ action.className }}" style="{{ action.style }}" data-index="{{ index }}" data-value="{{ action }}" data-type="{{ type }}" catchtap="onTap">
<view class="{{ classes.text }}">{{ action.text }}</view>
</view>
</block>
</template>
<view class="wux-class {{ classes.wrap }}">
<view class="{{ classes.cover }}" hidden="{{ !showCover }}" bindtouchstart="onClose" style="{{ offsetStyle }}"></view>
<view class="{{ classes.left }}" wx:if="{{ useSlots || left.length > 0 }}" catchtap="onAcitons">
<template is="actions" data="{{ classes, actions: left, type: 'left' }}" wx:if="{{ !useSlots }}" />
<slot name="left" wx:else></slot>
</view>
<view class="{{ classes.right }}" wx:if="{{ useSlots || right.length > 0 }}" catchtap="onAcitons">
<template is="actions" data="{{ classes, actions: right, type: 'right' }}" wx:if="{{ !useSlots }}" />
<slot name="right" wx:else></slot>
</view>
<view class="{{ classes.content }}" bindtouchstart="onTouchStart" catchtouchmove="{{ swiping ? 'noop' : '' }}" capture-bind:touchmove="onTouchMove" catchtouchend="onTouchEnd" style="{{ offsetStyle }}">
<slot></slot>
</view>
</view>

View File

@@ -0,0 +1 @@
.wux-swipe{overflow:hidden;position:relative}.wux-swipe__cover{position:absolute;z-index:2;background:0 0;height:100%;width:100%;top:0}.wux-swipe__actions{position:absolute;top:0;bottom:0;display:-ms-flexbox;display:flex;overflow:hidden;white-space:nowrap;transition:all .25s}.wux-swipe__actions--left{left:0}.wux-swipe__actions--right{right:0}.wux-swipe__action{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden}.wux-swipe__text{padding:0 16rpx}.wux-swipe__content{position:relative;background-color:#fff;transition:all .25s}.wux-swipe--swiping .wux-swipe__actions,.wux-swipe--swiping .wux-swipe__content{transition:none}