lh-ui-next 0.1.7-beta.21 → 0.1.7-beta.23

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lh-ui-next",
3
3
  "description": "a friendly ui for vue3",
4
- "version": "0.1.7-beta.21",
4
+ "version": "0.1.7-beta.23",
5
5
  "author": "Tinylj(lujin.pt@163.com)",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -135,8 +135,21 @@
135
135
  }
136
136
  }
137
137
  }
138
-
139
-
138
+ }
139
+ .lh-select-ul {
140
+ .lh-select-search {
141
+ padding-left: 8px;
142
+ padding-right:8px;
143
+ }
144
+ ul {
145
+ li {
146
+ height: 28px;
147
+ line-height: 28px;
148
+ padding-left: 8px;
149
+ padding-right: 8px;
150
+ font-size: 13px;
151
+ }
152
+ }
140
153
  }
141
154
  .lh-input {
142
155
  .lh-input-cornInput {
@@ -184,28 +197,29 @@
184
197
  }
185
198
  .lh-dialog {
186
199
  .lh-dialog__container {
187
- .lh-dialog-header {
188
- padding-left: 18px;
189
- padding-right: 12px;
190
- height: 36px;
191
- > .title {
192
- font-size: 15px;
193
- line-height: 36px;
194
- font-weight: bold;
195
- }
196
- > .closeIt {
197
- width: 36px;
198
- height: 36px;
199
- line-height: 35px;
200
- i {
201
- font-size: 16px;
202
- }
203
- }
200
+
201
+ }
202
+ }
203
+ .lh-dialog-header {
204
+ padding-left: 18px;
205
+ padding-right: 12px;
206
+ height: 36px;
207
+ > .title {
208
+ font-size: 15px;
209
+ line-height: 36px;
210
+ font-weight: bold;
211
+ }
212
+ > .closeIt {
213
+ width: 36px;
214
+ height: 36px;
215
+ line-height: 35px;
216
+ i {
217
+ font-size: 16px;
204
218
  }
205
219
  }
206
-
207
220
  }
208
221
 
222
+
209
223
  .lh-date {
210
224
  .lh-date-header {
211
225
  .lh-date-header-label {
@@ -118,6 +118,12 @@
118
118
  height: 14px;
119
119
  border-radius:2px;
120
120
  margin-top: 1px;
121
+ &.indeterminate{
122
+ &::after {
123
+ height: 6px;
124
+ width: 6px;
125
+ }
126
+ }
121
127
  }
122
128
  .lh-checkbox-text{
123
129
  font-size: 12px;
@@ -13,48 +13,7 @@
13
13
  overflow: auto;
14
14
  }
15
15
  .lh-dialog__container {
16
- .lh-dialog-header {
17
- border-bottom: 1px solid @color_b6;
18
- padding-left: 24px;
19
- padding-right: 19px;
20
- height: 55px;
21
- > .title {
22
- font-size: 18px;
23
- font-weight: bold;
24
- line-height: 56px;
25
- color: @color_b1;
26
- }
27
- > .closeIt {
28
- width: 56px;
29
- height: 56px;
30
- line-height: 54px;
31
- color: @color_b3;
32
- display: inline-block;
33
- cursor: pointer;
34
- top: 0;
35
- right: 0;
36
- position: absolute;
37
- text-align: center;
38
- i {
39
- font-size: 20px;
40
- }
41
- &:hover {
42
- color: @color_b2;
43
- }
44
- }
45
- }
46
- .lh-dialog-body {
47
- padding: 24px; //这里默认就是 24px的。但是有的时候 有一些特殊需求就是32。所以不要改动这里,你有特殊需求自己覆盖
48
- max-height: 610px;
49
- min-height: 292px;
50
- overflow-y: auto;
51
- width: 100%;
52
- }
53
- .lh-dialog-footer {
54
- text-align: right;
55
- padding: 10px 16px;
56
- border-top: 1px solid @color_b6;
57
- }
16
+
58
17
  }
59
18
  }
60
19
  .lh-dialog__wrapper{
@@ -67,6 +26,52 @@
67
26
  margin: 0;
68
27
  }
69
28
 
29
+ //单独存在。方便外界覆盖调用
30
+ .lh-dialog-header {
31
+ border-bottom: 1px solid @color_b6;
32
+ padding-left: 24px;
33
+ padding-right: 19px;
34
+ height: 55px;
35
+ > .title {
36
+ font-size: 18px;
37
+ font-weight: bold;
38
+ line-height: 56px;
39
+ color: @color_b1;
40
+ }
41
+ > .closeIt {
42
+ width: 56px;
43
+ height: 56px;
44
+ line-height: 54px;
45
+ color: @color_b3;
46
+ display: inline-block;
47
+ cursor: pointer;
48
+ top: 0;
49
+ right: 0;
50
+ position: absolute;
51
+ text-align: center;
52
+ i {
53
+ font-size: 20px;
54
+ }
55
+ &:hover {
56
+ color: @color_b2;
57
+ }
58
+ }
59
+ }
60
+ .lh-dialog-body {
61
+ padding: 24px; //这里默认就是 24px的。但是有的时候 有一些特殊需求就是32。所以不要改动这里,你有特殊需求自己覆盖
62
+ max-height: 610px;
63
+ min-height: 292px;
64
+ overflow-y: auto;
65
+ width: 100%;
66
+ }
67
+ .lh-dialog-footer {
68
+ text-align: right;
69
+ padding: 10px 16px;
70
+ border-top: 1px solid @color_b6;
71
+ }
72
+
73
+
74
+
70
75
  .dialog-fade-enter-active {
71
76
  animation: dialog-fade-in .3s;
72
77
  }
@@ -147,6 +147,7 @@
147
147
  }
148
148
  .dropdown-icon {
149
149
  top: 4px;
150
+ right:4px;
150
151
  }
151
152
  }
152
153
  }
