aloha-vue 1.0.56 → 1.0.59
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/docs/package.json +1 -1
- package/docs/src/views/PageAccordion/PageAccordion.js +1 -1
- package/docs/src/views/PageAccordion/PageAccordion.pug +3 -2
- package/package.json +1 -1
- package/src/AAccordion/AAccordion.js +8 -1
- package/src/AAccordion/AAccordionItem.js +8 -3
- package/src/AGet/AGet.js +3 -2
- package/src/styles/components/ui/ASelect.scss +2 -0
package/docs/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
return {
|
|
10
10
|
items: [
|
|
11
11
|
{
|
|
12
|
-
label: "label
|
|
12
|
+
label: "label labellabe llabellabellabellab ellabellabel1 labellabellabellabellabellabe labellabellabellabellabellabe labellabellabellabellabellabe labellabellabellabellabellabe labellabellabellabellabellabe labellabellabellabellabellabelabellabellabellabellabellabe llabellabellabel",
|
|
13
13
|
content: "content 1",
|
|
14
14
|
items: [
|
|
15
15
|
{
|
|
@@ -8,6 +8,7 @@ div
|
|
|
8
8
|
a-accordion(
|
|
9
9
|
:items="items"
|
|
10
10
|
:always-open="true"
|
|
11
|
+
:with-gap="true"
|
|
11
12
|
)
|
|
12
13
|
h2 with Slots
|
|
13
14
|
a-accordion(
|
|
@@ -16,13 +17,13 @@ div
|
|
|
16
17
|
key-content=""
|
|
17
18
|
)
|
|
18
19
|
template(
|
|
19
|
-
v-slot:
|
|
20
|
+
v-slot:accordionButton="{ item, itemIndex }"
|
|
20
21
|
)
|
|
21
22
|
span {{ item.label }}
|
|
22
23
|
strong index: {{ itemIndex }}
|
|
23
24
|
|
|
24
25
|
template(
|
|
25
|
-
v-slot:
|
|
26
|
+
v-slot:accordionContent="{ item, itemIndex }"
|
|
26
27
|
)
|
|
27
28
|
strong {{ item.content }}
|
|
28
29
|
|
package/package.json
CHANGED
|
@@ -25,6 +25,7 @@ export default {
|
|
|
25
25
|
keyLabel: computed(() => this.keyLabel),
|
|
26
26
|
keyContent: computed(() => this.keyContent),
|
|
27
27
|
readonly: computed(() => this.readonly),
|
|
28
|
+
withGap: computed(() => this.withGap),
|
|
28
29
|
};
|
|
29
30
|
},
|
|
30
31
|
props: {
|
|
@@ -82,6 +83,10 @@ export default {
|
|
|
82
83
|
required: false,
|
|
83
84
|
default: undefined,
|
|
84
85
|
},
|
|
86
|
+
withGap: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
required: false,
|
|
89
|
+
},
|
|
85
90
|
},
|
|
86
91
|
emits: ["toggle"],
|
|
87
92
|
data() {
|
|
@@ -132,7 +137,9 @@ export default {
|
|
|
132
137
|
},
|
|
133
138
|
render() {
|
|
134
139
|
return h("div", {
|
|
135
|
-
class: "a_accordion",
|
|
140
|
+
class: ["a_accordion", {
|
|
141
|
+
a_accordion__with_gap: this.withGap,
|
|
142
|
+
}],
|
|
136
143
|
}, [
|
|
137
144
|
this.items.map((item, itemIndex) => {
|
|
138
145
|
return h(AAccordionItem, {
|
|
@@ -43,6 +43,7 @@ export default {
|
|
|
43
43
|
"keyLabel",
|
|
44
44
|
"keyContent",
|
|
45
45
|
"readonly",
|
|
46
|
+
"withGap",
|
|
46
47
|
],
|
|
47
48
|
setup(props) {
|
|
48
49
|
const {
|
|
@@ -150,10 +151,11 @@ export default {
|
|
|
150
151
|
class: "a_accordion__header",
|
|
151
152
|
}, [
|
|
152
153
|
h(this.buttonTag, this.buttonAttributes, [
|
|
153
|
-
this.$slots.
|
|
154
|
+
this.$slots.accordionButton && this.$slots.accordionButton({
|
|
154
155
|
item: this.item,
|
|
155
156
|
itemIndex: this.itemIndex,
|
|
156
157
|
parentIndexes: this.parentIndexes,
|
|
158
|
+
id: this.id,
|
|
157
159
|
}),
|
|
158
160
|
this.labelLocal && h("span", {
|
|
159
161
|
innerHTML: this.labelLocal,
|
|
@@ -169,16 +171,19 @@ export default {
|
|
|
169
171
|
h("div", {
|
|
170
172
|
class: "a_accordion__body",
|
|
171
173
|
}, [
|
|
172
|
-
this.$slots.
|
|
174
|
+
this.$slots.accordionContent && this.$slots.accordionContent({
|
|
173
175
|
item: this.item,
|
|
174
176
|
itemIndex: this.itemIndex,
|
|
175
177
|
parentIndexes: this.parentIndexes,
|
|
178
|
+
id: this.id,
|
|
176
179
|
}),
|
|
177
180
|
this.contentLocal && h("div", {
|
|
178
181
|
innerHTML: this.contentLocal,
|
|
179
182
|
}),
|
|
180
183
|
this.hasChildren && h("div", {
|
|
181
|
-
class: "a_accordion",
|
|
184
|
+
class: ["a_accordion", {
|
|
185
|
+
a_accordion__with_gap: this.withGap,
|
|
186
|
+
}],
|
|
182
187
|
}, [
|
|
183
188
|
this.children.map((itemChild, itemChildIndex) => {
|
|
184
189
|
return h(resolveComponent("AAccordionItem"), {
|
package/src/AGet/AGet.js
CHANGED
|
@@ -8,7 +8,8 @@ import AFiltersAPI from "../compositionAPI/AFiltersAPI";
|
|
|
8
8
|
import {
|
|
9
9
|
forEach,
|
|
10
10
|
get,
|
|
11
|
-
isArray,
|
|
11
|
+
isArray,
|
|
12
|
+
isFunction,
|
|
12
13
|
isUndefined,
|
|
13
14
|
} from "lodash-es";
|
|
14
15
|
|
|
@@ -45,7 +46,7 @@ export default {
|
|
|
45
46
|
default: undefined,
|
|
46
47
|
},
|
|
47
48
|
filterParameters: {
|
|
48
|
-
type: Object,
|
|
49
|
+
type: [Object, String, Number],
|
|
49
50
|
required: false,
|
|
50
51
|
default: () => {},
|
|
51
52
|
},
|