vueless 0.0.649 → 0.0.651
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
|
@@ -487,11 +487,7 @@ const {
|
|
|
487
487
|
</slot>
|
|
488
488
|
</div>
|
|
489
489
|
|
|
490
|
-
<div
|
|
491
|
-
v-if="hasSlotContent($slots['after-caret']) && !(multiple && localValue?.length)"
|
|
492
|
-
v-bind="afterCaretAttrs"
|
|
493
|
-
:tabindex="-1"
|
|
494
|
-
>
|
|
490
|
+
<div v-if="hasSlotContent($slots['after-caret'])" v-bind="afterCaretAttrs" :tabindex="-1">
|
|
495
491
|
<!--
|
|
496
492
|
@slot Use it to add something after caret.
|
|
497
493
|
@binding {object} option
|
package/ui.form-select/config.ts
CHANGED
|
@@ -254,14 +254,7 @@ export const SlotAfterCaret = DefaultTemplate.bind({});
|
|
|
254
254
|
SlotAfterCaret.args = {
|
|
255
255
|
slotTemplate: `
|
|
256
256
|
<template #after-caret="{ scopeProps }">
|
|
257
|
-
|
|
258
|
-
v-show="scopeProps?.modelValue"
|
|
259
|
-
:label="getSelectedBadge(scopeProps?.options, scopeProps?.modelValue)?.badge"
|
|
260
|
-
/>
|
|
261
|
-
</template>
|
|
262
|
-
<template #option="{ option }">
|
|
263
|
-
{{ option.label }}
|
|
264
|
-
<UBadge :label="option.badge" />
|
|
257
|
+
🤘
|
|
265
258
|
</template>
|
|
266
259
|
`,
|
|
267
260
|
};
|
|
@@ -161,10 +161,9 @@ useMutationObserver(leftSlotWrapperRef, (mutations) => {
|
|
|
161
161
|
function setLabelPosition() {
|
|
162
162
|
if (props.labelAlign === "top" || !hasSlotContent(slots["left"])) return;
|
|
163
163
|
|
|
164
|
-
if (leftSlotWrapperRef.value &&
|
|
164
|
+
if (leftSlotWrapperRef.value && textareaRef.value && labelComponentRef.value?.labelElement) {
|
|
165
165
|
const leftSlotWidth = leftSlotWrapperRef.value.getBoundingClientRect().width;
|
|
166
|
-
|
|
167
|
-
const textareaPaddingLeft = parseFloat(getComputedStyle(wrapperRef.value).paddingLeft);
|
|
166
|
+
const textareaPaddingLeft = parseFloat(getComputedStyle(textareaRef.value).paddingLeft);
|
|
168
167
|
|
|
169
168
|
labelComponentRef.value.labelElement.style.left = `${leftSlotWidth + textareaPaddingLeft}px`;
|
|
170
169
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
textareaLabel: "{ULabel}",
|
|
3
|
-
leftSlot: "flex items-center justify-center whitespace-nowrap
|
|
4
|
-
rightSlot: "flex items-center justify-center whitespace-nowrap
|
|
3
|
+
leftSlot: "flex items-center justify-center whitespace-nowrap pl-3 gap-1 rounded-dynamic rounded-r-none",
|
|
4
|
+
rightSlot: "flex items-center justify-center whitespace-nowrap pr-3 gap-1 rounded-dynamic rounded-l-none",
|
|
5
5
|
wrapper: {
|
|
6
6
|
base: `
|
|
7
7
|
flex bg-white transition w-full
|