This commit is contained in:
zlwu committed 2026-07-01 18:52:26 +08:00
1 parent 7c838cfb2d
commit 8e70047f4c
161 files changed
+16659 -10436

No files matched your search

@@ -1,7 +1,7 @@
<!-- 系统logo -->
<template>
<div class="flex-cc">
<img :style="logoStyle" src="/logo.gif" alt="山峡化工" class="block object-contain" />
<img :style="logoStyle" :src="src" alt="山峡化工" class="block object-contain" />
</div>
</template>
@@ -11,10 +11,13 @@
interface Props {
/** logo 大小 */
size?: number | string
/** logo 图片路径 */
src?: string
}
const props = withDefaults(defineProps<Props>(), {
size: 36
size: 36,
src: '/logo.gif'
})
const logoStyle = computed(() => {
@@ -0,0 +1,28 @@
<!-- 列表序号列:有分页时连续编号,无分页时从 1 递增 -->
<script setup lang="ts">
const props = withDefaults(
defineProps<{
page?: number
pageSize?: number
}>(),
{
page: 1,
pageSize: 10
}
)
function resolveIndex(index: number) {
return (props.page - 1) * props.pageSize + index + 1
}
</script>
<template>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
:index="resolveIndex"
/>
</template>