diff --git a/packages/shared/src/template.ts b/packages/shared/src/template.ts index 2302178dfc90..8908b3feed0c 100644 --- a/packages/shared/src/template.ts +++ b/packages/shared/src/template.ts @@ -227,6 +227,8 @@ export class BaseTemplate { return str + `bind${value}="eh" ` } else if (attr === 'class') { return str + `class="{{i.${Shortcuts.Class}}}" ` + } else if (attr === 'style') { + return str + `style="{{i.${Shortcuts.Style}}}" ` } return str + `${attr}="{{i.${toCamelCase(attr)}}}" `