From 02de2a025705071317583eb4a4e19e7976efc9d7 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Wed, 26 Jun 2024 12:36:29 +0800 Subject: [PATCH] releases 4.0.36 --- package.json | 4 +-- packages/components.ts | 3 -- packages/ui/index.ts | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 22dce47738..8baaf36c6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table", - "version": "4.7.35", + "version": "4.7.36", "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...", "scripts": { "update": "npm install --legacy-peer-deps", @@ -28,7 +28,7 @@ "style": "lib/style.css", "typings": "types/index.d.ts", "dependencies": { - "vxe-pc-ui": "^4.0.33" + "vxe-pc-ui": "^4.0.35" }, "devDependencies": { "@types/resize-observer-browser": "^0.1.11", diff --git a/packages/components.ts b/packages/components.ts index 4adb59dd11..695c8b313b 100644 --- a/packages/components.ts +++ b/packages/components.ts @@ -23,9 +23,6 @@ export function install (app: App, options?: VxeGlobalConfig) { components.forEach(component => component.install(app)) } -export const modal = VxeUI.drawer -export const drawer = VxeUI.drawer - export * from './ui' // Components diff --git a/packages/ui/index.ts b/packages/ui/index.ts index 6c486cc745..dfa5bb4992 100644 --- a/packages/ui/index.ts +++ b/packages/ui/index.ts @@ -303,15 +303,82 @@ export const VXETable = VxeUI VXETable.setup = config VXETable.config = config +/** + * 已废弃,兼容老版本 + * @deprecated + */ export const saveFile: VxeUploadDefines.SaveFileFunction = (options) => { return VxeUI.saveFile(options) } +/** + * 已废弃,兼容老版本 + * @deprecated + */ export const readFile: VxeUploadDefines.ReadFileFunction = (options) => { return VxeUI.readFile(options) } +/** + * 已废弃,兼容老版本 + * @deprecated + */ export const print: VxePrintDefines.PrintFunction = (options) => { return VxeUI.print(options) } +/** + * 已废弃,兼容老版本 + * @deprecated + */ +export const modal = { + /** + * 已废弃,兼容老版本 + * @deprecated + */ + get (id: any) { + return VxeUI.modal.get(id) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + close (id: any) { + return VxeUI.modal.close(id) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + open (options: any) { + return VxeUI.modal.open(options) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + alert (content: any, title: any, options: any) { + return VxeUI.modal.alert(content, title, options) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + confirm (content: any, title: any, options: any) { + return VxeUI.modal.confirm(content, title, options) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + message (content: any, options: any) { + return VxeUI.modal.message(content, options) + }, + /** + * 已废弃,兼容老版本 + * @deprecated + */ + notification (content: any, title: any, options: any) { + return VxeUI.modal.notification(content, title, options) + } +} export { VxeUI