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

update:更新

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