From 8d7b2dd141ca89c8f72f7c1d10c618a9be43ed3c Mon Sep 17 00:00:00 2001 From: Xc Date: Tue, 17 May 2022 19:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=AF=B9oak:value?= =?UTF-8?q?=E5=AD=90=E7=BB=84=E4=BB=B6=E7=9A=84=E7=BC=96=E8=AF=91=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/loaders/wxml-loader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/loaders/wxml-loader.js b/config/loaders/wxml-loader.js index 586b0a1..7698409 100644 --- a/config/loaders/wxml-loader.js +++ b/config/loaders/wxml-loader.js @@ -98,6 +98,9 @@ module.exports = function (content) { node.removeAttribute('oak:value'); node.setAttribute('value', `{{${oakValue}}}`); node.setAttribute('data-attr', oakValue); + node.setAttribute('oakPath', oakValue); + node.setAttribute('oakValue', `{{${oakValue}}}`); + node.setAttribute('oakParent', `{{oakFullpath}}`); if (node.hasAttribute('oak:forbidFocus')) { node.removeAttribute('oak:forbidFocus');