all files / src/ index.js

85.71% Statements 6/7
75% Branches 3/4
100% Functions 2/2
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125                                                                                                                1×                                                                                                       1× 1× 71×   1×     1×                  
import './styles/base.less'
import Vue from 'vue'
import {retina} from './utils'
import icon from './icon'
import badge from './badge'
import appBar from './appBar'
import iconButton from './iconButton'
import flatButton from './flatButton'
import raisedButton from './raisedButton'
import floatButton from './floatButton'
import contentBlock from './contentBlock'
import * as list from './list'
import subHeader from './subHeader'
import divider from './divider'
import refreshControl from './refreshControl'
import infiniteScroll from './infiniteScroll'
import avatar from './avatar'
import * as tabs from './tabs'
import paper from './paper'
import * as bottomNav from './bottomNav'
import * as card from './card'
import chip from './chip'
import overlay from './internal/popup/overlay'
import dialog from './dialog'
import toast from './toast'
import snackbar from './snackbar'
import popup from './popup'
import * as menu from './menu'
import bottomSheet from './bottomSheet'
import popover from './popover'
import iconMenu from './iconMenu'
import dropDownMenu from './dropDownMenu'
import drawer from './drawer'
import picker from './picker'
import tooltip from './tooltip'
 
import textField from './textField'
import selectField from './selectField'
import checkbox from './checkbox'
import radio from './radio'
import _switch from './switch'
import slider from './slider'
import linearProgress from './linearProgress'
import circularProgress from './circularProgress'
import * as gridList from './gridList'
import * as table from './table'
import datePicker from './datePicker'
import timePicker from './timePicker'
import * as stepper from './stepper'
import autoComplete from './autoComplete'
import pagination from './pagination'
 
import * as grid from './grid'
 
import * as flexbox from './flexbox'
import config from './config'
const components = {
  icon,
  badge,
  appBar,
  iconButton,
  flatButton,
  raisedButton,
  floatButton,
  contentBlock,
  ...list,
  subHeader,
  divider,
  refreshControl,
  infiniteScroll,
  avatar,
  ...tabs,
  paper,
  ...bottomNav,
  ...card,
  chip,
  overlay,
  dialog,
  toast,
  snackbar,
  popup,
  ...menu,
  bottomSheet,
  popover,
  iconMenu,
  dropDownMenu,
  drawer,
  picker,
  tooltip,
  textField,
  selectField,
  checkbox,
  radio,
  _switch,
  slider,
  linearProgress,
  circularProgress,
  ...gridList,
  ...table,
  datePicker,
  timePicker,
  ...stepper,
  autoComplete,
  ...grid,
  ...flexbox,
  pagination
}
 
const install = function () {
  Object.keys(components).forEach((key) => {
    Vue.component(components[key].name, components[key])
  })
  retina()
}
 
Iif (typeof window !== 'undefined' && window.Vue) install(window.Vue)
export default {
  config,
  install
}
export {
  config,
  install
}