ecinc-cloud-yoaemail 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 ADDED
@@ -0,0 +1,56 @@
1
+ // index
2
+ import EmailIndex from './src/index'
3
+ import EmailAccessoryList from './src/accessoryList'
4
+ import EmailAddress from './src/address'
5
+ import EmailEcincMailHelp from './src/ecincMailHelp'
6
+ import EmailEmailWatch from './src/emailWatch'
7
+ import EmailList from './src/list'
8
+ import EmailXieyoujian from './src/xieyoujian'
9
+ import EmailYouxiangshezhi from './src/youxiangshezhi'
10
+ // portlel
11
+ import EmailportlelEmail from './src/portlet/Email'
12
+ // components
13
+ import EmailBackupEmailDetail from './src/components/backupEmailDetail'
14
+ import EmailFolder from './src/components/Folder'
15
+ import EmailLeftMenu from './src/components/LeftMenu'
16
+ import EmailTbColumns from './src/components/tbColumns'
17
+ import EmailTbColumnsWatch from './src/components/tbColumnsWatch'
18
+ import EmailTxl from './src/components/txl'
19
+ // 以数组的结构保存组件,便于遍历
20
+ const components = {
21
+ EmailIndex,
22
+ EmailAccessoryList,
23
+ EmailAddress,
24
+ EmailEcincMailHelp,
25
+ EmailEmailWatch,
26
+ EmailList,
27
+ EmailXieyoujian,
28
+ EmailYouxiangshezhi,
29
+ EmailportlelEmail,
30
+ EmailBackupEmailDetail,
31
+ EmailFolder,
32
+ EmailLeftMenu,
33
+ EmailTbColumns,
34
+ EmailTbColumnsWatch,
35
+ EmailTxl
36
+ }
37
+ // 定义 install 方法
38
+ const install = function(Vue) {
39
+ if (install.installed) return
40
+ install.installed = true
41
+ // 遍历并注册全局组件
42
+ Object.keys(components).forEach(key => {
43
+ Vue.component(key, components[key])
44
+ })
45
+ }
46
+
47
+ if (typeof window !== 'undefined' && window.Vue) {
48
+ install(window.Vue)
49
+ }
50
+
51
+ export default {
52
+ // 导出的对象必须具备一个 install 方法
53
+ install,
54
+ // 组件列表
55
+ ...components
56
+ }