增加微信小程序版

This commit is contained in:
uiiang
2021-09-08 16:04:03 +08:00
parent e420fdf8fd
commit 1c29c3a737
207 changed files with 5936 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({relations:{"../index/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-index-item"},name:{type:String,value:""}},data:{index:0,top:0,height:0},computed:{classes:["prefixCls",function(e){return{wrap:(0,_classNames.default)(e),hd:"".concat(e,"__hd"),bd:"".concat(e,"__bd")}}]},methods:{updated:function(t){var n=this,e=".".concat(this.data.prefixCls);wx.createSelectorQuery().in(this).select(e).boundingClientRect(function(e){e&&n.setData({top:e.top,height:e.height,index:t})}).exec()}}});

View File

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

View File

@@ -0,0 +1,6 @@
<view class="wux-class {{ classes.wrap }}">
<view class="{{ classes.hd }}">{{ name }}</view>
<view class="{{ classes.bd }}">
<slot></slot>
</view>
</view>

View File

@@ -0,0 +1 @@
.wux-index-item__hd{background:#d9d9d9;width:100%;padding:0 30rpx;box-sizing:border-box;height:64rpx;line-height:64rpx}