vue-editify 0.0.18 → 0.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/lib/editify.es.js CHANGED
@@ -1890,13 +1890,22 @@ const queryHasValue = (obj$1$1, name, value) => {
1890
1890
  if (value == null || value == void 0) {
1891
1891
  return obj$1$1.hasOwnProperty(name);
1892
1892
  }
1893
+ let ownValue = obj$1$1[name];
1894
+ if (ownValue == null || ownValue == void 0) {
1895
+ return false;
1896
+ }
1893
1897
  if (typeof value == "string") {
1894
1898
  value = value.toLocaleLowerCase();
1895
1899
  }
1896
- let ownValue = obj$1$1[name];
1897
1900
  if (typeof ownValue == "string") {
1898
1901
  ownValue = ownValue.toLocaleLowerCase();
1899
1902
  }
1903
+ if (typeof value == "string" && value && (obj$1.common.matchingText(value, "rgb") || obj$1.common.matchingText(value, "rgba"))) {
1904
+ value = obj$1.string.trim(value, true);
1905
+ }
1906
+ if (typeof ownValue == "string" && ownValue && (obj$1.common.matchingText(ownValue, "rgb") || obj$1.common.matchingText(ownValue, "rgba"))) {
1907
+ ownValue = obj$1.string.trim(ownValue, true);
1908
+ }
1900
1909
  if (typeof value == "string" && value && obj$1.common.matchingText(value, "hex")) {
1901
1910
  const arr = obj$1.color.hex2rgb(value);
1902
1911
  value = `rgb(${arr[0]},${arr[1]},${arr[2]})`;
@@ -22854,7 +22863,7 @@ const i18n = (locale) => {
22854
22863
  return translations[locale][key];
22855
22864
  };
22856
22865
  };
22857
- const version = "0.0.18";
22866
+ const version = "0.0.20";
22858
22867
  const install = (app, props) => {
22859
22868
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
22860
22869
  app.provide("$editTrans", i18n(locale));