Skip to content

Commit

Permalink
fix: Table的addColumn不能添加首列
Browse files Browse the repository at this point in the history
  • Loading branch information
GGBOND-L committed Oct 10, 2023
1 parent a4d1391 commit 240178f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/src/Table.vue
Expand Up @@ -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)
Expand Down

0 comments on commit 240178f

Please sign in to comment.