n20-common-lib 1.1.98

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 (196) hide show
  1. package/README.md +27 -0
  2. package/package.json +87 -0
  3. package/src/_qiankun/index.js +113 -0
  4. package/src/_qiankun/postMessage.js +48 -0
  5. package/src/assets/css/_coreLib.scss +35 -0
  6. package/src/assets/css/cl-anchor.scss +24 -0
  7. package/src/assets/css/cl-approve-card.scss +58 -0
  8. package/src/assets/css/cl-dialog.scss +99 -0
  9. package/src/assets/css/cl-drag-list.scss +22 -0
  10. package/src/assets/css/cl-empty.scss +10 -0
  11. package/src/assets/css/cl-expandable-pane.scss +25 -0
  12. package/src/assets/css/cl-expandable.scss +23 -0
  13. package/src/assets/css/cl-file-upload-table.scss +11 -0
  14. package/src/assets/css/cl-filter.scss +4 -0
  15. package/src/assets/css/cl-flow-step.scss +186 -0
  16. package/src/assets/css/cl-footer-box.scss +10 -0
  17. package/src/assets/css/cl-form-item.scss +322 -0
  18. package/src/assets/css/cl-general-card.scss +12 -0
  19. package/src/assets/css/cl-layout-aside.scss +88 -0
  20. package/src/assets/css/cl-layout-content.scss +16 -0
  21. package/src/assets/css/cl-layout-header.scss +73 -0
  22. package/src/assets/css/cl-layout-tabs.scss +87 -0
  23. package/src/assets/css/cl-layout.scss +97 -0
  24. package/src/assets/css/cl-login-temporary.scss +37 -0
  25. package/src/assets/css/cl-message.scss +75 -0
  26. package/src/assets/css/cl-more-tab.scss +98 -0
  27. package/src/assets/css/cl-nav-menu.scss +5 -0
  28. package/src/assets/css/cl-pagination.scss +65 -0
  29. package/src/assets/css/cl-secondary-tab.scss +39 -0
  30. package/src/assets/css/cl-showcolumn.scss +23 -0
  31. package/src/assets/css/cl-sifting.scss +51 -0
  32. package/src/assets/css/cl-statis.scss +42 -0
  33. package/src/assets/css/cl-step.scss +73 -0
  34. package/src/assets/css/cl-suspend.scss +19 -0
  35. package/src/assets/css/cl-tertiary-tab.scss +9 -0
  36. package/src/assets/css/cl-upload.scss +41 -0
  37. package/src/assets/css/cl-worn-pagination.scss +50 -0
  38. package/src/assets/css/el-button.scss +169 -0
  39. package/src/assets/css/el-table.scss +79 -0
  40. package/src/assets/css/element-variables.scss +1061 -0
  41. package/src/assets/css/element.dev.scss +21 -0
  42. package/src/assets/css/font-icon.scss +26 -0
  43. package/src/assets/css/index.dev.scss +4 -0
  44. package/src/assets/css/index.scss +11 -0
  45. package/src/assets/css/normalize.scss +723 -0
  46. package/src/assets/css/rootvar.scss +139 -0
  47. package/src/assets/css/select.scss +26 -0
  48. package/src/assets/css/title-pop.scss +4 -0
  49. package/src/assets/getJsonc.js +50 -0
  50. package/src/assets/realUrl.js +12 -0
  51. package/src/components/Anchor/AnchorItem.vue +30 -0
  52. package/src/components/Anchor/index.vue +185 -0
  53. package/src/components/ApprovalButtons/index.vue +232 -0
  54. package/src/components/ApprovalCard/index.vue +128 -0
  55. package/src/components/ApprovalRecord/approvalImg.vue +39 -0
  56. package/src/components/ApprovalRecord/index.vue +59 -0
  57. package/src/components/Button/button-group.vue +150 -0
  58. package/src/components/Button/icon-group-button.vue +61 -0
  59. package/src/components/Button/index.vue +56 -0
  60. package/src/components/ContentLoading/index.vue +41 -0
  61. package/src/components/ContentNull/index.vue +19 -0
  62. package/src/components/DatePicker/index.vue +27 -0
  63. package/src/components/DatePicker/por.vue +169 -0
  64. package/src/components/Dialog/index.vue +26 -0
  65. package/src/components/Dialog/indexO.vue +116 -0
  66. package/src/components/DragList/index.vue +68 -0
  67. package/src/components/Empty/img/404.png +0 -0
  68. package/src/components/Empty/img/abnormal.svg +109 -0
  69. package/src/components/Empty/img/dispose.svg +72 -0
  70. package/src/components/Empty/img/empty.svg +58 -0
  71. package/src/components/Empty/img/general.svg +59 -0
  72. package/src/components/Empty/img/lock.svg +58 -0
  73. package/src/components/Empty/img/network.svg +60 -0
  74. package/src/components/Empty/img/relevant.svg +69 -0
  75. package/src/components/Empty/img/search.svg +73 -0
  76. package/src/components/Empty/index.vue +92 -0
  77. package/src/components/Expandable/index.vue +49 -0
  78. package/src/components/Expandable/main.vue +52 -0
  79. package/src/components/FileUploadTable/index.vue +484 -0
  80. package/src/components/Filters/index.vue +358 -0
  81. package/src/components/Filters/indexO.vue +104 -0
  82. package/src/components/FlowStep/index.vue +69 -0
  83. package/src/components/FooterBox/index.vue +21 -0
  84. package/src/components/GeneralCard/index.vue +15 -0
  85. package/src/components/InputNumber/index.vue +153 -0
  86. package/src/components/InputNumber/numberRange.vue +47 -0
  87. package/src/components/InputSearch/index.vue +75 -0
  88. package/src/components/Layout/AsideNav/index.vue +144 -0
  89. package/src/components/Layout/HeaderWrap/changePwd.vue +215 -0
  90. package/src/components/Layout/HeaderWrap/index.vue +336 -0
  91. package/src/components/Layout/HeaderWrap/noticePop.vue +300 -0
  92. package/src/components/Layout/SubContent/index.vue +131 -0
  93. package/src/components/Layout/TabsNav/index.vue +170 -0
  94. package/src/components/Layout/index.vue +529 -0
  95. package/src/components/Layout/utils.js +12 -0
  96. package/src/components/LoginTemporary/form.vue +511 -0
  97. package/src/components/LoginTemporary/index.vue +122 -0
  98. package/src/components/LoginTemporary/qr.png +0 -0
  99. package/src/components/LoginTemporary/qrcode.vue +90 -0
  100. package/src/components/LoginTemporary/qrt.png +0 -0
  101. package/src/components/LoginTemporary/retrievePw.vue +28 -0
  102. package/src/components/LoginTemporary/utils.js +73 -0
  103. package/src/components/MicroApp/index.js +67 -0
  104. package/src/components/MicroFrame/index.vue +95 -0
  105. package/src/components/MoreTab/index.vue +232 -0
  106. package/src/components/NavMenu/index.vue +60 -0
  107. package/src/components/NstcG6Components/NstcApprovel/NstcApprovel.vue +13 -0
  108. package/src/components/NstcG6Components/NstcDialog/NstcDialog.vue +185 -0
  109. package/src/components/NstcG6Components/Progress/progress.vue +134 -0
  110. package/src/components/PageLayout/page.vue +15 -0
  111. package/src/components/Pagination/index.vue +96 -0
  112. package/src/components/SecondaryTab/index.vue +58 -0
  113. package/src/components/SelectLazy/index.vue +75 -0
  114. package/src/components/SelectTree/SelectTreeLazy.vue +241 -0
  115. package/src/components/SelectTree/index.vue +208 -0
  116. package/src/components/ShowColumn/index.vue +188 -0
  117. package/src/components/Sifting/index.vue +99 -0
  118. package/src/components/Statis/index.vue +97 -0
  119. package/src/components/Statis/statisItem.vue +54 -0
  120. package/src/components/Statis/statisPopover.vue +55 -0
  121. package/src/components/Step/index.vue +38 -0
  122. package/src/components/Suspend/index.vue +72 -0
  123. package/src/components/Table/index.vue +131 -0
  124. package/src/components/Table/indexO.vue +149 -0
  125. package/src/components/Task/index.vue +26 -0
  126. package/src/components/TertiaryTab/index.vue +53 -0
  127. package/src/components/TimePicker/index.vue +28 -0
  128. package/src/components/Upload/index.vue +242 -0
  129. package/src/components/WornPagination/index.vue +73 -0
  130. package/src/directives/VClickOutside/index.js +19 -0
  131. package/src/directives/VDrag/index.js +72 -0
  132. package/src/directives/VHas/index.js +27 -0
  133. package/src/directives/VMove/index.js +42 -0
  134. package/src/directives/VTitle/index.js +56 -0
  135. package/src/directives/VTitle/tooltip.vue +21 -0
  136. package/src/index.js +225 -0
  137. package/src/plugins/CompatibleOld/index.js +57 -0
  138. package/src/plugins/Print/index.js +4 -0
  139. package/src/plugins/Print/print-js/.babelrc +12 -0
  140. package/src/plugins/Print/print-js/LICENSE +21 -0
  141. package/src/plugins/Print/print-js/README.md +98 -0
  142. package/src/plugins/Print/print-js/dist/print.css +97 -0
  143. package/src/plugins/Print/print-js/dist/print.js +991 -0
  144. package/src/plugins/Print/print-js/dist/print.map +1 -0
  145. package/src/plugins/Print/print-js/package.json +60 -0
  146. package/src/plugins/Print/print-js/src/index.d.ts +45 -0
  147. package/src/plugins/Print/print-js/src/index.js +10 -0
  148. package/src/plugins/Print/print-js/src/js/browser.js +33 -0
  149. package/src/plugins/Print/print-js/src/js/functions.js +103 -0
  150. package/src/plugins/Print/print-js/src/js/html.js +70 -0
  151. package/src/plugins/Print/print-js/src/js/image.js +48 -0
  152. package/src/plugins/Print/print-js/src/js/init.js +168 -0
  153. package/src/plugins/Print/print-js/src/js/json.js +109 -0
  154. package/src/plugins/Print/print-js/src/js/modal.js +62 -0
  155. package/src/plugins/Print/print-js/src/js/pdf.js +62 -0
  156. package/src/plugins/Print/print-js/src/js/print.js +102 -0
  157. package/src/plugins/Print/print-js/src/js/raw-html.js +15 -0
  158. package/src/plugins/Print/print-js/src/sass/index.scss +14 -0
  159. package/src/plugins/Print/print-js/src/sass/modules/_colors.scss +10 -0
  160. package/src/plugins/Print/print-js/src/sass/partials/_modal.scss +41 -0
  161. package/src/plugins/Print/print-js/src/sass/partials/_spinner.scss +46 -0
  162. package/src/plugins/Print/print.js +2 -0
  163. package/src/plugins/Print/print.scss +1 -0
  164. package/src/plugins/SetMenuTree/index.vue +41 -0
  165. package/src/plugins/SetMenuTree/logoIcon.vue +37 -0
  166. package/src/plugins/SetMenuTree/setmenutree.vue +427 -0
  167. package/src/plugins/SetMenuTree/utils.js +74 -0
  168. package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2000 -0
  169. package/src/plugins/Sign/index.js +65 -0
  170. package/src/plugins/Sign/sign.js +1 -0
  171. package/src/plugins/setTabsForSub.js +2 -0
  172. package/src/utils/auth.js +53 -0
  173. package/src/utils/axios.js +203 -0
  174. package/src/utils/downloadBlob.js +19 -0
  175. package/src/utils/forEachs.js +16 -0
  176. package/src/utils/getScrollContainer.js +43 -0
  177. package/src/utils/i18n/cn2hk.json +1270 -0
  178. package/src/utils/i18n/index.js +54 -0
  179. package/src/utils/list2tree.js +36 -0
  180. package/src/utils/msgboxPor.js +26 -0
  181. package/src/utils/print.js +161 -0
  182. package/src/utils/relaNo.js +35 -0
  183. package/src/utils/repairElementUI.js +66 -0
  184. package/src/utils/urlToGo.js +82 -0
  185. package/style/css/normalize.scss +723 -0
  186. package/style/fonts/element-icons.535877f5.woff +0 -0
  187. package/style/fonts/element-icons.732389de.ttf +0 -0
  188. package/style/index.css +3 -0
  189. package/style/index.css.map +1 -0
  190. package/style/index.umd.min.js +2 -0
  191. package/style/index.umd.min.js.map +1 -0
  192. package/style/pageDemo/demo-1.vue +130 -0
  193. package/style/pageDemo/demo-2.vue +35 -0
  194. package/style/pageDemo/demo-3.vue +22 -0
  195. package/style/pageDemo/seeCode.js +20 -0
  196. package/style/server-config.jsonc +663 -0
