@mixd-id/web-scaffold 0.1.230406195 → 0.1.230406196
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/package.json
CHANGED
package/src/components/Link.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<a v-if="mode === 'download' && items.length > 0"
|
|
3
3
|
:href="download.url"
|
|
4
|
-
:download="download.as ?? ''">
|
|
4
|
+
:download="download.as ?? (download.originalName ?? '')">
|
|
5
5
|
<component v-for="(item, idx) in items"
|
|
6
6
|
:is="item.type"
|
|
7
7
|
:key="idx"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</a>
|
|
10
10
|
<a v-else-if="mode === 'download'"
|
|
11
11
|
:href="download.url"
|
|
12
|
-
:download="download.as ?? ''">
|
|
12
|
+
:download="download.as ?? (download.originalName ?? '')">
|
|
13
13
|
{{ text }}
|
|
14
14
|
</a>
|
|
15
15
|
<a v-else-if="isExternalLink && items.length > 0" :target="target">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
Click to Add File
|
|
49
49
|
</button>
|
|
50
50
|
<div v-else class="p-2 border-l-[2px] border-primary bg-text-50 flex flex-row items-center rounded-r-lg">
|
|
51
|
-
<div class="flex-1 px-1">
|
|
51
|
+
<div class="flex-1 px-1 text-ellipsis overflow-hidden whitespace-nowrap">
|
|
52
52
|
{{ placeholder }}
|
|
53
53
|
</div>
|
|
54
54
|
<button type="button" @click="this.item.props.download = {}">
|