tests/phpunit/data/resourceloader/vue-component.vue
raw| 1 | <template> |
| 2 | <!-- Outer comment --> |
| 3 | <div class="mw-vue-test"> |
| 4 | <!-- |
| 5 | Inner comment |
| 6 | with multiple lines |
| 7 | and tabs |
| 8 | --> |
| 9 | <p>Hello\n</p> |
| 10 | <p>{{ hello }}</p> |
| 11 | <pre> |
| 12 | foo\ |
| 13 | bar |
| 14 | </pre> |
| 15 | </div> |
| 16 | </template> |
| 17 | |
| 18 | <script> |
| 19 | // @vue/component |
| 20 | module.exports = { |
| 21 | data: function () { |
| 22 | return { |
| 23 | hello: 'world' |
| 24 | }; |
| 25 | } |
| 26 | }; |
| 27 | </script> |
| 28 | |
| 29 | <style lang="less"> |
| 30 | .mw-vue-test { |
| 31 | &:hover { |
| 32 | background-color: red; |
| 33 | } |
| 34 | } |
| 35 | </style> |