sprintify-ui 0.10.67 → 0.10.69
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.
|
@@ -39,6 +39,7 @@ type __VLS_Props = {
|
|
|
39
39
|
to?: RouteLocationRaw;
|
|
40
40
|
tooltip?: string | null | undefined;
|
|
41
41
|
};
|
|
42
|
+
declare const asInternal: import("vue").ComputedRef<string>;
|
|
42
43
|
declare const classes: import("vue").ComputedRef<string>;
|
|
43
44
|
declare const styles: import("vue").ComputedRef<{
|
|
44
45
|
backgroundColor: string;
|
|
@@ -80,6 +81,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
80
81
|
}>;
|
|
81
82
|
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
82
83
|
BaseIcon: typeof BaseIcon;
|
|
84
|
+
asInternal: typeof asInternal;
|
|
83
85
|
classes: typeof classes;
|
|
84
86
|
styles: typeof styles;
|
|
85
87
|
containerClass: typeof containerClass;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="
|
|
3
|
+
:is="asInternal"
|
|
4
4
|
ref="buttonRef"
|
|
5
5
|
:class="classes"
|
|
6
6
|
:style="styles"
|
|
@@ -131,7 +131,7 @@ const props = withDefaults(defineProps<{
|
|
|
131
131
|
to?: RouteLocationRaw;
|
|
132
132
|
tooltip?: string | null | undefined;
|
|
133
133
|
}>(), {
|
|
134
|
-
as:
|
|
134
|
+
as: undefined,
|
|
135
135
|
disabled: false,
|
|
136
136
|
class: '',
|
|
137
137
|
loading: false,
|
|
@@ -149,6 +149,22 @@ const props = withDefaults(defineProps<{
|
|
|
149
149
|
|
|
150
150
|
defineEmits(['click', 'mouseover', 'mouseleave', 'mouseenter']);
|
|
151
151
|
|
|
152
|
+
const asInternal = computed(() => {
|
|
153
|
+
if (props.as) {
|
|
154
|
+
return props.as;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (props.to) {
|
|
158
|
+
return 'RouterLink';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (props.href) {
|
|
162
|
+
return 'a';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return 'button';
|
|
166
|
+
});
|
|
167
|
+
|
|
152
168
|
const sizeInternal = computed(() => {
|
|
153
169
|
|
|
154
170
|
if (props.sizeBehavior == SizeBehavior.default) {
|
|
@@ -33,7 +33,7 @@ for (let i = 0; i < 10; i++) {
|
|
|
33
33
|
|
|
34
34
|
items.push({
|
|
35
35
|
id: j + 1,
|
|
36
|
-
name: `Item ${j + 1}
|
|
36
|
+
name: `Item ${j + 1}` + (i == 0 ? " - Very long name to test overflow sdfg dsfg sdfg sdf gsdf g sdfg sdf gsdf g sdfg sdf gsdf gs dfg sdfg sdfg sdf gsdf sdfg dsfg sdfg sdf gsdf g sdfg sdf gsdf g sdfg sdf gsdf gs dfg sdfg sdfg sdf gsdf " : ""),
|
|
37
37
|
start: start.toISO(),
|
|
38
38
|
end: end.toISO(),
|
|
39
39
|
color: color,
|