vue2-client 1.18.16 → 1.18.18

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.
Files changed (104) hide show
  1. package/.env +1 -1
  2. package/.eslintrc.js +90 -90
  3. package/Components.md +60 -60
  4. package/docs/index.md +30 -30
  5. package/index.js +31 -31
  6. package/jest-transform-stub.js +8 -8
  7. package/jest.setup.js +7 -7
  8. package/package.json +112 -112
  9. package/public/index.html +1 -1
  10. package/src/assets/img/querySlotDemo.svg +15 -15
  11. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  12. package/src/base-client/components/common/CitySelect/index.js +3 -3
  13. package/src/base-client/components/common/CitySelect/index.md +109 -109
  14. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  15. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  16. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  17. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  18. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  19. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  20. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  21. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  22. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  23. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  24. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  25. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  26. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  27. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  28. package/src/base-client/components/common/Tree/index.js +2 -2
  29. package/src/base-client/components/common/Upload/index.js +3 -3
  30. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  31. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  32. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  33. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  34. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  35. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  36. package/src/base-client/components/common/XDescriptions/index.md +83 -83
  37. package/src/base-client/components/common/XForm/index.md +178 -178
  38. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  39. package/src/base-client/components/common/XStepView/index.js +3 -3
  40. package/src/base-client/components/common/XStepView/index.md +31 -31
  41. package/src/base-client/components/common/XTable/index.md +255 -255
  42. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  43. package/src/base-client/plugins/Config.js +19 -19
  44. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  45. package/src/components/Charts/Bar.vue +62 -62
  46. package/src/components/Charts/ChartCard.vue +134 -134
  47. package/src/components/Charts/Liquid.vue +67 -67
  48. package/src/components/Charts/MiniArea.vue +39 -39
  49. package/src/components/Charts/MiniBar.vue +39 -39
  50. package/src/components/Charts/MiniProgress.vue +75 -75
  51. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  52. package/src/components/Charts/Radar.vue +68 -68
  53. package/src/components/Charts/RankList.vue +77 -77
  54. package/src/components/Charts/TagCloud.vue +113 -113
  55. package/src/components/Charts/TransferBar.vue +64 -64
  56. package/src/components/Charts/Trend.vue +82 -82
  57. package/src/components/Charts/chart.less +12 -12
  58. package/src/components/Charts/smooth.area.less +13 -13
  59. package/src/components/FileImageItem/FileItem.vue +320 -320
  60. package/src/components/FileImageItem/FileItemGroup.vue +297 -297
  61. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  62. package/src/components/NumberInfo/index.js +3 -3
  63. package/src/components/NumberInfo/index.less +54 -54
  64. package/src/components/NumberInfo/index.md +43 -43
  65. package/src/components/card/ChartCard.vue +79 -79
  66. package/src/components/chart/Bar.vue +60 -60
  67. package/src/components/chart/MiniArea.vue +67 -67
  68. package/src/components/chart/MiniBar.vue +59 -59
  69. package/src/components/chart/MiniProgress.vue +57 -57
  70. package/src/components/chart/Radar.vue +80 -80
  71. package/src/components/chart/RankingList.vue +60 -60
  72. package/src/components/chart/Trend.vue +79 -79
  73. package/src/components/chart/index.less +9 -9
  74. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  75. package/src/components/index.js +3 -1
  76. package/src/components/input/IInput.vue +66 -66
  77. package/src/components/menu/SideMenu.vue +75 -75
  78. package/src/components/menu/menu.js +273 -273
  79. package/src/components/tool/AStepItem.vue +60 -60
  80. package/src/components/xScrollBox/example.vue +70 -0
  81. package/src/components/xScrollBox/index.vue +104 -0
  82. package/src/layouts/BlankView.vue +1 -1
  83. package/src/layouts/CommonLayout.vue +56 -56
  84. package/src/layouts/header/HeaderNotice.vue +177 -177
  85. package/src/lib.js +1 -1
  86. package/src/main.js +2 -0
  87. package/src/mock/extend/index.js +84 -84
  88. package/src/mock/goods/index.js +108 -108
  89. package/src/pages/WorkflowDetail/WorkflowDetail.vue +404 -404
  90. package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +98 -98
  91. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  92. package/src/pages/system/dictionary/index.vue +44 -44
  93. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  94. package/src/pages/system/monitor/operLog/index.vue +37 -37
  95. package/src/pages/userInfoDetailManage/ApplyRecordQuery/index.vue +64 -64
  96. package/src/pages/userInfoDetailManage/SafeCheckPaperV3RecordQuery/index.vue +64 -64
  97. package/src/pages/userInfoDetailManage/TelephoneV3RecordQuery/index.vue +64 -64
  98. package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +155 -155
  99. package/src/router/async/router.map.js +2 -1
  100. package/src/services/api/cas.js +79 -79
  101. package/src/store/modules/setting.js +119 -119
  102. package/src/utils/authority-utils.js +85 -85
  103. package/src/utils/errorCode.js +6 -6
  104. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
