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