prettier/tests/html_vue/interpolations.vue

59 lines
1.2 KiB
Vue

<template>
<div>Fuga magnam facilis. Voluptatem quaerat porro.{{
x => {
const hello = 'world'
return hello;
}
}} Magni consectetur in et molestias neque esse voluptatibus voluptas. {{
some_variable
}} Eum quia nihil nulla esse. Dolorem asperiores vero est error {{
preserve
invalid
interpolation
}} reprehenderit voluptates minus {{console.log( short_interpolation )}} nemo.</div>
<script type="text/jsx">
export default {
render (h) {
return (
<ul
class={{
'a': b,
'c': d,
"e": f
}}
>
{ this.xyz }
</ul>
)
};
</script>
<div>
1234567890123456789012345678901234567890123456789012345678901234567890{{ something }}1234567890
</div>
<div>
1234567890123456789012345678901234567890123456789012345678901234567890 {{ something }}1234567890
</div>
<div>
1234567890123456789012345678901234567890123456789012345678901234567890{{ something }} 1234567890
</div>
<div>
1234567890123456789012345678901234567890123456789012345678901234567890 {{ something }} 1234567890
</div>
</template>