增加微信小程序版

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")),_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:{"../row/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-col"},span:{value:0,type:Number},offset:{value:0,type:Number},pull:{value:0,type:Number},push:{value:0,type:Number}},data:{colStyle:""},computed:{classes:["prefixCls, span, offset, pull, push",function(e,t,r,a,n){var o;return{wrap:(0,_classNames2.default)(e,(_defineProperty(o={},"".concat(e,"--span-").concat(t),t),_defineProperty(o,"".concat(e,"--offset-").concat(r),r),_defineProperty(o,"".concat(e,"--pull-").concat(a),a),_defineProperty(o,"".concat(e,"--push-").concat(n),n),o))}}]},methods:{updateStyle:function(e){this.data.colStyle!==e&&this.setData({colStyle:e})}}});

View File

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

View File

@@ -0,0 +1,3 @@
<view class="wux-class {{ classes.wrap }}" style="{{ colStyle }}">
<slot></slot>
</view>

View File

@@ -0,0 +1 @@
.wux-col{position:relative;min-height:2rpx;box-sizing:border-box}.wux-col--span-12{float:left;width:100%}.wux-col--pull-12{right:100%}.wux-col--push-12{left:100%}.wux-col--offset-12{margin-left:100%}.wux-col--span-11{float:left;width:91.66666667%}.wux-col--pull-11{right:91.66666667%}.wux-col--push-11{left:91.66666667%}.wux-col--offset-11{margin-left:91.66666667%}.wux-col--span-10{float:left;width:83.33333333%}.wux-col--pull-10{right:83.33333333%}.wux-col--push-10{left:83.33333333%}.wux-col--offset-10{margin-left:83.33333333%}.wux-col--span-9{float:left;width:75%}.wux-col--pull-9{right:75%}.wux-col--push-9{left:75%}.wux-col--offset-9{margin-left:75%}.wux-col--span-8{float:left;width:66.66666667%}.wux-col--pull-8{right:66.66666667%}.wux-col--push-8{left:66.66666667%}.wux-col--offset-8{margin-left:66.66666667%}.wux-col--span-7{float:left;width:58.33333333%}.wux-col--pull-7{right:58.33333333%}.wux-col--push-7{left:58.33333333%}.wux-col--offset-7{margin-left:58.33333333%}.wux-col--span-6{float:left;width:50%}.wux-col--pull-6{right:50%}.wux-col--push-6{left:50%}.wux-col--offset-6{margin-left:50%}.wux-col--span-5{float:left;width:41.66666667%}.wux-col--pull-5{right:41.66666667%}.wux-col--push-5{left:41.66666667%}.wux-col--offset-5{margin-left:41.66666667%}.wux-col--span-4{float:left;width:33.33333333%}.wux-col--pull-4{right:33.33333333%}.wux-col--push-4{left:33.33333333%}.wux-col--offset-4{margin-left:33.33333333%}.wux-col--span-3{float:left;width:25%}.wux-col--pull-3{right:25%}.wux-col--push-3{left:25%}.wux-col--offset-3{margin-left:25%}.wux-col--span-2{float:left;width:16.66666667%}.wux-col--pull-2{right:16.66666667%}.wux-col--push-2{left:16.66666667%}.wux-col--offset-2{margin-left:16.66666667%}.wux-col--span-1{float:left;width:8.33333333%}.wux-col--pull-1{right:8.33333333%}.wux-col--push-1{left:8.33333333%}.wux-col--offset-1{margin-left:8.33333333%}