aloha-vue 1.0.102 → 1.0.103
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
|
@@ -26,6 +26,7 @@ export default {
|
|
|
26
26
|
keyLabel: computed(() => this.keyLabel),
|
|
27
27
|
keyContent: computed(() => this.keyContent),
|
|
28
28
|
keyClassBody: computed(() => this.keyClassBody),
|
|
29
|
+
keyIsRender: computed(() => this.keyIsRender),
|
|
29
30
|
readonly: computed(() => this.readonly),
|
|
30
31
|
withGap: computed(() => this.withGap),
|
|
31
32
|
};
|
|
@@ -72,6 +73,11 @@ export default {
|
|
|
72
73
|
required: false,
|
|
73
74
|
default: undefined,
|
|
74
75
|
},
|
|
76
|
+
keyIsRender: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false,
|
|
79
|
+
default: undefined,
|
|
80
|
+
},
|
|
75
81
|
isCaret: {
|
|
76
82
|
type: Boolean,
|
|
77
83
|
required: false,
|
|
@@ -53,6 +53,7 @@ export default {
|
|
|
53
53
|
const parentIndexes = toRef(props, "parentIndexes");
|
|
54
54
|
|
|
55
55
|
const keyClassBody = inject("keyClassBody");
|
|
56
|
+
const keyIsRender = inject("keyIsRender");
|
|
56
57
|
|
|
57
58
|
const classBodyLocal = computed(() => {
|
|
58
59
|
if (keyClassBody.value) {
|
|
@@ -80,10 +81,18 @@ export default {
|
|
|
80
81
|
return indexesForOpen.value.indexOf(currentIndex.value) !== -1;
|
|
81
82
|
});
|
|
82
83
|
|
|
84
|
+
const isRender = computed(() => {
|
|
85
|
+
if (keyIsRender.value) {
|
|
86
|
+
return get(item.value, keyIsRender.value);
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
});
|
|
90
|
+
|
|
83
91
|
return {
|
|
84
92
|
classBodyLocal,
|
|
85
93
|
currentIndex,
|
|
86
94
|
isOpen,
|
|
95
|
+
isRender,
|
|
87
96
|
};
|
|
88
97
|
},
|
|
89
98
|
computed: {
|
|
@@ -160,7 +169,7 @@ export default {
|
|
|
160
169
|
},
|
|
161
170
|
},
|
|
162
171
|
render() {
|
|
163
|
-
return h("div", {
|
|
172
|
+
return this.isRender && h("div", {
|
|
164
173
|
class: "a_accordion__item",
|
|
165
174
|
}, [
|
|
166
175
|
h("div", {
|