refactor: clean up HomeView.vue and update Vite config
- Reformatted imports in HomeView.vue for better readability. - Removed unnecessary comments and improved component structure. - Updated styles in HomeView.vue for consistency. - Removed input path from rollupOptions in vite.config.js.
This commit is contained in:
13
components.d.ts
vendored
13
components.d.ts
vendored
@@ -8,11 +8,24 @@ export {}
|
||||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
||||
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
||||
AImage: typeof import('ant-design-vue/es')['Image']
|
||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
||||
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||
AProgress: typeof import('ant-design-vue/es')['Progress']
|
||||
ARangePicker: typeof import('ant-design-vue/es')['RangePicker']
|
||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||
ASlider: typeof import('ant-design-vue/es')['Slider']
|
||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
||||
ATable: typeof import('ant-design-vue/es')['Table']
|
||||
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
||||
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||
AUpload: typeof import('ant-design-vue/es')['Upload']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,25 @@
|
||||
<template>
|
||||
<div class="homeView">
|
||||
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
|
||||
</div>
|
||||
<div class="homeView">
|
||||
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, h, ref, computed, reactive, toRefs, inject,provide,nextTick,createVNode,onBeforeUnmount, toRef, watch} from "vue";
|
||||
import {
|
||||
defineComponent,
|
||||
h,
|
||||
ref,
|
||||
computed,
|
||||
reactive,
|
||||
toRefs,
|
||||
inject,
|
||||
provide,
|
||||
nextTick,
|
||||
createVNode,
|
||||
onBeforeUnmount,
|
||||
toRef,
|
||||
watch,
|
||||
} from "vue";
|
||||
// import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import CollectionModal from "@/component/HomePage/collectionModal.vue";
|
||||
import NewCollectionReview from "@/component/HomePage/NewCollectionReview.vue";
|
||||
@@ -17,43 +31,44 @@ import DesignDetail from "@/component/Detail/DesignDetail.vue";
|
||||
import DesignDetailcopy from "@/component/DetailCopy/designDetail.vue";
|
||||
// import homeIndex from "@/component/HomePage/index/index.vue";
|
||||
import html2canvas from "html2canvas";
|
||||
import { message,Modal } from "ant-design-vue";
|
||||
import { message, Modal } from "ant-design-vue";
|
||||
import { useStore } from "vuex";
|
||||
import { Https } from "@/tool/https";
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
import { LoadingOutlined ,ExclamationCircleOutlined} from "@ant-design/icons-vue";
|
||||
import { openGuide, driverObj__ } from "@/tool/guide";
|
||||
import {
|
||||
LoadingOutlined,
|
||||
ExclamationCircleOutlined,
|
||||
} from "@ant-design/icons-vue";
|
||||
// import JSZip, { forEach } from "jszip";
|
||||
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
||||
import i18n from "@/lang";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { getMousePosition } from "@/tool/mdEvent";
|
||||
import { removeClass } from "element-plus/es/utils";
|
||||
const FileSaver = require("file-saver");
|
||||
import FileSaver from "file-saver";
|
||||
|
||||
export default defineComponent({
|
||||
name: "homePage",
|
||||
components: {
|
||||
// homeIndex,
|
||||
NewCollectionReview,
|
||||
DesignDetail,
|
||||
ExportNewCoolection,
|
||||
affiche,
|
||||
productImg,
|
||||
generalCanvas,
|
||||
DesignDetailcopy
|
||||
},
|
||||
emits:['setTask'],
|
||||
setup(props,{emit}) {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
name: "homePage",
|
||||
components: {
|
||||
// homeIndex,
|
||||
NewCollectionReview,
|
||||
DesignDetail,
|
||||
ExportNewCoolection,
|
||||
affiche,
|
||||
productImg,
|
||||
generalCanvas,
|
||||
DesignDetailcopy,
|
||||
},
|
||||
emits: ["setTask"],
|
||||
setup(props, { emit }) {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.homeView{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
.homeView {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
@@ -97,7 +97,6 @@ export default defineConfig(({ mode }) => {
|
||||
assetsDir: "assets",
|
||||
// 分包策略
|
||||
rollupOptions: {
|
||||
input: path.resolve(__dirname, "public/index.html"),
|
||||
output: {
|
||||
manualChunks: {
|
||||
vendor: ["vue", "vue-router", "vuex"],
|
||||
|
||||
Reference in New Issue
Block a user