@fast-china/utils 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +8 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.global.min.js +5 -5
- package/dist/index.global.min.js.map +1 -1
- package/es/dom/index.mjs +3 -2
- package/es/dom/style.d.ts +6 -0
- package/es/dom/style.mjs +9 -1
- package/es/dom/style.mjs.map +1 -1
- package/es/index.mjs +2 -1
- package/lib/dom/index.js +1 -1
- package/lib/dom/style.d.ts +6 -0
- package/lib/dom/style.js +1 -1
- package/lib/dom/style.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -13552,6 +13552,13 @@ var FastUtils = function(exports, vue) {
|
|
|
13552
13552
|
}
|
|
13553
13553
|
consoleWarn("document", "binding value must be a string or number");
|
|
13554
13554
|
};
|
|
13555
|
+
const styleToString = (style) => {
|
|
13556
|
+
if (!style) return "";
|
|
13557
|
+
return Object.entries(style).map(([key, value]) => {
|
|
13558
|
+
const keyName = key.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
13559
|
+
return `${keyName}: ${value};`;
|
|
13560
|
+
}).join(" ");
|
|
13561
|
+
};
|
|
13555
13562
|
const envUtil = {
|
|
13556
13563
|
/**
|
|
13557
13564
|
* 是否为 Uni 环境
|
|
@@ -14338,6 +14345,7 @@ var FastUtils = function(exports, vue) {
|
|
|
14338
14345
|
exports.makeSlots = makeSlots;
|
|
14339
14346
|
exports.objectUtil = objectUtil;
|
|
14340
14347
|
exports.stringUtil = stringUtil;
|
|
14348
|
+
exports.styleToString = styleToString;
|
|
14341
14349
|
exports.throwError = throwError;
|
|
14342
14350
|
exports.useExpose = useExpose;
|
|
14343
14351
|
exports.useIdentity = useIdentity;
|