@ulu/frontend-vue 0.5.4 → 0.5.5
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.
|
@@ -44,7 +44,7 @@ const h = {
|
|
|
44
44
|
setup(o) {
|
|
45
45
|
const t = o, n = r(() => t.element ? t.element : t.to || t.path ? d : t.href ? "a" : "button"), a = r(() => {
|
|
46
46
|
const e = {};
|
|
47
|
-
return t.to || t.path ? (e.to = t.to || t.path, t.activeClass && (e.activeClass = t.activeClass), t.exactActiveClass && (e.exactActiveClass = t.exactActiveClass)) : t.href ? (e.href = t.href, t.target && (e.target = t.target), t.download && (e.download = typeof t.download == "string" ? t.download :
|
|
47
|
+
return t.to || t.path ? (e.to = t.to || t.path, t.activeClass && (e.activeClass = t.activeClass), t.exactActiveClass && (e.exactActiveClass = t.exactActiveClass)) : t.href ? (e.href = t.href, t.target && (e.target = t.target), t.download && (e.download = typeof t.download == "string" ? t.download : "")) : (!t.element || t.element === "button") && (e.type = "button"), e;
|
|
48
48
|
});
|
|
49
49
|
return (e, m) => (s(), i(l(n.value), c(f(a.value)), {
|
|
50
50
|
default: u(() => [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
attrs.href = props.href;
|
|
70
70
|
if (props.target) attrs.target = props.target;
|
|
71
71
|
if (props.download) {
|
|
72
|
-
attrs.download = typeof props.download === "string" ? props.download :
|
|
72
|
+
attrs.download = typeof props.download === "string" ? props.download : "";
|
|
73
73
|
}
|
|
74
74
|
} else if (!props.element || props.element === "button") {
|
|
75
75
|
// It's a button, ensure it doesn't accidentally submit forms unless requested
|
package/package.json
CHANGED