n20-common-lib 2.5.0-beta.2 → 2.5.0-beta.20

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 (65) hide show
  1. package/package.json +3 -2
  2. package/src/assets/css/_coreLib.scss +2 -2
  3. package/src/assets/css/cl-dialog.scss +5 -0
  4. package/src/assets/css/cl-form-item.scss +8 -1
  5. package/src/assets/css/cl-layout-content.scss +2 -2
  6. package/src/assets/css/cl-layout-tabs.scss +1 -1
  7. package/src/assets/css/cl-tree.scss +8 -1
  8. package/src/assets/css/el-table.scss +4 -0
  9. package/src/assets/css/filter.scss +121 -0
  10. package/src/assets/css/font-icon.scss +2 -1
  11. package/src/assets/css/normalize.scss +7 -0
  12. package/src/assets/css/select.scss +9 -0
  13. package/src/assets/iconFont4/demo.css +539 -0
  14. package/src/assets/iconFont4/demo_index.html +2005 -0
  15. package/src/assets/iconFont4/iconfont.css +331 -0
  16. package/src/assets/iconFont4/iconfont.js +1 -0
  17. package/src/assets/iconFont4/iconfont.json +562 -0
  18. package/{theme/fonts/iconfont.a9febaa2.ttf → src/assets/iconFont4/iconfont.ttf} +0 -0
  19. package/src/assets/iconFont4/iconfont.woff +0 -0
  20. package/src/assets/iconFont4/iconfont.woff2 +0 -0
  21. package/src/assets/realUrl.js +3 -1
  22. package/src/components/AdvancedFilter/filterList.vue +51 -8
  23. package/src/components/AdvancedFilter/form-item-input.vue +64 -17
  24. package/src/components/AdvancedFilter/index.vue +14 -6
  25. package/src/components/AdvancedFilter/mixins/index.js +11 -2
  26. package/src/components/ApprovalButtons/getDCloumn.js +14 -0
  27. package/src/components/ApprovalButtons/index.vue +105 -12
  28. package/src/components/ApprovalButtons/specialHandle.js +157 -0
  29. package/src/components/ApprovalRecord/approvalImgPro/index.vue +25 -3
  30. package/src/components/DatePicker/por.vue +61 -58
  31. package/src/components/FileImport/index.vue +4 -0
  32. package/src/components/FileUploadTable/index.vue +5 -3
  33. package/src/components/Filters/index.vue +1 -1
  34. package/src/components/Layout/HeaderWrap/index.vue +3 -3
  35. package/src/components/Layout/HeaderWrap/indexN.vue +3 -3
  36. package/src/components/Pagination/index.vue +2 -2
  37. package/src/components/SelectTree/index.vue +14 -4
  38. package/src/components/TablePro/index.vue +1 -1
  39. package/src/components/Tree/index.vue +16 -5
  40. package/src/components/Upload/index.vue +4 -0
  41. package/src/components/Upload/uploadMsg.vue +10 -11
  42. package/src/directives/VErrorMessage/index.js +22 -0
  43. package/src/directives/VTitle/index.js +1 -2
  44. package/src/index.js +2 -0
  45. package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2 -2
  46. package/style/fonts/iconfont.47f5da25.woff2 +0 -0
  47. package/style/fonts/iconfont.ab8c366d.ttf +0 -0
  48. package/style/fonts/iconfont.b7ea4726.woff +0 -0
  49. package/style/index.css +2 -2
  50. package/style/index.css.map +1 -1
  51. package/theme/blue.css +2 -2
  52. package/theme/cctcRed.css +2 -2
  53. package/theme/fonts/iconfont.47f5da25.woff2 +0 -0
  54. package/theme/fonts/iconfont.ab8c366d.ttf +0 -0
  55. package/theme/fonts/iconfont.b7ea4726.woff +0 -0
  56. package/theme/green.css +2 -2
  57. package/theme/lightBlue.css +2 -2
  58. package/theme/orange.css +2 -2
  59. package/theme/purple.css +2 -2
  60. package/theme/red.css +2 -2
  61. package/theme/yellow.css +2 -2
  62. package/src/assets/css/cl-advanced-filter.scss +0 -46
  63. package/src/assets/css/cl-filter.scss +0 -4
  64. package/theme/fonts/iconfont.022f36c4.woff2 +0 -0
  65. package/theme/fonts/iconfont.4a1b2c93.woff +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.5.0-beta.2",
3
+ "version": "2.5.0-beta.20",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -54,6 +54,7 @@
54
54
  "lz-string": "^1.4.4",
55
55
  "normalize.css": "^8.0.1",
56
56
  "numerify": "*",
57
+ "ofd.js": "^1.4.1",
57
58
  "panzoom": "*",
