You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//handle : 或
let value = attrsMap.value || attrsMap[":value"];
if (value) {
if (attrsMap.value) {
el.children.push({
type: 3,
text: value
});
} else {
el.children.push({
type: 2,
expression: '_s(' + value + ')',
// tokens: [[Object]],
text: '{{' + value + '}}'
});
}
let i = -1;
let b = attrs.some(function (item, index) {
i = index;
return item.name.endsWith("value");
});
//remove value
if (b) {
attrs.splice(i, 1);
}
}`
The text was updated successfully, but these errors were encountered:
template:
output html:
repair: src/components/text.js
processText methods
//handle : 或
let value = attrsMap.value || attrsMap[":value"];
if (value) {
if (attrsMap.value) {
el.children.push({
type: 3,
text: value
});
} else {
el.children.push({
type: 2,
expression: '_s(' + value + ')',
// tokens: [[Object]],
text: '{{' + value + '}}'
});
}
The text was updated successfully, but these errors were encountered: