<j-editable-table Add row button remove method

Add row button remove method

modified content

To remove the new line in the component to add a button, you can change the value of: actionButton="true" to: actionButton="false", that is, change true to false,

insert image description here

Removed before

   <j-editable-table
                ref="editableMeTable"
                :loading="meTable.loading"
                :columns="meTable.columns"
                :dataSource="meTable.dataSource"
                :height="300"
                :minWidth="1000"
                :maxHeight="300"
                :rowNumber="false"
                :rowSelection="true"
                :actionButton="true"
                @valueChange="onValueChange"
                @added="onAdded"
                @deleted="onDeleted">
                <!-- <template #buttonAfter>
                  <a-button @click="batchSetPrice('purchase')">采购价-批量</a-button>
                  <a-button style="margin-left: 8px" @click="batchSetPrice('commodity')">零售价-批量</a-button>
                  <a-button style="margin-left: 8px" @click="batchSetPrice('wholesale')">销售价-批量</a-button>
                  <a-button style="margin-left: 8px" @click="batchSetPrice('low')">最低售价-批量</a-button>
                </template> -->
              </j-editable-table>

after removal

<j-editable-table
    ref="editableMeTable"
    :loading="meTable.loading"
    :columns="meTable.columns"
    :dataSource="meTable.dataSource"
    :height="300"
    :minWidth="1000"
    :maxHeight="300"
    :rowNumber="false"
    :rowSelection="true"
    :actionButton="false"
    @valueChange="onValueChange"
    @added="onAdded"
    @deleted="onDeleted">
    <!-- <template #buttonAfter>
        <a-button @click="batchSetPrice('purchase')">采购价-批量</a-button>
        <a-button style="margin-left: 8px" @click="batchSetPrice('commodity')">零售价-批量</a-button>
        <a-button style="margin-left: 8px" @click="batchSetPrice('wholesale')">销售价-批量</a-button>
        <a-button style="margin-left: 8px" @click="batchSetPrice('low')">最低售价-批量</a-button>
    </template> -->
</j-editable-table>

Effect picture after removing

insert image description here

Guess you like

Origin blog.csdn.net/weixin_48616345/article/details/131882354