bhd-components 0.6.2 → 0.6.3

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 (39) hide show
  1. package/dist/{9eaa797e.esm.es5.development.js → a0cd97b9.esm.es5.development.js} +1 -1
  2. package/dist/{587f2764.esm.es5.production.js → e88a10a0.esm.es5.production.js} +1 -1
  3. package/dist/index.esm.es5.development.css +1711 -827
  4. package/dist/index.esm.es5.development.js +511 -383
  5. package/dist/index.esm.es5.production.css +1 -1
  6. package/dist/index.esm.es5.production.js +1 -1
  7. package/es2017/bhdSelect/index.d.ts +3 -0
  8. package/es2017/bhdSelect/index.js +18 -13
  9. package/es2017/bhdSelect/index.module.less +4 -1
  10. package/es2017/customerService/{contactsList/index.js → contactsList.js} +92 -76
  11. package/es2017/customerService/function.d.ts +1 -1
  12. package/es2017/customerService/function.js +10 -2
  13. package/es2017/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  14. package/es2017/customerService/{historyFun/index.js → historyFun.js} +62 -16
  15. package/es2017/customerService/index.d.ts +3 -3
  16. package/es2017/customerService/index.js +143 -82
  17. package/es2017/customerService/index.module.less +496 -6
  18. package/es2017/customerService/index2.module.less +1282 -0
  19. package/es2017/typings.d.ts +12 -0
  20. package/esm/bhdSelect/index.d.ts +3 -0
  21. package/esm/bhdSelect/index.js +18 -13
  22. package/esm/bhdSelect/index.module.less +4 -1
  23. package/esm/customerService/{contactsList/index.js → contactsList.js} +83 -65
  24. package/esm/customerService/function.d.ts +1 -1
  25. package/esm/customerService/function.js +10 -1
  26. package/esm/customerService/{historyFun/index.d.ts → historyFun.d.ts} +0 -1
  27. package/esm/customerService/{historyFun/index.js → historyFun.js} +63 -16
  28. package/esm/customerService/index.d.ts +3 -3
  29. package/esm/customerService/index.js +173 -112
  30. package/esm/customerService/index.module.less +496 -6
  31. package/esm/customerService/index2.module.less +1282 -0
  32. package/esm/typings.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/es2017/customerService/contactsList/index.module.less +0 -208
  35. package/es2017/customerService/historyFun/index.module.less +0 -223
  36. package/esm/customerService/contactsList/index.module.less +0 -208
  37. package/esm/customerService/historyFun/index.module.less +0 -223
  38. /package/es2017/customerService/{contactsList/index.d.ts → contactsList.d.ts} +0 -0
  39. /package/esm/customerService/{contactsList/index.d.ts → contactsList.d.ts} +0 -0
package/esm/typings.d.ts CHANGED
@@ -1 +1,13 @@
1
1
  /// <reference types="@ice/pkg/types" />
