bhd-components 0.6.1 → 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/{ab2a98d6.esm.es5.development.js → a0cd97b9.esm.es5.development.js} +1 -1
  2. package/dist/{b8edd934.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 +515 -384
  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 -77
  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 +144 -81
  17. package/es2017/customerService/index.module.less +496 -5
  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 -66
  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} +64 -17
  28. package/esm/customerService/index.d.ts +3 -3
  29. package/esm/customerService/index.js +176 -111
  30. package/esm/customerService/index.module.less +496 -5
  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 -206
  35. package/es2017/customerService/historyFun/index.module.less +0 -223
  36. package/esm/customerService/contactsList/index.module.less +0 -206
  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.1",
3
+ "version": "0.6.3",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",
@@ -1,206 +0,0 @@
1
- @import "../../theme/variable.less";
2
- // @color-background-primary-weak-hover:@color-background-info-weak;
3
-
4
- //联系人列表
5
- .teacher_layout {
6
- position: fixed;
7
- right: 568px;
8
-
9
- border-radius: 8px;
10
- background: rgba(255, 255, 255, 0.5);
11
- box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
12
- backdrop-filter: blur(7.5px);
13
- width: 80px;
14
- .top > div,
15
- .bottom > div {
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- padding: 8px;
20
- border-radius: 8px;
21
- margin: 8px 0;
22
- max-width: 60px;
23
- overflow: hidden;
24
- position: relative;
25
- cursor: pointer;
26
- &:hover {
27
- background-color: #f5f5f5;
28
- .delete {
29
- display: block;
30
- }
31
- }
32
- p {
33
- max-width: 60px;
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- white-space: nowrap;
37
- color: @color-text-Secondary-Tr;
38
- font-size: 12px;
39
- line-height: 1;
40
- padding-top: 12px;
41
- }
42
- img {
43
- width: 32px;
44
- height: 32px;
45
- border-radius: 50%;
46
- }
47
- .num {
48
- position: absolute;
49
- top: 0;
50
- right: 0;
51
- border-radius: 26px;
52
- background-color: #f4523b;
53
- color: #fff;
54
- padding: 0 5px;
55
- border-radius: 25px;
56
- font-size: 12px;
57
- line-height: 1.2;
58
- }
59
- .delete {
60
- position: absolute;
61
- top: 2px;
62
- right: 2px;
63
- color: rgba(0, 0, 0, 0.65);
64
- font-size: 12px;
65
- display: none;
66
- }
67
- }
68
- .top > div {
69
- margin: 0 8px;
70
- }
71
- .top .shrink {
72
- border-bottom: 1px solid @color-border-secondary;
73
- border-radius: 0;
74
- margin-bottom: 8px;
75
- margin-top: 8px;
76
- & > span {
77
- font-size: 20px;
78
- }
79
- p {
80
- padding-top: 0;
81
- }
82
- &:hover {
83
- background-color: #fff !important;
84
- }
85
- }
86
- .top .active,
87
- .bottom .active {
88
- background: @color-background-primary-weak-hover;
89
- }
90
- .bottom > div:last-child {
91
- margin-bottom: 0;
92
- }
93
- .bottom > div:first-child {
94
- margin-top: 0;
95
- }
96
- .bottom {
97
- max-height: 524px;
98
- padding: 0 8px;
99
- padding-right: 4px;
100
- overflow-y: auto;
101
- margin-bottom: 8px;
102
- margin-top: 8px;
103
- }
104
- .bottom::-webkit-scrollbar {
105
- background-color: #eaedf1;
106
- background-color: transparent;
107
- width: 4px;
108
- height: 4px;
109
- }
110
- .bottom::-webkit-scrollbar-thumb {
111
- border-radius: 4px;
112
- background-color: rgba(0, 0, 0, 0.25);
113
- }
114
- }
115
- .teacher_layout_newlabo {
116
- top: 50px;
117
- right: 0;
118
- .top{
119
- svg{
120
- transform: rotate(180deg);
121
- }
122
- }
123
- }
124
- .teacher_layout_modal {
125
- width: 328px;
126
- height: calc(100% - 48px);
127
- background-color: #fff;
128
- position: absolute;
129
- border-top: 1px solid @color-border-secondary;
130
- .top,
131
- .bottom {
132
- .ai {
133
- border-bottom: 1px solid @color-border-secondary;
134
- padding: 16px;
135
- display: flex;
136
- align-items: center;
137
- cursor: pointer;
138
- img {
139
- width: 32px;
140
- height: 32px;
141
- border-radius: 50%;
142
- margin-right: 12px;
143
- }
144
- & > span {
145
- margin-right: 12px;
146
- }
147
- .user_info {
148
- width: 252px;
149
- .message {
150
- color: #000;
151
- font-size: 14px;
152
- line-height: 1;
153
- padding-right: 10px;
154
- .num {
155
- margin-left: 12px;
156
- border-radius: 26px;
157
- background-color: #f4523b;
158
- color: #fff;
159
- padding: 0 5px;
160
- border-radius: 25px;
161
- font-size: 12px;
162
- line-height: 1;
163
- }
164
-
165
- .time {
166
- font-size: 12px;
167
- color: @color-text-quaternary-Tr;
168
- float: right;
169
- }
170
- }
171
- .con {
172
- color: @color-text-quaternary-Tr;
173
- font-size: 12px;
174
- line-height: 1.5;
175
- margin-top: 8px;
176
- overflow: hidden;
177
- white-space: nowrap;
178
- text-overflow: ellipsis;
179
- }
180
- }
181
- }
182
- .active {
183
- background: @color-background-primary-weak-hover;
184
- }
185
- }
186
- .bottom{
187
- overflow: auto;
188
- height: calc(100% - 70px);
189
- }
190
- .bottom::-webkit-scrollbar {
191
- background-color: #eaedf1;
192
- background-color: transparent;
193
- width: 4px;
194
- height: 4px;
195
- }
196
- .bottom::-webkit-scrollbar-thumb {
197
- border-radius: 4px;
198
- background-color: rgba(0, 0, 0, 0.25);
199
- }
200
-
201
- :global {
202
- .anticon {
203
- vertical-align: 0;
204
- }
205
- }
206
- }
@@ -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,206 +0,0 @@
1
- @import "../../theme/variable.less";
2
- // @color-background-primary-weak-hover:@color-background-info-weak;
3
-
4
- //联系人列表
5
- .teacher_layout {
6
- position: fixed;
7
- right: 568px;
8
-
9
- border-radius: 8px;
10
- background: rgba(255, 255, 255, 0.5);
11
- box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
12
- backdrop-filter: blur(7.5px);
13
- width: 80px;
14
- .top > div,
15
- .bottom > div {
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- padding: 8px;
20
- border-radius: 8px;
21
- margin: 8px 0;
22
- max-width: 60px;
23
- overflow: hidden;
24
- position: relative;
25
- cursor: pointer;
26
- &:hover {
27
- background-color: #f5f5f5;
28
- .delete {
29
- display: block;
30
- }
31
- }
32
- p {
33
- max-width: 60px;
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- white-space: nowrap;
37
- color: @color-text-Secondary-Tr;
38
- font-size: 12px;
39
- line-height: 1;
40
- padding-top: 12px;
41
- }
42
- img {
43
- width: 32px;
44
- height: 32px;
45
- border-radius: 50%;
46
- }
47
- .num {
48
- position: absolute;
49
- top: 0;
50
- right: 0;
51
- border-radius: 26px;
52
- background-color: #f4523b;
53
- color: #fff;
54
- padding: 0 5px;
55
- border-radius: 25px;
56
- font-size: 12px;
57
- line-height: 1.2;
58
- }
59
- .delete {
60
- position: absolute;
61
- top: 2px;
62
- right: 2px;
63
- color: rgba(0, 0, 0, 0.65);
64
- font-size: 12px;
65
- display: none;
66
- }
67
- }
68
- .top > div {
69
- margin: 0 8px;
70
- }
71
- .top .shrink {
72
- border-bottom: 1px solid @color-border-secondary;
73
- border-radius: 0;
74
- margin-bottom: 8px;
75
- margin-top: 8px;
76
- & > span {
77
- font-size: 20px;
78
- }
79
- p {
80
- padding-top: 0;
81
- }
82
- &:hover {
83
- background-color: #fff !important;
84
- }
85
- }
86
- .top .active,
87
- .bottom .active {
88
- background: @color-background-primary-weak-hover;
89
- }
90
- .bottom > div:last-child {
91
- margin-bottom: 0;
92
- }
93
- .bottom > div:first-child {
94
- margin-top: 0;
95
- }
96
- .bottom {
97
- max-height: 524px;
98
- padding: 0 8px;
99
- padding-right: 4px;
100
- overflow-y: auto;
101
- margin-bottom: 8px;
102
- margin-top: 8px;
103
- }
104
- .bottom::-webkit-scrollbar {
105
- background-color: #eaedf1;
106
- background-color: transparent;
107
- width: 4px;
108
- height: 4px;
109
- }
110
- .bottom::-webkit-scrollbar-thumb {
111
- border-radius: 4px;
112
- background-color: rgba(0, 0, 0, 0.25);
113
- }
114
- }
115
- .teacher_layout_newlabo {
116
- top: 50px;
117
- right: 0;
118
- .top{
119
- svg{
120
- transform: rotate(180deg);
121
- }
122
- }
123
- }
124
- .teacher_layout_modal {
125
- width: 328px;
126
- height: calc(100% - 48px);
127
- background-color: #fff;
128
- position: absolute;
129
- border-top: 1px solid @color-border-secondary;
130
- .top,
131
- .bottom {
132
- .ai {
133
- border-bottom: 1px solid @color-border-secondary;
134
- padding: 16px;
135
- display: flex;
136
- align-items: center;
137
- cursor: pointer;
138
- img {
139
- width: 32px;
140
- height: 32px;
141
- border-radius: 50%;
142
- margin-right: 12px;
143
- }
144
- & > span {
145
- margin-right: 12px;
146
- }
147
- .user_info {
148
- width: 252px;
149
- .message {
150
- color: #000;
151
- font-size: 14px;
152
- line-height: 1;
153
- padding-right: 10px;
154
- .num {
155
- margin-left: 12px;
156
- border-radius: 26px;
157
- background-color: #f4523b;
158
- color: #fff;
159
- padding: 0 5px;
160
- border-radius: 25px;
161
- font-size: 12px;
162
- line-height: 1;
163
- }
164
-
165
- .time {
166
- font-size: 12px;
167
- color: @color-text-quaternary-Tr;
168
- float: right;
169
- }
170
- }
171
- .con {
172
- color: @color-text-quaternary-Tr;
173
- font-size: 12px;
174
- line-height: 1.5;
175
- margin-top: 8px;
176
- overflow: hidden;
177
- white-space: nowrap;
178
- text-overflow: ellipsis;
179
- }
180
- }
181
- }
182
- .active {
183
- background: @color-background-primary-weak-hover;
184
- }
185
- }
186
- .bottom{
187
- overflow: auto;
188
- height: calc(100% - 70px);
189
- }
190
- .bottom::-webkit-scrollbar {
191
- background-color: #eaedf1;
192
- background-color: transparent;
193
- width: 4px;
194
- height: 4px;
195
- }
196
- .bottom::-webkit-scrollbar-thumb {
197
- border-radius: 4px;
198
- background-color: rgba(0, 0, 0, 0.25);
199
- }
200
-
201
- :global {
202
- .anticon {
203
- vertical-align: 0;
204
- }
205
- }
206
- }