Skip to content

Commit

Permalink
releases 4.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 14, 2024
1 parent 5551c9d commit f234dd0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.0.13-beta.0",
"version": "4.0.13",
"description": "A vue based PC side component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
5 changes: 4 additions & 1 deletion packages/upload/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export const readLocalFile: VxeUploadDefines.ReadFileFunction = (options) => {
} else {
if (opts.message !== false) {
if (VxeUI.modal) {
VxeUI.modal.message({ content: getI18n('vxe.error.notType', [errType]), status: 'error' })
VxeUI.modal.message({
content: getI18n('vxe.error.notType', [errType]),
status: 'error'
})
}
}
const params = { status: false, files, file }
Expand Down
4 changes: 2 additions & 2 deletions types/components/modal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ export namespace VxeModalDefines {
key?: string | number
}

export interface MessageOptions extends Pick<VxeModalProps, 'type' | 'content' | 'message' | 'duration' | 'width' | 'height' | 'status' | 'iconStatus' | 'loading' | 'id' | 'slots'>, VxeModalEventProps {
export interface MessageOptions extends Omit<VxeModalProps, 'type'>, VxeModalEventProps {
key?: string | number
}

export interface NotificationOptions extends Pick<VxeModalProps, 'type' | 'content' | 'message' | 'duration' | 'width' | 'height' | 'title' | 'showHeader' | 'status' | 'iconStatus' | 'loading' | 'id' | 'slots'>, VxeModalEventProps {
export interface NotificationOptions extends Omit<VxeModalProps, 'type'>, VxeModalEventProps {
key?: string | number
}

Expand Down
7 changes: 6 additions & 1 deletion types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2733,11 +2733,16 @@ export interface TableMethods<DT = any> {
* 获取待删除状态的数据
*/
getPendingRecords(): DT[]
/**
* 请使用 isPendingByRow
* @deprecated
*/
hasPendingByRow(row: any): boolean
/**
* 判断行是否为待删除状态
* @param row 指定行
*/
hasPendingByRow(row: any): boolean
isPendingByRow(row: any): boolean
/**
* 清除所有标记状态
*/
Expand Down

0 comments on commit f234dd0

Please sign in to comment.