forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix darkModeSwitch switch failure
- Loading branch information
Showing
6 changed files
with
48 additions
and
78 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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CountButton from './src/CountButton.vue'; | ||
import CountdownInput from './src/CountdownInput.vue'; | ||
import { withInstall } from '/@/utils'; | ||
import countButton from './src/CountButton.vue'; | ||
import countdownInput from './src/CountdownInput.vue'; | ||
|
||
export { CountdownInput, CountButton }; | ||
export const CountdownInput = withInstall(countdownInput); | ||
export const CountButton = withInstall(countButton); |
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
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
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import Icon from './Icon/index'; | ||
import { Icon } from './Icon'; | ||
import { Button } from './Button'; | ||
import { | ||
// Need | ||
Button as AntButton, | ||
Input, | ||
} from 'ant-design-vue'; | ||
|
||
import { App } from 'vue'; | ||
|
||
const compList = [Icon, Button, AntButton.Group]; | ||
const compList = [Icon, AntButton.Group]; | ||
|
||
export function registerGlobComp(app: App) { | ||
compList.forEach((comp: any) => { | ||
app.component(comp.name || comp.displayName, comp); | ||
}); | ||
|
||
app.use(Input).use(Button); | ||
} |
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