File size: 877 Bytes
71174bc | 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 | <template>
<div v-if="testSpecified" style="height:0; opacity:0;">
<span id="test-cmds">{{ $store.state.test.cmds }}</span>
<span id="test-error">{{ $store.state.test.error }}</span>
<span id="test-msgs">{{ $store.state.test.msgs }}</span>
</div>
</template>
<script lang="ts">
import { Options, Vue } from "vue-class-component";
import { pluginToTest } from "./PluginToTest";
// import { Prop } from "vue-property-decorator";
/**
* TestData
*/
@Options({
components: {},
})
export default class TestData extends Vue {
// @Prop({ required: true }) cmds!: string;
testSpecified = false;
/**
* Runs when the component is mounted.
*/
mounted() {
if (pluginToTest !== "") {
this.testSpecified = true;
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss"></style>
|