@@ -0,0 +1,9 @@
1
+ .n20-tertiary-tab {
2
+ .el-radio-button--mini .el-radio-button__inner {
3
+ padding: 6px 16px;
4
+ }
5
+ .el-radio-button__orig-radio:checked + .el-radio-button__inner {
6
+ color: $--color-primary;
7
+ background-color: $--color-white;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ .n20-upload-drag {
2
+ width: 650px;
3
+ height: 356px;
4
+
5
+ .el-upload {
6
+ display: block;
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+ .el-upload-dragger {
11
+ width: 100%;
12
+ height: 100%;
13
+ background: #fafafa;
14
+
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ justify-content: center;
19
+ }
20
+ .drag-icon {
21
+ font-size: 48px;
22
+ color: $--color-primary;
23
+ margin-bottom: 20px;
24
+ }
25
+ .drag-text {
26
+ font-size: 16px;
27
+ font-weight: 400;
28
+ color: $--color-text-primary;
29
+ line-height: 24px;
30
+
31
+ margin-bottom: 4px;
32
+ }
33
+ .drag-tip {
34
+ font-size: 14px;
35
+ font-weight: 400;
36
+ color: $--color-text-secondary;
37
+ line-height: 22px;
38
+
39
+ margin-bottom: 30px;
40
+ }
41
+ }
@@ -0,0 +1,50 @@
1
+ .n20-worn-pagination {
2
+ display: flex;
3
+ position: relative;
4
+ align-items: center;
5
+ justify-content: flex-end;
6
+ margin: 6px;
7
+ .pages {
8
+ color: $--color-text-primary;
9
+ margin: 0 6px;
10
+ span {
11
+ color: $--color-primary;
12
+ }
13
+ }
14
+
15
+ .page-jumper {
16
+ color: $--color-text-primary;
17
+ margin-right: 12px;
18
+ .jumper-input {
19
+ width: 46px;
20
+ }
21
+ }
22
+
23
+ .setting {
24
+ font-size: 14px;
25
+ color: $--color-primary;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .setting-wrapper {
30
+ display: flex;
31
+ align-items: center;
32
+ position: absolute;
33
+ bottom: 35px;
34
+ right: 0;
35
+ background: white;
36
+ padding: 16px;
37
+ font-size: 10px;
38
+ color: $--color-text-primary;
39
+ box-shadow: 0px -2px 6px 0px rgba(92, 100, 113, 0.11);
40
+ z-index: 100;
41
+ .hint {
42
+ word-break: keep-all;
43
+ margin-right: 10px;
44
+ }
45
+ }
46
+
47
+ .isban {
48
+ cursor: no-drop;
49
+ }
50
+ }
@@ -0,0 +1,169 @@
1
+ .el-button--primary,
2
+ .el-button--default,
3
+ .el-button--default.is-plain,
4
+ .el-button--warning.is-plain,
5
+ .el-button--danger.is-plain {
6
+ min-width: 72px;
7
+ }
8
+
9
+ .el-dropdown__caret-button,
10
+ .el-button--mini,
11
+ .el-button--mini.is-plain,
12
+ .el-button[onlyicon] {
13
+ min-width: auto;
14
+ }
15
+
16
+ .el-button + .el-button {
17
+ margin-left: 16px;
18
+ }
19
+ .el-button--mini + .el-button--mini {
20
+ margin-left: 8px;
21
+ }
22
+
23
+ .el-button[onlyicon] {
24
+ &.el-button--default,
25
+ &.el-button--medium,
26
+ &.el-button--small {
27
+ padding: 8px;
28
+ }
29
+ &.el-button--mini {
30
+ padding: 5px;
31
+ }
32
+ }
33
+
34
+ .el-button--info {
35
+ &,
36
+ &:focus {
37
+ background-color: $--color-info;
38
+ border-color: $--color-info;
39
+ }
40
+ &:hover {
41
+ background: $--color-info-hover;
42
+ border-color: $--color-info-hover;
43
+ }
44
+ }
45
+
46
+ .el-button--primary {
47
+ &,
48
+ &:focus {
49
+ background-color: $--color-primary;
50
+ border-color: $--color-primary;
51
+ }
52
+ &:hover {
53
+ background: $--color-primary-hover;
54
+ border-color: $--color-primary-hover;
55
+ }
56
+ }
57
+
58
+ .el-button--success {
59
+ &,
60
+ &:focus {
61
+ background-color: $--color-success;
62
+ border-color: $--color-success;
63
+ }
64
+ &:hover {
65
+ background: $--color-success-hover;
66
+ border-color: $--color-success-hover;
67
+ }
68
+ }
69
+
70
+ .el-button--warning {
71
+ &,
72
+ &:focus {
73
+ background-color: $--color-warning;
74
+ border-color: $--color-warning;
75
+ }
76
+ &:hover {
77
+ background: $--color-warning-hover;
78
+ border-color: $--color-warning-hover;
79
+ }
80
+ }
81
+
82
+ .el-button--danger {
83
+ &,
84
+ &:focus {
85
+ background-color: $--color-danger;
86
+ border-color: $--color-danger;
87
+ }
88
+ &:hover {
89
+ background: $--color-danger-hover;
90
+ border-color: $--color-danger-hover;
91
+ }
92
+ }
93
+
94
+ .el-button.is-plain {
95
+ &,
96
+ &:focus {
97
+ color: $--color-text-primary;
98
+ background: $--color-white;
99
+ border-color: $--button-default-border-color;
100
+ }
101
+ &:hover {
102
+ color: $--color-primary;
103
+ background: $--color-white;
104
+ border-color: $--color-primary;
105
+ }
106
+ }
107
+
108
+ .el-button--warning.is-plain {
109
+ &,
110
+ &:focus {
111
+ color: $--color-warning;
112
+ background: $--color-white;
113
+ border-color: $--button-default-border-color;
114
+ }
115
+ &:hover {
116
+ color: $--color-warning;
117
+ background: $--color-white;
118
+ border-color: $--color-warning;
119
+ }
120
+ }
121
+
122
+ .el-button--danger.is-plain {
123
+ &,
124
+ &:focus {
125
+ color: $--color-danger;
126
+ background: $--color-white;
127
+ border-color: $--button-default-border-color;
128
+ }
129
+ &:hover {
130
+ color: $--color-danger;
131
+ background: $--color-white;
132
+ border-color: $--color-danger;
133
+ }
134
+ }
135
+
136
+ .el-button--text {
137
+ &,
138
+ &:focus {
139
+ color: $--color-primary;
140
+ }
141
+
142
+ &:hover,
143
+ &:active {
144
+ color: $--color-primary-hover;
145
+ }
146
+ }
147
+
148
+ .el-button--primary,
149
+ .el-button--default.is-plain,
150
+ .el-button--warning.is-plain,
151
+ .el-button--danger.is-plain {
152
+ &.is-disabled {
153
+ &,
154
+ &:hover,
155
+ &:focus,
156
+ &:active {
157
+ color: #cccccc !important;
158
+ background: #eeeeee !important;
159
+ border-color: #dddddd !important;
160
+ }
161
+ }
162
+ }
163
+
164
+ .n20-icon-group-button {
165
+ &.el-button-group .el-button--primary {
166
+ border-color: $--color-primary;
167
+ z-index: 9;
168
+ }
169
+ }
@@ -0,0 +1,79 @@
1
+ .el-table--small {
2
+ font-size: 14px;
3
+ }
4
+ .el-table th {
5
+ font-weight: $--font-weight-primary;
6
+ }
7
+
8
+ /* 过滤 */
9
+ .el-table__column-filter-trigger {
10
+ height: 16px;
11
+ line-height: 16px;
12
+ vertical-align: middle;
13
+ position: relative;
14
+ bottom: 1px;
15
+ }
16
+ .el-table__column-filter-trigger i {
17
+ font-size: 16px;
18
+ transform: scale(1);
19
+ }
20
+ .el-table-filter__bottom {
21
+ text-align: center;
22
+ }
23
+
24
+ /* 排序 */
25
+ .el-table .caret-wrapper {
26
+ display: inline-flex;
27
+ flex-direction: row-reverse;
28
+ align-items: center;
29
+ width: 16px;
30
+ height: 16px;
31
+ line-height: 16px;
32
+ vertical-align: middle;
33
+ }
34
+
35
+ .el-table .sort-caret.ascending {
36
+ width: 8px;
37
+ height: 16px;
38
+ border: none;
39
+ font-style: normal;
40
+ position: static;
41
+ &:hover {
42
+ color: $--color-primary-light-6;
43
+ }
44
+ &:before {
45
+ content: '\e61c';
46
+ font-family: 'core-lib-iconfont';
47
+ font-size: 12px;
48
+ line-height: 12px;
49
+ position: relative;
50
+ right: 3px;
51
+ bottom: 1px;
52
+ }
53
+ }
54
+ .el-table .ascending .sort-caret.ascending {
55
+ color: $--color-primary;
56
+ }
57
+
58
+ .el-table .sort-caret.descending {
59
+ width: 8px;
60
+ height: 16px;
61
+ border: none;
62
+ font-style: normal;
63
+ position: static;
64
+ &:hover {
65
+ color: $--color-primary-light-6;
66
+ }
67
+ &:before {
68
+ content: '\e61d';
69
+ font-family: 'core-lib-iconfont';
70
+ font-size: 12px;
71
+ line-height: 12px;
72
+ position: relative;
73
+ right: 1px;
74
+ bottom: 1px;
75
+ }
76
+ }
77
+ .el-table .descending .sort-caret.descending {
78
+ color: $--color-primary;
79
+ }