You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

1 year ago
<template>
<q-splitter :model-value="70" class="w-full" style="height: 100%">
<template #before>
<div class="pr-1" style="height: 100%">
<IndepFactorDefine
ref="factorDefineTreeGridRef"
@row-click="
1 year ago
(args) => {
currentSelectedFactorDefineRef = args.row;
1 year ago
factorGridRef.refresh();
}
"
@before-request-data="
() => {
currentSelectedFactorDefineRef = {};
factorGridRef.refresh();
}
"
></IndepFactorDefine>
</div>
</template>
<template #after>
<IndepFactor ref="factorGridRef" :factor-define="currentSelectedFactorDefineRef"></IndepFactor>
</template>
</q-splitter>
</template>
<script setup lang="ts">
import 'tailwindcss/utilities.css';
1 year ago
import { ref } from 'vue';
import IndepFactorDefine from './IndepFactorDefine.vue';
import IndepFactor from './IndepFactor.vue';
const factorDefineTreeGridRef = ref();
const currentSelectedFactorDefineRef = ref();
const factorGridRef = ref();
</script>