-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { type App } from 'vue' | ||
import SContent from '../components/SContent.vue' | ||
import SDivider from '../components/SDivider.vue' | ||
import SIcon from '../components/SIcon.vue' | ||
import SLink from '../components/SLink.vue' | ||
import SModal from '../components/SModal.vue' | ||
import STrans from '../components/STrans.vue' | ||
import { mixin as mixinCard } from './Card' | ||
import { mixin as mixinControl } from './Control' | ||
import { mixin as mixinDesc } from './Desc' | ||
import { mixin as mixinDoc } from './Doc' | ||
import { mixin as mixinGrid } from './Grid' | ||
import { mixin as mixinHead } from './Head' | ||
|
||
export function mixin(app: App): void { | ||
mixinCard(app) | ||
mixinControl(app) | ||
mixinDesc(app) | ||
mixinDoc(app) | ||
mixinGrid(app) | ||
mixinHead(app) | ||
|
||
app.component('SContent', SContent) | ||
app.component('SDivider', SDivider) | ||
app.component('SIcon', SIcon) | ||
app.component('SLink', SLink) | ||
app.component('SModal', SModal) | ||
app.component('STrans', STrans) | ||
} | ||
|
||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
SContent: typeof SContent | ||
SDivider: typeof SDivider | ||
SIcon: typeof SIcon | ||
SLink: typeof SLink | ||
SModal: typeof SModal | ||
STrans: typeof STrans | ||
} | ||
} |