vant-weapp/dist/badge/index.js
2018-05-29 22:29:16 +08:00

27 lines
493 B
JavaScript

'use strict';
var DEFAULT_COLOR = '#fff';
var DEFAULT_BACKGROUND_COLOR = '#f44';
var DEFAULT_FONT_SIZE = 10;
var DEFAULT_BOX_SHADOW = '0 0 0 2px #fff';
Component({
properties: {
color: {
type: String,
value: DEFAULT_COLOR
},
backgroundColor: {
type: String,
value: DEFAULT_BACKGROUND_COLOR
},
fontSize: {
type: Number,
value: DEFAULT_FONT_SIZE
},
boxShadow: {
type: String,
value: DEFAULT_BOX_SHADOW
}
}
});