cscan / vue3-excel-editor

Vue3 plugin for displaying and editing the array-of-object in Excel style.
MIT License
231 stars 51 forks source link

Edit selected data #12

Open unerp opened 1 year ago

unerp commented 1 year ago

When data is modified, the selected data is also changed

<vue-excel-editor 
    ref="exGrid" 
    v-model="jsondata" 
    height="300px" 
    @select="gridSelect" 
    @update="gridUpdate"
  >
    <vue-excel-column field="user"   label="User ID"       type="string" width="150px" />
    <vue-excel-column field="name"   label="Name"          type="string" width="150px" />
    <vue-excel-column field="phone"  label="Contact"       type="string" width="150px" />
    <vue-excel-column field="gender" label="Gender"        type="select" width="100px" :options="['F','M','U']" />
    <vue-excel-column field="age"    label="Age"           type="number" width="100px" />
    <vue-excel-column field="birth"  label="Date Of Birth" type="date"   width="150px" />
</vue-excel-editor>

image

image

image

cscan commented 1 year ago

Yes, this is a special feature, not a bug. I will think how to disable this feature by flag.