jobsys-newbie
Version:
Enhanced component based on ant-design-vue
21 lines (20 loc) • 459 B
JavaScript
import * as components from "./components"
import { _configStatus } from "./hooks"
export * from "./components"
export default {
install(app) {
for (const componentKey in components) {
const component = components[componentKey]
app.use(component)
}
},
/**
* 用于配置一些全局的工具参数
* @param httpStatus
*/
config({ httpStatus }) {
if (httpStatus && Object.keys(httpStatus).length) {
_configStatus(httpStatus)
}
},
}