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 @@
9c049f11-7f13-4ee8-bbdf-30b8717b1045

View File

@@ -0,0 +1 @@
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,_baseComponent.default)({relations:{"../tabs/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-tabs__tab"},key:{type:String,value:""},title:{type:String,value:""},disabled:{type:Boolean,value:!1}},data:{current:!1,scroll:!1},computed:{classes:["prefixCls, direction, scroll, theme, current, disabled",function(e,t,r,n,a,i){var o;return{wrap:(0,_classNames2.default)(e,(_defineProperty(o={},"".concat(e,"--").concat(t),t),_defineProperty(o,"".concat(e,"--").concat(n),n),_defineProperty(o,"".concat(e,"--scroll"),r),_defineProperty(o,"".concat(e,"--current"),a),_defineProperty(o,"".concat(e,"--disabled"),i),o)),title:"".concat(e,"-title"),bar:"".concat(e,"-bar")}}]},methods:{changeCurrent:function(e){var t=e.current,r=e.scroll,n=e.theme,a=e.direction;this.setData({current:t,scroll:r,theme:n,direction:a})},onTap:function(){var e=this.data,t=e.key,r=e.disabled,n=this.getRelationNodes("../tabs/index")[0];!r&&n&&(this.triggerEvent("click",{key:t}),n.setActiveKey(t))}}});

View File

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

View File

@@ -0,0 +1,7 @@
<view class="wux-class {{ classes.wrap }}" bindtap="onTap">
<view class="{{ classes.title }}" wx:if="{{ title }}">{{ title }}</view>
<block wx:else>
<slot></slot>
</block>
<view class="{{ classes.bar }}" wx:if="{{ current }}"></view>
</view>

View File

@@ -0,0 +1 @@
.wux-tabs__tab{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;position:relative;box-sizing:border-box;font-size:28rpx;color:#80848f}.wux-tabs__tab-bar{display:block;width:100%;height:4rpx;background:0 0;position:absolute;bottom:0;left:0;background:#33cd5f}.wux-tabs__tab--vertical{padding:0 30rpx}.wux-tabs__tab--vertical .wux-tabs__tab-bar{width:4rpx;height:100%;right:0;left:auto}.wux-tabs__tab--current{color:#33cd5f}.wux-tabs__tab--horizontal.wux-tabs__tab--scroll{display:-ms-inline-flexbox;display:inline-flex;padding:0 30rpx;width:auto}.wux-tabs__tab--disabled{opacity:.3}.wux-tabs__tab--light .wux-tabs__tab-bar{background:#ddd}.wux-tabs__tab--light.wux-tabs__tab--current{color:#ddd}.wux-tabs__tab--stable .wux-tabs__tab-bar{background:#b2b2b2}.wux-tabs__tab--stable.wux-tabs__tab--current{color:#b2b2b2}.wux-tabs__tab--positive .wux-tabs__tab-bar{background:#387ef5}.wux-tabs__tab--positive.wux-tabs__tab--current{color:#387ef5}.wux-tabs__tab--calm .wux-tabs__tab-bar{background:#11c1f3}.wux-tabs__tab--calm.wux-tabs__tab--current{color:#11c1f3}.wux-tabs__tab--assertive .wux-tabs__tab-bar{background:#ef473a}.wux-tabs__tab--assertive.wux-tabs__tab--current{color:#ef473a}.wux-tabs__tab--balanced .wux-tabs__tab-bar{background:#33cd5f}.wux-tabs__tab--balanced.wux-tabs__tab--current{color:#33cd5f}.wux-tabs__tab--energized .wux-tabs__tab-bar{background:#ffc900}.wux-tabs__tab--energized.wux-tabs__tab--current{color:#ffc900}.wux-tabs__tab--royal .wux-tabs__tab-bar{background:#886aea}.wux-tabs__tab--royal.wux-tabs__tab--current{color:#886aea}.wux-tabs__tab--dark .wux-tabs__tab-bar{background:#444}.wux-tabs__tab--dark.wux-tabs__tab--current{color:#444}