@lambo-design/shared 1.0.0-beta.205 → 1.0.0-beta.206

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 (52) hide show
  1. package/nstyles/common.less +197 -197
  2. package/nstyles/components/404.less +46 -46
  3. package/nstyles/components/button.less +34 -34
  4. package/nstyles/components/date-picker.less +37 -37
  5. package/nstyles/components/drawer.less +20 -20
  6. package/nstyles/components/dropdown.less +18 -18
  7. package/nstyles/components/excel-flow.less +72 -72
  8. package/nstyles/components/form.less +2 -2
  9. package/nstyles/components/index.less +8 -0
  10. package/nstyles/components/layout/collect.less +10 -10
  11. package/nstyles/components/layout/detail-view.less +107 -107
  12. package/nstyles/components/layout/full-screen.less +7 -7
  13. package/nstyles/components/layout/other-menu.less +142 -142
  14. package/nstyles/components/layout/page-view.less +101 -101
  15. package/nstyles/components/layout/sider-trigger.less +41 -41
  16. package/nstyles/components/layout/tags-nav.less +113 -113
  17. package/nstyles/components/modal.less +85 -85
  18. package/nstyles/components/n-button.less +131 -0
  19. package/nstyles/components/n-image-preview.less +131 -0
  20. package/nstyles/components/n-model/index.less +19 -0
  21. package/nstyles/components/n-model/report-index.less +43 -0
  22. package/nstyles/components/n-panel.less +41 -0
  23. package/nstyles/components/n-picker.less +37 -0
  24. package/nstyles/components/n-sign.less +17 -0
  25. package/nstyles/components/n-tooltip.less +10 -0
  26. package/nstyles/components/panel.less +31 -31
  27. package/nstyles/components/select.less +3 -3
  28. package/nstyles/components/sign.less +27 -27
  29. package/nstyles/components/tree.less +1 -1
  30. package/nstyles/components/upload.less +131 -131
  31. package/nstyles/index.less +5 -5
  32. package/nstyles/reset.less +65 -65
  33. package/nstyles/third/ag.less +3 -2
  34. package/nstyles/third/index.less +11 -11
  35. package/nstyles/third/view-design.less +356 -356
  36. package/nstyles/variables/base.less +143 -143
  37. package/nstyles/variables/index.less +4 -4
  38. package/nstyles/variables/theme/default/button.less +7 -7
  39. package/nstyles/variables/theme/default/common.less +57 -57
  40. package/nstyles/variables/theme/default/index.less +7 -7
  41. package/nstyles/variables/theme/default/layout.less +40 -40
  42. package/nstyles/variables/theme/default/table.less +37 -37
  43. package/nstyles/variables/theme/default/tag.less +3 -3
  44. package/nstyles/variables/theme/default/upload.less +3 -3
  45. package/nstyles/variables/theme/index.less +13 -13
  46. package/nstyles/variables/theme/small/button.less +7 -7
  47. package/nstyles/variables/theme/small/common.less +39 -39
  48. package/nstyles/variables/theme/small/index.less +5 -5
  49. package/nstyles/variables/theme/small/layout.less +21 -21
  50. package/nstyles/variables/theme/small/table.less +17 -17
  51. package/nstyles/variables/theme/small/tag.less +3 -3
  52. package/package.json +4 -1
