@stonecrop/atable 0.4.34 → 0.4.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atable.js +1 -0
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +1 -1
- package/dist/atable.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/components/ACell.vue +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/atable",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.35",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@vueuse/core": "^13.6.0",
|
|
43
43
|
"pinia": "^3.0.3",
|
|
44
44
|
"vue": "^3.5.18",
|
|
45
|
-
"@stonecrop/
|
|
46
|
-
"@stonecrop/
|
|
45
|
+
"@stonecrop/themes": "0.4.35",
|
|
46
|
+
"@stonecrop/utilities": "0.4.35"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@microsoft/api-documenter": "^7.26.31",
|
package/src/components/ACell.vue
CHANGED
|
@@ -250,6 +250,8 @@ const restoreCursorPosition = (position: number) => {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
const updateCellData = (payload: Event) => {
|
|
253
|
+
if (!column.edit) return
|
|
254
|
+
|
|
253
255
|
const target = payload.target as HTMLTableCellElement
|
|
254
256
|
if (target.textContent === currentData.value) {
|
|
255
257
|
return
|