|
|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
- <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal">
|
|
|
+ <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :refresh="refresh">
|
|
|
<app-view class="g-form">
|
|
|
<template #header>
|
|
|
- <app-navbar :title="$t('banksign.tips14')">
|
|
|
+ <app-navbar :title="$t('banksign.tips14')" @back="closed">
|
|
|
<template #footer>
|
|
|
<Form action="/">
|
|
|
<Search :placeholder="$t('banksign.tips15')" v-model="keyword" />
|
|
|
@@ -45,6 +45,7 @@ const props = defineProps({
|
|
|
const emit = defineEmits(['update:show', 'change'])
|
|
|
const keyword = shallowRef('')
|
|
|
const checked = shallowRef<Model.HybridBank>()
|
|
|
+const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
|
|
|
|
const showModal = computed({
|
|
|
get: () => props.show,
|
|
|
@@ -65,4 +66,15 @@ const onChange = (item: Model.HybridBank) => {
|
|
|
showModal.value = false
|
|
|
emit('change', toRaw(item))
|
|
|
}
|
|
|
+
|
|
|
+// 关闭弹窗
|
|
|
+const closed = (isRefresh = false) => {
|
|
|
+ refresh.value = isRefresh
|
|
|
+ showModal.value = false
|
|
|
+}
|
|
|
+
|
|
|
+// 暴露组件属性给父组件调用
|
|
|
+defineExpose({
|
|
|
+ closed,
|
|
|
+})
|
|
|
</script>
|