add fontSize custom func
This commit is contained in:
6
index.js
6
index.js
@@ -720,6 +720,12 @@ HTMLElement.prototype.height = function(value, unit = "px") {
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HTMLElement.prototype.fontSize = function(value, unit = "px") {
|
||||||
|
this.style.fontSize = value + unit
|
||||||
|
Registry.initReactivity(this, ["style", "fontSize"], value);
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
function checkStyle(el) {
|
function checkStyle(el) {
|
||||||
let computed = window.getComputedStyle(el).position
|
let computed = window.getComputedStyle(el).position
|
||||||
if(!(computed === "absolute" || computed === "fixed")) {
|
if(!(computed === "absolute" || computed === "fixed")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user