23 lines
421 B
Plaintext
23 lines
421 B
Plaintext
|
/* eslint-disable */
|
||
|
var style = require('../wxs/style.wxs');
|
||
|
var addUnit = require('../wxs/add-unit.wxs');
|
||
|
|
||
|
function spinnerStyle(data) {
|
||
|
return style({
|
||
|
color: data.color,
|
||
|
width: addUnit(data.size),
|
||
|
height: addUnit(data.size),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function textStyle(data) {
|
||
|
return style({
|
||
|
'font-size': addUnit(data.textSize),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
spinnerStyle: spinnerStyle,
|
||
|
textStyle: textStyle,
|
||
|
};
|