vueless 0.0.649 → 0.0.650
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
|
@@ -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
|