订单详情完善
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
import {
|
||||
ref,
|
||||
defineProps,
|
||||
defineExpose,
|
||||
defineEmits
|
||||
} from 'vue';
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
});
|
||||
|
||||
// 定义向父组件发送事件
|
||||
const emits = defineEmits(['inputComplete', 'close']);
|
||||
const emits = defineEmits(['inputComplete', 'close', 'closeModal']);
|
||||
|
||||
// 存储输入的密码
|
||||
const password = ref('');
|
||||
@@ -56,6 +57,10 @@
|
||||
emits('close');
|
||||
password.value = '';
|
||||
};
|
||||
// 将方法暴露给父组件
|
||||
defineExpose({
|
||||
closeModal
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user