feat(projects): 添加全局组件自动引入注册

This commit is contained in:
Soybean
2022-03-12 19:55:02 +08:00
parent 094dca961f
commit f5a043b11a
32 changed files with 77 additions and 35 deletions

View File

@@ -13,7 +13,6 @@
import { ref, watch, onMounted, onUnmounted } from 'vue';
import Vditor from 'vditor';
import 'vditor/src/assets/scss/index.scss';
import { GithubLink } from '@/components';
import { useThemeStore } from '@/store';
const theme = useThemeStore();

View File

@@ -12,7 +12,6 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import WangEditor from 'wangeditor';
import { GithubLink } from '@/components';
const editor = ref<WangEditor>();
const domRef = ref<HTMLElement>();

View File

@@ -45,7 +45,6 @@
<script lang="ts" setup>
import { ref } from 'vue';
import { Icon } from '@iconify/vue';
import { IconSelect, WebSiteLink } from '@/components';
import { icons } from './icons';
const selectValue = ref('');

View File

@@ -12,7 +12,6 @@
<script lang="ts" setup>
import printJS from 'print-js';
import { GithubLink } from '@/components';
function printTable() {
printJS({

View File

@@ -24,7 +24,6 @@
import SwiperCore, { Navigation, Pagination } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/vue';
import type { SwiperOptions } from 'swiper';
import { WebSiteLink, GithubLink } from '@/components';
type SwiperExampleOptions = Pick<
SwiperOptions,