增加微信小程序版

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,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-landscape"},visible:{type:Boolean,value:!1},mask:{type:Boolean,value:!0,observer:function(e){this.setData({showMask:e})}},maskClosable:{type:Boolean,value:!1},closable:{type:Boolean,value:!0}},data:{showMask:!0},computed:{classes:["prefixCls, showMask",function(e,o){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--has-mask"),o)),popup:"".concat(e,"__popup"),popupBody:"".concat(e,"__popup-body"),popupClose:"".concat(e,"__popup-close"),inner:"".concat(e,"__inner"),close:"".concat(e,"__close"),x:"".concat(e,"__close-x")}}]},methods:{onClose:function(){this.triggerEvent("close",{visible:!this.data.visible})}},attached:function(){}});

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"wux-popup": "../popup/index"
}
}

View File

@@ -0,0 +1,20 @@
<wux-popup
wux-content-class="{{ classes.popup }}"
wux-body-class="{{ classes.popupBody }}"
wux-close-class="{{ classes.popupClose }}"
visible="{{ visible }}"
hasHeader="{{ false }}"
hasFooter="{{ false }}"
mask="{{ showMask }}"
maskClosable="{{ maskClosable }}"
bind:close="onClose"
>
<view class="wux-class {{ classes.wrap }}">
<view class="{{ classes.inner }}">
<slot></slot>
</view>
<view class="{{ classes.close }}" wx:if="{{ closable }}" bindtap="onClose">
<text class="{{ classes.x }}"></text>
</view>
</view>
</wux-popup>

View File

@@ -0,0 +1 @@
.wux-landscape__popup{background-color:transparent!important}.wux-landscape__popup-body{padding:0!important}.wux-landscape__inner{padding:30rpx;font-size:30rpx;line-height:1.5;color:rgba(0,0,0,.65)}.wux-landscape__inner>image{width:100%;max-width:100%}.wux-landscape__close{position:relative;display:inline-block;margin-top:10rpx}.wux-landscape__close-x{display:inline-block;width:48rpx;height:48rpx;background-repeat:no-repeat;background-size:cover;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23888%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M1.414%200l28.284%2028.284-1.414%201.414L0%201.414z%22%2F%3E%3Cpath%20d%3D%22M28.284%200L0%2028.284l1.414%201.414L29.698%201.414z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.wux-landscape--has-mask .wux-landscape__close-x{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M1.414%200l28.284%2028.284-1.414%201.414L0%201.414z%22%2F%3E%3Cpath%20d%3D%22M28.284%200L0%2028.284l1.414%201.414L29.698%201.414z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}