@whitesev/domutils 1.5.3 → 1.5.4
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.amd.js +3 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/DOMUtils.ts +5 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1062,7 +1062,7 @@ class DOMUtils extends DOMUtilsEvent {
|
|
|
1062
1062
|
super(option);
|
|
1063
1063
|
}
|
|
1064
1064
|
/** 版本号 */
|
|
1065
|
-
version = "2025.
|
|
1065
|
+
version = "2025.5.12";
|
|
1066
1066
|
attr(element, attrName, attrValue) {
|
|
1067
1067
|
let DOMUtilsContext = this;
|
|
1068
1068
|
if (typeof element === "string") {
|
|
@@ -1206,7 +1206,8 @@ class DOMUtils extends DOMUtilsEvent {
|
|
|
1206
1206
|
return;
|
|
1207
1207
|
}
|
|
1208
1208
|
let setStyleProperty = (propertyName, propertyValue) => {
|
|
1209
|
-
if (propertyValue === "string" &&
|
|
1209
|
+
if (typeof propertyValue === "string" &&
|
|
1210
|
+
propertyValue.trim().endsWith("!important")) {
|
|
1210
1211
|
propertyValue = propertyValue
|
|
1211
1212
|
.trim()
|
|
1212
1213
|
.replace(/!important$/gi, "")
|