lh-ui-next 0.1.7-beta.8 → 0.1.7

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 (51) hide show
  1. package/README.md +2 -2
  2. package/lib/css/dev.css +1 -1
  3. package/lib/css/dev.less +49 -0
  4. package/lib/json/areaNew.json +27108 -0
  5. package/lib/json/areaSmall.json +29482 -0
  6. package/lib/lh-ui-next.mjs +3395 -1858
  7. package/lib/lh-ui-next.umd.js +1 -1
  8. package/package.json +4 -5
  9. package/static/css/compact/compact.less +170 -22
  10. package/static/css/lhseer/class.less +8 -1
  11. package/static/css/lhseer/lhseerColor.less +4 -21
  12. package/static/css/package/button.less +14 -2
  13. package/static/css/package/checkbox.less +53 -36
  14. package/static/css/package/contextMenu.less +18 -0
  15. package/static/css/package/date.less +149 -49
  16. package/static/css/package/dialog.less +47 -42
  17. package/static/css/package/fuzzyInput.less +0 -6
  18. package/static/css/package/fuzzySelect.less +0 -6
  19. package/static/css/package/input.less +2 -11
  20. package/static/css/package/messageBox.less +4 -4
  21. package/static/css/package/pagination.less +29 -30
  22. package/static/css/package/popover.less +3 -135
  23. package/static/css/package/radio.less +21 -35
  24. package/static/css/package/select.less +8 -14
  25. package/static/css/package/selectTile.less +1 -1
  26. package/static/css/package/switch.less +45 -15
  27. package/static/css/package/tab.less +5 -2
  28. package/static/css/package/tree.less +24 -1
  29. package/static/css/package/treeSelect.less +0 -8
  30. package/static/css/package/treeSpecial.less +70 -0
  31. package/static/css/package/treeSpecialSelect.less +37 -0
  32. package/static/css/theme-compact-blue/main.css +1 -1
  33. package/static/css/theme-compact-blue/main.less +5 -1
  34. package/static/css/theme-loose-blue/main.css +1 -1
  35. package/static/css/theme-loose-blue/main.less +5 -1
  36. package/static/css/theme-loose-orange/main.css +1 -1
  37. package/static/css/theme-loose-orange/main.less +5 -1
  38. package/static/fontRoboto/Roboto-Black.ttf +0 -0
  39. package/static/fontRoboto/Roboto-Bold.ttf +0 -0
  40. package/static/fontRoboto/Roboto-Medium.ttf +0 -0
  41. package/static/fontRoboto/Roboto-Regular.ttf +0 -0
  42. package/static/fontRoboto/roboto.css +37 -0
  43. package/static/iconFontComponent/iconfont.css +402 -298
  44. package/static/iconFontComponent/iconfont.eot +0 -0
  45. package/static/iconFontComponent/iconfont.js +1 -1
  46. package/static/iconFontComponent/iconfont.json +681 -499
  47. package/static/iconFontComponent/iconfont.svg +211 -159
  48. package/static/iconFontComponent/iconfont.ttf +0 -0
  49. package/static/iconFontComponent/iconfont.woff +0 -0
  50. package/static/iconFontComponent/iconfont.woff2 +0 -0
  51. package/static/js/lang/zh-CN.js +2 -2
@@ -3,7 +3,7 @@
3
3
  display: inline-block;
4
4
  width: 200px;
5
5
  .popover-reference {
6
- display: inline-block;
6
+ display: block;
7
7
  width: 100%;
8
8
  }
9
9
  }
@@ -11,139 +11,7 @@
11
11
  display: inline-block;
12
12
  visibility: hidden;
13
13
  position: fixed;
14
- border: solid 1px #d5dce6;
15
- box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);
16
- border-radius: 3px;
14
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
15
+ border-radius: 2px;
17
16
  background: #fff;
