ecinc-cloud-moadcdb 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 +52 -0
- package/lib/ecmoadcdb.common.js +33276 -0
- package/lib/ecmoadcdb.umd.js +33286 -0
- package/lib/ecmoadcdb.umd.min.js +8 -0
- package/package.json +10 -0
package/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// 导入单个组件
|
|
2
|
+
|
|
3
|
+
//index
|
|
4
|
+
import DcdbIndex from './src/index'
|
|
5
|
+
//wpsp
|
|
6
|
+
import DcdbWdsp from './src/wdsp/index'
|
|
7
|
+
//dcdbIndex
|
|
8
|
+
import DcdbDcdbIndex from './src/dcdbIndex/index'
|
|
9
|
+
import DcdbDcdbIndexTotal from './src/dcdbIndex/components/Total'
|
|
10
|
+
//dbxx
|
|
11
|
+
import DcdbDbxx from './src/dbxx/index'
|
|
12
|
+
import DcdbDbxxJournalismContent from './src/dbxx/conponents/journalismContent'
|
|
13
|
+
//dbsx
|
|
14
|
+
import DcdbDbsxDbrw from './src/dbsx/dbrw'
|
|
15
|
+
import DcdbDbsxIndex from './src/dbsx/index'
|
|
16
|
+
import DcdbDbsxBaseDetail from './src/dbsx/components/baseDetail'
|
|
17
|
+
import DcdbDbsxDetail from './src/dbsx/components/detail'
|
|
18
|
+
import DcdbDbsxUrgeTodo from './src/dbsx/components/urgeTodo'
|
|
19
|
+
//components
|
|
20
|
+
import DcdbComponentsInnerTable from './src/components/InnerTable'
|
|
21
|
+
import DcdbComponentsShangbaoTable from './src/components/shangbaoTable'
|
|
22
|
+
//cbgz
|
|
23
|
+
import DcdbCbgzIndex from './src/cbgz/index'
|
|
24
|
+
import DcdbCbgzGzqsSignFor from './src/cbgz/gzqs/SignFor'
|
|
25
|
+
import DcdbCbgzHb from './src/cbgz/components/hb'
|
|
26
|
+
import DcdbCbgzSupervisionTask from './src/cbgz/components/SupervisionTask'
|
|
27
|
+
// 以对象的结构保存组件,便于遍历
|
|
28
|
+
const components = {
|
|
29
|
+
DcdbIndex,DcdbWdsp,DcdbDcdbIndex,DcdbDcdbIndexTotal,DcdbDbxx,DcdbDbxxJournalismContent,DcdbDbsxDbrw,DcdbDbsxIndex,
|
|
30
|
+
DcdbDbsxBaseDetail,DcdbDbsxDetail,DcdbComponentsShangbaoTable,DcdbComponentsInnerTable,DcdbCbgzIndex,DcdbCbgzGzqsSignFor,
|
|
31
|
+
DcdbCbgzHb,DcdbCbgzSupervisionTask,DcdbDbsxUrgeTodo
|
|
32
|
+
}
|
|
33
|
+
// 定义 install 方法
|
|
34
|
+
const install = function(Vue) {
|
|
35
|
+
if (install.installed) return
|
|
36
|
+
install.installed = true
|
|
37
|
+
// 遍历并注册全局组件
|
|
38
|
+
Object.keys(components).forEach(key => {
|
|
39
|
+
Vue.component(key, components[key])
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
44
|
+
install(window.Vue)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default {
|
|
48
|
+
// 导出的对象必须具备一个 install 方法
|
|
49
|
+
install,
|
|
50
|
+
// 组件列表
|
|
51
|
+
...components
|
|
52
|
+
}
|