mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix: update dayjs import
This commit is contained in:
parent
44d609b2f6
commit
965fdc7acc
@ -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()
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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;
|
||||
|
||||
3
src/client/utils/dayjs.ts
Normal file
3
src/client/utils/dayjs.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as _dayjs from 'dayjs'
|
||||
|
||||
export const dayjs = (_dayjs as any).default || _dayjs
|
||||
3
src/client/utils/index.d.ts
vendored
3
src/client/utils/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export * from './isActiveSidebarItem';
|
||||
export * from './resolveEditLink';
|
||||
export * from './resolveRepoType';
|
||||
@ -1,3 +0,0 @@
|
||||
export * from './isActiveSidebarItem';
|
||||
export * from './resolveEditLink';
|
||||
export * from './resolveRepoType';
|
||||
Loading…
x
Reference in New Issue
Block a user