| | |
| | | <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> |
| | |
| | | |
| | | 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> |