提交 c1469c36 编写于 作者: RedPig97's avatar RedPig97

update:更新

上级 c235e785
......@@ -37,15 +37,15 @@ export class PickupView extends MainView {
* @description 取消
* @memberof PickupView
*/
public cancel() {
//todo
public onCancel() {
this.emit('close', []);
}
/**
* @description 确认
* @memberof PickupView
*/
public confirm() {
public onConfirm() {
this.emit('viewEvent', { data: this.selectData, tag: '', action: 'close' })
}
......@@ -74,8 +74,8 @@ export class PickupView extends MainView {
return {
...superParams,
selectData: this.selectData,
cancel: this.cancel.bind(this),
confirm: this.confirm.bind(this)
onCancel: this.onCancel.bind(this),
onConfirm: this.onConfirm.bind(this)
};
}
}
\ No newline at end of file
......@@ -28,7 +28,7 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const { state, cancel, confirm, onCtrlEvent } = new PickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent } = new PickupView(viewState, props, emit).moduleInstall();
</script>
<template>
......@@ -61,8 +61,8 @@ const { state, cancel, confirm, onCtrlEvent } = new PickupView(viewState, props,
{{/page.ctrls}}
<template v-slot:footer>
<a-space class="app-pickup-view--footer">
<a-button @click="cancel">取消</a-button>
<a-button @click="confirm">确认</a-button>
<a-button @click="onConfirm">确认</a-button>
<a-button @click="onCancel">取消</a-button>
</a-space>
</template>
</AppPickUpViewLayout>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册