58
59
  "qrcode": "*",
59
60
  "resize-detector": "*",
@@ -62,7 +63,6 @@
62
63
  "vuedraggable": "*"
63
64
  },
64
65
  "devDependencies": {
65
- "element-ui": "^2.15.14",
66
66
  "@babel/plugin-proposal-optional-chaining": "^7.14.5",
67
67
  "@babel/plugin-transform-flow-comments": "^7.14.5",
68
68
  "@vue/cli-plugin-babel": "~4.5.0",
@@ -76,6 +76,7 @@
76
76
  "copy-webpack-plugin": "^6.4.1",
77
77
  "core-js": "^3.6.5",
78
78
  "echarts": "^5.3.3",
79
+ "element-ui": "^2.15.14",
79
80
  "eslint": "^6.7.2",
80
81
  "eslint-plugin-vue": "^6.2.2",
81
82
  "exceljs": "^4.3.0",
@@ -23,7 +23,7 @@
23
23
  @import './cl-empty.scss';
24
24
  @import './cl-file-upload-table.scss';
25
25
  @import './cl-footer-box.scss';
26
- @import './cl-filter.scss';
26
+ @import './filter.scss';
27
27
  @import './cl-worn-pagination.scss';
28
28
  @import './cl-dialog.scss';
29
29
  @import './cl-layout.scss';
@@ -41,7 +41,7 @@
41
41
  @import './select.scss';
42
42
  @import './plain-text.scss';
43
43
  @import './cl-date-quarter.scss';
44
- @import './cl-advanced-filter.scss';
44
+
45
45
  /* 临时引入 */
46
46
  @import '../../components/ChildRange/style.scss';
47
47
  @import '../../components/PageHeader/style.scss';
@@ -111,4 +111,9 @@
111
111
  line-height: 28px;
112
112
  border-bottom: none;
113
113
  }
114
+ }
115
+
116
+ .el-loading-mask {
117
+ z-index: 99999;
118
+ /* 自定义层级值 */
114
119
  }
@@ -1,7 +1,7 @@
1
1
  $--s: 1024px;
2
2
  $--m: 1600px;
3
3
  $--l: 1920px;
4
- $--input-max: 224px;
4
+ $--input-max: 300px;
5
5
 
6
6
  .el-form-item[span],
7
7
  .el-form-item[span-s],
@@ -748,3 +748,10 @@ $--input-max: 224px;
748
748
  .el-form-item__label {
749
749
  color: $--color-text-primary;
750
750
  }
