@bildvitta/quasar-ui-asteroid 2.14.1 → 2.15.0
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/package.json
CHANGED
|
@@ -38,7 +38,12 @@ export default {
|
|
|
38
38
|
|
|
39
39
|
redirectKey: {
|
|
40
40
|
control: null,
|
|
41
|
-
description: '
|
|
41
|
+
description: 'Item key that will be the value of the redirect.'
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
paramKey: {
|
|
45
|
+
control: null,
|
|
46
|
+
description: 'Redirect parameter key.'
|
|
42
47
|
},
|
|
43
48
|
|
|
44
49
|
useIconRedirect: {
|
|
@@ -44,6 +44,11 @@ export default {
|
|
|
44
44
|
type: String
|
|
45
45
|
},
|
|
46
46
|
|
|
47
|
+
paramKey: {
|
|
48
|
+
default: 'id',
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
|
|
47
52
|
to: {
|
|
48
53
|
default: () => ({}),
|
|
49
54
|
type: Object
|
|
@@ -61,7 +66,7 @@ export default {
|
|
|
61
66
|
|
|
62
67
|
getRedirectPayload (item) {
|
|
63
68
|
return {
|
|
64
|
-
params: { [this.
|
|
69
|
+
params: { [this.paramKey]: item[this.redirectKey] },
|
|
65
70
|
...this.to
|
|
66
71
|
}
|
|
67
72
|
}
|