mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-18 10:42:58 +08:00
增加微信小程序版
This commit is contained in:
1
liferestartWX/utils/wux/index-item/index.js
Normal file
1
liferestartWX/utils/wux/index-item/index.js
Normal 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()}}});
|
||||
3
liferestartWX/utils/wux/index-item/index.json
Normal file
3
liferestartWX/utils/wux/index-item/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
6
liferestartWX/utils/wux/index-item/index.wxml
Normal file
6
liferestartWX/utils/wux/index-item/index.wxml
Normal 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>
|
||||
1
liferestartWX/utils/wux/index-item/index.wxss
Normal file
1
liferestartWX/utils/wux/index-item/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.wux-index-item__hd{background:#d9d9d9;width:100%;padding:0 30rpx;box-sizing:border-box;height:64rpx;line-height:64rpx}
|
||||
Reference in New Issue
Block a user