@indfnd/common 0.0.87 → 0.0.89

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 (67) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/css/view-design/fonts/ionicons.svg +870 -0
  3. package/css/view-design/fonts/ionicons.ttf +0 -0
  4. package/css/view-design/fonts/ionicons.woff +0 -0
  5. package/css/view-design/fonts/ionicons.woff2 +0 -0
  6. package/css/view-design/iview.css +17232 -0
  7. package/dist/ind-common.es.js +172 -94
  8. package/dist/ind-common.umd.cjs +32 -42
  9. package/dist/styles/imgs/error-page/error-401.svg +1 -0
  10. package/dist/styles/imgs/error-page/error-404.svg +1 -0
  11. package/dist/styles/imgs/error-page/error-500.svg +1 -0
  12. package/dist/styles/imgs/logo.png +0 -0
  13. package/dist/styles/index.css +1 -1
  14. package/package.json +12 -3
  15. package/src/styles/common.less +170 -0
  16. package/src/styles/components/404.less +46 -0
  17. package/src/styles/components/button.less +34 -0
  18. package/src/styles/components/date-picker.less +31 -0
  19. package/src/styles/components/drawer.less +20 -0
  20. package/src/styles/components/dropdown.less +14 -0
  21. package/src/styles/components/excel-flow.less +72 -0
  22. package/src/styles/components/form.less +291 -0
  23. package/src/styles/components/index.less +15 -0
  24. package/src/styles/components/layout/basic-layout.less +238 -0
  25. package/src/styles/components/layout/collect.less +10 -0
  26. package/src/styles/components/layout/detail-view.less +88 -0
  27. package/src/styles/components/layout/full-screen.less +7 -0
  28. package/src/styles/components/layout/index.less +8 -0
  29. package/src/styles/components/layout/other-menu.less +142 -0
  30. package/src/styles/components/layout/page-view.less +101 -0
  31. package/src/styles/components/layout/sider-trigger.less +41 -0
  32. package/src/styles/components/layout/tags-nav.less +113 -0
  33. package/src/styles/components/login.less +47 -0
  34. package/src/styles/components/modal.less +29 -0
  35. package/src/styles/components/panel.less +31 -0
  36. package/src/styles/components/sign.less +27 -0
  37. package/src/styles/components/table.less +266 -0
  38. package/src/styles/components/tree.less +169 -0
  39. package/src/styles/components/upload.less +131 -0
  40. package/src/styles/index.less +5 -0
  41. package/src/styles/reset.less +55 -0
  42. package/src/styles/third/ag.less +117 -0
  43. package/src/styles/third/icons/sort-desc.svg +1 -0
  44. package/src/styles/third/icons/sort-up.svg +1 -0
  45. package/src/styles/third/icons/sorting.svg +1 -0
  46. package/src/styles/third/index.less +11 -0
  47. package/src/styles/third/view-design.less +321 -0
  48. package/src/styles/variables/base.less +8 -13
  49. package/src/styles/variables/index.less +3 -2
  50. package/src/styles/variables/theme/default/button.less +7 -0
  51. package/src/styles/variables/theme/default/common.less +25 -0
  52. package/src/styles/variables/theme/default/index.less +7 -0
  53. package/src/styles/variables/theme/default/layout.less +35 -0
  54. package/src/styles/variables/theme/default/table.less +33 -0
  55. package/src/styles/variables/theme/default/tag.less +3 -0
  56. package/src/styles/variables/theme/default/upload.less +3 -0
  57. package/src/styles/variables/theme/index.less +13 -0
  58. package/src/styles/variables/theme/small/button.less +7 -0
  59. package/src/styles/variables/theme/small/index.less +4 -0
  60. package/src/styles/variables/theme/small/layout.less +16 -0
  61. package/src/styles/variables/theme/small/table.less +13 -0
  62. package/src/styles/variables/theme/small/tag.less +3 -0
  63. package/dist/styles/imgs/head.png +0 -0
  64. package/dist/styles/imgs/headicon2.png +0 -0
  65. package/dist/styles/imgs/headlogo.png +0 -0
  66. package/src/styles/variables/theme1.less +0 -121
  67. package/src/styles/variables/theme2.less +0 -126
