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 @@
578181f3-3f51-402a-bfad-3307483b2957

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)({properties:{prefixCls:{type:String,value:"wux-navbar"},theme:{type:String,value:"light"},title:{type:String,value:""},leftText:{type:String,value:""},rightText:{type:String,value:""}},computed:{classes:["prefixCls, theme",function(e,t){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--").concat(t),t)),left:"".concat(e,"__left"),text:"".concat(e,"__text"),title:"".concat(e,"__title"),right:"".concat(e,"__right")}}]},methods:{onClick:function(e){var t=e.currentTarget.dataset.type;this.triggerEvent("click",{type:t})}}});

View File

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

View File

@@ -0,0 +1,14 @@
<view class="wux-class {{ classes.wrap }}">
<view class="{{ classes.left }}" data-type="left" bindtap="onClick">
<view class="{{ classes.text }}" wx:if="{{ leftText }}">{{ leftText }}</view>
<slot name="left" wx:else></slot>
</view>
<view class="{{ classes.title }}">
<block wx:if="{{ title }}">{{ title }}</block>
<slot wx:else></slot>
</view>
<view class="{{ classes.right }}" data-type="right" bindtap="onClick">
<view class="{{ classes.text }}" wx:if="{{ rightText }}">{{ rightText }}</view>
<slot name="right" wx:else></slot>
</view>
</view>

View File

@@ -0,0 +1 @@
.wux-navbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:90rpx;background-color:#fff;color:#444}.wux-navbar__left,.wux-navbar__right,.wux-navbar__title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1;height:100%}.wux-navbar__left{padding-left:20rpx;font-size:28rpx}.wux-navbar__title{-ms-flex-pack:center;justify-content:center;font-size:32rpx;white-space:nowrap}.wux-navbar__right{-ms-flex-pack:end;justify-content:flex-end;font-size:28rpx;margin-right:20rpx}.wux-navbar--light{background-color:#fff;color:#444}.wux-navbar--stable{background-color:#f8f8f8;color:#444}.wux-navbar--positive{background-color:#387ef5;color:#fff}.wux-navbar--calm{background-color:#11c1f3;color:#fff}.wux-navbar--assertive{background-color:#ef473a;color:#fff}.wux-navbar--balanced{background-color:#33cd5f;color:#fff}.wux-navbar--energized{background-color:#ffc900;color:#fff}.wux-navbar--royal{background-color:#886aea;color:#fff}.wux-navbar--dark{background-color:#444;color:#fff}