forked from FoundKeyGang/FoundKey
refactor: formula.vue to composition api
This commit is contained in:
parent
aa56cf5813
commit
b3b8e56092
1 changed files with 7 additions and 17 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue