2020-11-29 11:06:35 +02:00
|
|
|
<template>
|
|
|
|
<FormBase>
|
2021-01-08 14:43:56 +02:00
|
|
|
<FormButton @click="error()">error test</FormButton>
|
2020-11-29 11:06:35 +02:00
|
|
|
</FormBase>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineAsyncComponent, defineComponent } from 'vue';
|
|
|
|
import { faFlask } from '@fortawesome/free-solid-svg-icons';
|
2021-03-23 10:30:14 +02:00
|
|
|
import FormSwitch from '@client/components/form/switch.vue';
|
|
|
|
import FormSelect from '@client/components/form/select.vue';
|
|
|
|
import FormLink from '@client/components/form/link.vue';
|
|
|
|
import FormBase from '@client/components/form/base.vue';
|
|
|
|
import FormGroup from '@client/components/form/group.vue';
|
|
|
|
import FormButton from '@client/components/form/button.vue';
|
|
|
|
import FormKeyValueView from '@client/components/form/key-value-view.vue';
|
|
|
|
import * as os from '@client/os';
|
2020-11-29 11:06:35 +02:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
FormBase,
|
|
|
|
FormSelect,
|
|
|
|
FormSwitch,
|
|
|
|
FormButton,
|
|
|
|
FormLink,
|
|
|
|
FormGroup,
|
|
|
|
FormKeyValueView,
|
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
INFO: {
|
2020-12-26 03:47:36 +02:00
|
|
|
title: this.$ts.experimentalFeatures,
|
2020-11-29 11:06:35 +02:00
|
|
|
icon: faFlask
|
|
|
|
},
|
|
|
|
stats: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.$emit('info', this.INFO);
|
|
|
|
},
|
2021-01-08 14:43:56 +02:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
error() {
|
|
|
|
throw new Error('Test error');
|
|
|
|
}
|
|
|
|
}
|
2020-11-29 11:06:35 +02:00
|
|
|
});
|
|
|
|
</script>
|