6 changed files with 48 additions and 78 deletions
@ -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); |
|||
|
|||
@ -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); |
|||
} |
|||
|
|||
Loading…
Reference in new issue