package/.env CHANGED
@@ -17,4 +17,4 @@ VUE_APP_WEB_STYLES_KEY=admin.webstylesconfig
17
17
  VUE_APP_API_BASE_URL=http://123.60.214.109:8405
18
18
  VUE_APP_SYSTEM_NAME=af-system
19
19
  VUE_APP_LOGIN_VERSION=V4
20
-
20
+ # VUE_APP_SINGLE_PAPER=TRUE
package/.eslintrc.js CHANGED
@@ -1,90 +1,90 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- extends: [
7
- 'plugin:vue/essential',
8
- 'plugin:vue/strongly-recommended',
9
- '@vue/standard'
10
- ],
11
- rules: {
12
- 'comma-dangle': 'off',
13
- 'no-console': 'off',
14
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
15
- 'generator-star-spacing': 'off',
16
- 'no-mixed-operators': 0,
17
- 'vue/max-attributes-per-line': [
18
- 2,
19
- {
20
- singleline: {
21
- max: 5
22
- },
23
- multiline: {
24
- max: 1,
25
- }
26
- }
27
- ],
28
- 'vue/attribute-hyphenation': 0,
29
- 'vue/html-self-closing': 0,
30
- 'vue/component-name-in-template-casing': 0,
31
- 'vue/html-closing-bracket-spacing': 0,
32
- 'vue/singleline-html-element-content-newline': 0,
33
- 'vue/no-unused-components': 0,
34
- 'vue/multiline-html-element-content-newline': 0,
35
- 'vue/no-use-v-if-with-v-for': 0,
36
- 'vue/html-closing-bracket-newline': 0,
37
- 'vue/no-parsing-error': 0,
38
- 'vue/name-property-casing': 0,
39
- 'vue/multi-word-component-names': 0,
40
- 'vue/require-valid-default-prop': 0,
41
- 'no-template-curly-in-string': 0,
42
- 'vue/no-mutating-props': 0,
43
- 'no-useless-escape': 0,
44
- 'no-tabs': 0,
45
- 'multiline-ternary': 0,
46
- 'object-shorthand': 0,
47
- quotes: [
48
- 2,
49
- 'single',
50
- {
51
- avoidEscape: true,
52
- allowTemplateLiterals: true
53
- }
54
- ],
55
- semi: [
56
- 2,
57
- 'never',
58
- {
59
- beforeStatementContinuationChars: 'never'
60
- }
61
- ],
62
- 'no-delete-var': 2,
63
- 'prefer-const': [
64
- 2,
65
- {
66
- ignoreReadBeforeAssign: false
67
- }
68
- ],
69
- 'template-curly-spacing': 'off',
70
- indent: 'off',
71
- // 必须使用全等: false
72
- eqeqeq: 0,
73
- // 可以使用!! 双重否定
74
- 'no-extra-boolean-cast': 'off'
75
- },
76
- parserOptions: {
77
- parser: '@babel/eslint-parser'
78
- },
79
- overrides: [
80
- {
81
- files: [
82
- '**/__tests__/*.{j,t}s?(x)',
83
- '**/tests/unit/**/*.spec.{j,t}s?(x)'
84
- ],
85
- env: {
86
- jest: true
87
- }
88
- }
89
- ]
90
- }
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true
5
+ },
6
+ extends: [
7
+ 'plugin:vue/essential',
8
+ 'plugin:vue/strongly-recommended',
9
+ '@vue/standard'
10
+ ],
11
+ rules: {
12
+ 'comma-dangle': 'off',
13
+ 'no-console': 'off',
14
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
15
+ 'generator-star-spacing': 'off',
16
+ 'no-mixed-operators': 0,
17
+ 'vue/max-attributes-per-line': [
18
+ 2,
19
+ {
20
+ singleline: {
21
+ max: 5
22
+ },
23
+ multiline: {
24
+ max: 1,
25
+ }
26
+ }
27
+ ],
28
+ 'vue/attribute-hyphenation': 0,
29
+ 'vue/html-self-closing': 0,
30
+ 'vue/component-name-in-template-casing': 0,
31
+ 'vue/html-closing-bracket-spacing': 0,
32
+ 'vue/singleline-html-element-content-newline': 0,
33
+ 'vue/no-unused-components': 0,
34
+ 'vue/multiline-html-element-content-newline': 0,
35
+ 'vue/no-use-v-if-with-v-for': 0,
36
+ 'vue/html-closing-bracket-newline': 0,
37
+ 'vue/no-parsing-error': 0,
38
+ 'vue/name-property-casing': 0,
39
+ 'vue/multi-word-component-names': 0,
40
+ 'vue/require-valid-default-prop': 0,
41
+ 'no-template-curly-in-string': 0,
42
+ 'vue/no-mutating-props': 0,
43
+ 'no-useless-escape': 0,
44
+ 'no-tabs': 0,
45
+ 'multiline-ternary': 0,
46
+ 'object-shorthand': 0,
47
+ quotes: [
48
+ 2,
49
+ 'single',
50
+ {
51
+ avoidEscape: true,
52
+ allowTemplateLiterals: true
53
+ }
54
+ ],
55
+ semi: [
56
+ 2,
57
+ 'never',
58
+ {
59
+ beforeStatementContinuationChars: 'never'
60
+ }
61
+ ],
62
+ 'no-delete-var': 2,
63
+ 'prefer-const': [
64
+ 2,
65
+ {
66
+ ignoreReadBeforeAssign: false
67
+ }
68
+ ],
69
+ 'template-curly-spacing': 'off',
70
+ indent: 'off',
71
+ // 必须使用全等: false
72
+ eqeqeq: 0,
73
+ // 可以使用!! 双重否定
74
+ 'no-extra-boolean-cast': 'off'
75
+ },
76
+ parserOptions: {
77
+ parser: '@babel/eslint-parser'
78
+ },
79
+ overrides: [
80
+ {
81
+ files: [
82
+ '**/__tests__/*.{j,t}s?(x)',
83
+ '**/tests/unit/**/*.spec.{j,t}s?(x)'
84
+ ],
85
+ env: {
86
+ jest: true
87
+ }
88
+ }
89
+ ]
90
+ }
package/Components.md CHANGED
@@ -1,60 +1,60 @@
1
- # vue2基础组件库组件介绍
2
-
3
- ## XAddForm
4
-
5
- 基于XAddNativeForm二次封装的动态表单的Modal形式
6
-
7
- [使用文档](src/base-client/components/common/XAddForm/index.md)
8
-
9
- ## XAddNativeForm
10
-
11
- 通过JSON配置动态生成的数据保存表单
12
-
13
- [使用文档](src/base-client/components/common/XAddNativeForm/index.md)
14
-
15
- ## XBadge
16
-
17
- 对antdv的badge组件进行重封装
18
-
19
- [使用文档](src/base-client/components/common/XBadge/index.md)
20
-
21
- ## XCard
22
-
23
- 通用数据加载状态管理容器
24
-
25
- 提供一个可以根据数据加载状态显示不同内容的通用容器
26
- 当loadState为loading时,显示骨架屏(加载界面)
27
- 当loadState为success时,显示容器内容
28
- 当loadState为error时,显示点击重新加载数据的提示界面
29
-
30
- [使用文档](src/base-client/components/common/XCard/index.md)
31
-
32
- ## XForm
33
-
34
- 通过JSON配置动态生成的数据筛选查询表单
35
-
36
- [使用文档](src/base-client/components/common/XForm/index.md)
37
-
38
- ## XTable
39
-
40
- 通过JSON配置动态生成的数据表格
41
-
42
- [使用文档](src/base-client/components/common/XTable/index.md)
43
-
44
- ## XFormCol
45
-
46
- 适用于动态表单的可以自适应各种分辨率设备的栅格组件封装
47
-
48
- [使用文档](src/base-client/components/common/XFormCol/index.md)
49
-
50
- ## XFormTable
51
-
52
- 对XAddForm,XForm和XTable组件的二次封装,实现通过JSON配置动态生成一个完整的实体操作页面
53
-
54
- [使用文档](src/base-client/components/common/XFormTable/index.md)
55
-
56
- ## XImportExcel
57
-
58
- 通用的导入excel组件
59
-
60
- [使用文档](src/base-client/components/common/XImportExcel/index.md)
1
+ # vue2基础组件库组件介绍
2
+
3
+ ## XAddForm
4
+
5
+ 基于XAddNativeForm二次封装的动态表单的Modal形式
6
+
7
+ [使用文档](src/base-client/components/common/XAddForm/index.md)
8
+
9
+ ## XAddNativeForm
10
+
11
+ 通过JSON配置动态生成的数据保存表单
12
+
13
+ [使用文档](src/base-client/components/common/XAddNativeForm/index.md)
14
+
15
+ ## XBadge
16
+
17
+ 对antdv的badge组件进行重封装
18
+
19
+ [使用文档](src/base-client/components/common/XBadge/index.md)
20
+
21
+ ## XCard
22
+
23
+ 通用数据加载状态管理容器
24
+
25
+ 提供一个可以根据数据加载状态显示不同内容的通用容器
26
+ 当loadState为loading时,显示骨架屏(加载界面)
27
+ 当loadState为success时,显示容器内容
28
+ 当loadState为error时,显示点击重新加载数据的提示界面
29
+
30
+ [使用文档](src/base-client/components/common/XCard/index.md)
31
+
32
+ ## XForm
33
+
34
+ 通过JSON配置动态生成的数据筛选查询表单
35
+
36
+ [使用文档](src/base-client/components/common/XForm/index.md)
37
+
38
+ ## XTable
39
+
40
+ 通过JSON配置动态生成的数据表格
41
+
42
+ [使用文档](src/base-client/components/common/XTable/index.md)
43
+
44
+ ## XFormCol
45
+
46
+ 适用于动态表单的可以自适应各种分辨率设备的栅格组件封装
47
+
48
+ [使用文档](src/base-client/components/common/XFormCol/index.md)
49
+
50
+ ## XFormTable
51
+
52
+ 对XAddForm,XForm和XTable组件的二次封装,实现通过JSON配置动态生成一个完整的实体操作页面
53
+
54
+ [使用文档](src/base-client/components/common/XFormTable/index.md)
55
+
56
+ ## XImportExcel
57
+
58
+ 通用的导入excel组件
59
+
60
+ [使用文档](src/base-client/components/common/XImportExcel/index.md)
package/docs/index.md CHANGED
@@ -1,30 +1,30 @@
1
- ## 文档列表
2
- ### common
3
- * [CreateQuery 完整查询配置生成](../src/base-client/components/common/CreateQuery/index.md)
4
- * [CreateSimpleFormQuery 基础表单配置生成](../src/base-client/components/common/CreateSimpleFormQuery/index.md)
5
- * [CustomColumnsDrawer 自定义表格列](../src/base-client/components/common/CustomColumnsDrawer/index.md)
6
- * [FormGroupEdit 表单参数组配置编辑](../src/base-client/components/common/FormGroupEdit/index.md)
7
- * [FormGroupQuery 表单参数组配置生成](../src/base-client/components/common/FormGroupQuery/index.md)
8
- * [XAddForm 动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单](../src/base-client/components/common/XAddForm/index.md)
9
- * [XBadge 重封装徽标](../src/base-client/components/common/XBadge/index.md)
10
- * [XCard 通用数据加载状态管理容器](../src/base-client/components/common/XCard/index.md)
11
- * [XForm 动态表单控件,根据JSON配置生成一个完整的动态表单](../src/base-client/components/common/XForm/index.md)
12
- * [XFormCol 适用于表单的通用响应式栅格a-col封装](../src/base-client/components/common/XFormCol/index.md)
13
- * [XFormTable 动态查询控件,进一步整合了XTable和XForm](../src/base-client/components/common/XFormTable/index.md)
14
- * [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
15
- * [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
16
- *
17
- ### iot
18
- * [CustomerDetailsView 客户详情页](../src/base-client/components/iot/CustomerDetailsView/index.md)
19
- * [DeviceDetailsView 档案详情页](../src/base-client/components/iot/DeviceDetailsView/index.md)
20
- * [InstructDetailsView 指令详情页](../src/base-client/components/iot/InstructDetailsView/index.md)
21
- * [LogDetailsView 日志详情页](../src/base-client/components/iot/LogDetailsView/index.md)
22
- * [MeterDetailsView 单个表具档案](../src/base-client/components/iot/MeterDetailsView/index.md)
23
-
24
- ### system
25
- * [DictionaryDetailsView 字典详情页](../src/base-client/components/system/DictionaryDetailsView/index.md)
26
-
27
- ### ticket
28
- * [EmployeeDetailsView 员工详情页](../src/base-client/components/ticket/EmployeeDetailsView/index.md)
29
- * [TicketDetailsView 工单详情页](../src/base-client/components/ticket/TicketDetailsView/index.md)
30
- * [TicketSubmitSuccessView 单个工单详情页](../src/base-client/components/ticket/TicketSubmitSuccessView/index.md)
1
+ ## 文档列表
2
+ ### common
3
+ * [CreateQuery 完整查询配置生成](../src/base-client/components/common/CreateQuery/index.md)
4
+ * [CreateSimpleFormQuery 基础表单配置生成](../src/base-client/components/common/CreateSimpleFormQuery/index.md)
5
+ * [CustomColumnsDrawer 自定义表格列](../src/base-client/components/common/CustomColumnsDrawer/index.md)
6
+ * [FormGroupEdit 表单参数组配置编辑](../src/base-client/components/common/FormGroupEdit/index.md)
7
+ * [FormGroupQuery 表单参数组配置生成](../src/base-client/components/common/FormGroupQuery/index.md)
8
+ * [XAddForm 动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单](../src/base-client/components/common/XAddForm/index.md)
9
+ * [XBadge 重封装徽标](../src/base-client/components/common/XBadge/index.md)
10
+ * [XCard 通用数据加载状态管理容器](../src/base-client/components/common/XCard/index.md)
11
+ * [XForm 动态表单控件,根据JSON配置生成一个完整的动态表单](../src/base-client/components/common/XForm/index.md)
12
+ * [XFormCol 适用于表单的通用响应式栅格a-col封装](../src/base-client/components/common/XFormCol/index.md)
13
+ * [XFormTable 动态查询控件,进一步整合了XTable和XForm](../src/base-client/components/common/XFormTable/index.md)
14
+ * [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
15
+ * [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
16
+ *
17
+ ### iot
18
+ * [CustomerDetailsView 客户详情页](../src/base-client/components/iot/CustomerDetailsView/index.md)
19
+ * [DeviceDetailsView 档案详情页](../src/base-client/components/iot/DeviceDetailsView/index.md)
20
+ * [InstructDetailsView 指令详情页](../src/base-client/components/iot/InstructDetailsView/index.md)
21
+ * [LogDetailsView 日志详情页](../src/base-client/components/iot/LogDetailsView/index.md)
22
+ * [MeterDetailsView 单个表具档案](../src/base-client/components/iot/MeterDetailsView/index.md)
23
+
24
+ ### system
25
+ * [DictionaryDetailsView 字典详情页](../src/base-client/components/system/DictionaryDetailsView/index.md)
26
+
27
+ ### ticket
28
+ * [EmployeeDetailsView 员工详情页](../src/base-client/components/ticket/EmployeeDetailsView/index.md)
29
+ * [TicketDetailsView 工单详情页](../src/base-client/components/ticket/TicketDetailsView/index.md)
30
+ * [TicketSubmitSuccessView 单个工单详情页](../src/base-client/components/ticket/TicketSubmitSuccessView/index.md)
package/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import Vue from 'vue'
2
- import { initRouter } from '@vue2-client/router/index.js'
3
- import { initI18n } from '@vue2-client/utils/i18n'
4
- import bootstrap from '@vue2-client/bootstrap'
5
- import { modules } from '@vue2-client/store'
6
- import '@vue2-client/theme/index.less'
7
- import '@vue2-client/utils/filter'
8
- import 'animate.css/source/animate.css'
9
- import 'moment/locale/zh-cn'
10
- import Antd from 'ant-design-vue'
11
- import Viser from 'viser-vue'
12
- // 插件
13
- import Plugins from '@vue2-client/base-client/plugins'
14
-
15
- const routerOptions = initRouter()
16
- const i18n = initI18n('CN', 'US')
17
-
18
- Vue.use(Antd)
19
- Vue.use(Viser)
20
- Vue.use(Plugins)
21
-
22
- Vue.config.productionTip = false
23
- const message = Vue.prototype.$message
24
-
25
- export {
26
- routerOptions,
27
- modules,
28
- i18n,
29
- message,
30
- bootstrap
31
- }
1
+ import Vue from 'vue'
2
+ import { initRouter } from '@vue2-client/router/index.js'
3
+ import { initI18n } from '@vue2-client/utils/i18n'
4
+ import bootstrap from '@vue2-client/bootstrap'
5
+ import { modules } from '@vue2-client/store'
6
+ import '@vue2-client/theme/index.less'
7
+ import '@vue2-client/utils/filter'
8
+ import 'animate.css/source/animate.css'
9
+ import 'moment/locale/zh-cn'
10
+ import Antd from 'ant-design-vue'
11
+ import Viser from 'viser-vue'
12
+ // 插件
13
+ import Plugins from '@vue2-client/base-client/plugins'
14
+
15
+ const routerOptions = initRouter()
16
+ const i18n = initI18n('CN', 'US')
17
+
18
+ Vue.use(Antd)
19
+ Vue.use(Viser)
20
+ Vue.use(Plugins)
21
+
22
+ Vue.config.productionTip = false
23
+ const message = Vue.prototype.$message
24
+
25
+ export {
26
+ routerOptions,
27
+ modules,
28
+ i18n,
29
+ message,
30
+ bootstrap
31
+ }
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- process () {
3
- return 'module.exports = {};'
4
- },
5
- getCacheKey () {
6
- return 'lessTransform'
7
- },
8
- }
1
+ module.exports = {
2
+ process () {
3
+ return 'module.exports = {};'
4
+ },
5
+ getCacheKey () {
6
+ return 'lessTransform'
7
+ },
8
+ }
package/jest.setup.js CHANGED
@@ -1,7 +1,7 @@
1
- global.matchMedia = global.matchMedia || function () {
2
- return {
3
- matches: false,
4
- addListener: function () {},
5
- removeListener: function () {}
6
- }
7
- }
1
+ global.matchMedia = global.matchMedia || function () {
2
+ return {
3
+ matches: false,
4
+ addListener: function () {},
5
+ removeListener: function () {}
6
+ }
7
+ }