<template>
    <div class="detailLeft">
		<sketch v-show="currentDetailType == 'sketch'"></sketch>
		<print v-show="currentDetailType == 'print'"></print>
		<color v-show="currentDetailType == 'color'"></color>
    </div>
    
</template>
<script lang="ts">
import { defineComponent,computed,ref,provide,nextTick,createVNode,toRefs, reactive} from 'vue'
// import setDesignItem from '@/component/Detail/setDesignItem2.vue'
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { Https } from "@/tool/https";
import { useStore } from "vuex";
import { useI18n } from 'vue-i18n'
import sketch from './sketch.vue'
import print from './print.vue'
import color from './colorBox/index.vue'

export default defineComponent({
    components:{
		sketch,print,color
    },
    setup(props,{emit}) {
        const store = useStore();
		const detailData = reactive({
			selectTitle:'upload',
			selectDetail:computed(()=>store.state.DesignDetailCopy.selectDetail),
			currentDetailType:computed(()=>store.state.DesignDetailCopy.currentDetailType),
		})
		const getDetailListData = reactive({
			total:0,
			pageSize:10,
			currentPage:1,
		})
		const getDetailListDom = reactive({
			libraryList:null as any,
		})
		
		
        return{
			...toRefs(detailData),
			...toRefs(getDetailListData),
			...toRefs(getDetailListDom),
			
        }
    },

	provide() {
		return {
		}
	},
		
})
</script>
<style lang="less" scoped>
    .detailLeft{
		width: 34rem;
		// width: 100%;
		height: 100%;
	}
</style>