提交初始版本,使用vant ui库
This commit is contained in:
12
miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
Normal file
12
miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
Normal file
@@ -0,0 +1,12 @@
|
||||
/* eslint-disable */
|
||||
var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
|
||||
|
||||
function addUnit(value) {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return REGEXP.test('' + value) ? value + 'px' : value;
|
||||
}
|
||||
|
||||
module.exports = addUnit;
|
Reference in New Issue
Block a user