@adminforth/list-in-place-edit 1.0.7 → 1.0.9
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/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export default class ListInPlaceEditPlugin extends AdminForthPlugin {
|
|
|
22
22
|
const targetColumns = resourceConfig.columns.filter(col => this.options.columns.includes(col.name));
|
|
23
23
|
targetColumns.forEach(column => {
|
|
24
24
|
var _a;
|
|
25
|
-
if ((_a = column.components) === null || _a === void 0 ? void 0 : _a.list) {
|
|
25
|
+
if (((_a = column.components) === null || _a === void 0 ? void 0 : _a.list) && (typeof column.components.list === 'object' && column.components.list.file !== this.componentPath('InPlaceEdit.vue'))) {
|
|
26
26
|
throw new Error(`Column ${column.name} already has a list component defined. ListInplaceEdit plugin cannot be used on columns that already have list components.`);
|
|
27
27
|
}
|
|
28
28
|
if (!column.components) {
|
package/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ export default class ListInPlaceEditPlugin extends AdminForthPlugin {
|
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
targetColumns.forEach(column => {
|
|
21
|
-
if (column.components?.list) {
|
|
21
|
+
if (column.components?.list && (typeof column.components.list === 'object' && column.components.list.file !== this.componentPath('InPlaceEdit.vue'))) {
|
|
22
22
|
throw new Error(`Column ${column.name} already has a list component defined. ListInplaceEdit plugin cannot be used on columns that already have list components.`);
|
|
23
23
|
}
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/list-in-place-edit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue-i18n": "^11.1.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"adminforth": "
|
|
34
|
+
"adminforth": "next"
|
|
35
35
|
},
|
|
36
36
|
"release": {
|
|
37
37
|
"plugins": [
|