feat:初始提交uni-app项目
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var t,e;const r=require("../../../../common/vendor.js"),i={props:{icon:{type:String,default:""},text:{type:String,default:""},textColor:{type:String,default:"#c0c4cc"},textSize:{type:[String,Number],default:14},iconColor:{type:String,default:"#c0c4cc"},iconSize:{type:[String,Number],default:90},mode:{type:String,default:"data"},width:{type:[String,Number],default:160},height:{type:[String,Number],default:160},show:{type:Boolean,default:!0},marginTop:{type:[String,Number],default:0},...null==(e=null==(t=r.index.$uv)?void 0:t.props)?void 0:e.empty}};exports.props=i;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../uv-ui-tools/libs/mixin/mpMixin.js"),i=require("../../../uv-ui-tools/libs/mixin/mixin.js"),t=require("./props.js"),o=require("../../../../common/vendor.js"),s={name:"uv-empty",mixins:[e.mpMixin,i.mixin,t.props],data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址","wifi-off":"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}),computed:{emptyStyle(){const e={};return e.marginTop=this.$uv.addUnit(this.marginTop),this.$uv.deepMerge(e,this.$uv.addStyle(this.customStyle))},textStyle(){const e={};return e.color=this.textColor,e.fontSize=this.$uv.addUnit(this.textSize),e},isImg(){const e=this.icon.indexOf("data:")>-1&&this.icon.indexOf("base64")>-1;return-1!==this.icon.indexOf("/")||e}}};if(!Array){o.resolveComponent("uv-icon")()}Math;const n=o._export_sfc(s,[["render",function(e,i,t,s,n,r){return o.e({a:e.show},e.show?o.e({b:!r.isImg},r.isImg?{d:e.$uv.addUnit(e.width),e:e.$uv.addUnit(e.height),f:e.icon}:{c:o.p({name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"})},{g:o.t(e.text?e.text:n.icons[e.mode]),h:o.s(r.textStyle),i:o.s(r.emptyStyle)}):{})}],["__scopeId","data-v-9f4b14de"]]);wx.createComponent(n);
|
||||
6
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uv-icon": "../../../uv-icon/components/uv-icon/uv-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="uv-empty data-v-9f4b14de" style="{{i}}"><uv-icon wx:if="{{b}}" class="data-v-9f4b14de" u-i="9f4b14de-0" bind:__l="__l" u-p="{{c}}"></uv-icon><image wx:else class="data-v-9f4b14de" style="{{'width:' + d + ';' + ('height:' + e)}}" src="{{f}}" mode="widthFix"></image><text class="uv-empty__text data-v-9f4b14de" style="{{h}}">{{g}}</text><view class="uv-empty__wrap data-v-9f4b14de"><slot/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
view.data-v-9f4b14de,scroll-view.data-v-9f4b14de,swiper-item.data-v-9f4b14de{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.uv-empty.data-v-9f4b14de{display:flex;flex-direction:row;flex-direction:column;justify-content:center;align-items:center}.uv-empty__text.data-v-9f4b14de,.uv-slot-wrap.data-v-9f4b14de{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:20rpx}
|
||||
Reference in New Issue
Block a user