aloha-vue 1.2.192 → 1.2.193
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 +1 -1
- package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +6 -0
- package/src/AGroupButtonDropdown/AGroupButtonDropdownItem/AGroupButtonDropdownItem.js +6 -1
- package/src/ATable/ATable.js +1 -0
- package/src/ATable/ATableTdAction/ATableTdAction.js +5 -1
- package/src/styles/components/ATable.scss +1 -1
package/package.json
CHANGED
|
@@ -28,6 +28,11 @@ export default {
|
|
|
28
28
|
required: false,
|
|
29
29
|
default: () => [],
|
|
30
30
|
},
|
|
31
|
+
btnGroupClass: {
|
|
32
|
+
type: [String, Array, Object],
|
|
33
|
+
required: false,
|
|
34
|
+
default: "a_btn_group",
|
|
35
|
+
},
|
|
31
36
|
disabled: {
|
|
32
37
|
type: Boolean,
|
|
33
38
|
required: false,
|
|
@@ -95,6 +100,7 @@ export default {
|
|
|
95
100
|
}, [
|
|
96
101
|
...this.actionsGrouped.buttons.map((item, itemIndex) => {
|
|
97
102
|
return h(AGroupButtonDropdownItem, {
|
|
103
|
+
btnGroupClass: this.btnGroupClass,
|
|
98
104
|
data: item,
|
|
99
105
|
disabled: this.disabled,
|
|
100
106
|
actionsDropdown: this.actionsGrouped.dropdown,
|
|
@@ -27,6 +27,11 @@ export default {
|
|
|
27
27
|
type: Array,
|
|
28
28
|
required: true,
|
|
29
29
|
},
|
|
30
|
+
btnGroupClass: {
|
|
31
|
+
type: [String, Array, Object],
|
|
32
|
+
required: false,
|
|
33
|
+
default: "a_btn_group",
|
|
34
|
+
},
|
|
30
35
|
data: {
|
|
31
36
|
type: Object,
|
|
32
37
|
required: true,
|
|
@@ -66,7 +71,7 @@ export default {
|
|
|
66
71
|
render() {
|
|
67
72
|
return [
|
|
68
73
|
!!this.data.children.length && h("div", {
|
|
69
|
-
class:
|
|
74
|
+
class: this.btnGroupClass,
|
|
70
75
|
}, [
|
|
71
76
|
...this.data.children.map(action => {
|
|
72
77
|
let classLocal = action.classButton ? action.classButton : this.actionsClasses[action.actionNotDividerIndex];
|
package/src/ATable/ATable.js
CHANGED
|
@@ -68,6 +68,7 @@ export default {
|
|
|
68
68
|
required: false,
|
|
69
69
|
default: () => ({
|
|
70
70
|
actionsClasses: ["a_btn a_btn_primary a_text_truncate"],
|
|
71
|
+
btnGroupClass: "a_btn_group a_btn_group_table",
|
|
71
72
|
hasDividerBeforeDropdown: false,
|
|
72
73
|
indexFirstDropdownAction: 1,
|
|
73
74
|
indexFirstDropdownActionMobile: 1,
|
|
@@ -11,7 +11,10 @@ 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
|
-
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
isUndefined,
|
|
17
|
+
} from "lodash-es";
|
|
15
18
|
|
|
16
19
|
export default {
|
|
17
20
|
name: "ATableTdAction",
|
|
@@ -198,6 +201,7 @@ export default {
|
|
|
198
201
|
placement: "bottom-end",
|
|
199
202
|
},
|
|
200
203
|
disabled: this.disabledRowActions,
|
|
204
|
+
btnGroupClass: isUndefined(this.columnActionsOnePlusDropdownOptions.btnGroupClass) ? "a_btn_group a_btn_group_table" : this.columnActionsOnePlusDropdownOptions.btnGroupClass,
|
|
201
205
|
hasDividerBeforeDropdown: this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown || false,
|
|
202
206
|
indexFirstDropdownAction: isUndefined(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction) ? 1 : this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,
|
|
203
207
|
indexFirstDropdownActionMobile: isUndefined(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile) ? 1 : this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,
|