forked from alexjoverm/v-runtime-template
-
Notifications
You must be signed in to change notification settings - Fork 12
/
App.vue
55 lines (52 loc) · 1.26 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
<div>
<v-runtime-template :template="testMixin"/>
<v-runtime-template :template="testLocal"/>
</div>
</template>
<script>
import VRuntimeTemplate from "./index.js"; //import raw src
import Test from "./Test.vue"; //import raw src
export default {
data() {
return {
testMixin:
"<test>Testing Mixins: <ul><li>{{testingProp}}</li><li>{{testingData}}</li><li>{{testingMethod('x')}}</li><li>{{testingComputed}}</li></ul></test>",
testLocal:
"<test>Testing Local: <ul><li>{{testingPropLocal}}</li><li>{{testingDataLocal}}</li><li>{{testingMethodLocal('x')}}</li><li>{{testingComputedLocal}}</li></ul></test>",
testingDataLocal: "localTest: testingData"
};
},
props: {
testingProp: {
default: "should not see"
},
testingPropLocal: {
default: "localTest: testingProp"
}
},
computed: {
testingComputedLocal() {
return "localTest: testingComputed";
},
testingComputed() {
return "should not see";
}
},
methods: {
testingMethodLocal() {
return "localTest: testingMethod";
},
testingMethod() {
return "Should not see";
}
},
components: {
VRuntimeTemplate,
// eslint-disable-next-line
Test
}
};
</script>
<style>
</style>