Skip to content

Commit ddb977c

Browse files
committed
feat(mp-alipay): showToast api 支持 image 和 mask 属性
1 parent 3b7a124 commit ddb977c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/uni-mp-alipay/src/api/protocols.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { hasOwn, isArray, isPlainObject } from '@vue/shared'
1+
import { extend, hasOwn, isArray, isPlainObject } from '@vue/shared'
22

33
import {
44
navigateTo as _navigateTo,
@@ -200,9 +200,6 @@ export function showModal({ showCancel = true }: UniApp.ShowModalOptions = {}) {
200200
export function showToast({ icon = 'success' }: UniApp.ShowToastOptions = {}) {
201201
const args = {
202202
title: 'content',
203-
icon: 'type',
204-
image: false,
205-
mask: false,
206203
}
207204
if (icon === 'loading') {
208205
return {
@@ -212,7 +209,7 @@ export function showToast({ icon = 'success' }: UniApp.ShowToastOptions = {}) {
212209
}
213210
return {
214211
name: 'showToast',
215-
args,
212+
args: extend({ icon: 'type' }, args),
216213
}
217214
}
218215
export const showActionSheet = {

0 commit comments

Comments
 (0)