Merge pull request #354 from GGBOND-L/master

fix: Table的addColumn不能添加首列
This commit is contained in:
Archer
2023-10-11 09:33:33 +08:00
committed by GitHub

View File

@@ -228,7 +228,7 @@ export default defineComponent({
const addColumn = (column: TableColumn, index?: number) => {
const { columns } = unref(getProps)
if (index) {
if (index || index === 0) {
columns.splice(index, 0, column)
} else {
columns.push(column)