@fast-china/utils 1.0.19 → 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.
@@ -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;