sprintify-ui 0.10.69 → 0.10.70
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
|
@@ -24846,11 +24846,15 @@ const ew = ["onClick"], tw = { class: "px-2 flex items-center" }, nw = { class:
|
|
|
24846
24846
|
showRemove: {
|
|
24847
24847
|
default: !0,
|
|
24848
24848
|
type: Boolean
|
|
24849
|
+
},
|
|
24850
|
+
showLink: {
|
|
24851
|
+
default: !0,
|
|
24852
|
+
type: Boolean
|
|
24849
24853
|
}
|
|
24850
24854
|
},
|
|
24851
24855
|
emits: ["remove"],
|
|
24852
24856
|
setup(t) {
|
|
24853
|
-
const n = t, e = w(() => n.media.file_name), o = w(() => Za(n.media.size)), r = w(() => "url" in n.media ? n.media.url : null);
|
|
24857
|
+
const n = t, e = w(() => n.media.file_name), o = w(() => Za(n.media.size)), r = w(() => n.showLink && "url" in n.media ? n.media.url : null);
|
|
24854
24858
|
return (a, l) => (b(), z("div", Xw, [
|
|
24855
24859
|
B("div", Zw, [
|
|
24856
24860
|
B("div", Qw, [
|
|
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
};
|
|
13
|
+
showLink: {
|
|
14
|
+
default: boolean;
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
13
17
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
18
|
remove: (...args: any[]) => void;
|
|
15
19
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -21,9 +25,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
25
|
default: boolean;
|
|
22
26
|
type: BooleanConstructor;
|
|
23
27
|
};
|
|
28
|
+
showLink: {
|
|
29
|
+
default: boolean;
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
24
32
|
}>> & Readonly<{
|
|
25
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
26
34
|
}>, {
|
|
27
35
|
showRemove: boolean;
|
|
36
|
+
showLink: boolean;
|
|
28
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
38
|
export default _default;
|
package/package.json
CHANGED
|
@@ -60,6 +60,10 @@ const props = defineProps({
|
|
|
60
60
|
default: true,
|
|
61
61
|
type: Boolean,
|
|
62
62
|
},
|
|
63
|
+
showLink: {
|
|
64
|
+
default: true,
|
|
65
|
+
type: Boolean,
|
|
66
|
+
},
|
|
63
67
|
});
|
|
64
68
|
|
|
65
69
|
const name = computed(() => {
|
|
@@ -71,6 +75,11 @@ const size = computed(() => {
|
|
|
71
75
|
});
|
|
72
76
|
|
|
73
77
|
const url = computed(() => {
|
|
78
|
+
|
|
79
|
+
if (!props.showLink) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
74
83
|
if ('url' in props.media) {
|
|
75
84
|
return props.media.url;
|
|
76
85
|
}
|