mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-12 19:01:05 +00:00
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
import mdCore from './core';
|
|
import mdAvatar from './components/mdAvatar';
|
|
import mdBottomBar from './components/mdBottomBar';
|
|
import mdButton from './components/mdButton';
|
|
import mdButtonToggle from './components/mdButtonToggle';
|
|
import mdCheckbox from './components/mdCheckbox';
|
|
import mdDivider from './components/mdDivider';
|
|
import mdIcon from './components/mdIcon';
|
|
import mdInputContainer from './components/mdInputContainer';
|
|
import mdList from './components/mdList';
|
|
import mdRadio from './components/mdRadio';
|
|
import mdSelect from './components/mdSelect';
|
|
import mdSidenav from './components/mdSidenav';
|
|
import mdSubheader from './components/mdSubheader';
|
|
import mdSwitch from './components/mdSwitch';
|
|
import mdTabs from './components/mdTabs';
|
|
import mdToolbar from './components/mdToolbar';
|
|
import mdTooltip from './components/mdTooltip';
|
|
import mdWhiteframe from './components/mdWhiteframe';
|
|
|
|
let options = {
|
|
mdCore,
|
|
mdAvatar,
|
|
mdBottomBar,
|
|
mdButton,
|
|
mdButtonToggle,
|
|
mdCheckbox,
|
|
mdDivider,
|
|
mdIcon,
|
|
mdInputContainer,
|
|
mdList,
|
|
mdRadio,
|
|
mdSelect,
|
|
mdSidenav,
|
|
mdSubheader,
|
|
mdSwitch,
|
|
mdTabs,
|
|
mdToolbar,
|
|
mdTooltip,
|
|
mdWhiteframe
|
|
};
|
|
|
|
options.install = (Vue) => {
|
|
for (let component in options) {
|
|
let componentInstaller = options[component];
|
|
|
|
if (componentInstaller && component !== 'install') {
|
|
Vue.use(componentInstaller);
|
|
}
|
|
}
|
|
};
|
|
|
|
window.VueMaterial = options;
|
|
|
|
export default options;
|