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
commit d2dd384b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)