diff --git a/package.json b/package.json index 22dce4773..8baaf36c6 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 4adb59dd1..695c8b313 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 6c486cc74..dfa5bb499 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