init
This commit is contained in:
10
components/uni-badge/uni-badge.js
Normal file
10
components/uni-badge/uni-badge.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-badge/uni-badge"],{"136a":function(t,n,e){"use strict";var u=e("d6a4"),a=e.n(u);a.a},1730:function(t,n,e){"use strict";e.r(n);var u=e("620e"),a=e.n(u);for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);n["default"]=a.a},"61d4":function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var u=function(){var t=this.$createElement;this._self._c},a=[]},"620e":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={name:"UniBadge",props:{type:{type:String,default:"default"},inverted:{type:Boolean,default:!1},text:{type:String,default:""},size:{type:String,default:"normal"}},methods:{onClick:function(){this.$emit("click")}}};n.default=u},ba0d:function(t,n,e){"use strict";e.r(n);var u=e("61d4"),a=e("1730");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("136a");var r=e("828b"),o=Object(r["a"])(a["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=o.exports},d6a4:function(t,n,e){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/uni-badge/uni-badge-create-component',
|
||||
{
|
||||
'components/uni-badge/uni-badge-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("ba0d"))
|
||||
})
|
||||
},
|
||||
[['components/uni-badge/uni-badge-create-component']]
|
||||
]);
|
||||
4
components/uni-badge/uni-badge.json
Normal file
4
components/uni-badge/uni-badge.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/uni-badge/uni-badge.wxml
Normal file
1
components/uni-badge/uni-badge.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{text}}"><text data-event-opts="{{[['tap',[['onClick']]]]}}" class="{{['uni-badge',inverted?'uni-badge-'+type+' uni-badge--'+size+' uni-badge-inverted':'uni-badge-'+type+' uni-badge--'+size]}}" bindtap="__e">{{''+text+''}}</text></block>
|
||||
1
components/uni-badge/uni-badge.wxss
Normal file
1
components/uni-badge/uni-badge.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.uni-badge{font-family:Helvetica Neue,Helvetica,sans-serif;box-sizing:border-box;font-size:24rpx;line-height:1;display:inline-block;padding:6rpx 12rpx;color:#333;border-radius:200rpx;background-color:#e5e5e5}.uni-badge.uni-badge-inverted{padding:0 10rpx 0 0;color:#999;background-color:initial}.uni-badge-primary{color:#fff;background-color:#007aff}.uni-badge-primary.uni-badge-inverted{color:#007aff;background-color:initial}.uni-badge-success{color:#fff;background-color:#4cd964}.uni-badge-success.uni-badge-inverted{color:#4cd964;background-color:initial}.uni-badge-warning{color:#fff;background-color:#f0ad4e}.uni-badge-warning.uni-badge-inverted{color:#f0ad4e;background-color:initial}.uni-badge-error{color:#fff;background-color:#dd524d}.uni-badge-error.uni-badge-inverted{color:#dd524d;background-color:initial}.uni-badge--small{-webkit-transform:scale(.8);transform:scale(.8);-webkit-transform-origin:center center;transform-origin:center center}
|
||||
Reference in New Issue
Block a user