@meistrari/tela-build 1.54.1 → 1.55.0
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.
|
@@ -60,6 +60,11 @@ const meta: Meta<typeof Combobox> = {
|
|
|
60
60
|
control: 'boolean',
|
|
61
61
|
description: 'Whether to use compact spacing and sizing. Defaults to true. When false, uses larger padding and spacing.',
|
|
62
62
|
},
|
|
63
|
+
align: {
|
|
64
|
+
control: 'select',
|
|
65
|
+
options: ['start', 'center', 'end'],
|
|
66
|
+
description: 'Alignment of the dropdown content against the trigger. Defaults to "start".',
|
|
67
|
+
},
|
|
63
68
|
hasGroupingLabels: {
|
|
64
69
|
control: 'boolean',
|
|
65
70
|
description: 'Whether to display group labels when options are grouped. Defaults to true. Only shown when search is empty.',
|
|
@@ -35,6 +35,7 @@ const props = withDefaults(defineProps<{
|
|
|
35
35
|
backgroundClass: string
|
|
36
36
|
}
|
|
37
37
|
compact?: boolean
|
|
38
|
+
align?: 'start' | 'center' | 'end'
|
|
38
39
|
hasGroupingLabels?: boolean
|
|
39
40
|
colorIcon?: string
|
|
40
41
|
disablePortal?: boolean
|
|
@@ -63,6 +64,7 @@ const props = withDefaults(defineProps<{
|
|
|
63
64
|
labelOutputMax?: string
|
|
64
65
|
}>(), {
|
|
65
66
|
compact: true,
|
|
67
|
+
align: 'start',
|
|
66
68
|
hasGroupingLabels: true,
|
|
67
69
|
disablePortal: false,
|
|
68
70
|
contentClass: '',
|
|
@@ -347,7 +349,7 @@ watch(innerValue, (raw) => {
|
|
|
347
349
|
</div>
|
|
348
350
|
</TelaComboboxTrigger>
|
|
349
351
|
</TelaComboboxAnchor>
|
|
350
|
-
<TelaComboboxList :class="cn('z-999', compact ? 'w-440px' : 'w-327px', props.contentClass)" :disable-portal="props.disablePortal" align="
|
|
352
|
+
<TelaComboboxList :class="cn('z-999', compact ? 'w-440px' : 'w-327px', props.contentClass)" :disable-portal="props.disablePortal" :align="align">
|
|
351
353
|
<TelaComboboxInput
|
|
352
354
|
v-if="hasSearchbar"
|
|
353
355
|
v-model="search"
|