sprintify-ui 0.10.51 → 0.10.52
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/dist/sprintify-ui.es.js
CHANGED
|
@@ -16848,7 +16848,7 @@ const Pr = /* @__PURE__ */ te({
|
|
|
16848
16848
|
itemKey: { default: "id" },
|
|
16849
16849
|
handle: { default: ".handle" },
|
|
16850
16850
|
disabled: { type: Boolean, default: !1 },
|
|
16851
|
-
|
|
16851
|
+
as: { default: "div" }
|
|
16852
16852
|
},
|
|
16853
16853
|
emits: ["update:modelValue"],
|
|
16854
16854
|
setup(t, { emit: n }) {
|
|
@@ -16886,7 +16886,7 @@ const Pr = /* @__PURE__ */ te({
|
|
|
16886
16886
|
(u) => {
|
|
16887
16887
|
l == null || l.option("disabled", u);
|
|
16888
16888
|
}
|
|
16889
|
-
), (u, d) => (b(), ee(sn(u.
|
|
16889
|
+
), (u, d) => (b(), ee(sn(u.as), {
|
|
16890
16890
|
ref_key: "elementsRef",
|
|
16891
16891
|
ref: r
|
|
16892
16892
|
}, {
|
|
@@ -3,7 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
itemKey: string;
|
|
4
4
|
handle?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
|
|
6
|
+
as?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const elementsRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
9
9
|
declare function getKey(element: any): any;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
|
25
25
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
disabled: boolean;
|
|
28
|
-
|
|
28
|
+
as: string;
|
|
29
29
|
itemKey: string;
|
|
30
30
|
handle: string;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -35,7 +35,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
35
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
|
|
38
|
+
as: string;
|
|
39
39
|
itemKey: string;
|
|
40
40
|
handle: string;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="
|
|
3
|
+
:is="as"
|
|
4
4
|
ref="elementsRef"
|
|
5
5
|
>
|
|
6
6
|
<slot
|
|
@@ -22,12 +22,12 @@ const props = withDefaults(defineProps<{
|
|
|
22
22
|
itemKey: string;
|
|
23
23
|
handle?: string;
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
|
|
25
|
+
as?: string
|
|
26
26
|
}>(), {
|
|
27
27
|
itemKey: 'id',
|
|
28
28
|
handle: '.handle',
|
|
29
29
|
disabled: false,
|
|
30
|
-
|
|
30
|
+
as: 'div', // Default to a div if not specified
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
const emit = defineEmits(['update:modelValue']);
|