@eturnity/eturnity_reusable_components 7.8.1 → 7.8.3
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
@@ -38,7 +38,7 @@
|
|
38
38
|
{{ child.name }}
|
39
39
|
</option-child>
|
40
40
|
</children-container>
|
41
|
-
<options-container v-if="!isLoading">
|
41
|
+
<options-container v-if="!isLoading" :textWrap="textWrap">
|
42
42
|
<option-item
|
43
43
|
v-for="(item, index) in options"
|
44
44
|
:key="item.value"
|
@@ -56,8 +56,8 @@
|
|
56
56
|
v-if="hasChildren(item)"
|
57
57
|
/>
|
58
58
|
<span>
|
59
|
-
|
60
|
-
|
59
|
+
{{ item.name }}
|
60
|
+
</span>
|
61
61
|
</option-item>
|
62
62
|
</options-container>
|
63
63
|
</template>
|
@@ -184,19 +184,18 @@ const LoadingContainer = styled.div`
|
|
184
184
|
background: #fff;
|
185
185
|
`
|
186
186
|
|
187
|
-
const
|
187
|
+
const OptionsContainerAttrs = { textWrap: Boolean }
|
188
|
+
const OptionsContainer = styled('div', OptionsContainerAttrs)`
|
188
189
|
border: 1px solid ${(props) => props.theme.colors.grey3};
|
189
190
|
display: grid;
|
190
191
|
grid-template-columns: 1fr;
|
191
|
-
|
192
|
-
max-width: 220px;
|
193
|
-
width: max-content;
|
192
|
+
${(props) => props.textWrap ? 'width: 220px' : 'width: max-content' };
|
194
193
|
border-radius: 4px;
|
195
194
|
background-color: #fff;
|
196
195
|
max-height: 220px;
|
197
196
|
overflow: auto;
|
198
197
|
height: max-content;
|
199
|
-
white-space: normal;
|
198
|
+
${(props) => props.textWrap ? 'white-space: normal' : 'white-space: nowrap'};
|
200
199
|
`
|
201
200
|
|
202
201
|
const optionAttrs = { isDisabled: Boolean }
|
@@ -288,6 +287,10 @@ export default {
|
|
288
287
|
isLoading: {
|
289
288
|
required: false,
|
290
289
|
default: false
|
290
|
+
},
|
291
|
+
textWrap: {
|
292
|
+
required: false,
|
293
|
+
default: true
|
291
294
|
}
|
292
295
|
},
|
293
296
|
data() {
|