18
- .triangle-icon {
19
- display: inline-block;
20
- height: 12px;
21
- position: fixed;
22
- z-index: 1;
23
- &::before {
24
- content: "";
25
- display: inline-block;
26
- width: 0;
27
- height: 0;
28
- border-width: 0 6px 6px;
29
- border-style: solid;
30
- border-color: #e8ecf1;
31
- position: absolute;
32
- left: 50%;
33
- margin-left: -6px;
34
- bottom: 0;
35
- }
36
-
37
- &::after {
38
- content: "";
39
- display: inline-block;
40
- width: 0;
41
- height: 0;
42
- border-width: 0 6px 6px;
43
- border-style: solid;
44
- border-color: #fff;
45
- position: absolute;
46
- left: 50%;
47
- margin-left: -6px;
48
- bottom: -1px;
49
- z-index: 1;
50
- }
51
-
52
- &.top {
53
- &::before {
54
- border-width: 6px 6px 0;
55
- border-right-color: transparent!important;
56
- border-bottom-color: transparent!important;
57
- border-left-color: transparent!important;
58
- top: 0;
59
- }
60
-
61
- &::after {
62
- border-width: 6px 6px 0;
63
- border-right-color: transparent!important;
64
- border-bottom-color: transparent!important;
65
- border-left-color: transparent!important;
66
- top: -1px;
67
- }
68
- }
69
- &.right {
70
- &::before {
71
- border-width: 6px 6px 6px 0;
72
- border-top-color: transparent!important;
73
- border-bottom-color: transparent!important;
74
- border-left-color: transparent!important;
75
- top: 50%;
76
- margin-top: -6px;
77
- margin-left: 0;
78
- left: auto;
79
- right: 0;
80
- }
81
-
82
- &::after {
83
- border-width: 6px 6px 6px 0;
84
- border-top-color: transparent!important;
85
- border-bottom-color: transparent!important;
86
- border-left-color: transparent!important;
87
- top: 50%;
88
- margin-top: -6px;
89
- margin-left: 0;
90
- left: auto;
91
- right: -1px;
92
- }
93
- }
94
- &.bottom {
95
- &::before {
96
- border-top-color: transparent!important;
97
- border-right-color: transparent!important;
98
- border-left-color: transparent!important;
99
- }
100
-
101
- &::after {
102
- border-top-color: transparent!important;
103
- border-right-color: transparent!important;
104
- border-left-color: transparent!important;
105
- }
106
- }
107
- &.left {
108
- &::before {
109
- border-width: 6px 0 6px 6px;
110
- border-top-color: transparent!important;
111
- border-right-color: transparent!important;
112
- border-bottom-color: transparent!important;
113
- top: 50%;
114
- margin-top: -6px;
115
- margin-left: 0;
116
- left: 0;
117
- }
118
-
119
- &::after {
120
- border-width: 6px 0 6px 6px;
121
- border-top-color: transparent!important;
122
- border-right-color: transparent!important;
123
- border-bottom-color: transparent!important;
124
- top: 50%;
125
- margin-top: -6px;
126
- margin-left: 0;
127
- left: -1px;
128
- }
129
- }
130
- }
131
- &.lh-tooltip {
132
- box-shadow: none;
133
- background: rgba(0, 0, 0, 0.75);
134
- border: none;
135
- color: #fff;
136
- width: auto !important;
137
- line-height: 20px;
138
- padding: 5px 13px;
139
- font-size: 14px;
140
- .triangle-icon {
141
- &::before {
142
- display: none;
143
- }
144
- &::after {
145
- border-color: rgba(0, 0, 0, 0.75);
146
- }
147
- }
148
- }
149
17
  }
@@ -12,13 +12,13 @@
12
12
  + .lh-radio {
13
13
  margin-left: 14px;
14
14
  }
