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 @@
ad097851-8567-4420-9e12-9c571ebc59eb

View File

@@ -0,0 +1 @@
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var defaultStatus=["wait","process","finish","error"],defaultIcon="ios-checkmark";(0,_baseComponent.default)({relations:{"../steps/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-step"},status:{type:String,value:""},title:{type:String,value:""},content:{type:String,value:""},icon:{type:String,value:""}},data:{width:"100%",length:1,index:0,current:0,direction:"horizontal"},computed:{classes:["prefixCls, direction",function(t,e){return{wrap:(0,_classNames2.default)(t,_defineProperty({},"".concat(t,"--").concat(e),e)),hd:"".concat(t,"__hd"),icon:"".concat(t,"__icon"),thumb:"".concat(t,"__thumb"),bd:"".concat(t,"__bd"),title:"".concat(t,"__title"),content:"".concat(t,"__content"),ft:"".concat(t,"__ft")}}]},methods:{updateCurrent:function(t){var e=0<arguments.length&&void 0!==t?t:{},n="horizontal"===e.direction?100/e.length+"%":"100%",a=defaultStatus.indexOf(this.data.status),i=e.index<e.current||this.data.icon,r=this.data.icon||defaultIcon,c=-1!==a?defaultStatus[a]:e.index<e.current?"finish":e.index===e.current?"process":"",o="".concat(this.data.prefixCls,"--").concat(c),s=Object.assign({width:n,className:o,hasIcon:i,thumb:r},e);this.setData(s)}},attached:function(){this.updateCurrent(this.data)}});

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"wux-icon": "../icon/index"
}
}

View File

@@ -0,0 +1,23 @@
<view class="wux-class {{ classes.wrap }} {{ className }}" style="width: {{ width }}">
<view class="{{ classes.hd }}">
<view class="{{ classes.icon }}" wx:if="{{ !hasIcon }}">{{ index + 1 }}</view>
<view class="{{ classes.icon }}" wx:else>
<wux-icon wux-class="{{ classes.thumb }}" type="{{ thumb }}" size="24" wx:if="{{ thumb }}"></wux-icon>
</view>
</view>
<view class="{{ classes.bd }}">
<view class="{{ classes.title }}" wx:if="{{ title }}">
{{ title }}
</view>
<view class="{{ classes.title }}" wx:else>
<slot name="title"></slot>
</view>
<view class="{{ classes.content }}" wx:if="{{ content }}">
{{ content }}
</view>
<view class="{{ classes.content }}" wx:else>
<slot name="content"></slot>
</view>
</view>
<view class="{{ classes.ft }}" wx:if="{{ index !== length - 1 }}"></view>
</view>

View File

@@ -0,0 +1 @@
.wux-step{font-size:0;position:relative;display:inline-block;box-sizing:border-box;padding:0 10rpx;vertical-align:top}.wux-step--vertical{padding-bottom:60rpx}.wux-step--vertical .wux-step__hd{float:left}.wux-step--vertical .wux-step__bd{overflow:hidden;display:block;margin-left:80rpx;margin-top:0;text-align:left;clear:inherit}.wux-step--vertical .wux-step__ft{position:absolute;left:38rpx;top:0;height:100%;width:2rpx;padding:60rpx 0 8rpx;margin-left:0}.wux-step--vertical .wux-step__ft::after{width:2rpx;height:100%}.wux-step__ft{position:absolute;left:50%;width:100%;top:24rpx;padding:0 48rpx;margin-left:6rpx;box-sizing:border-box}.wux-step__ft::after{content:"";display:inline-block;background:#d9d9d9;height:2rpx;border-radius:2rpx;width:100%;transition:background .3s;position:relative;left:-4rpx}.wux-step__icon{box-sizing:border-box;font-size:24rpx;width:48rpx;height:100%;border-radius:50%;background:#fff;position:relative;z-index:2;margin:0 auto;border:#e9eaec solid 2rpx}.wux-step__thumb{width:100%;height:100%;display:inline-block;overflow:hidden}.wux-step--process .wux-step__icon{border:#387ef5 solid 2rpx;color:#fff;background:#387ef5}.wux-step--wait .wux-step__icon{border:#e9eaec solid 2rpx;color:#e9eaec}.wux-step--wait .wux-step__ft::after{background:#e9eaec}.wux-step--finish .wux-step__icon{border:#387ef5 solid 2rpx;color:#387ef5}.wux-step--finish .wux-step__ft::after{background:#387ef5}.wux-step--error .wux-step__icon{border:#ef473a solid 2rpx;color:#ef473a}.wux-step--error .wux-step__ft::after{background:#ef473a}.wux-step__hd{width:auto;height:48rpx;line-height:48rpx;text-align:center;box-sizing:border-box}.wux-step__bd{margin-top:20rpx;text-align:center;clear:both}.wux-step__title{font-size:32rpx;font-weight:700;color:rgba(0,0,0,.85)}.wux-step__content{font-size:24rpx;margin-top:6rpx;color:rgba(0,0,0,.65)}