2
+
3
+
4
+
5
+ declare let __ISONLINE__: boolean
6
+ declare module 'remarkable';
7
+ declare let $:any
8
+
9
+ declare global {
10
+ interface window {
11
+ appendDom: ()=>void
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",
@@ -1,208 +0,0 @@
1
- @import "../../theme/variable.less";
2
- // @color-background-primary-weak-hover:@color-background-info-weak;
3
-
4
-
5
-
6
- //联系人列表
7
- .teacher_layout {
8
- position: fixed;
9
- right: 568px;
10
-
11
- border-radius: 8px;
12
- background: rgba(255, 255, 255, 0.5);
13
- box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
14
- backdrop-filter: blur(7.5px);
15
- width: 80px;
16
- .top > div,
17
- .bottom > div {
18
- display: flex;
19
- flex-direction: column;
20
- align-items: center;
21
- padding: 8px;
22
- border-radius: 8px;
23
- margin: 8px 0;
24
- max-width: 60px;
25
- overflow: hidden;
26
- position: relative;
27
- cursor: pointer;
28
- &:hover {
29
- background-color: #f5f5f5;
30
- .delete {
31
- display: block;
32
- }
33
- }
34
- p {
35
- max-width: 60px;
36
- overflow: hidden;
37
- text-overflow: ellipsis;
38
- white-space: nowrap;
39
- color: @color-text-Secondary-Tr;
40
- font-size: 12px;
41
- line-height: 1;
42
- padding-top: 12px;
43
- }
44
- img {
45
- width: 32px;
46
- height: 32px;
47
- border-radius: 50%;
48
- }
49
- .num {
50
- position: absolute;
51
- top: 0;
52
- right: 0;
53
- border-radius: 26px;
54
- background-color: #f4523b;
55
- color: #fff;
56
- padding: 0 5px;
57
- border-radius: 25px;
58
- font-size: 12px;
59
- line-height: 1.2;
60
- }
61
- .delete {
62
- position: absolute;
63
- top: 2px;
64
- right: 2px;
65
- color: rgba(0, 0, 0, 0.65);
66
- font-size: 12px;
67
- display: none;
68
- }
69
- }
70
- .top > div {
71
- margin: 0 8px;
72
- }
73
- .top .shrink {
74
- border-bottom: 1px solid @color-border-secondary;
75
- border-radius: 0;
76
- margin-bottom: 8px;
77
- margin-top: 8px;
78
- & > span {
79
- font-size: 20px;
80
- }
81
- p {
82
- padding-top: 0;
83
- }
84
- &:hover {
85
- background-color: #fff !important;
86
- }
87
- }
88
- .top .active,
89
- .bottom .active {
90
- background: @color-background-primary-weak-hover;
91
- }
92
- .bottom > div:last-child {
93
- margin-bottom: 0;
94
- }
95
- .bottom > div:first-child {
96
- margin-top: 0;
97
- }
98
- .bottom {
99
- max-height: 524px;
100
- padding: 0 8px;
101
- padding-right: 4px;
102
- overflow-y: auto;
103
- margin-bottom: 8px;
104
- margin-top: 8px;
105
- }
106
- .bottom::-webkit-scrollbar {
107
- background-color: #eaedf1;
108
- background-color: transparent;
109
- width: 4px;
110
- height: 4px;
111
- }
112
- .bottom::-webkit-scrollbar-thumb {
113
- border-radius: 4px;
114
- background-color: rgba(0, 0, 0, 0.25);
115
- }
116
- }
117
- .teacher_layout_newlabo {
118
- top: 50px;
119
- right: 0;
120
- .top{
121
- svg{
122
- transform: rotate(180deg);
123
- }
124
- }
125
- }
126
- .teacher_layout_modal {
127
- width: 328px;
128
- height: calc(100% - 48px);
129
- background-color: #fff;
130
- position: absolute;
131
- border-top: 1px solid @color-border-secondary;
132
- .top,
133
- .bottom {
134
- .ai {
135
- border-bottom: 1px solid @color-border-secondary;
136
- padding: 16px;
137
- display: flex;
138
- align-items: center;
139
- cursor: pointer;
140
- img {
141
- width: 32px;
142
- height: 32px;
143
- border-radius: 50%;
144
- margin-right: 12px;
145
- }
146
- & > span {
147
- margin-right: 12px;
148
- }
149
- .user_info {
150
- width: 252px;
151
- .message {
152
- color: #000;
153
- font-size: 14px;
154
- line-height: 1;
155
- padding-right: 10px;
156
- .num {
157
- margin-left: 12px;
158
- border-radius: 26px;
159
- background-color: #f4523b;
160
- color: #fff;
161
- padding: 0 5px;
162
- border-radius: 25px;
163
- font-size: 12px;
164
- line-height: 1;
165
- }
166
-
167
- .time {
168
- font-size: 12px;
169
- color: @color-text-quaternary-Tr;
170
- float: right;
171
- }
172
- }
173
- .con {
174
- color: @color-text-quaternary-Tr;
175
- font-size: 12px;
176
- line-height: 1.5;
177
- margin-top: 8px;
178
- overflow: hidden;
179
- white-space: nowrap;
180
- text-overflow: ellipsis;
181
- }
182
- }
183
- }
184
- .active {
185
- background: @color-background-primary-weak-hover;
186
- }
187
- }
188
- .bottom{
189
- overflow: auto;
190
- height: calc(100% - 70px);
191
- }
192
- .bottom::-webkit-scrollbar {
193
- background-color: #eaedf1;
194
- background-color: transparent;
195
- width: 4px;
196
- height: 4px;
197
- }
198
- .bottom::-webkit-scrollbar-thumb {
199
- border-radius: 4px;
200
- background-color: rgba(0, 0, 0, 0.25);
201
- }
202
-
203
- :global {
204
- .anticon {
205
- vertical-align: 0;
206
- }
207
- }
208
- }
@@ -1,223 +0,0 @@
1
- @import "../../theme/variable.less";
2
- // @color-text-primary: @color-background-info-base;
3
-
4
- //历史记录11
5
- .history_list {
6
- position: absolute;
7
- top: 0;
8
- background: rgba(0, 0, 0, 0.3);
9
- width: 100%;
10
- height: 100%;
11
- overflow: hidden;
12
-
13
- .search_layout {
14
- background: #fff;
15
- position: absolute;
16
- bottom: -500px;
17
- width: 100%;
18
- border-radius: 16px 16px 0px 0px;
19
- overflow: hidden;
20
- animation: mymove 1s forwards;
21
- box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
22
-
23
- .title {
24
- border-bottom: 1px solid @color-border-Tr;
25
- font-size: 16px;
26
- font-weight: 600;
27
- line-height: 150%;
28
- padding: 16px 24px;
29
- display: flex;
30
- justify-content: space-between;
31
- svg {
32
- font-size: 12px;
33
- cursor: pointer;
34
- opacity: 0.65;
35
- font-weight: 300;
36
- }
37
- }
38
- .search_top {
39
- position: relative;
40
- margin: 16px 24px;
41
- // margin-bottom: 0;
42
- // display: flex;
43
- // align-items: center;
44
- // justify-content: space-between;
45
- background-color: #fff;
46
-
47
- input {
48
- width: 100%;
49
- height: 40px;
50
- line-height: 40px;
51
- border-radius: 2px;
52
- border: 1px solid @color-border-secondary;
53
- padding-left: 46px;
54
- padding-right: 30px;
55
- color: @color-text-Tr;
56
- }
57
- :global {
58
- .anticon {
59
- position: absolute;
60
- top: 11px;
61
- z-index: 1;
62
- left: 14px;
63
- font-size: 16px;
64
- color: rgba(0, 0, 0, 0.65);
65
- }
66
- .guanbi_Close {
67
- position: absolute;
68
- top: 3px;
69
- right: 38px;
70
- font-size: 16px;
71
- z-index: 1;
72
- color: rgba(0, 0, 0, 0.65);
73
- cursor: pointer;
74
- svg {
75
- font-size: 10px;
76
- opacity: 0.65;
77
- }
78
- }
79
- }
80
- svg {
81
- opacity: 0.65;
82
- font-weight: 300;
83
- }
84
- }
85
- .main_list:first-child {
86
- margin-top: 0;
87
- }
88
- .main_list {
89
- overflow: auto;
90
- height: 510px;
91
- &::-webkit-scrollbar {
92
- background-color: #eaedf1;
93
- background-color: transparent;
94
- width: 4px;
95
- height: 4px;
96
- }
97
- &::-webkit-scrollbar-thumb {
98
- border-radius: 4px;
99
- background-color: rgba(0, 0, 0, 0.25);
100
- }
101
- .list {
102
- margin: 8px 24px;
103
- padding: 8px;
104
- // border-bottom: 1px solid @color-border-secondary;
105
- margin-bottom: 17px;
106
- position: relative;
107
- cursor: pointer;
108
- &:hover {
109
- background-color: rgba(0, 0, 0, 0.04);
110
- border-radius: 8px;
111
- }
112
- &::before {
113
- content: "";
114
- display: inline-block;
115
- width: 100%;
116
- height: 1px;
117
- background-color: @color-border-secondary;
118
- position: absolute;
119
- bottom: -9px;
120
- left: -1px;
121
- }
122
- .name {
123
- display: flex;
124
- justify-content: space-between;
125
- align-items: center;
126
- margin-bottom: 9px;
127
- p {
128
- color: @color-text-Tr;
129
- font-size: 16px;
130
- font-weight: 600;
131
- line-height: 1.5;
132
- }
133
- .time {
134
- font-size: 14px;
135
- color: @color-text-tertiary;
136
- }
137
- }
138
- .con {
139
- color: @color-text-Tr;
140
- font-size: 14px;
141
- font-weight: 400;
142
- line-height: 150%;
143
- overflow: hidden;
144
- text-overflow: ellipsis;
145
- -webkit-box-orient: vertical;
146
- -webkit-line-clamp: 2;
147
- display: -webkit-box;
148
-
149
- max-height: 40px;
150
- word-break: break-all;
151
- span {
152
- color: @color-text-primary;
153
- }
154
- }
155
- }
156
- .no_data{
157
- text-align: center;
158
- margin-top: 130px;
159
- img{
160
- width: 160px;
161
- }
162
- p{
163
- margin-top: 24px;
164
- color: rgba(0, 0, 0, 0.45);
165
- text-align: center;
166
- font-size: 14px;
167
- line-height: 100%; /* 14px */
168
- }
169
- }
170
- }
171
- }
172
- @keyframes mymove {
173
- from {
174
- bottom: -500px;
175
- }
176
- to {
177
- bottom: 0;
178
- }
179
- }
180
-
181
- @-webkit-keyframes mymove /*Safari and Chrome*/ {
182
- from {
183
- bottom: -500px;
184
- }
185
- to {
186
- bottom: 0;
187
- }
188
- }
189
-
190
- :global {
191
- .anticon {
192
- vertical-align: 0;
193
- }
194
- }
195
- }
196
- //全屏下的历史记录
197
- .history_list_broadside {
198
- width: 417px;
199
- height: calc(100% - 48px);
200
- right: 0;
201
- top: 48px;
202
- border-radius: 0;
203
- background: transparent;
204
- overflow: visible;
205
- .search_layout {
206
- height: 100%;
207
- border-radius: 0;
208
- box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
209
- .search_top{
210
- margin: 16px;
211
- }
212
- .title{
213
- padding: 16px;
214
- }
215
- .main_list {
216
- height: calc(100% - 140px);
217
- max-height: calc(100% - 140px);
218
- .list{
219
- margin: 8px 16px 17px;
220
- }
221
- }
222
- }
223
- }
@@ -1,208 +0,0 @@
1
- @import "../../theme/variable.less";
2
- // @color-background-primary-weak-hover:@color-background-info-weak;
3
-
4
-
5
-
6
- //联系人列表
7
- .teacher_layout {
8
- position: fixed;
9
- right: 568px;
10
-
11
- border-radius: 8px;
12
- background: rgba(255, 255, 255, 0.5);
13
- box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
14
- backdrop-filter: blur(7.5px);
15
- width: 80px;
16
- .top > div,
17
- .bottom > div {
18
- display: flex;
19
- flex-direction: column;
20
- align-items: center;
21
- padding: 8px;
22
- border-radius: 8px;
23
- margin: 8px 0;
24
- max-width: 60px;
25
- overflow: hidden;
26
- position: relative;
27
- cursor: pointer;
28
- &:hover {
29
- background-color: #f5f5f5;
30
- .delete {
31
- display: block;
32
- }
33
- }
34
- p {
35
- max-width: 60px;
36
- overflow: hidden;
37
- text-overflow: ellipsis;
38
- white-space: nowrap;
39
- color: @color-text-Secondary-Tr;
40
- font-size: 12px;
41
- line-height: 1;
42
- padding-top: 12px;
43
- }
44
- img {
45
- width: 32px;
46
- height: 32px;
47
- border-radius: 50%;
48
- }
49
- .num {
50
- position: absolute;
51
- top: 0;
52
- right: 0;
53
- border-radius: 26px;
54
- background-color: #f4523b;
55
- color: #fff;
56
- padding: 0 5px;
57
- border-radius: 25px;
58
- font-size: 12px;
59
- line-height: 1.2;
60
- }
61
- .delete {
62
- position: absolute;
63
- top: 2px;
64
- right: 2px;
65
- color: rgba(0, 0, 0, 0.65);
66
- font-size: 12px;
67
- display: none;
68
- }
69
- }
70
- .top > div {
71
- margin: 0 8px;
72
- }
73
- .top .shrink {
74
- border-bottom: 1px solid @color-border-secondary;
75
- border-radius: 0;
76
- margin-bottom: 8px;
77
- margin-top: 8px;
78
- & > span {
79
- font-size: 20px;
80
- }
81
- p {
82
- padding-top: 0;
83
- }
84
- &:hover {
85
- background-color: #fff !important;
86
- }
87
- }
88
- .top .active,
89
- .bottom .active {
90
- background: @color-background-primary-weak-hover;
91
- }
92
- .bottom > div:last-child {
93
- margin-bottom: 0;
94
- }
95
- .bottom > div:first-child {
96
- margin-top: 0;
97
- }
98
- .bottom {
99
- max-height: 524px;
100
- padding: 0 8px;
101
- padding-right: 4px;
102
- overflow-y: auto;
103
- margin-bottom: 8px;
104
- margin-top: 8px;
105
- }
106
- .bottom::-webkit-scrollbar {
107
- background-color: #eaedf1;
108
- background-color: transparent;
109
- width: 4px;
110
- height: 4px;
111
- }
112
- .bottom::-webkit-scrollbar-thumb {
113
- border-radius: 4px;
114
- background-color: rgba(0, 0, 0, 0.25);
115
- }
116
- }
117
- .teacher_layout_newlabo {
118
- top: 50px;
119
- right: 0;
120
- .top{
121
- svg{
122
- transform: rotate(180deg);
123
- }
124
- }
125
- }
126
- .teacher_layout_modal {
127
- width: 328px;
128
- height: calc(100% - 48px);
129
- background-color: #fff;
130
- position: absolute;
131
- border-top: 1px solid @color-border-secondary;
132
- .top,
133
- .bottom {
134
- .ai {
135
- border-bottom: 1px solid @color-border-secondary;
136
- padding: 16px;
137
- display: flex;
138
- align-items: center;
139
- cursor: pointer;
140
- img {
141
- width: 32px;
142
- height: 32px;
143
- border-radius: 50%;
144
- margin-right: 12px;
145
- }
146
- & > span {
147
- margin-right: 12px;
148
- }
149
- .user_info {
150
- width: 252px;
151
- .message {
152
- color: #000;
153
- font-size: 14px;
154
- line-height: 1;
155
- padding-right: 10px;
156
- .num {
157
- margin-left: 12px;
158
- border-radius: 26px;
159
- background-color: #f4523b;
160
- color: #fff;
161
- padding: 0 5px;
162
- border-radius: 25px;
163
- font-size: 12px;
164
- line-height: 1;
165
- }
166
-
167
- .time {
168
- font-size: 12px;
169
- color: @color-text-quaternary-Tr;
170
- float: right;
171
- }
172
- }
173
- .con {
174
- color: @color-text-quaternary-Tr;
175
- font-size: 12px;
176
- line-height: 1.5;
177
- margin-top: 8px;
178
- overflow: hidden;
179
- white-space: nowrap;
180
- text-overflow: ellipsis;
181
- }
182
- }
183
- }
184
- .active {
185
- background: @color-background-primary-weak-hover;
186
- }
187
- }
188
- .bottom{
189
- overflow: auto;
190
- height: calc(100% - 70px);
191
- }
192
- .bottom::-webkit-scrollbar {
193
- background-color: #eaedf1;
194
- background-color: transparent;
195
- width: 4px;
196
- height: 4px;
197
- }
198
- .bottom::-webkit-scrollbar-thumb {
199
- border-radius: 4px;
200
- background-color: rgba(0, 0, 0, 0.25);
201
- }
202
-
203
- :global {
204
- .anticon {
205
- vertical-align: 0;
206
- }
207
- }
208
- }