Aurora Admin v1.2.0: 79 components x 5 ends, doc site, contracts batch 1, playground, regression, deploy ready

This commit is contained in:
aurora-admin
2026-09-10 19:21:56 +08:00
commit 51ce3a28f7
654 changed files with 49082 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<template>
<div class="aa-imgprev-mask" v-if="visible" @click.self="emit('close')">
<button class="aa-imgprev-close" @click="emit('close')">✕</button>
<button class="aa-imgprev-arrow prev" @click="go(-1)">‹</button>
<img class="aa-imgprev-img" :src="images[index]" :alt="index" />
<button class="aa-imgprev-arrow next" @click="go(1)">›</button>
<div class="aa-imgprev-count">{{ index + 1 }} / {{ images.length }}</div>
<div class="aa-imgprev-thumbs">
<img v-for="(u, i) in images" :key="i" class="aa-imgprev-thumb" :class="{ 'is-active': i === index }"
:src="u" @click="emit('change', i)" />
</div>
</div>
</template>
<script setup>
const props = defineProps({
images: { type: Array, default: () => [] },
visible: { type: Boolean, default: false },
index: { type: Number, default: 0 }
});
const emit = defineEmits(['close', 'change']);
function go(dir) {
const len = props.images.length || 1;
emit('change', (props.index + dir + len) % len);
}
</script>
<style src="./ImagePreview.css"></style>