15
- &-output{
15
+ .lh-radio-output{
16
16
  position: relative;
17
17
  display: inline-block;
18
18
  cursor: pointer;
19
19
  vertical-align: middle;
20
20
  }
21
- &-inner{
21
+ .lh-radio-inner{
22
22
  position: relative;
23
23
  display: flex;
24
24
  align-items: center;
@@ -69,7 +69,7 @@
69
69
 
70
70
 
71
71
  }
72
- &-input{
72
+ .lh-radio-input{
73
73
  position: absolute;
74
74
  top: 0;
75
75
  right: 0;
@@ -81,7 +81,7 @@
81
81
  cursor: pointer;
82
82
  z-index:-1;
83
83
  }
84
- &-title{
84
+ .lh-radio-title{
85
85
  transform: translateY(-1px);
86
86
  display: inline-block;
87
87
  font-size: 14px;
@@ -97,41 +97,27 @@
97
97
  color: @color_b4;
98
98
  }
99
99
  }
100
- }
101
- .lh-radio-mini{
102
- +.lh-radio {
103
- margin-left: 14px;
104
- }
105
- .lh-radio-inner{
106
- width: 12px;
107
- height: 12px;
108
- &::after{
109
- width:4px;
110
- height:4px;
100
+
101
+ &.mini{
102
+ +.lh-radio {
103
+ margin-left: 12px;
111
104
  }
112
- }
113
- .lh-radio-title{
114
- font-size: 12px;
115
- padding-left: 6px;
116
- }
117
- }
118
- .lh-radio-big{
119
- +.lh-radio {
120
- margin-left:16px;
121
- }
122
- .lh-radio-inner{
123
- width: 16px;
124
- height: 16px;
125
- &::after{
126
- width:8px;
127
- height:8px;
105
+ .lh-radio-inner{
106
+ width: 14px;
107
+ height: 14px;
108
+ &::after{
109
+ width:6px;
110
+ height:6px;
111
+ }
112
+ }
113
+ .lh-radio-title{
114
+ font-size: 12px;
128
115
  }
129
116
  }
130
- .lh-radio-title{
131
- font-size: 14px;
132
- padding-left:8px;
133
- }
117
+
134
118
  }
119
+
120
+
135
121
  .lh-radio-group {
136
122
  display: inline-block;
137
123
  font-size: 0;
@@ -1,5 +1,5 @@
1
1
  .lh-select {
2
- display: inline-block;
2
+ display: block;
3
3
  width: 100%;
4
4
  position: relative;
5
5
  .lh-select-text {
@@ -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
  }
@@ -255,12 +256,5 @@
255
256
  }
256
257
  // 下拉popover样式覆写
257
258
  .lh-select-popover-content {
258
- box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
259
259
  overflow: hidden;
260
- border:none !important;
261
- border-radius: 2px;
262
- margin-top: -2px;
263
- .triangle-icon {
264
- display: none;
265
- }
266
260
  }
@@ -4,7 +4,7 @@
4
4
  font-size: 14px;
5
5
  margin: 8px 0;
6
6
  }
7
- .lh-select-ul {
7
+ .lh-select-tile-ul {
8
8
  display: inline-block;
9
9
  .tile-left-title {
10
10
  display: inline-block;
@@ -3,7 +3,7 @@
3
3
  height: 22px;
4
4
  line-height: 22px;
5
5
  position: relative;
6
- &-input {
6
+ .lh-switch-input {
7
7
  position: absolute;
8
8
  top: 0;
9
9
  bottom: 0;
@@ -11,22 +11,20 @@
11
11
  right: 0;
12
12
  visibility: hidden;
13
13
  }
14
- &-text {
15
- cursor: pointer;
16
- }
17
- &-core {
14
+ .lh-switch-core {
18
15
  height: 22px;
16
+ width: 44px;
19
17
  border:none;
20
18
  margin: 0;
21
19
  display: inline-block;
22
20
  position: relative;
23
21
  outline: none;
24
- border-radius: 10px;
22
+ border-radius: 11px;
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;
@@ -35,22 +33,54 @@
35
33
  height: 18px;
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:24px;
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
+ }
61
+ }
62
+
63
+
64
+ &.mini {
65
+ height: 16px;
66
+ line-height: 16px;
67
+
68
+ .lh-switch-core {
69
+ height: 16px;
70
+ width: 28px;
71
+ border-radius: 8px;
72
+ &::after {
73
+ width: 12px;
74
+ height: 12px;
75
+ }
76
+ }
77
+
78
+ .lh-switch-checked {
79
+ .lh-switch-core {
80
+ &::after {
81
+ left:14px;
82
+ }
83
+ }
84
+ }
55
85
  }
56
86
  }
@@ -276,9 +276,12 @@
276
276
  }
277
277
  //类别n5
278
278
  .lh-tab-div-n5 {
279
+ border: 1px solid @color_b6;
280
+ width: 100%;
281
+ height: 32px;
279
282
  .lh-tab-content {
280
- height: 32px;
281
- line-height: 32px;
283
+ height: 30px;
284
+ line-height: 30px;
282
285
  display: inline-block;
283
286
  float: left;
284
287
  margin-left: -1px;
@@ -4,7 +4,7 @@
4
4
  display: inline-block;
5
5
  .node-base {
6
6
  height: 22px;
7
- margin-bottom: 5px;
7
+ margin-bottom: 2px;
8
8
  white-space: nowrap;
9
9
  display: inline-block;
10
10
  .node-base-icon-wapper {
@@ -19,6 +19,7 @@
19
19
  color:#000;
20
20
  transform: rotate(270deg);
21
21
  display: inline-block;
22
+ line-height: 21px;
22
23
  }
23
24
  &:hover {
24
25
  .icon_component_arrow {
@@ -89,4 +90,26 @@
89
90
  .lh-tree-node-divider {
90
91
  height: 1px
91
92
  }
93
+ &.mini {
94
+ .lh-tree-node {
95
+ .node-base {
96
+ .node-checkbox {
97
+ margin-right:10px;
98
+ }
99
+ .node-radio {
100
+ margin-right: 10px;
101
+ height: 14px;
102
+ width: 14px;
103
+ .node-radio-inner {
104
+ width: 6px;
105
+ height: 6px;
106
+ }
107
+ }
108
+ .node-label {
109
+ font-size: 12px;
110
+ }
111
+
112
+ }
113
+ }
114
+ }
92
115
  }
@@ -35,17 +35,9 @@
35
35
  border-radius: 4px;
36
36
  border: none;
37
37
  display: inline-block;
38
- margin-top: -8px;
39
- .triangle-icon {
40
- display: none;
41
- }
42
38
  }
43
39
  .lh-tree-select-popover-mini {
44
40
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
45
41
  border-radius: 3px;
46
42
  border: none;
47
- margin-top: -8px;
48
- .triangle-icon {
49
- display: none;
50
- }
51
43
  }
@@ -0,0 +1,70 @@
1
+ .lh-tree-special {
2
+ display: inline-block;
3
+ background-color: white;
4
+ .lh-tree-specail-container {
5
+ display: inline-block;
6
+ height: 240px;
7
+ width: 200px;
8
+ overflow-y: auto;
9
+ overflow-x: hidden;
10
+ padding: 8px 4px 8px 4px;
11
+ border-right:1px solid @color_b6;
12
+ .lh-tree-special-node {
13
+ display: inline-block;
14
+ border-radius: 2px;
15
+ padding-left: 12px;
16
+ padding-right: 7px;
17
+ width: 100%;
18
+ cursor: default;
19
+ .node-checkbox {
20
+ vertical-align: middle;
21
+ margin-right: 10px;
22
+ .lh-checkbox-text {
23
+ display: none;
24
+ }
25
+ }
26
+ .node-label {
27
+ vertical-align: middle;
28
+ height: 28px;
29
+ line-height: 28px;
30
+ color:@color_b1;
31
+ display: inline-block;
32
+ position: relative;
33
+ .node-selected-num {
34
+ display: inline-block;
35
+ position: absolute;
36
+ height: 18px;
37
+ min-width: 18px;
38
+ padding-left: 2px;
39
+ padding-right: 2px;
40
+ line-height: 18px;
41
+ background: @color_warning_red;
42
+ box-shadow: 0 1px 0 #FFFFFF;
43
+ opacity: 1;
44
+ border-radius: 9px;
45
+ text-align: center;
46
+ .text {
47
+ color:white;
48
+ display: inline-block;
49
+ transform: scale(0.91);
50
+ }
51
+ }
52
+ }
53
+ .icon-wapper {
54
+ margin-top: 7px;
55
+ transform: rotate(-90deg);
56
+ .icon_component_arrow_down {
57
+ font-size: 14px;
58
+ color:@color_b4;
59
+ }
60
+ }
61
+ &.active {
62
+ background-color: @color_theme1;
63
+ }
64
+ &:hover {
65
+ background-color: @color_b6;
66
+ }
67
+ }
68
+ }
69
+
70
+ }
@@ -0,0 +1,37 @@
1
+ .lh-treeS-select-div {
2
+ height: 315px;
3
+ .treeS-select-div-header {
4
+ height: 35px;
5
+ border-bottom: 1px solid @color_b6;
6
+ padding: 7px 20px 0 10px;
7
+ }
8
+ .treeS-select-div-content-wapper {
9
+ overflow-y: hidden;
10
+ height: 240px;
11
+ }
12
+ .treeS-select-div-footer {
13
+ border-top:1px solid @color_b6;
14
+ position: absolute;
15
+ bottom: 8px;
16
+ left:0;
17
+ padding:8px 16px 0 16px;
18
+ width: 100%;
19
+ .count-text {
20
+ color:@color_b3;
21
+ font-size: 13px;
22
+ line-height: 22px;
23
+ }
24
+ }
25
+ }
26
+
27
+ .lh-tree-special-select-popover {
28
+ box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
29
+ border-radius: 4px;
30
+ border: none;
31
+ display: inline-block;
32
+ }
33
+ .lh-tree-special-select-popover-mini {
34
+ box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
35
+ border-radius: 3px;
36
+ border: none;
37
+ }