n20-common-lib 1.1.10

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 (85) hide show
  1. package/README.md +24 -0
  2. package/package.json +120 -0
  3. package/src/assets/css/_coreLib.scss +26 -0
  4. package/src/assets/css/cl-approve-card.scss +66 -0
  5. package/src/assets/css/cl-drag-list.scss +22 -0
  6. package/src/assets/css/cl-empty.scss +10 -0
  7. package/src/assets/css/cl-expandable.scss +31 -0
  8. package/src/assets/css/cl-file-upload-table.scss +11 -0
  9. package/src/assets/css/cl-filter.scss +20 -0
  10. package/src/assets/css/cl-foldedpanel.scss +35 -0
  11. package/src/assets/css/cl-footer-box.scss +8 -0
  12. package/src/assets/css/cl-form-item.scss +281 -0
  13. package/src/assets/css/cl-more-tab.scss +98 -0
  14. package/src/assets/css/cl-nav-menu.scss +5 -0
  15. package/src/assets/css/cl-pagination.scss +71 -0
  16. package/src/assets/css/cl-secondary-tab.scss +30 -0
  17. package/src/assets/css/cl-sifting.scss +51 -0
  18. package/src/assets/css/cl-statis.scss +14 -0
  19. package/src/assets/css/cl-step.scss +164 -0
  20. package/src/assets/css/cl-suspend.scss +25 -0
  21. package/src/assets/css/cl-tertiary-tab.scss +37 -0
  22. package/src/assets/css/cl-upload.scss +41 -0
  23. package/src/assets/css/cl-worn-pagination.scss +50 -0
  24. package/src/assets/css/element-variables.scss +1053 -0
  25. package/src/assets/css/element.dev.scss +5 -0
  26. package/src/assets/css/font-icon.scss +22 -0
  27. package/src/assets/css/index.dev.scss +3 -0
  28. package/src/assets/css/index.scss +8 -0
  29. package/src/assets/css/normalize.scss +243 -0
  30. package/src/assets/css/rootvar.scss +66 -0
  31. package/src/assets/css/title-pop.scss +4 -0
  32. package/src/assets/getJsonc.js +51 -0
  33. package/src/assets/postMessage.js +2 -0
  34. package/src/assets/postMessageC.js +37 -0
  35. package/src/components/ApproveCard/index.vue +83 -0
  36. package/src/components/DatePicker/index.vue +22 -0
  37. package/src/components/Dialog/index.vue +115 -0
  38. package/src/components/DragList/index.vue +64 -0
  39. package/src/components/Empty/img/404.png +0 -0
  40. package/src/components/Empty/img/abnormal.svg +109 -0
  41. package/src/components/Empty/img/dispose.svg +72 -0
  42. package/src/components/Empty/img/empty.svg +58 -0
  43. package/src/components/Empty/img/general.svg +59 -0
  44. package/src/components/Empty/img/lock.svg +58 -0
  45. package/src/components/Empty/img/network.svg +60 -0
  46. package/src/components/Empty/img/relevant.svg +69 -0
  47. package/src/components/Empty/img/search.svg +73 -0
  48. package/src/components/Empty/index.vue +92 -0
  49. package/src/components/Expandable/index.vue +47 -0
  50. package/src/components/FileUploadTable/index.vue +456 -0
  51. package/src/components/Filters/index.vue +77 -0
  52. package/src/components/FoldedPanel/index.vue +64 -0
  53. package/src/components/FooterBox/index.vue +18 -0
  54. package/src/components/InputNumber/index.vue +126 -0
  55. package/src/components/MoreTab/index.vue +232 -0
  56. package/src/components/NavMenu/index.vue +90 -0
  57. package/src/components/Pagination/index.vue +126 -0
  58. package/src/components/SecondaryTab/index.vue +75 -0
  59. package/src/components/Select/index.vue +51 -0
  60. package/src/components/Sifting/index.vue +97 -0
  61. package/src/components/Statis/index.vue +55 -0
  62. package/src/components/Step/index.vue +65 -0
  63. package/src/components/Suspend/index.vue +63 -0
  64. package/src/components/Suspend/suspensionBtn.png +0 -0
  65. package/src/components/TertiaryTab/index.vue +49 -0
  66. package/src/components/TimePicker/index.vue +22 -0
  67. package/src/components/Upload/index.vue +237 -0
  68. package/src/components/WornPagination/index.vue +202 -0
  69. package/src/directives/VMove/index.js +42 -0
  70. package/src/directives/VTitle/index.js +55 -0
  71. package/src/directives/VTitle/tooltip.vue +21 -0
  72. package/src/directives/vDrag/index.js +72 -0
  73. package/src/index.js +111 -0
  74. package/src/utils/auth.js +41 -0
  75. package/src/utils/axios.js +180 -0
  76. package/src/utils/print.js +156 -0
  77. package/src/utils/pushLink.js +5 -0
  78. package/style/css/normalize.scss +243 -0
  79. package/style/fonts/element-icons.535877f5.woff +0 -0
  80. package/style/fonts/element-icons.732389de.ttf +0 -0
  81. package/style/index.css +3 -0
  82. package/style/index.css.map +1 -0
  83. package/style/index.umd.min.js +2 -0
  84. package/style/index.umd.min.js.map +1 -0
  85. package/style/server-config.jsonc +212 -0
