You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import GuipButton from './GuipButton'
|
|
|
|
import GroupFormBtns from './GroupFormBtns'
|
|
|
|
import GuipInput from './GuipInput'
|
|
|
|
import PromptText from './PromptText'
|
|
|
|
import GuipTextarea from './GuipTextarea'
|
|
|
|
import DevicePreview from './DevicePreview'
|
|
|
|
import GuipRadio from './GuipRadio'
|
|
|
|
import GuipSelect from './GuipSelect'
|
|
|
|
import Breadcrumb from './Breadcrumb'
|
|
|
|
import SvgIcon1 from './SvgIcon1'
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css' // 如果依赖Element
|
|
|
|
import './styles/index.css' // 全局引入
|
|
|
|
import './styles/common.scss' // 全局引入
|
|
|
|
|
|
|
|
const components = [
|
|
|
|
GuipButton,
|
|
|
|
GroupFormBtns,
|
|
|
|
GuipInput,
|
|
|
|
PromptText,
|
|
|
|
GuipTextarea,
|
|
|
|
DevicePreview,
|
|
|
|
GuipRadio,
|
|
|
|
GuipSelect,
|
|
|
|
Breadcrumb,
|
|
|
|
SvgIcon1
|
|
|
|
]
|
|
|
|
|
|
|
|
const install = function (Vue) {
|
|
|
|
components.forEach(component => {
|
|
|
|
if (!component.name) {
|
|
|
|
throw new Error(`Component name is required: ${component}`)
|
|
|
|
}
|
|
|
|
Vue.component(component.name, component)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
install,
|
|
|
|
GuipButton,
|
|
|
|
GroupFormBtns,
|
|
|
|
GuipInput,
|
|
|
|
PromptText,
|
|
|
|
GuipTextarea,
|
|
|
|
DevicePreview,
|
|
|
|
GuipRadio,
|
|
|
|
GuipSelect,
|
|
|
|
Breadcrumb,
|
|
|
|
SvgIcon1
|
|
|
|
}
|