change stl position && modify stl name to style.

This commit is contained in:
Rintim 2023-09-28 20:10:04 +08:00
parent 02bd562a45
commit 57bfb05ef5
1 changed files with 10 additions and 8 deletions

View File

@ -7790,6 +7790,15 @@
media:type=>`@media ${type}`
},
dom:{
attributes:{
style(name,value){
return {
_type:"style",
name:name,
value:value
}
}
},
inject(element,options){
//处理id和class
if(options.identity){
@ -7857,20 +7866,13 @@
}
return result;
},
attr(name,value){
attribute(name,value){
return {
_type:"attributes",
name:name,
value:value
}
},
stl(name,value){
return {
_type:"style",
name:name,
value:value
}
},
div(){
const dom=lib.linq.dom;
return dom.inject(document.createElement("div"),dom.generate(...arguments));