vue-editify 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
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]})`;
@@ -1905,6 +1914,7 @@ const queryHasValue = (obj$1$1, name, value) => {
1905
1914
  const arr = obj$1.color.hex2rgb(ownValue);
1906
1915
  ownValue = `rgb(${arr[0]},${arr[1]},${arr[2]})`;
1907
1916
  }
1917
+ console.log(ownValue, value);
1908
1918
  return ownValue == value;
1909
1919
  };
1910
1920
  const _AlexElement = class _AlexElement2 {
@@ -22854,7 +22864,7 @@ const i18n = (locale) => {
22854
22864
  return translations[locale][key];
22855
22865
  };
22856
22866
  };
22857
- const version = "0.0.18";
22867
+ const version = "0.0.19";
22858
22868
  const install = (app, props) => {
22859
22869
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
22860
22870
  app.provide("$editTrans", i18n(locale));