From 57bfb05ef5c657183df66142f7bd9cc0fc2d2216 Mon Sep 17 00:00:00 2001 From: Rintim Date: Thu, 28 Sep 2023 20:10:04 +0800 Subject: [PATCH] change stl position && modify stl name to style. --- game/game.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/game/game.js b/game/game.js index 829bb9b1e..01474270e 100644 --- a/game/game.js +++ b/game/game.js @@ -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));