增加了对oak:value子组件的编译处理

This commit is contained in:
Xu Chang 2022-05-17 19:05:35 +08:00
parent a73d9557f0
commit 8d7b2dd141
1 changed files with 3 additions and 0 deletions

View File

@ -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');