服务器提交
This commit is contained in:
10
public/weapp/components/ns-empty/ns-empty.js
Executable file
10
public/weapp/components/ns-empty/ns-empty.js
Executable file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-empty/ns-empty"],{"329e":function(t,e,n){"use strict";n.r(e);var u=n("902a"),i=n.n(u);for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);e["default"]=i.a},"421c":function(t,e,n){},"52a6":function(t,e,n){"use strict";n.r(e);var u=n("a2df"),i=n("329e");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("f2a1");var o=n("828b"),r=Object(o["a"])(i["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);e["default"]=r.exports},"902a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u={data:function(){return{}},props:{text:{type:String,default:"暂无相关数据"},subText:{type:String,default:""},isIndex:{type:Boolean,default:!0},emptyBtn:{type:Object,default:function(){return{text:"去逛逛"}}},fixed:{type:Boolean,default:!1},textColor:{type:String,default:""}},methods:{goIndex:function(){this.emptyBtn.url?this.$util.redirectTo(this.emptyBtn.url,{},"redirectTo"):this.$util.redirectTo("/pages/index/index")}}};e.default=u},a2df:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var u=function(){var t=this.$createElement,e=(this._self._c,this.$util.img("public/uniapp/common/common-empty.png"));this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},f2a1:function(t,e,n){"use strict";var u=n("421c"),i=n.n(u);i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/ns-empty/ns-empty-create-component',
|
||||
{
|
||||
'components/ns-empty/ns-empty-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("52a6"))
|
||||
})
|
||||
},
|
||||
[['components/ns-empty/ns-empty-create-component']]
|
||||
]);
|
||||
4
public/weapp/components/ns-empty/ns-empty.json
Executable file
4
public/weapp/components/ns-empty/ns-empty.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/weapp/components/ns-empty/ns-empty.wxml
Executable file
1
public/weapp/components/ns-empty/ns-empty.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view class="{{['empty',(fixed)?'fixed':'']}}"><view class="empty_img"><image src="{{$root.g0}}" mode="aspectFit"></image></view><view class="color-tip margin-top title" style="{{'color:'+(textColor+' !important')+';'}}">{{text}}</view><view class="color-tip margin-bottom font-size-sub">{{subText}}</view><block wx:if="{{isIndex}}"><button class="button mini" type="primary" size="mini" data-event-opts="{{[['tap',[['goIndex']]]]}}" bindtap="__e">{{emptyBtn.text}}</button></block></view>
|
||||
1
public/weapp/components/ns-empty/ns-empty.wxss
Executable file
1
public/weapp/components/ns-empty/ns-empty.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.empty{width:100%;display:flex;flex-direction:column;align-items:center;padding:20rpx;box-sizing:border-box;justify-content:center}.empty .title{font-size:30rpx}.empty .empty_img{width:50%;height:450rpx}.empty .empty_img image{width:100%;height:100%;padding-bottom:20rpx}.empty button{min-width:300rpx;margin-top:100rpx;height:70rpx;line-height:70rpx!important;font-size:28rpx;font-weight:700;border-radius:100rpx}.fixed{position:fixed;left:0;top:20vh}
|
||||
Reference in New Issue
Block a user