@antify/ui 2.2.12 → 2.2.13
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.
|
@@ -17,7 +17,7 @@ import AntIcon from './AntIcon.vue';
|
|
|
17
17
|
import AntTooltip from './AntTooltip.vue';
|
|
18
18
|
import AntSkeleton from './AntSkeleton.vue';
|
|
19
19
|
import {
|
|
20
|
-
InputState,
|
|
20
|
+
InputState,
|
|
21
21
|
} from '../enums';
|
|
22
22
|
import {
|
|
23
23
|
IconSize,
|
|
@@ -125,13 +125,11 @@ onMounted(() => {
|
|
|
125
125
|
<div v-if="hasQuestionMark">
|
|
126
126
|
<slot name="questionMarkText">
|
|
127
127
|
<AntTooltip>
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/>
|
|
134
|
-
</template>
|
|
128
|
+
<AntIcon
|
|
129
|
+
:icon="faCircleQuestion"
|
|
130
|
+
:color="iconColor"
|
|
131
|
+
:size="IconSize.sm"
|
|
132
|
+
/>
|
|
135
133
|
|
|
136
134
|
<template #content>
|
|
137
135
|
{{ questionMarkText }}
|
|
@@ -24,6 +24,7 @@ const props = withDefaults(defineProps<{
|
|
|
24
24
|
hasFilter?: boolean;
|
|
25
25
|
canCreate?: boolean;
|
|
26
26
|
skeleton?: boolean;
|
|
27
|
+
searchPlaceholderText?: string;
|
|
27
28
|
}>(), {
|
|
28
29
|
fullWidth: true,
|
|
29
30
|
showFilter: true,
|
|
@@ -31,6 +32,7 @@ const props = withDefaults(defineProps<{
|
|
|
31
32
|
hasFilter: false,
|
|
32
33
|
canCreate: true,
|
|
33
34
|
skeleton: false,
|
|
35
|
+
searchPlaceholderText: 'Search',
|
|
34
36
|
});
|
|
35
37
|
const emit = defineEmits([
|
|
36
38
|
'search',
|
|
@@ -85,6 +87,7 @@ watch(() => props.fullWidth, (val) => {
|
|
|
85
87
|
<AntSearch
|
|
86
88
|
v-model="search"
|
|
87
89
|
:skeleton="skeleton"
|
|
90
|
+
:placeholder="searchPlaceholderText"
|
|
88
91
|
/>
|
|
89
92
|
</div>
|
|
90
93
|
|
|
@@ -54,7 +54,7 @@ const reference = ref<HTMLElement | null | undefined>(props.inputRef);
|
|
|
54
54
|
const elementSize = useElementSize(reference);
|
|
55
55
|
const floating = ref<HTMLElement | null>(null);
|
|
56
56
|
const {
|
|
57
|
-
floatingStyles,
|
|
57
|
+
floatingStyles,
|
|
58
58
|
} = useFloating(reference, floating, {
|
|
59
59
|
placement: 'bottom',
|
|
60
60
|
whileElementsMounted: autoUpdate,
|
|
@@ -89,7 +89,7 @@ const dropdownClasses = computed(() => {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
return {
|
|
92
|
-
'w-full border flex flex-col gap-px outline-
|
|
92
|
+
'w-full border flex flex-col gap-px outline-none -mt-px overflow-y-auto shadow-md z-[90] max-h-[250px]': true,
|
|
93
93
|
'rounded-md': true,
|
|
94
94
|
[variants[props.state]]: true,
|
|
95
95
|
};
|
|
@@ -230,6 +230,7 @@ watch(_modelValue, (val) => {
|
|
|
230
230
|
v-if="isOpen"
|
|
231
231
|
ref="floating"
|
|
232
232
|
:class="dropdownClasses"
|
|
233
|
+
data-e2e="select-menu"
|
|
233
234
|
:style="{width: `${elementSize.width.value}px!important`, ...floatingStyles}"
|
|
234
235
|
>
|
|
235
236
|
<div
|