Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
huamu
Commits
c9e7365e
Commit
c9e7365e
authored
Sep 22, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除LocalizedFormat
parent
3d8663e7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
util.ts
src/components/MyComponent/util.ts
+0
-2
dayjs.ts
src/util/dayjs.ts
+0
-2
No files found.
src/components/MyComponent/util.ts
View file @
c9e7365e
import
{
App
,
Plugin
}
from
'vue'
import
dayjs
from
'dayjs'
import
ch
from
'dayjs/locale/zh-cn'
import
LocalizedFormat
from
'dayjs/plugin/LocalizedFormat'
dayjs
.
extend
(
LocalizedFormat
)
dayjs
.
locale
(
ch
)
export
const
withInstall
=
<
T
>
(
comp
:
T
):
T
&
Plugin
=>
{
...
...
src/util/dayjs.ts
View file @
c9e7365e
import
dayjs
from
'dayjs'
import
ch
from
'dayjs/locale/zh-cn'
import
LocalizedFormat
from
'dayjs/plugin/LocalizedFormat'
import
relativeTime
from
'dayjs/plugin/relativeTime'
dayjs
.
extend
(
LocalizedFormat
)
dayjs
.
extend
(
relativeTime
)
dayjs
.
locale
(
ch
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment