ecinc-cloud-moawpgl 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +54 -0
- package/lib/ecmoawpgl.common.js +28155 -0
- package/lib/ecmoawpgl.umd.js +28165 -0
- package/lib/ecmoawpgl.umd.min.js +8 -0
- package/package.json +10 -0
package/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// 导入单个组件
|
|
2
|
+
|
|
3
|
+
//index
|
|
4
|
+
import WpglIndex from './src/index'
|
|
5
|
+
//wpzy
|
|
6
|
+
import WpglWpzy from './src/wpzy/index'
|
|
7
|
+
//wpsp
|
|
8
|
+
import WpglWpsp from './src/wpsp/index'
|
|
9
|
+
//wppd
|
|
10
|
+
import WpglWppd from './src/wppd/index'
|
|
11
|
+
import WpglCheckStockList from './src/wppd/components/checkStockList'
|
|
12
|
+
//wply
|
|
13
|
+
import WpglWply from './src/wply/index'
|
|
14
|
+
import WpglWplyGrwp from './src/wply/grwp/index'
|
|
15
|
+
import WpglWplyKjywp from './src/wply/kjywp/index'
|
|
16
|
+
import WpglWplyKlywp from './src/wply/klywp/index'
|
|
17
|
+
//wpgl
|
|
18
|
+
import WpglWpgl from './src/wpgl/index'
|
|
19
|
+
import WpglFfdj from './src/wpgl/components/ffdj'
|
|
20
|
+
import WpglFfjj from './src/wpgl/components/ffjl'
|
|
21
|
+
import Wpglkcgl from './src/wpgl/components/kcgl'
|
|
22
|
+
import WpglKcyj from './src/wpgl/components/kcyj'
|
|
23
|
+
import WpglRkdj from './src/wpgl/components/rkdj'
|
|
24
|
+
import WpglRkjl from './src/wpgl/components/rkjl'
|
|
25
|
+
//components
|
|
26
|
+
import WpglHeaderTitle from './src/components/HeaderTitle'
|
|
27
|
+
import WpglInnerTable from './src/components/InnerTable'
|
|
28
|
+
import WpglYlyTable from './src/components/ylyTable'
|
|
29
|
+
// 以对象的结构保存组件,便于遍历
|
|
30
|
+
const components = {
|
|
31
|
+
WpglIndex,WpglWpzy,WpglWpsp,WpglWppd,WpglWply,WpglWplyGrwp,WpglWplyKjywp,
|
|
32
|
+
WpglWplyKlywp,WpglWpgl,WpglFfdj,WpglFfjj,Wpglkcgl,WpglKcyj,WpglRkdj,WpglRkjl,WpglHeaderTitle,WpglInnerTable,WpglYlyTable,WpglCheckStockList
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
// 定义 install 方法
|
|
36
|
+
const install = function(Vue) {
|
|
37
|
+
if (install.installed) return
|
|
38
|
+
install.installed = true
|
|
39
|
+
// 遍历并注册全局组件
|
|
40
|
+
Object.keys(components).forEach(key => {
|
|
41
|
+
Vue.component(key, components[key])
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
46
|
+
install(window.Vue)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
// 导出的对象必须具备一个 install 方法
|
|
51
|
+
install,
|
|
52
|
+
// 组件列表
|
|
53
|
+
...components
|
|
54
|
+
}
|