@eturnity/eturnity_reusable_components 1.0.41 → 1.0.45
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 +1 -1
- package/src/App.vue +1 -1
- package/src/components/tables/mainTable/index.vue +38 -11
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<table-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<table-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<page-container>
|
|
3
|
+
<table-title v-if="titleText">
|
|
4
|
+
{{ titleText }}
|
|
5
|
+
</table-title>
|
|
6
|
+
<table-scroll>
|
|
7
|
+
<table-wrapper :fullWidth="fullWidth">
|
|
8
|
+
<spinner-wrapper v-if="isLoading">
|
|
9
|
+
<spinner />
|
|
10
|
+
</spinner-wrapper>
|
|
11
|
+
<table-container v-else>
|
|
12
|
+
<slot />
|
|
13
|
+
</table-container>
|
|
14
|
+
</table-wrapper>
|
|
15
|
+
</table-scroll>
|
|
16
|
+
</page-container>
|
|
12
17
|
</template>
|
|
13
18
|
|
|
14
19
|
<script>
|
|
@@ -17,6 +22,14 @@
|
|
|
17
22
|
import styled from "vue-styled-components"
|
|
18
23
|
import Spinner from "../../spinner"
|
|
19
24
|
|
|
25
|
+
const PageContainer = styled.div``
|
|
26
|
+
|
|
27
|
+
const TableTitle = styled.div`
|
|
28
|
+
margin-bottom: 6px;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
`
|
|
32
|
+
|
|
20
33
|
const TableScroll = styled.div`
|
|
21
34
|
position: relative;
|
|
22
35
|
max-width: 100%;
|
|
@@ -148,6 +161,10 @@ const TableContainer = styled.table`
|
|
|
148
161
|
cursor: not-allowed;
|
|
149
162
|
}
|
|
150
163
|
|
|
164
|
+
.arrow-dropdown {
|
|
165
|
+
visibility: hidden;
|
|
166
|
+
}
|
|
167
|
+
|
|
151
168
|
&.footer {
|
|
152
169
|
td {
|
|
153
170
|
background-color: ${(props) => props.theme.colors.grey5};
|
|
@@ -200,11 +217,15 @@ const TableContainer = styled.table`
|
|
|
200
217
|
.drag-icon {
|
|
201
218
|
visibility: visible;
|
|
202
219
|
}
|
|
220
|
+
|
|
221
|
+
.arrow-dropdown {
|
|
222
|
+
visibility: visible;
|
|
223
|
+
}
|
|
203
224
|
}
|
|
204
225
|
|
|
205
226
|
.drag-container {
|
|
206
227
|
display: table-cell;
|
|
207
|
-
width:
|
|
228
|
+
width: 12px;
|
|
208
229
|
vertical-align: middle;
|
|
209
230
|
}
|
|
210
231
|
|
|
@@ -271,6 +292,8 @@ export default {
|
|
|
271
292
|
SpinnerWrapper,
|
|
272
293
|
Spinner,
|
|
273
294
|
TableContainer,
|
|
295
|
+
PageContainer,
|
|
296
|
+
TableTitle,
|
|
274
297
|
},
|
|
275
298
|
props: {
|
|
276
299
|
fullWidth: {
|
|
@@ -281,6 +304,10 @@ export default {
|
|
|
281
304
|
required: false,
|
|
282
305
|
default: false,
|
|
283
306
|
},
|
|
307
|
+
titleText: {
|
|
308
|
+
required: false,
|
|
309
|
+
default: null,
|
|
310
|
+
},
|
|
284
311
|
},
|
|
285
312
|
}
|
|
286
313
|
</script>
|