アプリからフィールド選択UI追加

This commit is contained in:
2024-04-25 09:46:34 +09:00
parent 1a48fb5b20
commit 0de33f04bc
6 changed files with 106 additions and 93 deletions

View File

@@ -17,7 +17,7 @@
</div>
</template>
<script lang="ts">
import { ref, onMounted, reactive, watch } from 'vue'
import { ref, onMounted, reactive, watchEffect } from 'vue'
import { api } from 'boot/axios';
export default {
@@ -41,11 +41,9 @@ export default {
const rows: any[] = reactive([]);
const selected = ref([])
const updateExternalSelectAppInfo = props.updateExternalSelectAppInfo
watch(selected, (newValue, oldValue) => {
if (newValue && newValue[0] && updateExternalSelectAppInfo) {
updateExternalSelectAppInfo(newValue[0])
watchEffect(()=>{
if (selected.value && selected.value[0] && props.updateExternalSelectAppInfo) {
props.updateExternalSelectAppInfo(selected.value[0])
}
});
onMounted(() => {
@@ -99,4 +97,4 @@ export default {
min-height: 300px;
min-width: 400px;
}
</style>
</style>