fix: update dayjs import

This commit is contained in:
pengzhanbo 2022-03-13 08:02:14 +08:00
parent 44d609b2f6
commit 965fdc7acc
8 changed files with 8 additions and 11 deletions

View File

@ -1,6 +1,6 @@
<script lang="ts" setup>
import * as dayjs from 'dayjs'
import { useArchivesList } from '../composables/useArchives'
import { dayjs } from '../utils/dayjs'
const archivesList = useArchivesList()

View File

@ -1,8 +1,8 @@
<script lang="ts" setup>
import * as dayjs from 'dayjs'
import type { Component } from 'vue'
import { h, withDefaults } from 'vue'
import type { CategoryItem } from '../composables'
import { dayjs } from '../utils/dayjs'
interface Props {
category: CategoryItem

View File

@ -1,7 +1,7 @@
<script lang="ts" setup>
import * as dayjs from 'dayjs'
import { computed, withDefaults } from 'vue'
import type { PostItemIndex } from '../../shared'
import { dayjs } from '../utils/dayjs'
import Icon from './Icon.vue'
const props = withDefaults(

View File

@ -1,7 +1,7 @@
import * as dayjs from 'dayjs'
import { ref } from 'vue'
import type { Ref } from 'vue'
import type { PostItemIndex } from '../../shared'
import { dayjs } from '../utils/dayjs'
import { usePostIndex } from './usePostIndex'
export interface ArchivesItem {

View File

@ -45,7 +45,7 @@
border-bottom: var(--c-brand) 1px solid;
}
@media (max-width: $MQMobileNarrow) {
@media (max-width: 419px) {
.code-group__nav {
margin-left: -1.5rem;
margin-right: -1.5rem;

View File

@ -0,0 +1,3 @@
import * as _dayjs from 'dayjs'
export const dayjs = (_dayjs as any).default || _dayjs

View File

@ -1,3 +0,0 @@
export * from './isActiveSidebarItem';
export * from './resolveEditLink';
export * from './resolveRepoType';

View File

@ -1,3 +0,0 @@
export * from './isActiveSidebarItem';
export * from './resolveEditLink';
export * from './resolveRepoType';