lh-ui-next 0.0.48 → 0.0.50
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/README.md +2 -2
- package/lib/lh-ui-next.mjs +1289 -1151
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +4 -4
- package/static/css/package/scrollbar.less +1 -0
- package/static/css/package/selectTile.less +8 -0
- package/static/css/package/table.less +135 -103
- package/static/css/theme-blue/main.css +1 -1
- package/static/css/theme-orange/main.css +1 -1
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.0.
|
|
4
|
+
"version": "0.0.50",
|
|
5
5
|
"author": "Tinylj(lujin.pt@163.com)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"mitt": "^3.0.0",
|
|
17
17
|
"vue": "^3.2.45",
|
|
18
|
+
"vuex": "^4.0.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
18
21
|
"vue-router": "^4.0.3",
|
|
19
22
|
"vuex": "^4.0.0",
|
|
20
23
|
"jsencrypt": "3.2.1",
|
|
21
|
-
"sortablejs":"1.15.0"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
24
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
25
25
|
"less": "^4.1.3",
|
|
26
26
|
"vite": "^3.2.3"
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 100%;
|
|
8
8
|
overflow: hidden;//默认hidden,组件内根据组件的内容是否溢出来调整overflow
|
|
9
|
+
font-size: 0; // https://www.jianshu.com/p/efded211db2f 为什么要设置 font-size为0呢。因为下面的 display:inline-block 会导致 3px溢出。好像是把折行 -text-之类的认为是内容
|
|
9
10
|
.lh-scrollbar__view {
|
|
10
11
|
display: inline-block;
|
|
11
12
|
}
|
|
@@ -1,106 +1,7 @@
|
|
|
1
1
|
.lh-table{
|
|
2
2
|
border:solid 1px rgb(235,238,245);
|
|
3
3
|
max-width: 100%;
|
|
4
|
-
|
|
5
|
-
border-collapse: collapse;
|
|
6
|
-
table-layout:fixed;
|
|
7
|
-
thead {
|
|
8
|
-
tr {
|
|
9
|
-
th{
|
|
10
|
-
color:@color_b3;
|
|
11
|
-
outline:rgb(235,238,245) solid 1px; //使用position:sticky之后会导致border透明。采用outline替代border
|
|
12
|
-
&:after{
|
|
13
|
-
content:'';
|
|
14
|
-
position:absolute;
|
|
15
|
-
left: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
width:100%;
|
|
18
|
-
border-bottom: 1px solid rgb(235,238,245);
|
|
19
|
-
}
|
|
20
|
-
background-color: rgb(250,250,250);
|
|
21
|
-
font-weight: normal;
|
|
22
|
-
position: relative;
|
|
23
|
-
padding-top: 6px;
|
|
24
|
-
padding-bottom: 6px;
|
|
25
|
-
.caret-wrapper {
|
|
26
|
-
position: absolute!important;
|
|
27
|
-
top: 50%;
|
|
28
|
-
margin-top: -10px;
|
|
29
|
-
right: 1px;
|
|
30
|
-
height: 20px;
|
|
31
|
-
width: 18px;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
.sort-caret {
|
|
37
|
-
height: 0;
|
|
38
|
-
width: 0;
|
|
39
|
-
border: 4px solid @color_b4;
|
|
40
|
-
border-top-color:transparent;
|
|
41
|
-
border-right-color:transparent;
|
|
42
|
-
border-bottom-color:@color_b4;
|
|
43
|
-
border-left-color:transparent;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
&.active {
|
|
46
|
-
border-bottom-color:@color_theme4;
|
|
47
|
-
}
|
|
48
|
-
&.descending {
|
|
49
|
-
transform: rotate(180deg);
|
|
50
|
-
margin-top: 2px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.cell {
|
|
55
|
-
line-height: 24px;
|
|
56
|
-
padding-left: 10px;
|
|
57
|
-
padding-right: 10px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
tbody {
|
|
63
|
-
tr {
|
|
64
|
-
&:hover {
|
|
65
|
-
background-color: @color_b8;
|
|
66
|
-
}
|
|
67
|
-
td{
|
|
68
|
-
color:@color_b1;
|
|
69
|
-
border-bottom: 1px solid rgb(235,238,245);
|
|
70
|
-
padding-top:3px;
|
|
71
|
-
padding-bottom: 3px;
|
|
72
|
-
background-color: white;
|
|
73
|
-
.cell {
|
|
74
|
-
line-height: 33px;
|
|
75
|
-
padding-left: 10px;
|
|
76
|
-
padding-right: 10px;
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
text-overflow: ellipsis;
|
|
79
|
-
white-space: normal;
|
|
80
|
-
word-break: break-all;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.lh-table-fixed-column {
|
|
87
|
-
//详细解释position:sticky的效果。神奇啊 https://www.ltonus.com/Css/position-sticky.html
|
|
88
|
-
position: -webkit-sticky;
|
|
89
|
-
position: sticky;
|
|
90
|
-
z-index: 2;
|
|
91
|
-
border-bottom:none;
|
|
92
|
-
//为什么背景颜色存在时边框不可见 "position: sticky"?
|
|
93
|
-
//https://stackoverflow.com/questions/41882616/why-border-is-not-visible-with-position-sticky-when-background-color-exists
|
|
94
|
-
&:after{
|
|
95
|
-
content:'';
|
|
96
|
-
position:absolute;
|
|
97
|
-
left: 0;
|
|
98
|
-
bottom: 0;
|
|
99
|
-
width:100%;
|
|
100
|
-
border-bottom: 1px solid rgb(235,238,245);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
4
|
+
position: relative;
|
|
104
5
|
&.last-column-left-show {
|
|
105
6
|
.last-column-left:before {
|
|
106
7
|
box-shadow: inset 10px 0 10px -10px rgba(0,0,0,.15);
|
|
@@ -131,9 +32,140 @@
|
|
|
131
32
|
pointer-events: none;
|
|
132
33
|
}
|
|
133
34
|
}
|
|
35
|
+
.lh-table-inner-wapper {
|
|
36
|
+
position: relative;
|
|
37
|
+
.lh-table__empty-block {
|
|
38
|
+
position: absolute;
|
|
39
|
+
height: 60px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
text-align: center;
|
|
42
|
+
.lh-table__empty-text {
|
|
43
|
+
line-height: 60px;
|
|
44
|
+
color:rgb(144,147,153);
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.lh-table-header-wapper {
|
|
49
|
+
width: 100%;
|
|
50
|
+
overflow-x: auto;
|
|
51
|
+
}
|
|
52
|
+
table {
|
|
53
|
+
border-collapse: collapse;
|
|
54
|
+
table-layout:fixed;
|
|
55
|
+
thead {
|
|
56
|
+
tr {
|
|
57
|
+
th{
|
|
58
|
+
color:@color_b3;
|
|
59
|
+
outline:rgb(235,238,245) solid 1px; //使用position:sticky之后会导致border透明。采用outline替代border
|
|
60
|
+
&:after{
|
|
61
|
+
content:'';
|
|
62
|
+
position:absolute;
|
|
63
|
+
left: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
width:100%;
|
|
66
|
+
border-bottom: 1px solid rgb(235,238,245);
|
|
67
|
+
}
|
|
68
|
+
background-color: rgb(250,250,250);
|
|
69
|
+
font-weight: normal;
|
|
70
|
+
position: relative;
|
|
71
|
+
padding-top: 6px;
|
|
72
|
+
padding-bottom: 6px;
|
|
73
|
+
.caret-wrapper {
|
|
74
|
+
position: absolute!important;
|
|
75
|
+
top: 50%;
|
|
76
|
+
margin-top: -10px;
|
|
77
|
+
right: 10px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
width: 9px;
|
|
80
|
+
vertical-align: middle;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
.sort-caret {
|
|
85
|
+
height: 0;
|
|
86
|
+
width: 0;
|
|
87
|
+
border: 4px solid @color_b4;
|
|
88
|
+
border-top-color:transparent;
|
|
89
|
+
border-right-color:transparent;
|
|
90
|
+
border-bottom-color:@color_b4;
|
|
91
|
+
border-left-color:transparent;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
&.active {
|
|
94
|
+
border-bottom-color:@color_theme4;
|
|
95
|
+
}
|
|
96
|
+
&.descending {
|
|
97
|
+
transform: rotate(180deg);
|
|
98
|
+
margin-top: 2px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.cell {
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
line-height: 24px;
|
|
105
|
+
padding-left: 10px;
|
|
106
|
+
padding-right: 10px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
tbody {
|
|
112
|
+
tr {
|
|
113
|
+
&:hover {
|
|
114
|
+
background-color: @color_b8;
|
|
115
|
+
}
|
|
116
|
+
td{
|
|
117
|
+
color:@color_b1;
|
|
118
|
+
border-bottom: 1px solid rgb(235,238,245);
|
|
119
|
+
padding-top:3px;
|
|
120
|
+
padding-bottom: 3px;
|
|
121
|
+
background-color: white;
|
|
122
|
+
.cell {
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
line-height: 33px;
|
|
125
|
+
padding-left: 10px;
|
|
126
|
+
padding-right: 10px;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
white-space: normal;
|
|
130
|
+
word-break: break-all;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
134
135
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
.lh-table-fixed-column {
|
|
137
|
+
//详细解释position:sticky的效果。神奇啊 https://www.ltonus.com/Css/position-sticky.html
|
|
138
|
+
position: -webkit-sticky;
|
|
139
|
+
position: sticky;
|
|
140
|
+
z-index: 2;
|
|
141
|
+
border-bottom:none;
|
|
142
|
+
//为什么背景颜色存在时边框不可见 "position: sticky"?
|
|
143
|
+
//https://stackoverflow.com/questions/41882616/why-border-is-not-visible-with-position-sticky-when-background-color-exists
|
|
144
|
+
&:after{
|
|
145
|
+
content:'';
|
|
146
|
+
position:absolute;
|
|
147
|
+
left: 0;
|
|
148
|
+
bottom: 0;
|
|
149
|
+
width:100%;
|
|
150
|
+
border-bottom: 1px solid rgb(235,238,245);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.lh-checkbox {
|
|
154
|
+
float: left;
|
|
155
|
+
line-height: 19px;
|
|
156
|
+
}
|
|
157
|
+
.lh-checkbox-text {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.lh-table__column-resize-proxy {
|
|
163
|
+
position: absolute;
|
|
164
|
+
top: 0;
|
|
165
|
+
bottom: 0;
|
|
166
|
+
width: 0;
|
|
167
|
+
z-index: 10;
|
|
168
|
+
left:200px;
|
|
169
|
+
border-left:1px solid rgb(235,238,245);
|
|
138
170
|
}
|
|
139
171
|
}
|