Skip to content

Commit

Permalink
fix(dynamicTable): edit action should show when hover table cell
Browse files Browse the repository at this point in the history
fix: #180
  • Loading branch information
buqiyuan committed Apr 15, 2024
1 parent cbc7b13 commit df1e16c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 56 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
"@types/lodash-es": "~4.17.12",
"@types/node": "~20.12.4",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "~7.6.0",
"@typescript-eslint/parser": "~7.6.0",
"@typescript-eslint/eslint-plugin": "~7.7.0",
"@typescript-eslint/parser": "~7.7.0",
"@umijs/openapi": "^1.11.1",
"@vitejs/plugin-vue": "~5.0.4",
"@vitejs/plugin-vue-jsx": "~3.1.0",
Expand Down
96 changes: 48 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,18 @@
}
</script>

<style lang="less">
.ant-table-cell:hover {
.editable-cell .anticon-edit {
display: block;
}
}
</style>

<style lang="less" scoped>
.editable-cell {
position: relative;
&:hover {
.anticon-edit {
display: block;
}
}
.anticon-edit {
display: none;
position: absolute;
Expand Down

0 comments on commit df1e16c

Please sign in to comment.