|
@@ -4,7 +4,7 @@
|
|
|
<el-form-item :prop="group.key" :label="group.title" class="form-item-condition">
|
|
|
<mx-condition-button-group v-if="!group.template" :condition="group" @conditionChanged="conditionChangedAction">
|
|
|
</mx-condition-button-group>
|
|
|
- <slot name="group.template" :condition="group"></slot>
|
|
|
+ <slot :name="group.template" :condition="group"></slot>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-form>
|
|
@@ -44,6 +44,11 @@ export default {
|
|
|
fillRequiresWhenInit: true
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ groupedConditions() {
|
|
|
+ return this.conditionsOutput?.groupBy(c => c.groupName || c.key) || []
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
conditionChangedAction(key, value) {
|
|
|
this.conditionChanged(key, value)
|