From a4bb5626dcf18a1893792eeeca75e9139c744ad0 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 13 十月 2025 16:30:45 +0800 Subject: [PATCH] Merge branch 'dev-1.1.2' of http://120.26.58.240:8888/r/flexJobAdmin into dev-1.1.2 --- src/components/Form/FieldPaginationSelect.vue | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/src/components/Form/FieldPaginationSelect.vue b/src/components/Form/FieldPaginationSelect.vue new file mode 100644 index 0000000..82e5bbf --- /dev/null +++ b/src/components/Form/FieldPaginationSelect.vue @@ -0,0 +1,37 @@ +<template> + <div> + <el-select v-model="modelValue" v-bind="{ ...$attrs }"> + <el-option + v-for="item in proTableProps.tableData" + :key="item[props.enumValueKey]" + :label="item[props.enumLabelKey]" + :value="item[props.enumValueKey]" + > + </el-option> + <template #footer> + <ProPagination v-bind="proTableProps" layout="total, prev, pager, next"></ProPagination> + </template> + </el-select> + </div> +</template> + +<script setup lang="ts"> +import { ProPagination } from '@bole-core/components'; + +defineOptions({ + name: 'FieldPaginationSelect', +}); + +type Props = { + proTableProps: any; + enumLabelKey?: string; + enumValueKey?: string; +}; + +const props = withDefaults(defineProps<Props>(), { + enumLabelKey: 'label', + enumValueKey: 'value', +}); + +const modelValue = defineModel<string>(); +</script> -- Gitblit v1.9.1