@mixd-id/web-scaffold 0.1.230406318 → 0.1.230406320
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/Image.vue
CHANGED
|
@@ -209,9 +209,9 @@ export default{
|
|
|
209
209
|
else if(Array.isArray(this.src)){
|
|
210
210
|
|
|
211
211
|
const src = {}
|
|
212
|
-
src['all'] = this.src[0]
|
|
212
|
+
src['all'] = (this.src[0].indexOf('://') < 0 ? import.meta.env.VITE_IMAGE_HOST + '/' : '') + this.src[0]
|
|
213
213
|
if(this.src[1]){
|
|
214
|
-
src['md'] = this.src[1]
|
|
214
|
+
src['md'] = (this.src[1].indexOf('://') < 0 ? import.meta.env.VITE_IMAGE_HOST + '/' : '') + this.src[1]
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
let imgSrc
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
<svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
|
|
34
34
|
</button>
|
|
35
35
|
</div>
|
|
36
|
+
|
|
36
37
|
<div class="flex flex-row items-start gap-2">
|
|
37
38
|
<Dropdown v-if="Array.isArray(keys[key].values)" v-model="values[index]" class="flex-1 max-w-[300px]">
|
|
38
39
|
<option value="">Default</option>
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
<component v-else
|
|
42
43
|
:is="keys[key].values.type"
|
|
43
44
|
:="keys[key].values"
|
|
45
|
+
:prefix="viewTypes[index].value"
|
|
44
46
|
:keys="componentKeysForIndex(keys[key].values, index)"
|
|
45
47
|
v-model="values[index]"
|
|
46
48
|
class="flex-1 max-w-[300px]" />
|