zhengyiming
5 天以前 a6921e08035356d4d4e367a8731f729d0520f6b3
src/components/Form/FieldPaginationSelect.vue
@@ -3,9 +3,9 @@
    <el-select v-model="modelValue" v-bind="{ ...$attrs }">
      <el-option
        v-for="item in proTableProps.tableData"
        :key="item.bank_alias"
        :label="item.bank_alias"
        :value="item.bank_alias"
        :key="item[props.enumValueKey]"
        :label="item[props.enumLabelKey]"
        :value="item[props.enumValueKey]"
      >
      </el-option>
      <template #footer>
@@ -24,9 +24,14 @@
type Props = {
  proTableProps: any;
  enumLabelKey?: string;
  enumValueKey?: string;
};
const props = withDefaults(defineProps<Props>(), {});
const props = withDefaults(defineProps<Props>(), {
  enumLabelKey: 'label',
  enumValueKey: 'value',
});
const modelValue = defineModel<string>();
</script>