mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
27 lines
448 B
Vue
27 lines
448 B
Vue
<template>
|
|
<p v-html="dataA"/>
|
|
</template>
|
|
<script>
|
|
import Vue from 'vue'
|
|
import Component from 'vue-class-component'
|
|
import { Prop } from 'vue-property-decorator'
|
|
|
|
@Component({
|
|
render: (h) => { }
|
|
})
|
|
export default class MyComponent extends Vue {
|
|
message: string = 'Hello!'
|
|
@Prop() input: string;
|
|
|
|
get dataA() {
|
|
return 42;
|
|
}
|
|
|
|
get dataB() {
|
|
return this.input;
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
</style>
|