@eturnity/eturnity_reusable_components 1.1.74 → 1.1.75
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
|
@@ -9,17 +9,16 @@
|
|
|
9
9
|
:colSpan="isNested ? colSpan : colSpan - 1"
|
|
10
10
|
class="table-dropdown"
|
|
11
11
|
>
|
|
12
|
-
<td v-if="isNested">
|
|
13
|
-
<nested-icon />
|
|
14
|
-
</td>
|
|
15
12
|
<component-item
|
|
16
13
|
v-for="(item, index) in tableItems"
|
|
17
14
|
:key="index"
|
|
18
15
|
ref="dropdownItem"
|
|
16
|
+
:isNested="isNested"
|
|
19
17
|
:class="{
|
|
20
18
|
'table-dropdown-item': item.type !== 'input',
|
|
21
19
|
}"
|
|
22
20
|
>
|
|
21
|
+
<nested-icon v-if="isNested" />
|
|
23
22
|
<template-button
|
|
24
23
|
@click.stop="onTemplateClick(item.row)"
|
|
25
24
|
v-if="
|
|
@@ -198,7 +197,13 @@ const DropdownRow = styled("div", rowAttrs)`
|
|
|
198
197
|
}
|
|
199
198
|
`
|
|
200
199
|
|
|
201
|
-
const
|
|
200
|
+
const ItemAttrs = { isNested: Boolean }
|
|
201
|
+
const ComponentItem = styled("td", ItemAttrs)`
|
|
202
|
+
display: grid;
|
|
203
|
+
align-items: center;
|
|
204
|
+
grid-template-columns: ${(props) => (props.isNested ? "auto 1fr" : "1fr")};
|
|
205
|
+
grid-gap: 5px;
|
|
206
|
+
padding-left: ${(props) => (props.isNested ? "14px" : "0")};
|
|
202
207
|
overflow: hidden;
|
|
203
208
|
text-overflow: ellipsis;
|
|
204
209
|
padding-right: 0 !important;
|