fix: 修复打包报错问题

This commit is contained in:
wangjiahao 2024-03-14 10:33:28 +08:00
parent 97288c14cb
commit 24982a350a

View File

@ -23,8 +23,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, nextTick, toRefs } from 'vue' import { computed, nextTick, toRefs, getCurrentInstance, onMounted } from 'vue'
import { getCurrentInstance, onMounted } from 'vue/dist/vue'
const props = defineProps({ const props = defineProps({
element: { element: {
type: Object type: Object
@ -32,7 +31,6 @@ const props = defineProps({
}) })
const { element } = toRefs(props) const { element } = toRefs(props)
let currentInstance let currentInstance
const timeMargin = computed(() => { const timeMargin = computed(() => {
return element.value.style.time_margin return element.value.style.time_margin