UNPKG

nimble-ui

Version:
21 lines (19 loc) 550 B
import { callFn } from 'nimble-lib'; import initFactory from '../../../_commons/helpers/initFactory'; import NuLayercc from './layercc'; import NuLayercb from './layercb'; import NuLayer from './Layer'; let _nuLayer = initFactory(NuLayer); let install = _nuLayer.install; _nuLayer.install = (Vue, options) => { callFn(install, [Vue, options]); [ NuLayercc, NuLayercb ].forEach((item) => { Vue.use(item, options); }); }; _nuLayer.NuLayercc = NuLayercc; _nuLayer.NuLayercb = NuLayercb; export default _nuLayer;