@@ -0,0 +1,98 @@
1
+ .__common-layout-pageTabs {
2
+ .__contextmenu {
3
+ margin: 0;
4
+ // border: 1px solid #e4e7ed;
5
+ background: $--color-white;
6
+ z-index: 3000;
7
+ position: absolute;
8
+ list-style-type: none;
9
+ padding: 5px 0;
10
+ border-radius: 4px;
11
+ font-size: 14px;
12
+ color: #333333;
13
+ box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.1);
14
+ li {
15
+ margin: 0;
16
+ padding: 0px 15px;
17
+ &:hover {
18
+ background: $--skeleton-color;
19
+ cursor: pointer;
20
+ }
21
+ button {
22
+ color: #2c3e50;
23
+ }
24
+ }
25
+ }
26
+
27
+ $c-tab-border-color: #dcdfe6;
28
+ position: relative;
29
+ &::before {
30
+ content: '';
31
+ border-bottom: 1px solid $c-tab-border-color;
32
+ position: absolute;
33
+ left: 0;
34
+ right: 0;
35
+ bottom: 0;
36
+ height: 100%;
37
+ }
38
+ .__tabs {
39
+ display: flex;
40
+ .__tab-item {
41
+ white-space: nowrap;
42
+ padding: 6px 8px;
43
+ font-size: 14px;
44
+ border: 1px solid $c-tab-border-color;
45
+ border-radius: 4px;
46
+ border-left: none;
47
+ // border-bottom: 0px;
48
+ // line-height: 14px;
49
+ cursor: pointer;
50
+ transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
51
+ &:first-child {
52
+ border-left: 1px solid $c-tab-border-color;
53
+ border-top-left-radius: 4px;
54
+ margin-left: 10px;
55
+ }
56
+ &:last-child {
57
+ border-top-right-radius: 4px;
58
+ margin-right: 10px;
59
+ }
60
+ &:not(.__is-active):hover {
61
+ color: $--color-primary;
62
+ .el-icon-close {
63
+ width: 14px;
64
+ color: $--color-primary;
65
+ vertical-align: middle;
66
+ margin-right: 0px;
67
+ }
68
+ }
69
+ &.__is-active {
70
+ padding-right: 8px;
71
+ border-bottom: 1px solid $--color-white;
72
+ background-color: $--color-primary;
73
+ color: $--color-white;
74
+ .el-icon-close {
75
+ vertical-align: middle;
76
+ width: 14px;
77
+ color: $--color-white;
78
+ margin-right: 0px;
79
+ margin-left: 2px;
80
+ }
81
+ }
82
+ .el-icon-close {
83
+ width: 0px;
84
+ height: 12px;
85
+ overflow: hidden;
86
+ border-radius: 50%;
87
+ font-size: 12px;
88
+ margin-right: 12px;
89
+ transform-origin: 100% 50%;
90
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
91
+ vertical-align: text-top;
92
+ &:hover {
93
+ color: $--color-white;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,5 @@
1
+ .icon-url {
2
+ height: 1em;
3
+ background: center no-repeat;
4
+ background-size: 1em 1em;
5
+ }
@@ -0,0 +1,71 @@
1
+ .cl-pagination {
2
+ display: flex;
3
+ align-items: center;
4
+ font-size: 14px;
5
+ color: $--color-text-primary;
6
+ .block-box {
7
+ width: 26px;
8
+ height: 26px;
9
+ text-align: center;
10
+ line-height: 26px;
11
+ font-size: 10px;
12
+ border: 1px solid $--button-default-border-color;
13
+ border-radius: 2px;
14
+ cursor: pointer;
15
+ }
16
+ .block-box:hover {
17
+ border: 1px solid $--color-primary;
18
+ }
19
+
20
+ .cl-pagination-count {
21
+ margin: 0 4px;
22
+ }
23
+
24
+ .cl-pagination-input {
25
+ width: 46px;
26
+ height: 26px;
27
+ text-align: center;
28
+ border: 1px solid $--button-default-border-color;
29
+ border-radius: 2px;
30
+ }
31
+ input:active,
32
+ input:hover,
33
+ input:focus {
34
+ outline: none;
35
+ border: 1px solid $--color-primary;
36
+ }
37
+
38
+ .block-box + .block-box {
39
+ margin-left: 6px;
40
+ }
41
+
42
+ .el-input--small .el-input__inner {
43
+ width: 89px;
44
+ height: 28px;
45
+ padding: 8px;
46
+ line-height: 28px;
47
+ color: $--color-text-primary;
48
+ border-radius: 2px;
49
+ }
50
+ .el-input--small .el-input__icon {
51
+ line-height: 28px;
52
+ }
53
+ .el-input__suffix {
54
+ position: absolute;
55
+ height: 100%;
56
+ right: 0;
57
+ top: 0;
58
+ text-align: center;
59
+ color: $--color-text-primary;
60
+ transition: all 0.3s;
61
+ pointer-events: none;
62
+ }
63
+ .cl-pagination-arrive {
64
+ margin: 0 6px;
65
+ }
66
+ .disabled {
67
+ cursor: no-drop;
68
+ pointer-events: none;
69
+ opacity: 0.6;
70
+ }
71
+ }
@@ -0,0 +1,30 @@
1
+ .cl-secondary-tab {
2
+ display: flex;
3
+ align-items: center;
4
+ margin-bottom: 16px;
5
+
6
+ .cl-secondary-tab-list {
7
+ display: flex;
8
+ justify-content: flex-start;
9
+
10
+ .cl-secondary-tab-item {
11
+ padding-bottom: 5px;
12
+ cursor: pointer;
13
+ font-size: 14px;
14
+
15
+ :hover {
16
+ color: $--color-primary;
17
+ }
18
+ }
19
+
20
+ .action {
21
+ color: $--color-primary;
22
+ font-weight: bold;
23
+ border-bottom: 2px solid $--color-primary;
24
+ }
25
+ }
26
+ }
27
+
28
+ .cl-secondary-tab-item + .cl-secondary-tab-item {
29
+ margin-left: 20px;
30
+ }
@@ -0,0 +1,51 @@
1
+ .cl-sifting-box {
2
+ display: flex;
3
+ border-top: $--border-base;
4
+ .cl-sifting-left {
5
+ flex: 60%;
6
+ border-right: $--border-base;
7
+ padding-top: 16px;
8
+ max-height: 350px;
9
+ overflow-y: scroll;
10
+ .cl-sifting-left-top {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ padding-right: 20px;
15
+ .cl-sifting-left-top-left {
16
+ display: flex;
17
+ align-items: center;
18
+ .cl-sifting-left-top-title {
19
+ margin-right: 16px;
20
+ }
21
+ .cl-sifting-opt-text {
22
+ color: $--color-text-secondary;
23
+ margin-right: 5px;
24
+ }
25
+ }
26
+ .cl-sifting-opt {
27
+ color: $--color-primary;
28
+ }
29
+ }
30
+ .cl-sifting-group-title {
31
+ display: inline-block;
32
+ font-weight: 600;
33
+ margin: 20px 0;
34
+ }
35
+ .el-checkbox-class {
36
+ margin-top: 16px;
37
+ }
38
+ }
39
+ .cl-sifting-right {
40
+ flex: 40%;
41
+ padding-top: 16px;
42
+ max-height: 350px;
43
+ overflow-y: scroll;
44
+ }
45
+ .cl-sifting-cursor {
46
+ cursor: pointer;
47
+ }
48
+ }
49
+ .cl-sifting-footer {
50
+ text-align: center;
51
+ }
@@ -0,0 +1,14 @@
1
+ .cl-statis {
2
+ display: flex;
3
+ align-items: center;
4
+ font-size: 12px;
5
+ color: $--color-text-primary;
6
+ .primary {
7
+ margin-right: 20px;
8
+ color: $--color-primary;
9
+ }
10
+ .cl-statis-division {
11
+ margin: 0 8px 0 18px;
12
+ color: $--button-default-border-color;
13
+ }
14
+ }
@@ -0,0 +1,164 @@
1
+ .cl-step {
2
+ padding: 20px;
3
+ .cl-step-vertical {
4
+ display: flex;
5
+ flex-direction: column;
6
+ .item {
7
+ position: relative;
8
+ display: flex;
9
+ align-items: center;
10
+ // justify-content: center;
11
+ .step-item-checked {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-height: 70px;
16
+ .step-num {
17
+ display: inline-block;
18
+ width: 24px;
19
+ height: 24px;
20
+ text-align: center;
21
+ justify-content: center;
22
+ line-height: 24px;
23
+ font-size: 12px;
24
+ border-radius: 50%;
25
+ color: $--color-white;
26
+ background: $--color-primary;
27
+ cursor: pointer;
28
+ }
29
+ .line {
30
+ height: 42px;
31
+ position: absolute;
32
+ top: 70%;
33
+ border-left: 1px solid $--color-text-placeholder;
34
+ }
35
+ }
36
+ .step-item-top {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ min-height: 70px;
41
+ .step-num {
42
+ display: inline-block;
43
+ width: 24px;
44
+ height: 24px;
45
+ text-align: center;
46
+ line-height: 24px;
47
+ font-size: 12px;
48
+ border: 1px solid $--color-text-placeholder;
49
+ border-radius: 50%;
50
+ color: $--color-text-placeholder;
51
+ background: $--color-white;
52
+ cursor: pointer;
53
+ }
54
+ .line {
55
+ height: 42px;
56
+ position: absolute;
57
+ top: 70%;
58
+ border-left: 1px solid $--color-text-placeholder;
59
+ }
60
+ }
61
+ }
62
+ .name {
63
+ margin-left: 10px;
64
+ font-size: 14px;
65
+ color: $--color-text-placeholder;
66
+ line-height: 20px;
67
+ }
68
+ .time {
69
+ width: 85px;
70
+ margin-top: 8px;
71
+ text-align: center;
72
+ font-size: 12px;
73
+ color: rgba(102, 102, 102, 1);
74
+ line-height: 17px;
75
+ }
76
+ .cur {
77
+ border-bottom: 1px solid $--color-primary;
78
+ }
79
+ .cur1 {
80
+ color: $--color-primary;
81
+ }
82
+ }
83
+ .step-box {
84
+ display: flex;
85
+ .item {
86
+ position: relative;
87
+ display: flex;
88
+ align-items: center;
89
+ // justify-content: center;
90
+ flex-direction: column;
91
+ padding: 5px 20px;
92
+ .step-item-checked {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ min-width: 70px;
97
+ .step-num {
98
+ display: inline-block;
99
+ width: 24px;
100
+ height: 24px;
101
+ text-align: center;
102
+ justify-content: center;
103
+ line-height: 24px;
104
+ font-size: 12px;
105
+ border-radius: 50%;
106
+ color: $--color-white;
107
+ background: $--color-primary;
108
+ cursor: pointer;
109
+ }
110
+ .line {
111
+ width: 94px;
112
+ position: absolute;
113
+ left: 60%;
114
+ border-bottom: 1px solid $--color-text-placeholder;
115
+ }
116
+ }
117
+ .step-item-top {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ min-width: 70px;
122
+ .step-num {
123
+ display: inline-block;
124
+ width: 24px;
125
+ height: 24px;
126
+ text-align: center;
127
+ line-height: 24px;
128
+ font-size: 12px;
129
+ border: 1px solid $--color-text-placeholder;
130
+ border-radius: 50%;
131
+ color: $--color-text-placeholder;
132
+ background: $--color-white;
133
+ cursor: pointer;
134
+ }
135
+ .line {
136
+ width: 94px;
137
+ position: absolute;
138
+ left: 60%;
139
+ border-bottom: 1px solid $--color-text-placeholder;
140
+ }
141
+ }
142
+ }
143
+ .name {
144
+ margin-top: 14px;
145
+ font-size: 14px;
146
+ color: $--color-text-placeholder;
147
+ line-height: 20px;
148
+ }
149
+ .time {
150
+ width: 85px;
151
+ margin-top: 8px;
152
+ text-align: center;
153
+ font-size: 12px;
154
+ color: $--color-text-placeholder;
155
+ line-height: 17px;
156
+ }
157
+ .cur {
158
+ border-bottom: 1px solid $--color-primary;
159
+ }
160
+ .cur1 {
161
+ color: $--color-primary;
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,25 @@
1
+ .cl-suspend {
2
+ position: fixed;
3
+ right: 0;
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ width: 60px;
9
+ height: 60px;
10
+ cursor: pointer;
11
+ background-color: $--color-primary;
12
+ border-radius: 4px;
13
+ box-shadow: 0 2px 8px 8px rgba(0, 0, 0, 0.1);
14
+ margin: 8px;
15
+ z-index: 2021;
16
+ img {
17
+ width: 30px;
18
+ height: 30px;
19
+ }
20
+ .cl-suspend-text {
21
+ margin-top: 5px;
22
+ font-size: 12px;
23
+ color: $--color-white;
24
+ }
25
+ }
@@ -0,0 +1,37 @@
1
+ .cl-tertiary-tab {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ align-items: center;
5
+ margin-bottom: 16px;
6
+
7
+ .cl-tertiary-tab-item {
8
+ text-align: center;
9
+ padding: 6px 14px;
10
+ cursor: pointer;
11
+ font-size: 14px;
12
+ border: 1px solid $--color-text-placeholder;
13
+
14
+ :hover {
15
+ color: $--color-primary;
16
+ }
17
+ }
18
+ .action {
19
+ color: $--color-primary;
20
+ font-weight: bold;
21
+ z-index: 1;
22
+ border: 1px solid $--color-primary;
23
+ }
24
+
25
+ .cl-tertiary-tab-item:nth-child(2n) {
26
+ margin-left: -1px;
27
+ margin-right: -1px;
28
+ }
29
+
30
+ .cl-tertiary-tab-item:first-child {
31
+ border-radius: 4px 0 0 4px;
32
+ }
33
+
34
+ .cl-tertiary-tab-item:last-child {
35
+ border-radius: 0 4px 4px 0;
36
+ }
37
+ }
@@ -0,0 +1,41 @@
1
+ .cl-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: var(--color-primary);
23
+ margin-bottom: 20px;
24
+ }
25
+ .drag-text {
26
+ font-size: 16px;
27
+ font-weight: 400;
28
+ color: var(--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: var(--color-text-secondary);
37
+ line-height: 22px;
38
+
39
+ margin-bottom: 30px;
40
+ }
41
+ }
@@ -0,0 +1,50 @@
1
+ .cl-worn-pagination {
2
+ display: flex;
3
+ position: relative;
4
+ align-items: center;
5
+ justify-content: end;
6
+ margin: 6px;
7
+ .pages {
8
+ color: var(--color-text-primary);
9
+ margin: 0 6px;
10
+ span {
11
+ color: var(--color-primary);
12
+ }
13
+ }
14
+
15
+ .page-jumper {
16
+ color: var(--color-text-primary);
17
+ margin-right: 12px;
18
+ .jumper-input {
19
+ width: 46px;
20
+ }
21
+ }
22
+
23
+ .setting {
24
+ font-size: 14px;
25
+ color: var(--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: var(--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
+ }