751
+
752
+ .n20-approval-Button {
753
+ .el-form-item--small .el-form-item__content,
754
+ .el-form-item--small .el-form-item__label {
755
+ line-height: 1.5;
756
+ }
757
+ }
@@ -1,6 +1,6 @@
1
1
  .content-box {
2
2
  box-sizing: border-box;
3
- margin: 0 4px 4px 4px;
3
+ margin: 0 8px 8px 8px;
4
4
  padding: 8px;
5
5
  border-radius: 0 0 6px 6px;
6
6
  height: var(--client-height);
@@ -8,7 +8,7 @@
8
8
  overflow: auto;
9
9
 
10
10
  &.element-doc {
11
- margin: 0 4px 4px 4px;
11
+ margin: 0 8px 8px 8px;
12
12
  padding: 8px;
13
13
  height: var(--client-height);
14
14
  overflow: auto;
@@ -2,7 +2,7 @@ $--item-margin: 0;
2
2
  $--item-radius: 4px;
3
3
  $--layout-margin-top: 1px;
4
4
  $--item-hover-padding: 12px;
5
- $--tabs-item-margin: 4px;
5
+ $--tabs-item-margin: 8px;
6
6
 
7
7
  .tabs-nav-wrap {
8
8
  &.el-tabs--card > .el-tabs__header {
@@ -1,5 +1,12 @@
1
1
  .cl-tree {
2
2
  &-item {
3
- min-width: 260px;
3
+ width: 100%;
4
+ min-width: 450px;
5
+ &-label {
6
+ max-width: 320px;
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ white-space: nowrap;
10
+ }
4
11
  }
5
12
  }
@@ -163,6 +163,10 @@ th.vxe-header--column {
163
163
  .cell-default-set-- .vxe-table--body-wrapper .vxe-body--row .vxe-body--column .vxe-cell .vxe-cell--label:empty::before {
164
164
  content: '--';
165
165
  }
166
+ .vxe-table--render-default {
167
+ font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif !important;
168
+ color: #333;
169
+ }
166
170
  @import '../../components/TableSetSize/style.scss';
167
171
  .el-table-set-size-item {
168
172
  .icon-mini {
@@ -0,0 +1,121 @@
1
+ .n20-filter {
2
+ max-height: 380px;
3
+ overflow-y: auto;
4
+ }
5
+
6
+ .n20-advanced-filter {
7
+ position: relative;
8
+ display: flex;
9
+ align-items: center;
10
+ flex: 1;
11
+ padding: 8px;
12
+ &-item.n20-advanced-filter-active {
13
+ border-color: #b3d0ff;
14
+ background: #e9f2ff !important;
15
+ }
16
+ &-body {
17
+ .el-form-item,
18
+ .el-form-item--small.el-form-item {
19
+ margin-bottom: 10px;
20
+ }
21
+ .el-form-item__content {
22
+ display: inline-block;
23
+ vertical-align: middle;
24
+ width: auto;
25
+ }
26
+ }
27
+
28
+ &-item {
29
+ box-sizing: border-box;
30
+ position: relative;
31
+ display: inline-block;
32
+ vertical-align: middle;
33
+ max-width: 442px !important;
34
+ min-width: 120px;
35
+ margin-right: 8px;
36
+ border: 1px solid $--border-color-base;
37
+ padding: 0 4px 0 8px;
38
+ border-radius: 4px;
39
+ white-space: nowrap;
40
+ cursor: pointer;
41
+ .el-form-item__label {
42
+ padding: 0;
43
+ display: inline-block;
44
+ vertical-align: middle;
45
+ white-space: nowrap;
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+ margin-right: 4px;
49
+ }
50
+
51
+ .n20-date-editor.el-input--prefix {
52
+ max-width: 166px;
53
+ }
54
+ .el-range-editor.el-input__inner {
55
+ min-width: 168px;
56
+ max-width: 224px;
57
+ .el-range-input {
58
+ background-color: transparent;
59
+ }
60
+ }
61
+
62
+ .el-input,
63
+ .el-input__inner {
64
+ border: none;
65
+ width: 100%;
66
+ background-color: transparent;
67
+ }
68
+ .el-input__inner:active,
69
+ .el-input__inner:focus {
70
+ box-shadow: none;
71
+ border: none;
72
+ border-color: #fff;
73
+ }
74
+
75
+ .el-checkbox-group {
76
+ height: 32px;
77
+ line-height: 32px;
78
+ vertical-align: middle;
79
+ padding: 0 10px;
80
+ }
81
+ .el-radio-group {
82
+ padding: 0 10px;
83
+ }
84
+
85
+ .n20-num-w {
86
+ .el-input,
87
+ .el-input__inner {
88
+ padding-left: 0;
89
+ }
90
+ }
91
+ &-close {
92
+ display: none;
93
+ position: absolute;
94
+ top: -6px;
95
+ right: -10px;
96
+ }
97
+ &:hover {
98
+ .n20-advanced-filter-item-close {
99
+ display: inline-block;
100
+ }
101
+ }
102
+ }
103
+ &-content {
104
+ display: inline-block;
105
+ white-space: nowrap;
106
+ text-overflow: ellipsis;
107
+ }
108
+ :hover {
109
+ border-color: $--color-primary;
110
+ cursor: pointer;
111
+ }
112
+ &-add {
113
+ display: inline-block;
114
+ vertical-align: middle;
115
+ }
116
+ }
117
+
118
+ .popover-check-box {
119
+ max-height: 300px;
120
+ overflow-y: auto;
121
+ }
@@ -26,9 +26,10 @@
26
26
  }
27
27
 
28
28
  // @import url('//at.alicdn.com/t/c/font_3862271_abu3srabchf.css');
29
+ // @import url('../iconFont2/iconfont.css');
29
30
  @import url('../iconFont2/iconfont.css');
30
-
31
31
  @import url('../iconFont3/iconfont.css');
32
+ @import url('../iconFont4/iconfont.css');
32
33
 
33
34
  .iconfont {
34
35
  font-family: 'iconfont' !important;
@@ -612,6 +612,13 @@ iframe {
612
612
  }
613
613
  }
614
614
 
615
+ .auto-width-input {
616
+ width: fit-content;
617
+ }
618
+ .width-auto {
619
+ width: auto !important;
620
+ }
621
+
615
622
  /* 宽高范围是 60-1000- */
616
623
  $list: 45, 60, 80, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290,
617
624
  300, 400, 500, 600, 700, 800, 900, 1000;
@@ -47,3 +47,12 @@
47
47
  }
48
48
  }
49
49
  }
50
+
51
+ /* 设置 el-select 条目最大宽度 */
52
+ .el-select.input-w {
53
+ .el-select__tags {
54
+ .el-tag--info {
55
+ max-width: 150px;
56
+ }
57
+ }
58
+ }