mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:48:22 +08:00
feat: import type as type (#375)
This commit is contained in:
parent
8f7276f7d7
commit
12a88c6d3b
|
@ -55,7 +55,7 @@
|
|||
</t-card>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue';
|
||||
import type { PropType } from 'vue';
|
||||
import {
|
||||
ShopIcon,
|
||||
CalendarIcon,
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ComputedRef } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import type { ComputedRef } from 'vue';
|
||||
import { useTabsRouterStore } from '@/store';
|
||||
|
||||
// <suspense>标签属于实验性功能,请谨慎使用
|
||||
|
|
|
@ -64,13 +64,14 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, computed } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import type { PropType } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useSettingStore } from '@/store';
|
||||
import { getActive } from '@/router';
|
||||
import { prefix } from '@/config/global';
|
||||
import LogoFull from '@/assets/assets-logo-full.svg?component';
|
||||
import { MenuRoute } from '@/types/interface';
|
||||
import type { MenuRoute } from '@/types/interface';
|
||||
|
||||
import Notice from './Notice.vue';
|
||||
import Search from './Search.vue';
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
:min-column-width="128"
|
||||
:popup-props="{
|
||||
overlayClassName: 'route-tabs-dropdown',
|
||||
onVisibleChange: (visible: boolean, ctx) => handleTabMenuClick(visible, ctx, routeItem.path),
|
||||
onVisibleChange: (visible, ctx) => handleTabMenuClick(visible, ctx, routeItem.path),
|
||||
visible: activeTabPath === routeItem.path,
|
||||
}"
|
||||
>
|
||||
|
@ -71,7 +71,7 @@ import { nextTick, ref, computed } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { useSettingStore, useTabsRouterStore } from '@/store';
|
||||
import { prefix } from '@/config/global';
|
||||
import { TRouterInfo } from '@/types/interface';
|
||||
import type { TRouterInfo } from '@/types/interface';
|
||||
|
||||
import LContent from './Content.vue';
|
||||
import LBreadcrumb from './Breadcrumb.vue';
|
||||
|
|
|
@ -29,9 +29,10 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, PropType } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import type { PropType } from 'vue';
|
||||
import isObject from 'lodash/isObject';
|
||||
import { MenuRoute } from '@/types/interface';
|
||||
import type { MenuRoute } from '@/types/interface';
|
||||
import { getActive } from '@/router';
|
||||
|
||||
const props = defineProps({
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
import { useRouter } from 'vue-router';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useNotificationStore } from '@/store';
|
||||
import { NotificationItem } from '@/types/interface';
|
||||
import type { NotificationItem } from '@/types/interface';
|
||||
|
||||
const router = useRouter();
|
||||
const store = useNotificationStore();
|
||||
|
|
|
@ -16,14 +16,15 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, PropType } from 'vue';
|
||||
import { computed, onMounted } from 'vue';
|
||||
import type { PropType } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import union from 'lodash/union';
|
||||
|
||||
import { useSettingStore } from '@/store';
|
||||
import { prefix } from '@/config/global';
|
||||
import pgk from '../../../package.json';
|
||||
import { MenuRoute } from '@/types/interface';
|
||||
import type { MenuRoute } from '@/types/interface';
|
||||
import { getActive, getRoutesExpanded } from '@/router';
|
||||
|
||||
import AssetLogo from '@/assets/assets-t-logo.svg?component';
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, watchEffect } from 'vue';
|
||||
import { MessagePlugin, PopupVisibleChangeContext } from 'tdesign-vue-next';
|
||||
import { MessagePlugin } from 'tdesign-vue-next';
|
||||
import type { PopupVisibleChangeContext } from 'tdesign-vue-next';
|
||||
import { Color } from 'tvision-color';
|
||||
import useClipboard from 'vue-clipboard3';
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ export default {
|
|||
import { ref, computed } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { NOTIFICATION_TYPES } from '@/constants';
|
||||
import { NotificationItem } from '@/types/interface';
|
||||
import type { NotificationItem } from '@/types/interface';
|
||||
import EmptyIcon from '@/assets/assets-empty.svg?component';
|
||||
import { useNotificationStore } from '@/store';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { defineStore } from 'pinia';
|
||||
import { NotificationItem } from '@/types/interface';
|
||||
import type { NotificationItem } from '@/types/interface';
|
||||
|
||||
const msgData = [
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { defineStore } from 'pinia';
|
||||
import { TRouterInfo, TTabRouterType } from '@/types/interface';
|
||||
import type { TRouterInfo, TTabRouterType } from '@/types/interface';
|
||||
import { store } from '@/store';
|
||||
|
||||
const homeRoute: Array<TRouterInfo> = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user