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.
66 lines
1.5 KiB
66 lines
1.5 KiB
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 SvgIcon from './SvgIcon';
|
|
import GuipTable from './GuipTable';
|
|
import GuipSwitch from './GuipSwitch';
|
|
import GuipTooltip from './GuipToolTip';
|
|
import GuipDialog from './GuipDialog';
|
|
import 'core-js/stable'
|
|
import 'element-ui/lib/theme-chalk/index.css'; // 如果依赖Element
|
|
import './styles/index.css'; // 全局引入
|
|
import './styles/common.scss'; // 全局引入
|
|
import './styles/component.scss'; // 全局引入
|
|
|
|
const components = [
|
|
GuipButton,
|
|
GroupFormBtns,
|
|
GuipInput,
|
|
PromptText,
|
|
GuipTextarea,
|
|
DevicePreview,
|
|
GuipRadio,
|
|
GuipSelect,
|
|
Breadcrumb,
|
|
SvgIcon1,
|
|
SvgIcon,
|
|
GuipTable,
|
|
GuipTooltip,
|
|
GuipSwitch,
|
|
GuipDialog
|
|
]
|
|
|
|
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,
|
|
SvgIcon,
|
|
GuipTable,
|
|
GuipTooltip,
|
|
GuipSwitch,
|
|
GuipDialog
|
|
}
|