tab-editor.vue 572 Bytes
<template>
  <div>
     <Form :label-width="100">
        <FormItem :label="i.poolName" v-for="i in list" :key="i.id">
            <Input :value="i.poolId" @input="(v) => {onUpdate(v, i)}" :maxlength="9" />
        </FormItem>
    </Form>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {}
  },
  methods: {
    onUpdate(v, i) {
      i.poolId = v
      this.$emit('update:list', this.list)
    }
  },
  mounted() {

  }

}
</script>

<style>

</style>