@mekari/pixel-input
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -281,3 +281,3 @@ 'use strict'; | ||
parent.$children.map(child => { | ||
const children = child.$slots.default.filter(e => e.tag); | ||
const children = (child.$slots.default || []).filter(e => e.tag); | ||
children.map(subchild => { | ||
@@ -295,4 +295,7 @@ if (subchild.componentOptions) { | ||
if (parent.$refs.inputRightAddonRef) { | ||
this.stylePaddingRight += this.isClearable && 0; | ||
this.stylePaddingRight += withBackground ? width + 1 : width + 12; | ||
this.styleRight += withBackground ? width + 1 : width + 12; | ||
} else { | ||
this.stylePaddingRight += this.isClearable && 30; | ||
} | ||
@@ -299,0 +302,0 @@ }); |
@@ -281,3 +281,3 @@ 'use strict'; | ||
parent.$children.map(child => { | ||
const children = child.$slots.default.filter(e => e.tag); | ||
const children = (child.$slots.default || []).filter(e => e.tag); | ||
children.map(subchild => { | ||
@@ -295,4 +295,7 @@ if (subchild.componentOptions) { | ||
if (parent.$refs.inputRightAddonRef) { | ||
this.stylePaddingRight += this.isClearable && 0; | ||
this.stylePaddingRight += withBackground ? width + 1 : width + 12; | ||
this.styleRight += withBackground ? width + 1 : width + 12; | ||
} else { | ||
this.stylePaddingRight += this.isClearable && 30; | ||
} | ||
@@ -299,0 +302,0 @@ }); |
@@ -277,3 +277,3 @@ import { MpBox } from '@mekari/pixel-box'; | ||
parent.$children.map(child => { | ||
const children = child.$slots.default.filter(e => e.tag); | ||
const children = (child.$slots.default || []).filter(e => e.tag); | ||
children.map(subchild => { | ||
@@ -291,4 +291,7 @@ if (subchild.componentOptions) { | ||
if (parent.$refs.inputRightAddonRef) { | ||
this.stylePaddingRight += this.isClearable && 0; | ||
this.stylePaddingRight += withBackground ? width + 1 : width + 12; | ||
this.styleRight += withBackground ? width + 1 : width + 12; | ||
} else { | ||
this.stylePaddingRight += this.isClearable && 30; | ||
} | ||
@@ -295,0 +298,0 @@ }); |
{ | ||
"name": "@mekari/pixel-input", | ||
"description": "Mekari Pixel | Input component", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"homepage": "https://mekari.design/", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -89,3 +89,3 @@ import { MpBox } from '@mekari/pixel-box' | ||
parent.$children.map((child) => { | ||
const children = child.$slots.default.filter((e) => e.tag) | ||
const children = (child.$slots.default || []).filter((e) => e.tag) | ||
@@ -104,4 +104,7 @@ children.map((subchild) => { | ||
if (parent.$refs.inputRightAddonRef) { | ||
this.stylePaddingRight += this.isClearable && 0 | ||
this.stylePaddingRight += withBackground ? width + 1 : width + 12 | ||
this.styleRight += withBackground ? width + 1 : width + 12 | ||
} else { | ||
this.stylePaddingRight += this.isClearable && 30 | ||
} | ||
@@ -108,0 +111,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54765
1949