@@ -1,113 +1,113 @@
1
- @nav-height: 44px;
2
- @nav-padding: 6px 0;
3
- @nav-margin: 0 10px;
4
-
5
- .ind-tags-nav {
6
- position: relative;
7
- padding: @nav-padding;
8
- margin: @nav-margin;
9
- height: 44px;
10
- width: calc(100% - 20px);
11
- border-top: 1px solid var(--ind-border-color);
12
- border-bottom: 1px solid var(--ind-border-color);
13
- box-sizing: border-box;
14
- user-select: none;
15
-
16
- .ind-tags-nav-content {
17
- display: flex;
18
- justify-content: space-between;
19
- align-items: center;
20
- height: 100%;
21
-
22
- .btn-con {
23
- height: 100%;
24
- flex-shrink: 0;
25
- box-sizing: border-box;
26
- z-index: 10;
27
-
28
- button {
29
- height: 100%;
30
- padding: 2px 4px;
31
- line-height: 1;
32
- text-align: center;
33
- background: #fff;
34
- box-sizing: border-box;
35
- }
36
- }
37
- }
38
-
39
- .ivu-tag {
40
- height: 30px;
41
- line-height: 30px;
42
- background: white;
43
- margin: 0 5px 0 0;
44
- border: none;
45
- cursor: pointer;
46
-
47
- &.ivu-tag-primary {
48
- color: var(--ind-primary-color) !important;
49
- .ivu-tag-color-white {
50
- color: var(--ind-primary-color) !important;
51
- font-weight: var(--ind-font-weight-bold);
52
- }
53
- }
54
-
55
- .ivu-tag-text {
56
- font-size: var(--ind-font-size-md);
57
- color: var(--ind-text-color);
58
- }
59
-
60
- .ivu-icon-ios-close {
61
- color: #666 !important;
62
- }
63
- }
64
- .ivu-btn-text:hover {
65
- background: none;
66
- color: var(--ind-text-color);
67
- }
68
- .ivu-btn-text {
69
- color: var(--ind-text-color);
70
- }
71
-
72
- .scroll-outer {
73
- position: relative;
74
- width: 100%;
75
- height: 100%;
76
- overflow: hidden;
77
-
78
- .scroll-body {
79
- position: absolute;
80
- display: inline-block;
81
- padding: 1px 4px 0;
82
- height: ~'calc(100% - 1px)';
83
- overflow: visible;
84
- white-space: nowrap;
85
- transition: left 0.3s ease;
86
- }
87
- }
88
-
89
- .contextmenu {
90
- position: absolute;
91
- margin: 0;
92
- padding: 5px 0;
93
- background: #fff;
94
- z-index: 1000;
95
- list-style-type: none;
96
- border-radius: 4px;
97
- box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
98
- li {
99
- margin: 0;
100
- padding: 5px 15px;
101
- cursor: pointer;
102
- &:hover {
103
- background: #eee;
104
- }
105
- }
106
- }
107
-
108
- .ivu-tag-primary.ivu-tag-dot {
109
- .ivu-tag-dot-inner {
110
- background-color: var(--ind-primary-color);
111
- }
112
- }
113
- }
1
+ @nav-height: 44px;
2
+ @nav-padding: 6px 0;
3
+ @nav-margin: 0 10px;
4
+
5
+ .ind-tags-nav {
6
+ position: relative;
7
+ padding: @nav-padding;
8
+ margin: @nav-margin;
9
+ height: 44px;
10
+ width: calc(100% - 20px);
11
+ border-top: 1px solid var(--ind-border-color);
12
+ border-bottom: 1px solid var(--ind-border-color);
13
+ box-sizing: border-box;
14
+ user-select: none;
15
+
16
+ .ind-tags-nav-content {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ height: 100%;
21
+
22
+ .btn-con {
23
+ height: 100%;
24
+ flex-shrink: 0;
25
+ box-sizing: border-box;
26
+ z-index: 10;
27
+
28
+ button {
29
+ height: 100%;
30
+ padding: 2px 4px;
31
+ line-height: 1;
32
+ text-align: center;
33
+ background: #fff;
34
+ box-sizing: border-box;
35
+ }
36
+ }
37
+ }
38
+
39
+ .ivu-tag {
40
+ height: 30px;
41
+ line-height: 30px;
42
+ background: white;
43
+ margin: 0 5px 0 0;
44
+ border: none;
45
+ cursor: pointer;
46
+
47
+ &.ivu-tag-primary {
48
+ color: var(--ind-primary-color) !important;
49
+ .ivu-tag-color-white {
50
+ color: var(--ind-primary-color) !important;
51
+ font-weight: var(--ind-font-weight-bold);
52
+ }
53
+ }
54
+
55
+ .ivu-tag-text {
56
+ font-size: var(--ind-font-size-md);
57
+ color: var(--ind-text-color);
58
+ }
59
+
60
+ .ivu-icon-ios-close {
61
+ color: #666 !important;
62
+ }
63
+ }
64
+ .ivu-btn-text:hover {
65
+ background: none;
66
+ color: var(--ind-text-color);
67
+ }
68
+ .ivu-btn-text {
69
+ color: var(--ind-text-color);
70
+ }
71
+
72
+ .scroll-outer {
73
+ position: relative;
74
+ width: 100%;
75
+ height: 100%;
76
+ overflow: hidden;
77
+
78
+ .scroll-body {
79
+ position: absolute;
80
+ display: inline-block;
81
+ padding: 1px 4px 0;
82
+ height: ~'calc(100% - 1px)';
83
+ overflow: visible;
84
+ white-space: nowrap;
85
+ transition: left 0.3s ease;
86
+ }
87
+ }
88
+
89
+ .contextmenu {
90
+ position: absolute;
91
+ margin: 0;
92
+ padding: 5px 0;
93
+ background: #fff;
94
+ z-index: 1000;
95
+ list-style-type: none;
96
+ border-radius: 4px;
97
+ box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
98
+ li {
99
+ margin: 0;
100
+ padding: 5px 15px;
101
+ cursor: pointer;
102
+ &:hover {
103
+ background: #eee;
104
+ }
105
+ }
106
+ }
107
+
108
+ .ivu-tag-primary.ivu-tag-dot {
109
+ .ivu-tag-dot-inner {
110
+ background-color: var(--ind-primary-color);
111
+ }
112
+ }
113
+ }
@@ -1,85 +1,85 @@
1
- :root {
2
- --modal-top-height: 100px;
3
- --modal-header-height: 52px;
4
- --modal-footer-height: 57px;
5
-
6
- --modal-other-height: calc(
7
- var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
8
- );
9
- }
10
-
11
- .ibp-mode {
12
- --modal-top-height: 10px;
13
- // 改了css变量,用到它的需要重新定义。。。
14
- --modal-other-height: calc(
15
- var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
16
- );
17
- }
18
-
19
- .ind-modal {
20
- .ivu-modal {
21
- top: var(--modal-top-height);
22
- }
23
- .ivu-modal-fullscreen {
24
- top: 0;
25
- }
26
- .ivu-modal:not(.ivu-modal-fullscreen) {
27
- .ivu-modal-body {
28
- max-height: calc(100vh - var(--modal-other-height));
29
- overflow: auto;
30
- }
31
-
32
- .ivu-modal-footer {
33
- button + button {
34
- margin-left: 0;
35
- }
36
- }
37
- }
38
- .ivu-modal.ivu-modal-fullscreen {
39
- .ivu-modal-close .ivu-icon-ios-close {
40
- color: white;
41
- }
42
- }
43
- }
44
-
45
- .report-index-model-panel {
46
- .left-panel {
47
- padding: var(--report-index-model-panel-padding);
48
- border: 1px solid var(--ind-border-color);
49
- .report-index-dimension1-panel {
50
- width: 100px;
51
- height: fit-content;
52
- border: 1px solid var(--ind-border-color);
53
- border-radius: 4px;
54
- .report-index-dimension1 {
55
- text-align: center;
56
- line-height: 30px;
57
- border-bottom: 1px solid var(--ind-border-color);
58
- cursor: pointer;
59
- &:last-child {
60
- border-bottom: none;
61
- }
62
- &.selected {
63
- background-color: var(--ind-blue);
64
- color: var(--ind-white);
65
- }
66
- }
67
- }
68
- .report-index-index-panel {
69
- border-left: 1px solid var(--ind-border-color);
70
- }
71
- .report-index-options {
72
- padding: 0 var(--report-index-model-panel-padding);
73
- padding-right: var(--report-index-options-padding-right);
74
- }
75
- }
76
- .opt-panel {
77
- padding: 0 20px;
78
- height: 600px;
79
- justify-content: center;
80
- }
81
- .right-panel {
82
- padding: var(--report-index-model-panel-padding);
83
- border: 1px solid var(--ind-border-color);
84
- }
85
- }
1
+ :root {
2
+ --modal-top-height: 100px;
3
+ --modal-header-height: 52px;
4
+ --modal-footer-height: 57px;
5
+
6
+ --modal-other-height: calc(
7
+ var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
8
+ );
9
+ }
10
+
11
+ .ibp-mode {
12
+ --modal-top-height: 10px;
13
+ // 改了css变量,用到它的需要重新定义。。。
14
+ --modal-other-height: calc(
15
+ var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
16
+ );
17
+ }
18
+
19
+ .ind-modal {
20
+ .ivu-modal {
21
+ top: var(--modal-top-height);
22
+ }
23
+ .ivu-modal-fullscreen {
24
+ top: 0;
25
+ }
26
+ .ivu-modal:not(.ivu-modal-fullscreen) {
27
+ .ivu-modal-body {
28
+ max-height: calc(100vh - var(--modal-other-height));
29
+ overflow: auto;
30
+ }
31
+
32
+ .ivu-modal-footer {
33
+ button + button {
34
+ margin-left: 0;
35
+ }
36
+ }
37
+ }
38
+ .ivu-modal.ivu-modal-fullscreen {
39
+ .ivu-modal-close .ivu-icon-ios-close {
40
+ color: white;
41
+ }
42
+ }
43
+ }
44
+
45
+ .report-index-model-panel {
46
+ .left-panel {
47
+ padding: var(--report-index-model-panel-padding);
48
+ border: 1px solid var(--ind-border-color);
49
+ .report-index-dimension1-panel {
50
+ width: 100px;
51
+ height: fit-content;
52
+ border: 1px solid var(--ind-border-color);
53
+ border-radius: 4px;
54
+ .report-index-dimension1 {
55
+ text-align: center;
56
+ line-height: 30px;
57
+ border-bottom: 1px solid var(--ind-border-color);
58
+ cursor: pointer;
59
+ &:last-child {
60
+ border-bottom: none;
61
+ }
62
+ &.selected {
63
+ background-color: var(--ind-blue);
64
+ color: var(--ind-white);
65
+ }
66
+ }
67
+ }
68
+ .report-index-index-panel {
69
+ border-left: 1px solid var(--ind-border-color);
70
+ }
71
+ .report-index-options {
72
+ padding: 0 var(--report-index-model-panel-padding);
73
+ padding-right: var(--report-index-options-padding-right);
74
+ }
75
+ }
76
+ .opt-panel {
77
+ padding: 0 20px;
78
+ height: 600px;
79
+ justify-content: center;
80
+ }
81
+ .right-panel {
82
+ padding: var(--report-index-model-panel-padding);
83
+ border: 1px solid var(--ind-border-color);
84
+ }
85
+ }
@@ -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,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,19 @@
1
+ .ind-modal .ivu-modal {
2
+ top:var(--modal-top-height)
3
+ }
4
+ .ind-modal .ivu-modal-fullscreen{
5
+ top:0
6
+ }
7
+ .ind-modal .ivu-modal:not(.ivu-modal-fullscreen) .ivu-modal-body{
8
+ max-height:calc(100vh - var(--modal-other-height));
9
+ overflow:auto
10
+ }
11
+ .ind-modal .ivu-modal:not(.ivu-modal-fullscreen) .ivu-modal-footer button+button{
12
+ margin-left:0
13
+ }
14
+ .ind-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-close .ivu-icon-ios-close{
15
+ color:#fff
16
+ }
17
+ .ind-modal:has(.ivu-modal-confirm){
18
+ z-index:999999998!important
19
+ }