refactor: formula.vue to composition api

This commit is contained in:
Norm 2022-08-19 15:58:16 -04:00
parent aa56cf5813
commit b3b8e56092
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -2,22 +2,12 @@
<XFormula :formula="formula" :block="block"/>
</template>
<script lang="ts">
import { defineComponent, defineAsyncComponent } from 'vue';
<script lang="ts" setup>
import { defineAsyncComponent } from 'vue';
export default defineComponent({
components: {
XFormula: defineAsyncComponent(() => import('./formula-core.vue')),
},
props: {
formula: {
type: String,
required: true,
},
block: {
type: Boolean,
required: true,
},
},
});
const XFormula = defineAsyncComponent(() => import('./formula-core.vue'));
defineProps<{
formula: string;
block: boolean;
}>();
</script>