@@ -0,0 +1,266 @@
1
+ .lambo-grid-table {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: flex-start;
5
+ height: 100%;
6
+ border-radius: 4px;
7
+ background: #ffffff;
8
+
9
+ &.fullscreen-fixed {
10
+ padding: var(--ind-table-padding);
11
+ }
12
+
13
+ .ind-loading-panel {
14
+ height: 100% !important;
15
+ }
16
+
17
+ .other-button {
18
+ margin-top: 10px;
19
+ }
20
+
21
+ .ag-cell {
22
+ user-select: text;
23
+ }
24
+
25
+ .ag-theme-balham .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),
26
+ .ag-theme-balham .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
27
+ .ag-theme-balham
28
+ .ag-ltr
29
+ .ag-has-focus
30
+ .ag-full-width-row.ag-row-focus
31
+ .ag-cell-wrapper.ag-row-group,
32
+ .ag-theme-balham .ag-ltr .ag-cell-range-single-cell,
33
+ .ag-theme-balham .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
34
+ .ag-theme-balham .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),
35
+ .ag-theme-balham .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
36
+ .ag-theme-balham
37
+ .ag-rtl
38
+ .ag-has-focus
39
+ .ag-full-width-row.ag-row-focus
40
+ .ag-cell-wrapper.ag-row-group,
41
+ .ag-theme-balham .ag-rtl .ag-cell-range-single-cell,
42
+ .ag-theme-balham .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {
43
+ border-right: 1px solid
44
+ var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)) !important;
45
+ }
46
+
47
+ .ag-theme-balham .ag-ltr .ag-cell {
48
+ border-right-color: var(--ag-row-border-color, #d9dcde) !important;
49
+ }
50
+
51
+ .ag-theme-balham .ag-header-cell::after,
52
+ .ag-theme-balham .ag-header-group-cell::after {
53
+ height: 100% !important;
54
+ top: 0 !important;
55
+ }
56
+
57
+ .ag-header-group-cell-label,
58
+ .ag-header-cell-label {
59
+ justify-content: center !important;
60
+ }
61
+
62
+ .buttons {
63
+ /deep/ .ivu-btn {
64
+ margin-right: 5px;
65
+ }
66
+ }
67
+
68
+ /deep/ .ivu-checkbox-inner {
69
+ border: 1px solid var(--check-border);
70
+ }
71
+
72
+ /deep/ .ivu-form-item {
73
+ margin-bottom: 0;
74
+ }
75
+ .i-crud-toolbar-btn,
76
+ .i-crud-toolbar-btn:hover,
77
+ .i-crud-toolbar-btn:focus {
78
+ border-color: transparent !important;
79
+ box-shadow: unset !important;
80
+ }
81
+ .ag-button {
82
+ .ivu-btn-small {
83
+ line-height: calc(var(--input-height) - 2px) !important;
84
+ height: calc(var(--input-height) - 2px) !important;
85
+ }
86
+ }
87
+ .ag-date {
88
+ input,
89
+ .ivu-input-suffix,
90
+ .ivu-input-prefix i,
91
+ .ivu-input-suffix i {
92
+ height: calc(var(--input-height) - 1px) !important;
93
+ line-height: calc(var(--input-height) - 1px) !important;
94
+ // top: -2px !important;
95
+ }
96
+ }
97
+ .ag-input {
98
+ input {
99
+ text-align: right;
100
+ height: calc(var(--input-height) - 1px) !important;
101
+ line-height: calc(var(--input-height) - 1px) !important;
102
+ // top: -2px !important;
103
+ }
104
+ }
105
+ .ag-ind-select {
106
+ width: 100%;
107
+ .ivu-select-selection,
108
+ .ivu-select-selected-value,
109
+ .ivu-select-placeholder,
110
+ .ivu-select-default.ivu-select-multiple .ivu-select-selection {
111
+ width: 100%;
112
+ height: calc(var(--input-height) - 1px) !important;
113
+ min-height: calc(var(--input-height) - 1px) !important;
114
+ line-height: calc(var(--input-height) - 1px) !important;
115
+ // top: -2px !important;
116
+ }
117
+ .ivu-tag {
118
+ height: calc(var(--input-height) - 4px) !important;
119
+ line-height: calc(var(--input-height) - 4px) !important;
120
+ }
121
+ .ivu-select-selection > div .ivu-tag {
122
+ margin-top: 0 !important;
123
+ }
124
+ }
125
+ .ag-tree-select {
126
+ width: 100%;
127
+ .ivu-input-wrapper {
128
+ // top: -2px;
129
+ }
130
+ input {
131
+ width: 100%;
132
+ }
133
+ input,
134
+ .ivu-input-icon {
135
+ height: calc(var(--input-height) - 1px) !important;
136
+ min-height: calc(var(--input-height) - 1px) !important;
137
+ line-height: calc(var(--input-height) - 1px) !important;
138
+ // top: -2px !important;
139
+ }
140
+ }
141
+ }
142
+
143
+ .cell-span {
144
+ background-color: var(--ind-white);
145
+ border-bottom: 1px solid var(--ag-row-border-color, #d9dcde) !important;
146
+ &:focus-within {
147
+ border-bottom: var(--ag-range-selection-border-style);
148
+ }
149
+ }
150
+
151
+ .fullscreen-fixed {
152
+ position: fixed;
153
+ z-index: 999;
154
+ width: 100vw;
155
+ height: 100vh;
156
+ top: 0;
157
+ left: 0;
158
+ background-color: var(--ind-white);
159
+ }
160
+
161
+ .ag-header-select-all {
162
+ width: 100%;
163
+ flex-shrink: 0;
164
+ justify-content: center;
165
+ }
166
+
167
+ .tip {
168
+ background-color: var(--ind-bg-color-dark);
169
+ margin-top: 5px;
170
+ min-height: 24px;
171
+ line-height: 24px;
172
+ width: -webkit-fill-available;
173
+ }
174
+ //全局样式,重要消息提醒区-2022年11月11日
175
+ .important-tip {
176
+ background-color: var(--ind-bg-color-dark);
177
+ margin-top: 5px;
178
+ height: 24px;
179
+ line-height: 24px;
180
+ width: -webkit-fill-available;
181
+ .ivu-icon-md-information-circle {
182
+ float: left;
183
+ margin-right: 5px;
184
+ margin-left: 5px;
185
+ line-height: 24px;
186
+ transform: scale(1.5);
187
+ color: #ff9900;
188
+ }
189
+ }
190
+
191
+ .index-manager-drag-title,
192
+ .index-manager-drag-item {
193
+ .manage-col1 {
194
+ flex-shrink: 0;
195
+ width: 80px;
196
+ cursor: pointer;
197
+ }
198
+ .manage-col2 {
199
+ width: 100%;
200
+ }
201
+ .manage-col3 {
202
+ flex-shrink: 0;
203
+ width: 80px;
204
+ }
205
+ .manage-col4 {
206
+ flex-shrink: 0;
207
+ width: 80px;
208
+ }
209
+ .manage-col5 {
210
+ flex-shrink: 0;
211
+ width: 100px;
212
+ }
213
+ .manage-col6 {
214
+ flex-shrink: 0;
215
+ width: 80px;
216
+ cursor: pointer;
217
+ }
218
+ }
219
+
220
+ .index-manager-drag-title {
221
+ text-align: left;
222
+ padding: 10px 0;
223
+ }
224
+
225
+ .index-manager-drag-item {
226
+ margin-bottom: 5px;
227
+ .manage-col1,
228
+ .manage-col2,
229
+ .manage-col3,
230
+ .manage-col4,
231
+ .manage-col6 {
232
+ padding-top: 6px;
233
+ }
234
+ .manage-col6 {
235
+ text-align: right;
236
+ }
237
+ }
238
+
239
+ .index-manager-height100-card {
240
+ .ivu-card-body {
241
+ height: calc(100% - 49px);
242
+ }
243
+ }
244
+
245
+ .detail-view-table() {
246
+ .lambo-grid-table {
247
+ & > .ivu-row {
248
+ margin-top: 0 !important;
249
+ }
250
+ .other-button {
251
+ margin-top: 0;
252
+ }
253
+ }
254
+ }
255
+
256
+ .ind-detail-view {
257
+ .content {
258
+ .detail-view-table;
259
+ }
260
+ }
261
+
262
+ .ivu-drawer {
263
+ .ivu-drawer-content {
264
+ .detail-view-table;
265
+ }
266
+ }
@@ -0,0 +1,169 @@
1
+ .tree-wrapper {
2
+ background: white;
3
+ border-radius: 4px;
4
+ // padding: 10px 0 10px 0;
5
+ width: 98%;
6
+ height: 100%;
7
+
8
+ .header {
9
+ position: sticky;
10
+ padding: 10px 10px 10px 10px;
11
+ top: 0;
12
+ background: white;
13
+ // z-index: 999;
14
+ border-bottom: 1px solid var(--ind-border-color);
15
+ .title {
16
+ font-size: var(--ind-font-size-lg);
17
+ font-weight: bold;
18
+ // margin-left: 10px;
19
+ vertical-align: middle;
20
+ }
21
+ }
22
+ .content {
23
+ // padding: 10px 10px;
24
+ padding: 8px;
25
+
26
+ .ivu-input-wrapper {
27
+ margin-bottom: 8px;
28
+ }
29
+
30
+ .ivu-tree {
31
+ height: 10px;
32
+ overflow: auto;
33
+ }
34
+ }
35
+ }
36
+
37
+ .ivu-tree-title-selected,
38
+ .ivu-tree-title-selected:hover {
39
+ color: var(--ind-white);
40
+ background: var(--ind-primary-color);
41
+ }
42
+
43
+ .custom-title {
44
+ &.important {
45
+ &::after {
46
+ content: '*';
47
+ font-size: 16px;
48
+ font-weight: bold;
49
+ line-height: 1;
50
+ vertical-align: middle;
51
+ color: var(--ind-red);
52
+ display: none;
53
+ }
54
+ }
55
+
56
+ &.weak {
57
+ color: var(--ind-gray);
58
+ }
59
+
60
+ .title-status {
61
+ color: var(--ind-gray);
62
+
63
+ &.red {
64
+ color: var(--ind-red);
65
+ }
66
+
67
+ &.blue {
68
+ color: var(--ind-blue);
69
+ }
70
+
71
+ &.green {
72
+ color: var(--ind-green);
73
+ }
74
+
75
+ &.orange {
76
+ color: var(--ind-orange);
77
+ }
78
+
79
+ &.yellow {
80
+ color: var(--ind-yellow);
81
+ }
82
+
83
+ &.gray {
84
+ color: var(--ind-gray);
85
+ }
86
+ }
87
+ }
88
+
89
+ .ivu-tree-title-selected .title-status.blue {
90
+ color: var(--ind-white);
91
+ }
92
+
93
+ .emp-tree-box {
94
+ .main {
95
+ display: flex;
96
+ .panel {
97
+ .content-box {
98
+ margin-top: 10px;
99
+ height: calc(100vh - 300px) !important;
100
+ border: 2px var(--ind-border-color) solid;
101
+ border-radius: 4px;
102
+ overflow: auto;
103
+ .content {
104
+ height: 100%;
105
+ padding: 10px;
106
+ overflow: auto;
107
+ }
108
+ }
109
+ &.emp-tree {
110
+ flex: 5;
111
+ }
112
+ &.checked-list {
113
+ margin-left: 20px;
114
+ flex: 4;
115
+ .content {
116
+ line-height: 1;
117
+ .node,
118
+ .tip {
119
+ padding: 5px 10px;
120
+ }
121
+ .tip {
122
+ color: var(--ind-desc-color);
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+
130
+ .ind-input-modal-tree-wrapper {
131
+ .selected-input {
132
+ .ivu-input {
133
+ cursor: pointer;
134
+ }
135
+
136
+ &.readonly {
137
+ .ivu-input {
138
+ cursor: default;
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .tree-select-wrapper {
145
+ .tree-wrapper {
146
+ min-width: 180px;
147
+ width: 100%;
148
+
149
+ .content {
150
+ padding-right: 0;
151
+ }
152
+ }
153
+
154
+ .global-desc-text {
155
+ margin-top: 10px;
156
+ }
157
+ }
158
+ .tree-select-poptip {
159
+ width: 100%;
160
+ .ivu-poptip-rel {
161
+ width: 100%;
162
+ }
163
+ }
164
+
165
+ // from emp
166
+ .global-desc-text {
167
+ font-size: var(--ind-font-size-sm);
168
+ color: var(--ind-desc-color);
169
+ }
@@ -0,0 +1,131 @@
1
+ .upload-file {
2
+ position: relative;
3
+ min-height: 45px;
4
+
5
+ .data-panel {
6
+ padding: 5px 10px 0px 10px;
7
+ border: 1px #dee1e8 solid;
8
+ border-radius: 5px;
9
+ }
10
+
11
+ .content-item {
12
+ display: flex;
13
+ line-height: var(--file-line-height);
14
+ box-sizing: border-box;
15
+ border-bottom: 1px solid var(--ind-border-color);
16
+ // padding-left: 20px;
17
+ &:last-child {
18
+ border-bottom: none;
19
+ }
20
+
21
+ .title {
22
+ width: calc(100% - 240px);
23
+ font-size: 14px;
24
+ line-height: var(--file-line-height);
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ }
29
+ .preview {
30
+ width: 80px;
31
+ text-align: center;
32
+ color: var(--ind-primary-color);
33
+ cursor: pointer;
34
+ }
35
+ .download,
36
+ .delete {
37
+ display: block;
38
+ width: 80px;
39
+ line-height: var(--file-line-height);
40
+ cursor: pointer;
41
+ i {
42
+ font-size: 18px;
43
+ vertical-align: middle !important;
44
+ }
45
+ text-align: center;
46
+ color: var(--ind-primary-color);
47
+ }
48
+ }
49
+ }
50
+
51
+ .ivu-divider-horizontal {
52
+ margin: 5px 0;
53
+ }
54
+
55
+ .upload-img {
56
+ padding: 2px;
57
+ min-height: 60px;
58
+ line-height: 0px;
59
+ border: 2px var(--ind-bg-color-dark) solid;
60
+
61
+ .demo-upload-list {
62
+ display: inline-block;
63
+ width: 60px;
64
+ height: 60px;
65
+ text-align: center;
66
+ line-height: 60px;
67
+ border: 1px solid transparent;
68
+ border-radius: 4px;
69
+ overflow: hidden;
70
+ background: #fff;
71
+ position: relative;
72
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
73
+ margin-right: 4px;
74
+ }
75
+ .demo-upload-list img {
76
+ width: 100%;
77
+ height: 100%;
78
+ }
79
+ .demo-upload-list-cover {
80
+ display: none;
81
+ position: absolute;
82
+ top: 0;
83
+ bottom: 0;
84
+ left: 0;
85
+ right: 0;
86
+ background: rgba(0, 0, 0, 0.6);
87
+ cursor: pointer;
88
+ }
89
+ .demo-upload-list:hover .demo-upload-list-cover {
90
+ display: block;
91
+ }
92
+ .demo-upload-list-cover i {
93
+ margin: 0 2px;
94
+ color: var(--ind-white) !important;
95
+ font-size: 20px;
96
+ cursor: pointer;
97
+
98
+ &.delete-icon {
99
+ position: absolute;
100
+ top: 0;
101
+ right: 0;
102
+ margin: 0;
103
+ font-size: 16px;
104
+ background: rgba(255, 255, 255, 0.3);
105
+ border-radius: 0 0 0 50%;
106
+ }
107
+ }
108
+ }
109
+ .upload-img-no-border {
110
+ padding: 2px;
111
+ line-height: 0px;
112
+ }
113
+ .ivu-modal-fullscreen .ivu-modal-content {
114
+ background-color: rgba(0, 0, 0, 0) !important;
115
+ }
116
+ .ivu-modal-close .ivu-icon-ios-close {
117
+ color: white;
118
+ }
119
+ .ivu-carousel-item {
120
+ text-align: center;
121
+ }
122
+ .carouse-img {
123
+ max-width: 90vw !important;
124
+ max-height: 95vh !important;
125
+ min-block-size: -webkit-fill-available;
126
+ }
127
+ .carouse-content {
128
+ width: 100%;
129
+ height: 95vh;
130
+ text-align: center;
131
+ }
@@ -0,0 +1,5 @@
1
+ @import './variables/index.less';
2
+ @import './reset.less';
3
+ @import './common.less';
4
+ @import './components/index.less';
5
+ @import './third/index.less';
@@ -0,0 +1,55 @@
1
+ /* 重写浏览器默认样式 */
2
+ html,
3
+ body {
4
+ margin: 0;
5
+ padding: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ color: var(--ind-text-color);
9
+ font-size: var(--ind-font-size-md);
10
+ font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Tahoma, Arial, 'PingFang SC',
11
+ 'Microsoft YaHei';
12
+ }
13
+
14
+ pre {
15
+ white-space: pre-wrap;
16
+ word-wrap: break-word;
17
+ margin: 5px 0px;
18
+ line-height: 20px;
19
+ font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Tahoma, Arial, 'PingFang SC',
20
+ 'Microsoft YaHei';
21
+ }
22
+
23
+ input::-webkit-outer-spin-button,
24
+ input::-webkit-inner-spin-button {
25
+ -webkit-appearance: none;
26
+ }
27
+ input[type='number'] {
28
+ -moz-appearance: textfield;
29
+ }
30
+
31
+ ::-webkit-scrollbar-thumb {
32
+ height: 50px;
33
+ border-radius: 4px;
34
+ border: 2px solid #eee;
35
+ }
36
+ ::-webkit-scrollbar-thumb:hover {
37
+ height: 50px;
38
+ border-radius: 4px;
39
+ }
40
+ ::-webkit-scrollbar {
41
+ width: 14px;
42
+ height: 14px;
43
+ }
44
+ ::-webkit-scrollbar-track-piece {
45
+ border-radius: 0;
46
+ }
47
+ ::-webkit-scrollbar-track {
48
+ background-color: #eee;
49
+ }
50
+ ::-webkit-scrollbar-thumb {
51
+ background-color: rgba(0, 0, 0, 0.2);
52
+ }
53
+ ::-webkit-scrollbar-corner {
54
+ background-color: #bbb;
55
+ }