修复材质导出问题,添加库打包模式
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { type Property } from 'csstype';
|
||||
import type { Property } from 'csstype';
|
||||
import { computed } from 'vue';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
|
@@ -13,6 +13,9 @@ import CfFlex from './CfFlex.vue';
|
||||
const scene = useScene();
|
||||
const container = useTemplateRef<HTMLElement>('container');
|
||||
|
||||
// 禁用右键菜单
|
||||
document.addEventListener('contextmenu', (e) => e.preventDefault());
|
||||
|
||||
onMounted(() => {
|
||||
scene.Initial(container.value);
|
||||
});
|
||||
|
Reference in New Issue
Block a user