aloha-vue 1.2.191 → 1.2.192
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
package/src/ATable/ATable.js
CHANGED
|
@@ -63,6 +63,23 @@ export default {
|
|
|
63
63
|
required: false,
|
|
64
64
|
default: true,
|
|
65
65
|
},
|
|
66
|
+
columnActionsOnePlusDropdownOptions: {
|
|
67
|
+
type: Object,
|
|
68
|
+
required: false,
|
|
69
|
+
default: () => ({
|
|
70
|
+
actionsClasses: ["a_btn a_btn_primary a_text_truncate"],
|
|
71
|
+
hasDividerBeforeDropdown: false,
|
|
72
|
+
indexFirstDropdownAction: 1,
|
|
73
|
+
indexFirstDropdownActionMobile: 1,
|
|
74
|
+
minDropdownActions: 1,
|
|
75
|
+
}),
|
|
76
|
+
},
|
|
77
|
+
columnActionsView: {
|
|
78
|
+
type: String,
|
|
79
|
+
required: false,
|
|
80
|
+
default: "dropdown",
|
|
81
|
+
validator: value => ["onePlusDropdown", "onePlusDropdownEmptyPlace", "dropdown"].indexOf(value) !== -1,
|
|
82
|
+
},
|
|
66
83
|
columnActionsWidth: {
|
|
67
84
|
type: Number,
|
|
68
85
|
required: false,
|
|
@@ -84,12 +101,6 @@ export default {
|
|
|
84
101
|
required: false,
|
|
85
102
|
default: undefined,
|
|
86
103
|
},
|
|
87
|
-
columnActionsView: {
|
|
88
|
-
type: String,
|
|
89
|
-
required: false,
|
|
90
|
-
default: "dropdown",
|
|
91
|
-
validator: value => ["onePlusDropdown", "onePlusDropdownEmptyPlace", "dropdown"].indexOf(value) !== -1,
|
|
92
|
-
},
|
|
93
104
|
columns: {
|
|
94
105
|
type: Array,
|
|
95
106
|
required: true,
|
|
@@ -457,6 +468,7 @@ export default {
|
|
|
457
468
|
provide() {
|
|
458
469
|
return {
|
|
459
470
|
changeModelColumnsVisible: this.changeModelColumnsVisible,
|
|
471
|
+
columnActionsOnePlusDropdownOptions: computed(() => this.columnActionsOnePlusDropdownOptions),
|
|
460
472
|
columns: computed(() => this.columns),
|
|
461
473
|
columnsDefaultValue: computed(() => this.columnsDefaultValue),
|
|
462
474
|
columnWidthDefault: computed(() => this.columnWidthDefault),
|
|
@@ -11,6 +11,7 @@ import ColumnsCountAPI from "./compositionAPI/ColumnsCountAPI.js";
|
|
|
11
11
|
import RowActionsAPI from "../compositionAPI/RowActionsAPI";
|
|
12
12
|
import RowNumberAPI from "./compositionAPI/RowNumberAPI.js";
|
|
13
13
|
import StylesThTdAction from "../ATableHeaderThAction/compositionAPI/StylesThTdAction";
|
|
14
|
+
import { isUndefined } from "lodash-es";
|
|
14
15
|
|
|
15
16
|
export default {
|
|
16
17
|
name: "ATableTdAction",
|
|
@@ -55,6 +56,7 @@ export default {
|
|
|
55
56
|
},
|
|
56
57
|
},
|
|
57
58
|
inject: [
|
|
59
|
+
"columnActionsOnePlusDropdownOptions",
|
|
58
60
|
"columnsScrollInvisible",
|
|
59
61
|
"tableId",
|
|
60
62
|
],
|
|
@@ -196,11 +198,11 @@ export default {
|
|
|
196
198
|
placement: "bottom-end",
|
|
197
199
|
},
|
|
198
200
|
disabled: this.disabledRowActions,
|
|
199
|
-
hasDividerBeforeDropdown: false,
|
|
200
|
-
indexFirstDropdownAction: 1,
|
|
201
|
-
indexFirstDropdownActionMobile: 1,
|
|
202
|
-
minDropdownActions: 1,
|
|
203
|
-
actionsClasses: ["a_btn a_btn_primary a_text_truncate"],
|
|
201
|
+
hasDividerBeforeDropdown: this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown || false,
|
|
202
|
+
indexFirstDropdownAction: isUndefined(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction) ? 1 : this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,
|
|
203
|
+
indexFirstDropdownActionMobile: isUndefined(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile) ? 1 : this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,
|
|
204
|
+
minDropdownActions: isUndefined(this.columnActionsOnePlusDropdownOptions.minDropdownActions) ? 1 : this.columnActionsOnePlusDropdownOptions.minDropdownActions,
|
|
205
|
+
actionsClasses: this.columnActionsOnePlusDropdownOptions.actionsClasses || ["a_btn a_btn_primary a_text_truncate"],
|
|
204
206
|
actionsIds: [this.buttonFirstActionId],
|
|
205
207
|
}, this.$slots) :
|
|
206
208
|
"",
|