From df1e16ce49386b31850c27f09f4b988f2d8ed71c Mon Sep 17 00:00:00 2001
From: buqiyuan <1743369777@qq.com>
Date: Tue, 16 Apr 2024 01:59:39 +0800
Subject: [PATCH] fix(dynamicTable): edit action should show when hover table
cell
fix: #180
---
package.json | 4 +-
pnpm-lock.yaml | 96 +++++++++----------
.../src/components/editable-cell/index.vue | 14 +--
3 files changed, 58 insertions(+), 56 deletions(-)
diff --git a/package.json b/package.json
index 767b32cc9..ab0d388e7 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4f90f61b7..b742c677b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -130,11 +130,11 @@ importers:
specifier: ^1.15.8
version: 1.15.8
'@typescript-eslint/eslint-plugin':
- specifier: ~7.6.0
- version: 7.6.0(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)(typescript@5.4.5)
+ specifier: ~7.7.0
+ version: 7.7.0(@typescript-eslint/parser@7.7.0)(eslint@8.57.0)(typescript@5.4.5)
'@typescript-eslint/parser':
- specifier: ~7.6.0
- version: 7.6.0(eslint@8.57.0)(typescript@5.4.5)
+ specifier: ~7.7.0
+ version: 7.7.0(eslint@8.57.0)(typescript@5.4.5)
'@umijs/openapi':
specifier: ^1.11.1
version: 1.11.1
@@ -170,13 +170,13 @@ importers:
version: 2.1.0
eslint-plugin-import:
specifier: ~2.29.1
- version: 2.29.1(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)
+ version: 2.29.1(@typescript-eslint/parser@7.7.0)(eslint@8.57.0)
eslint-plugin-prettier:
specifier: ~5.1.3
version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.57.0)(prettier@3.2.5)
eslint-plugin-unused-imports:
specifier: ^3.1.0
- version: 3.1.0(@typescript-eslint/eslint-plugin@7.6.0)(eslint@8.57.0)
+ version: 3.1.0(@typescript-eslint/eslint-plugin@7.7.0)(eslint@8.57.0)
eslint-plugin-vue:
specifier: ~9.25.0
version: 9.25.0(eslint@8.57.0)
@@ -3305,8 +3305,8 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/eslint-plugin@7.6.0(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)(typescript@5.4.5):
- resolution: {integrity: sha512-gKmTNwZnblUdnTIJu3e9kmeRRzV2j1a/LUO27KNNAnIC5zjy1aSvXSRp4rVNlmAoHlQ7HzX42NbKpcSr4jF80A==}
+ /@typescript-eslint/eslint-plugin@7.7.0(@typescript-eslint/parser@7.7.0)(eslint@8.57.0)(typescript@5.4.5):
+ resolution: {integrity: sha512-GJWR0YnfrKnsRoluVO3PRb9r5aMZriiMMM/RHj5nnTrBy1/wIgk76XCtCKcnXGjpZQJQRFtGV9/0JJ6n30uwpQ==}
engines: {node: ^18.18.0 || >=20.0.0}
peerDependencies:
'@typescript-eslint/parser': ^7.0.0
@@ -3317,11 +3317,11 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.10.0
- '@typescript-eslint/parser': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
- '@typescript-eslint/scope-manager': 7.6.0
- '@typescript-eslint/type-utils': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
- '@typescript-eslint/utils': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
- '@typescript-eslint/visitor-keys': 7.6.0
+ '@typescript-eslint/parser': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/scope-manager': 7.7.0
+ '@typescript-eslint/type-utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/visitor-keys': 7.7.0
debug: 4.3.4
eslint: 8.57.0
graphemer: 1.4.0
@@ -3372,8 +3372,8 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/parser@7.6.0(eslint@8.57.0)(typescript@5.4.5):
- resolution: {integrity: sha512-usPMPHcwX3ZoPWnBnhhorc14NJw9J4HpSXQX4urF2TPKG0au0XhJoZyX62fmvdHONUkmyUe74Hzm1//XA+BoYg==}
+ /@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.4.5):
+ resolution: {integrity: sha512-fNcDm3wSwVM8QYL4HKVBggdIPAy9Q41vcvC/GtDobw3c4ndVT3K6cqudUmjHPw8EAp4ufax0o58/xvWaP2FmTg==}
engines: {node: ^18.18.0 || >=20.0.0}
peerDependencies:
eslint: ^8.56.0
@@ -3382,10 +3382,10 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/scope-manager': 7.6.0
- '@typescript-eslint/types': 7.6.0
- '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5)
- '@typescript-eslint/visitor-keys': 7.6.0
+ '@typescript-eslint/scope-manager': 7.7.0
+ '@typescript-eslint/types': 7.7.0
+ '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5)
+ '@typescript-eslint/visitor-keys': 7.7.0
debug: 4.3.4
eslint: 8.57.0
typescript: 5.4.5
@@ -3409,12 +3409,12 @@ packages:
'@typescript-eslint/visitor-keys': 5.62.0
dev: true
- /@typescript-eslint/scope-manager@7.6.0:
- resolution: {integrity: sha512-ngttyfExA5PsHSx0rdFgnADMYQi+Zkeiv4/ZxGYUWd0nLs63Ha0ksmp8VMxAIC0wtCFxMos7Lt3PszJssG/E6w==}
+ /@typescript-eslint/scope-manager@7.7.0:
+ resolution: {integrity: sha512-/8INDn0YLInbe9Wt7dK4cXLDYp0fNHP5xKLHvZl3mOT5X17rK/YShXaiNmorl+/U4VKCVIjJnx4Ri5b0y+HClw==}
engines: {node: ^18.18.0 || >=20.0.0}
dependencies:
- '@typescript-eslint/types': 7.6.0
- '@typescript-eslint/visitor-keys': 7.6.0
+ '@typescript-eslint/types': 7.7.0
+ '@typescript-eslint/visitor-keys': 7.7.0
dev: true
/@typescript-eslint/type-utils@5.62.0(eslint@7.32.0)(typescript@4.9.5):
@@ -3437,8 +3437,8 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/type-utils@7.6.0(eslint@8.57.0)(typescript@5.4.5):
- resolution: {integrity: sha512-NxAfqAPNLG6LTmy7uZgpK8KcuiS2NZD/HlThPXQRGwz6u7MDBWRVliEEl1Gj6U7++kVJTpehkhZzCJLMK66Scw==}
+ /@typescript-eslint/type-utils@7.7.0(eslint@8.57.0)(typescript@5.4.5):
+ resolution: {integrity: sha512-bOp3ejoRYrhAlnT/bozNQi3nio9tIgv3U5C0mVDdZC7cpcQEDZXvq8inrHYghLVwuNABRqrMW5tzAv88Vy77Sg==}
engines: {node: ^18.18.0 || >=20.0.0}
peerDependencies:
eslint: ^8.56.0
@@ -3447,8 +3447,8 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5)
- '@typescript-eslint/utils': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5)
+ '@typescript-eslint/utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
debug: 4.3.4
eslint: 8.57.0
ts-api-utils: 1.3.0(typescript@5.4.5)
@@ -3467,8 +3467,8 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
- /@typescript-eslint/types@7.6.0:
- resolution: {integrity: sha512-h02rYQn8J+MureCvHVVzhl69/GAfQGPQZmOMjG1KfCl7o3HtMSlPaPUAPu6lLctXI5ySRGIYk94clD/AUMCUgQ==}
+ /@typescript-eslint/types@7.7.0:
+ resolution: {integrity: sha512-G01YPZ1Bd2hn+KPpIbrAhEWOn5lQBrjxkzHkWvP6NucMXFtfXoevK82hzQdpfuQYuhkvFDeQYbzXCjR1z9Z03w==}
engines: {node: ^18.18.0 || >=20.0.0}
dev: true
@@ -3514,8 +3514,8 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/typescript-estree@7.6.0(typescript@5.4.5):
- resolution: {integrity: sha512-+7Y/GP9VuYibecrCQWSKgl3GvUM5cILRttpWtnAu8GNL9j11e4tbuGZmZjJ8ejnKYyBRb2ddGQ3rEFCq3QjMJw==}
+ /@typescript-eslint/typescript-estree@7.7.0(typescript@5.4.5):
+ resolution: {integrity: sha512-8p71HQPE6CbxIBy2kWHqM1KGrC07pk6RJn40n0DSc6bMOBBREZxSDJ+BmRzc8B5OdaMh1ty3mkuWRg4sCFiDQQ==}
engines: {node: ^18.18.0 || >=20.0.0}
peerDependencies:
typescript: '*'
@@ -3523,8 +3523,8 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 7.6.0
- '@typescript-eslint/visitor-keys': 7.6.0
+ '@typescript-eslint/types': 7.7.0
+ '@typescript-eslint/visitor-keys': 7.7.0
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@@ -3556,8 +3556,8 @@ packages:
- typescript
dev: true
- /@typescript-eslint/utils@7.6.0(eslint@8.57.0)(typescript@5.4.5):
- resolution: {integrity: sha512-x54gaSsRRI+Nwz59TXpCsr6harB98qjXYzsRxGqvA5Ue3kQH+FxS7FYU81g/omn22ML2pZJkisy6Q+ElK8pBCA==}
+ /@typescript-eslint/utils@7.7.0(eslint@8.57.0)(typescript@5.4.5):
+ resolution: {integrity: sha512-LKGAXMPQs8U/zMRFXDZOzmMKgFv3COlxUQ+2NMPhbqgVm6R1w+nU1i4836Pmxu9jZAuIeyySNrN/6Rc657ggig==}
engines: {node: ^18.18.0 || >=20.0.0}
peerDependencies:
eslint: ^8.56.0
@@ -3565,9 +3565,9 @@ packages:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0)
'@types/json-schema': 7.0.15
'@types/semver': 7.5.8
- '@typescript-eslint/scope-manager': 7.6.0
- '@typescript-eslint/types': 7.6.0
- '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5)
+ '@typescript-eslint/scope-manager': 7.7.0
+ '@typescript-eslint/types': 7.7.0
+ '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5)
eslint: 8.57.0
semver: 7.6.0
transitivePeerDependencies:
@@ -3591,11 +3591,11 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
- /@typescript-eslint/visitor-keys@7.6.0:
- resolution: {integrity: sha512-4eLB7t+LlNUmXzfOu1VAIAdkjbu5xNSerURS9X/S5TUKWFRpXRQZbmtPqgKmYx8bj3J0irtQXSiWAOY82v+cgw==}
+ /@typescript-eslint/visitor-keys@7.7.0:
+ resolution: {integrity: sha512-h0WHOj8MhdhY8YWkzIF30R379y0NqyOHExI9N9KCzvmu05EgG4FumeYa3ccfKUSphyWkWQE1ybVrgz/Pbam6YA==}
engines: {node: ^18.18.0 || >=20.0.0}
dependencies:
- '@typescript-eslint/types': 7.6.0
+ '@typescript-eslint/types': 7.7.0
eslint-visitor-keys: 3.4.3
dev: true
@@ -6019,7 +6019,7 @@ packages:
- supports-color
dev: true
- /eslint-module-utils@2.8.1(@typescript-eslint/parser@7.6.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0):
+ /eslint-module-utils@2.8.1(@typescript-eslint/parser@7.7.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0):
resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}
engines: {node: '>=4'}
peerDependencies:
@@ -6040,7 +6040,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
- '@typescript-eslint/parser': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/parser': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
debug: 3.2.7
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
@@ -6058,7 +6058,7 @@ packages:
eslint-rule-composer: 0.3.0
dev: true
- /eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.6.0)(eslint@8.57.0):
+ /eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0)(eslint@8.57.0):
resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}
engines: {node: '>=4'}
peerDependencies:
@@ -6068,7 +6068,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
- '@typescript-eslint/parser': 7.6.0(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/parser': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
array-includes: 3.1.8
array.prototype.findlastindex: 1.2.5
array.prototype.flat: 1.3.2
@@ -6077,7 +6077,7 @@ packages:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.6.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0)
+ eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0)
hasown: 2.0.2
is-core-module: 2.13.1
is-glob: 4.0.3
@@ -6201,7 +6201,7 @@ packages:
- supports-color
dev: true
- /eslint-plugin-unused-imports@3.1.0(@typescript-eslint/eslint-plugin@7.6.0)(eslint@8.57.0):
+ /eslint-plugin-unused-imports@3.1.0(@typescript-eslint/eslint-plugin@7.7.0)(eslint@8.57.0):
resolution: {integrity: sha512-9l1YFCzXKkw1qtAru1RWUtG2EVDZY0a0eChKXcL+EZ5jitG7qxdctu4RnvhOJHv4xfmUf7h+JJPINlVpGhZMrw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -6211,7 +6211,7 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
- '@typescript-eslint/eslint-plugin': 7.6.0(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)(typescript@5.4.5)
+ '@typescript-eslint/eslint-plugin': 7.7.0(@typescript-eslint/parser@7.7.0)(eslint@8.57.0)(typescript@5.4.5)
eslint: 8.57.0
eslint-rule-composer: 0.3.0
dev: true
diff --git a/src/components/core/dynamic-table/src/components/editable-cell/index.vue b/src/components/core/dynamic-table/src/components/editable-cell/index.vue
index 78d7d3609..b72be8355 100644
--- a/src/components/core/dynamic-table/src/components/editable-cell/index.vue
+++ b/src/components/core/dynamic-table/src/components/editable-cell/index.vue
@@ -127,16 +127,18 @@
}
+
+