@beisen-phoenix/mobile-style-token
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -96,4 +96,5 @@ import "core-js/modules/es6.regexp.constructor"; | ||
export var $family = "\"PingFang SC\",\"Helvetica Neue\",Helvetica"; | ||
export var $smoothing = '-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;'; | ||
export var $alpha = function $alpha(token, opacity) { | ||
return token.replace(/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/, "rgba($1, $2, $3, " + opacity + ")"); | ||
return token.replace(/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/, "rgba($1, $2, $3, ".concat(opacity, ")")); | ||
}; | ||
@@ -147,7 +148,4 @@ export var $hexToRgb = function $hexToRgb(token) { | ||
export var $randomClass = function $randomClass(length) { | ||
if (length === void 0) { | ||
length = 10; | ||
} | ||
export var $randomClass = function $randomClass() { | ||
var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10; | ||
var text = ''; | ||
@@ -154,0 +152,0 @@ var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
{ | ||
"name": "@beisen-phoenix/mobile-style-token", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "平台移动端UI组件的原子设计", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -91,2 +91,4 @@ export const skinBgS1: string | ||
export const $smoothing: string | ||
export function $alpha(token: string,opacity :string): string | ||
@@ -93,0 +95,0 @@ |
14996