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"/>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue