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.
41 lines
962 B
41 lines
962 B
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 'element-ui/lib/theme-chalk/index.css' // 如果依赖Element
|
|
import './styles/index.css' // 全局引入
|
|
import './styles/common.scss' // 全局引入
|
|
import './styles/test.scss' // 全局引入
|
|
|
|
const components = [
|
|
GuipButton,
|
|
GroupFormBtns,
|
|
GuipInput,
|
|
PromptText,
|
|
GuipTextarea,
|
|
DevicePreview,
|
|
GuipRadio
|
|
]
|
|
|
|
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
|
|
}
|