@@ -232,16 +233,16 @@
232
233
  padding: 0 0 0 0;
233
234
  li {
234
235
  font-size: 12px;
235
- height: 20px;
236
- line-height: 19px;
237
- padding-left: 4px;
238
- padding-right: 4px;
236
+ height: 22px;
237
+ line-height: 22px;
238
+ padding-left: 6px;
239
+ padding-right: 6px;
239
240
  }
240
241
  }
241
242
  .lh-select-search {
242
243
  padding-top: 0;
243
- padding-left: 4px;
244
- padding-right: 4px;
244
+ padding-left: 6px;
245
+ padding-right: 6px;
245
246
  }
246
247
  }
247
248
  }
@@ -1,9 +1,9 @@
1
1
  .lh-switch{
2
2
  font-size: 14px;
3
- height: 22px;
4
- line-height: 22px;
3
+ height: 20px;
4
+ line-height: 20px;
5
5
  position: relative;
6
- &-input {
6
+ .lh-switch-input {
7
7
  position: absolute;
8
8
  top: 0;
9
9
  bottom: 0;
@@ -11,11 +11,9 @@
11
11
  right: 0;
12
12
  visibility: hidden;
13
13
  }
14
- &-text {
15
- cursor: pointer;
16
- }
17
- &-core {
18
- height: 22px;
14
+ .lh-switch-core {
15
+ height: 20px;
16
+ width: 40px;
19
17
  border:none;
20
18
  margin: 0;
21
19
  display: inline-block;
@@ -23,34 +21,42 @@
23
21
  outline: none;
24
22
  border-radius: 10px;
25
23
  box-sizing: border-box;
26
- background-color: #dcdfe6;
24
+ background-color: @color_b4;
27
25
  cursor: pointer;
28
26
  vertical-align: top;
29
- transition: all 0.3s;
27
+ transition: all 0.3s ease;
30
28
  &::after {
31
29
  content: "";
32
30
  position: absolute;
33
31
  border-radius: 100%;
34
- width: 18px;
35
- height: 18px;
32
+ width: 16px;
33
+ height: 16px;
36
34
  top: 2px;
37
35
  left: 2px;
36
+ box-shadow: 0 2px 8px rgba(0,0,0,0.16);
38
37
  background-color: #fff;
39
- transition: all 0.3s;
38
+ transition: all 0.3s ease;
40
39
  }
41
40
  }
42
- &-checked {
41
+ .lh-switch-checked {
43
42
  .lh-switch-core {
44
43
  border:none;
45
- background-color: #409eff;
44
+ background-color: @color_theme4;
46
45
  &::after {
47
- left: 100%;
48
- margin-left: -20px;
46
+ left:22px;
49
47
  }
50
48
  }
51
49
  }
52
- &-disabled{
50
+ .lh-switch-disabled{
53
51
  cursor: not-allowed;
54
- opacity: .6;
52
+ .lh-switch-core {
53
+ background-color: @color_b7;
54
+ }
55
+ &.lh-switch-checked {
56
+ .lh-switch-core {
57
+ background-color: @color_theme2;
58
+ }
59
+
60
+ }
55
61
  }
56
62
  }