Skip to content

Commit

Permalink
releases 4.0.35
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 26, 2024
1 parent a819758 commit 8e35da1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.0.33",
"version": "4.0.35",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down Expand Up @@ -64,7 +64,7 @@
"vue": "3.4.27",
"vue-i18n": "^9.13.1",
"vue-router": "^4.3.2",
"vxe-table": "^4.7.33"
"vxe-table": "^4.7.36"
},
"vetur": {
"tags": "helper/vetur/tags.json",
Expand Down
2 changes: 2 additions & 0 deletions packages/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import VxeTreeSelect from './tree-select'
import VxeUpload from './upload'

import { saveLocalFile, readLocalFile } from './upload/src/util'
import { printHtml } from './print/src/util'

const components = [
VxeAlert,
Expand Down Expand Up @@ -148,6 +149,7 @@ setTheme('light')
// 兼容老版本
export const modal = ModalController
export const drawer = DrawerController
export const print = printHtml
export const saveFile = saveLocalFile
export const readFile = readLocalFile

Expand Down
4 changes: 2 additions & 2 deletions packages/modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function openMessage (content: VxeModalPropTypes.Content | VxeModalDefines.Modal
}, content, '', options)
}

function openNotification (content: VxeModalPropTypes.Content | VxeModalDefines.ModalOptions, options?: VxeModalDefines.ModalOptions) {
function openNotification (content: VxeModalPropTypes.Content | VxeModalDefines.ModalOptions, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.ModalOptions) {
return handleOpen({
type: 'notification',
mask: false,
Expand All @@ -96,7 +96,7 @@ function openNotification (content: VxeModalPropTypes.Content | VxeModalDefines.
draggable: false,
position: 'top-right',
width: 320
}, content, '', options)
}, content, title, options)
}

export const ModalController = {
Expand Down
2 changes: 1 addition & 1 deletion types/components/modal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export interface ModalController {
* @param title 标题
* @param options 参数
*/
notification(content: VxeModalPropTypes.Content, options?: VxeModalDefines.NotificationOptions): Promise<ModalEventTypes>
notification(content: VxeModalPropTypes.Content, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.NotificationOptions): Promise<ModalEventTypes>
/**
* 创建消息通知
* @param options 参数
Expand Down

0 comments on commit 8e35da1

Please sign in to comment.