ele-admin-plus 1.1.9-beta.9 → 1.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core-export.d.ts +1 -0
- package/es/core-export.js +1 -0
- package/es/core-installer.d.ts +2 -2
- package/es/ele-alert/index.d.ts +23 -23
- package/es/ele-alert/index.js +2 -2
- package/es/ele-alert/props.d.ts +10 -9
- package/es/ele-app/components/message-body.d.ts +39 -0
- package/es/ele-app/components/message-body.js +92 -0
- package/es/ele-app/el.d.ts +4 -1
- package/es/ele-app/index.d.ts +2 -2
- package/es/ele-app/style/message/css-var.scss +0 -4
- package/es/ele-app/style/message/index.scss +199 -77
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/es/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/es/ele-app/style/overwrite/tag/index.scss +57 -14
- package/es/ele-app/types.d.ts +6 -1
- package/es/ele-avatar-group/index.d.ts +29 -28
- package/es/ele-avatar-group/props.d.ts +10 -9
- package/es/ele-bar-code/index.d.ts +11 -10
- package/es/ele-bar-code/props.d.ts +4 -3
- package/es/ele-basic-select/index.d.ts +37 -35
- package/es/ele-basic-select/index.js +24 -7
- package/es/ele-basic-select/props.d.ts +9 -8
- package/es/ele-basic-select/util.d.ts +2 -1
- package/es/ele-bottom-bar/index.d.ts +6 -6
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-breadcrumb/index.d.ts +11 -10
- package/es/ele-breadcrumb/props.d.ts +5 -4
- package/es/ele-card/index.d.ts +12 -12
- package/es/ele-card/props.d.ts +7 -6
- package/es/ele-check-card/components/card-item.d.ts +7 -6
- package/es/ele-check-card/index.d.ts +15 -14
- package/es/ele-check-card/props.d.ts +6 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/es/ele-config-provider/components/receiver-view.js +120 -31
- package/es/ele-config-provider/index.d.ts +13 -9
- package/es/ele-config-provider/index.js +19 -5
- package/es/ele-config-provider/props.d.ts +12 -6
- package/es/ele-config-provider/props.js +9 -5
- package/es/ele-config-provider/receiver.d.ts +6 -10
- package/es/ele-config-provider/receiver.js +32 -117
- package/es/ele-config-provider/types.d.ts +25 -30
- package/es/ele-copyable/index.d.ts +32 -31
- package/es/ele-copyable/props.d.ts +9 -8
- package/es/ele-count-up/index.d.ts +8 -7
- package/es/ele-count-up/props.d.ts +3 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/es/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/es/ele-cropper/index.d.ts +16 -15
- package/es/ele-cropper/props.d.ts +4 -3
- package/es/ele-cropper-modal/index.d.ts +16 -15
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-cropper-modal/props.d.ts +7 -6
- package/es/ele-dashboard/index.d.ts +5 -5
- package/es/ele-dashboard/props.d.ts +3 -2
- package/es/ele-data-table/index.d.ts +63 -68
- package/es/ele-data-table/props.d.ts +36 -41
- package/es/ele-data-table/types.d.ts +10 -16
- package/es/ele-data-table/util.d.ts +10 -9
- package/es/ele-dot/index.d.ts +4 -4
- package/es/ele-dot/props.d.ts +3 -2
- package/es/ele-drawer/index.d.ts +76 -72
- package/es/ele-drawer/index.js +107 -113
- package/es/ele-drawer/props.d.ts +26 -25
- package/es/ele-drawer/style/index.scss +48 -105
- package/es/ele-dropdown/index.d.ts +66 -65
- package/es/ele-dropdown/props.d.ts +22 -21
- package/es/ele-edit-tag/index.d.ts +40 -34
- package/es/ele-edit-tag/index.js +5 -3
- package/es/ele-edit-tag/props.d.ts +12 -9
- package/es/ele-edit-tag/props.js +2 -0
- package/es/ele-edit-tag/style/index.scss +11 -4
- package/es/ele-ellipsis/index.d.ts +23 -22
- package/es/ele-ellipsis/props.d.ts +8 -7
- package/es/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/es/ele-file-list/components/file-grid-item.js +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +10 -9
- package/es/ele-file-list/components/file-sort.d.ts +2 -2
- package/es/ele-file-list/components/file-table-item.d.ts +13 -12
- package/es/ele-file-list/components/file-table-item.js +1 -1
- package/es/ele-file-list/components/file-table.d.ts +10 -9
- package/es/ele-file-list/icons.d.ts +2 -1
- package/es/ele-file-list/index.d.ts +36 -35
- package/es/ele-file-list/props.d.ts +6 -5
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-icon-select/index.d.ts +59 -60
- package/es/ele-icon-select/props.d.ts +18 -17
- package/es/ele-loading/index.d.ts +12 -15
- package/es/ele-loading/index.js +10 -16
- package/es/ele-loading/props.d.ts +5 -4
- package/es/ele-map-picker/components/map-view.d.ts +29 -28
- package/es/ele-map-picker/components/map-view.js +1 -1
- package/es/ele-map-picker/index.d.ts +27 -26
- package/es/ele-map-picker/index.js +1 -1
- package/es/ele-map-picker/props.d.ts +8 -7
- package/es/ele-menus/index.d.ts +62 -63
- package/es/ele-menus/index.js +12 -1
- package/es/ele-menus/props.d.ts +16 -17
- package/es/ele-menus/props.js +1 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-menus/util.d.ts +3 -2
- package/es/ele-modal/index.d.ts +77 -70
- package/es/ele-modal/index.js +164 -186
- package/es/ele-modal/props.d.ts +26 -23
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +87 -146
- package/es/ele-modal/util.d.ts +20 -45
- package/es/ele-modal/util.js +54 -180
- package/es/ele-page/index.d.ts +2 -2
- package/es/ele-page/props.d.ts +2 -1
- package/es/ele-pagination/index.d.ts +40 -31
- package/es/ele-pagination/index.js +4 -1
- package/es/ele-pagination/props.d.ts +17 -11
- package/es/ele-pagination/props.js +5 -0
- package/es/ele-popconfirm/index.d.ts +93 -92
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +33 -32
- package/es/ele-popover/index.d.ts +71 -70
- package/es/ele-popover/index.js +6 -14
- package/es/ele-popover/props.d.ts +26 -25
- package/es/ele-printer/index.d.ts +18 -18
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/util.d.ts +2 -1
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +85 -29
- package/es/ele-pro-layout/components/pro-header.js +110 -20
- package/es/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/es/ele-pro-layout/components/pro-iframe.js +31 -41
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +15 -19
- package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
- package/es/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
- package/es/ele-pro-layout/index.d.ts +97 -97
- package/es/ele-pro-layout/index.js +63 -48
- package/es/ele-pro-layout/props.d.ts +11 -13
- package/es/ele-pro-layout/props.js +2 -4
- package/es/ele-pro-layout/style/css-var.scss +3 -18
- package/es/ele-pro-layout/style/header.scss +74 -9
- package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/es/ele-pro-layout/style/layout-style.scss +8 -3
- package/es/ele-pro-layout/style/layout-theme.scss +48 -23
- package/es/ele-pro-layout/style/layout.scss +38 -8
- package/es/ele-pro-layout/style/sidebar.scss +0 -1
- package/es/ele-pro-layout/style/tabs.scss +19 -11
- package/es/ele-pro-layout/types.d.ts +5 -5
- package/es/ele-pro-layout/util.d.ts +6 -6
- package/es/ele-pro-layout/util.js +2 -3
- package/es/ele-pro-table/components/table-tools.d.ts +33 -23
- package/es/ele-pro-table/components/table-tools.js +14 -26
- package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/es/ele-pro-table/components/tool-column-list.js +3 -7
- package/es/ele-pro-table/components/tool-column.d.ts +15 -13
- package/es/ele-pro-table/components/tool-column.js +3 -7
- package/es/ele-pro-table/components/tool-export.d.ts +52 -357
- package/es/ele-pro-table/components/tool-export.js +109 -63
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-body-cell.js +50 -6
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-header-cell.js +4 -1
- package/es/ele-pro-table/components/tool-print.d.ts +56 -794
- package/es/ele-pro-table/components/tool-print.js +198 -85
- package/es/ele-pro-table/index.d.ts +131 -143
- package/es/ele-pro-table/index.js +110 -79
- package/es/ele-pro-table/props.d.ts +44 -46
- package/es/ele-pro-table/style/index.scss +9 -0
- package/es/ele-pro-table/types.d.ts +45 -0
- package/es/ele-pro-table/util.d.ts +42 -23
- package/es/ele-pro-table/util.js +206 -53
- package/es/ele-qr-code/index.d.ts +16 -15
- package/es/ele-qr-code/props.d.ts +4 -3
- package/es/ele-qr-code/util.d.ts +3 -2
- package/es/ele-qr-code-svg/index.d.ts +18 -18
- package/es/ele-segmented/index.d.ts +10 -9
- package/es/ele-segmented/props.d.ts +3 -2
- package/es/ele-split-panel/index.d.ts +18 -17
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-steps/index.d.ts +33 -33
- package/es/ele-steps/props.d.ts +10 -9
- package/es/ele-tab-tool/index.d.ts +2 -2
- package/es/ele-tab-tool/props.d.ts +2 -1
- package/es/ele-tab-wrap/index.d.ts +6 -6
- package/es/ele-tab-wrap/index.js +2 -1
- package/es/ele-tab-wrap/props.d.ts +3 -2
- package/es/ele-table/index.d.ts +4 -4
- package/es/ele-table/props.d.ts +3 -2
- package/es/ele-table/style/index.scss +16 -0
- package/es/ele-table-select/index.d.ts +45 -43
- package/es/ele-table-select/index.js +29 -27
- package/es/ele-table-select/props.d.ts +11 -10
- package/es/ele-tabs/components/tab-title.d.ts +9 -8
- package/es/ele-tabs/index.d.ts +43 -55
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-tabs/props.d.ts +17 -23
- package/es/ele-tabs/style/css-var.scss +1 -30
- package/es/ele-tabs/style/index.scss +372 -241
- package/es/ele-tabs/types.d.ts +2 -1
- package/es/ele-text/index.d.ts +12 -12
- package/es/ele-text/props.d.ts +5 -4
- package/es/ele-tool/index.d.ts +7 -7
- package/es/ele-tool/props.d.ts +3 -2
- package/es/ele-toolbar/index.d.ts +15 -15
- package/es/ele-toolbar/props.d.ts +7 -6
- package/es/ele-tooltip/index.d.ts +62 -61
- package/es/ele-tooltip/index.js +3 -0
- package/es/ele-tooltip/props.d.ts +28 -22
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-tour/index.d.ts +15 -14
- package/es/ele-tour/props.d.ts +3 -2
- package/es/ele-tour/util.d.ts +3 -2
- package/es/ele-tree-select/index.d.ts +37 -36
- package/es/ele-tree-select/props.d.ts +12 -11
- package/es/ele-tree-select/util.d.ts +3 -2
- package/es/ele-upload-list/components/list-item.d.ts +7 -6
- package/es/ele-upload-list/index.d.ts +26 -25
- package/es/ele-upload-list/props.d.ts +6 -5
- package/es/ele-virtual-table/components/body-cell.d.ts +100 -64
- package/es/ele-virtual-table/components/body-cell.js +52 -70
- package/es/ele-virtual-table/components/body-row.d.ts +89 -65
- package/es/ele-virtual-table/components/body-row.js +57 -52
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/es/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/es/ele-virtual-table/components/cell-filter.js +8 -12
- package/es/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/es/ele-virtual-table/components/expand-row.js +3 -3
- package/es/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/es/ele-virtual-table/components/footer-row.js +19 -14
- package/es/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/es/ele-virtual-table/components/header-row.d.ts +12 -11
- package/es/ele-virtual-table/index.d.ts +91 -100
- package/es/ele-virtual-table/index.js +134 -136
- package/es/ele-virtual-table/props.d.ts +49 -51
- package/es/ele-virtual-table/style/index.scss +1 -1
- package/es/ele-virtual-table/types.d.ts +88 -68
- package/es/ele-virtual-table/util.d.ts +16 -12
- package/es/ele-virtual-table/util.js +32 -24
- package/es/ele-watermark/index.d.ts +15 -14
- package/es/ele-watermark/props.d.ts +4 -3
- package/es/ele-watermark/util.d.ts +3 -2
- package/es/ele-xg-player/index.d.ts +10 -10
- package/es/icons/AnalysisOutlined.d.ts +1 -1
- package/es/icons/ApplicationOutlined.d.ts +1 -1
- package/es/icons/AppstoreAddOutlined.d.ts +1 -1
- package/es/icons/AppstoreOutlined.d.ts +1 -1
- package/es/icons/ArrowDown.d.ts +1 -1
- package/es/icons/ArrowDownOutlined.d.ts +1 -1
- package/es/icons/ArrowLeft.d.ts +1 -1
- package/es/icons/ArrowLeftOutlined.d.ts +1 -1
- package/es/icons/ArrowRight.d.ts +1 -1
- package/es/icons/ArrowRightOutlined.d.ts +1 -1
- package/es/icons/ArrowUp.d.ts +1 -1
- package/es/icons/ArrowUpOutlined.d.ts +1 -1
- package/es/icons/BellOutlined.d.ts +1 -1
- package/es/icons/BookOutlined.d.ts +1 -1
- package/es/icons/CalendarOutlined.d.ts +1 -1
- package/es/icons/CaretDownFilled.d.ts +1 -1
- package/es/icons/CaretUpFilled.d.ts +1 -1
- package/es/icons/CheckCircleFilled.d.ts +1 -1
- package/es/icons/CheckCircleOutlined.d.ts +1 -1
- package/es/icons/CheckOutlined.d.ts +1 -1
- package/es/icons/CityOutlined.d.ts +1 -1
- package/es/icons/ClockCircleOutlined.d.ts +1 -1
- package/es/icons/CloseCircleFilled.d.ts +1 -1
- package/es/icons/CloseCircleOutlined.d.ts +1 -1
- package/es/icons/CloseOutlined.d.ts +1 -1
- package/es/icons/CloudUploadOutlined.d.ts +1 -1
- package/es/icons/ClusterOutlined.d.ts +1 -1
- package/es/icons/CodeOutlined.d.ts +1 -1
- package/es/icons/ColumnHeightOutlined.d.ts +1 -1
- package/es/icons/CompassOutlined.d.ts +1 -1
- package/es/icons/CompressOutlined.d.ts +1 -1
- package/es/icons/ConnectionOutlined.d.ts +1 -1
- package/es/icons/ControlOutlined.d.ts +1 -1
- package/es/icons/CopyOutlined.d.ts +1 -1
- package/es/icons/CpuOutlined.d.ts +1 -1
- package/es/icons/DashboardOutlined.d.ts +1 -1
- package/es/icons/DatabaseOutlined.d.ts +1 -1
- package/es/icons/DeleteOutlined.d.ts +1 -1
- package/es/icons/DesktopOutlined.d.ts +1 -1
- package/es/icons/DownloadOutlined.d.ts +1 -1
- package/es/icons/DragOutlined.d.ts +1 -1
- package/es/icons/EditOutlined.d.ts +1 -1
- package/es/icons/EllipsisOutlined.d.ts +1 -1
- package/es/icons/EnvironmentOutlined.d.ts +1 -1
- package/es/icons/ExclamationCircleFilled.d.ts +1 -1
- package/es/icons/ExpandOutlined.d.ts +1 -1
- package/es/icons/FileOutlined.d.ts +1 -1
- package/es/icons/FilterFilled.d.ts +1 -1
- package/es/icons/FolderAddOutlined.d.ts +1 -1
- package/es/icons/FolderOutlined.d.ts +1 -1
- package/es/icons/FormOutlined.d.ts +1 -1
- package/es/icons/FullscreenExitOutlined.d.ts +1 -1
- package/es/icons/FullscreenOutlined.d.ts +1 -1
- package/es/icons/FundOutlined.d.ts +1 -1
- package/es/icons/GlobalOutlined.d.ts +1 -1
- package/es/icons/HolderOutlined.d.ts +1 -1
- package/es/icons/HomeOutlined.d.ts +1 -1
- package/es/icons/IdcardOutlined.d.ts +1 -1
- package/es/icons/InfoCircleFilled.d.ts +1 -1
- package/es/icons/LinkOutlined.d.ts +1 -1
- package/es/icons/LoadingDotOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.js +1 -1
- package/es/icons/LockOutlined.d.ts +1 -1
- package/es/icons/LogOutlined.d.ts +1 -1
- package/es/icons/LogoutOutlined.d.ts +1 -1
- package/es/icons/MailOutlined.d.ts +1 -1
- package/es/icons/MenuFoldOutlined.d.ts +1 -1
- package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/es/icons/MessageOutlined.d.ts +1 -1
- package/es/icons/MinusCircleOutlined.d.ts +1 -1
- package/es/icons/MobileOutlined.d.ts +1 -1
- package/es/icons/MoonOutlined.d.ts +1 -1
- package/es/icons/MoreOutlined.d.ts +1 -1
- package/es/icons/PauseFilled.d.ts +1 -1
- package/es/icons/PieChartOutlined.d.ts +1 -1
- package/es/icons/PlayFilled.d.ts +1 -1
- package/es/icons/PlusCircleOutlined.d.ts +1 -1
- package/es/icons/PlusOutlined.d.ts +1 -1
- package/es/icons/PrinterOutlined.d.ts +1 -1
- package/es/icons/ProtectOutlined.d.ts +1 -1
- package/es/icons/QuestionCircleFilled.d.ts +1 -1
- package/es/icons/QuestionCircleOutlined.d.ts +1 -1
- package/es/icons/ReloadOutlined.d.ts +1 -1
- package/es/icons/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- package/es/icons/SearchOutlined.d.ts +1 -1
- package/es/icons/SettingOutlined.d.ts +1 -1
- package/es/icons/ShoppingOutlined.d.ts +1 -1
- package/es/icons/SortOutlined.d.ts +1 -1
- package/es/icons/StarFilled.d.ts +1 -1
- package/es/icons/StepBackwardFilled.d.ts +1 -1
- package/es/icons/StepForwardFilled.d.ts +1 -1
- package/es/icons/SuitcaseOutlined.d.ts +1 -1
- package/es/icons/SunOutlined.d.ts +1 -1
- package/es/icons/SwapOutlined.d.ts +1 -1
- package/es/icons/SyncOutlined.d.ts +1 -1
- package/es/icons/TableOutlined.d.ts +1 -1
- package/es/icons/TagOutlined.d.ts +1 -1
- package/es/icons/TimerOutlined.d.ts +1 -1
- package/es/icons/UndoOutlined.d.ts +1 -1
- package/es/icons/UnlockOutlined.d.ts +1 -1
- package/es/icons/UploadOutlined.d.ts +1 -1
- package/es/icons/UserOutlined.d.ts +1 -1
- package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.d.ts +1 -1
- package/es/icons/VerticalRightOutlined.d.ts +1 -1
- package/es/icons/WarningOutlined.d.ts +1 -1
- package/es/icons/ZoomInOutlined.d.ts +1 -1
- package/es/icons/ZoomOutOutlined.d.ts +1 -1
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +50 -48
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/en_US.js +7 -1
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +7 -1
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +7 -1
- package/es/style/nprogress.scss +1 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +140 -166
- package/es/style/themes/rounded.scss +27 -45
- package/es/utils/core.d.ts +7 -0
- package/es/utils/core.js +16 -2
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/menu-util.js +2 -5
- package/es/utils/message-box.d.ts +25 -0
- package/es/utils/message-box.js +71 -0
- package/es/utils/message.d.ts +45 -20
- package/es/utils/message.js +220 -37
- package/es/utils/resolvers.d.ts +2 -2
- package/lib/core-export.cjs +8 -0
- package/lib/core-export.d.ts +1 -0
- package/lib/core-installer.d.ts +2 -2
- package/lib/ele-alert/index.cjs +2 -2
- package/lib/ele-alert/index.d.ts +23 -23
- package/lib/ele-alert/props.d.ts +10 -9
- package/lib/ele-app/components/message-body.cjs +91 -0
- package/lib/ele-app/components/message-body.d.ts +39 -0
- package/lib/ele-app/el.d.ts +4 -1
- package/lib/ele-app/index.d.ts +2 -2
- package/lib/ele-app/style/message/css-var.scss +0 -4
- package/lib/ele-app/style/message/index.scss +199 -77
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/lib/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/lib/ele-app/style/overwrite/tag/index.scss +57 -14
- package/lib/ele-app/types.d.ts +6 -1
- package/lib/ele-avatar-group/index.d.ts +29 -28
- package/lib/ele-avatar-group/props.d.ts +10 -9
- package/lib/ele-bar-code/index.d.ts +11 -10
- package/lib/ele-bar-code/props.d.ts +4 -3
- package/lib/ele-basic-select/index.cjs +23 -6
- package/lib/ele-basic-select/index.d.ts +37 -35
- package/lib/ele-basic-select/props.d.ts +9 -8
- package/lib/ele-basic-select/util.d.ts +2 -1
- package/lib/ele-bottom-bar/index.d.ts +6 -6
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-breadcrumb/index.d.ts +11 -10
- package/lib/ele-breadcrumb/props.d.ts +5 -4
- package/lib/ele-card/index.d.ts +12 -12
- package/lib/ele-card/props.d.ts +7 -6
- package/lib/ele-check-card/components/card-item.d.ts +7 -6
- package/lib/ele-check-card/index.d.ts +15 -14
- package/lib/ele-check-card/props.d.ts +6 -5
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -44
- package/lib/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/lib/ele-config-provider/index.cjs +18 -4
- package/lib/ele-config-provider/index.d.ts +13 -9
- package/lib/ele-config-provider/props.cjs +9 -5
- package/lib/ele-config-provider/props.d.ts +12 -6
- package/lib/ele-config-provider/receiver.cjs +41 -2
- package/lib/ele-config-provider/receiver.d.ts +6 -10
- package/lib/ele-config-provider/types.d.ts +25 -30
- package/lib/ele-copyable/index.d.ts +32 -31
- package/lib/ele-copyable/props.d.ts +9 -8
- package/lib/ele-count-up/index.d.ts +8 -7
- package/lib/ele-count-up/props.d.ts +3 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/lib/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/lib/ele-cropper/index.d.ts +16 -15
- package/lib/ele-cropper/props.d.ts +4 -3
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-cropper-modal/index.d.ts +16 -15
- package/lib/ele-cropper-modal/props.d.ts +7 -6
- package/lib/ele-dashboard/index.d.ts +5 -5
- package/lib/ele-dashboard/props.d.ts +3 -2
- package/lib/ele-data-table/index.d.ts +63 -68
- package/lib/ele-data-table/props.d.ts +36 -41
- package/lib/ele-data-table/types.d.ts +10 -16
- package/lib/ele-data-table/util.d.ts +10 -9
- package/lib/ele-dot/index.d.ts +4 -4
- package/lib/ele-dot/props.d.ts +3 -2
- package/lib/ele-drawer/index.cjs +105 -111
- package/lib/ele-drawer/index.d.ts +76 -72
- package/lib/ele-drawer/props.d.ts +26 -25
- package/lib/ele-drawer/style/index.scss +48 -105
- package/lib/ele-dropdown/index.d.ts +66 -65
- package/lib/ele-dropdown/props.d.ts +22 -21
- package/lib/ele-edit-tag/index.cjs +5 -3
- package/lib/ele-edit-tag/index.d.ts +40 -34
- package/lib/ele-edit-tag/props.cjs +2 -0
- package/lib/ele-edit-tag/props.d.ts +12 -9
- package/lib/ele-edit-tag/style/index.scss +11 -4
- package/lib/ele-ellipsis/index.d.ts +23 -22
- package/lib/ele-ellipsis/props.d.ts +8 -7
- package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
- package/lib/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-grid.d.ts +10 -9
- package/lib/ele-file-list/components/file-sort.d.ts +2 -2
- package/lib/ele-file-list/components/file-table-item.cjs +1 -1
- package/lib/ele-file-list/components/file-table-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-table.d.ts +10 -9
- package/lib/ele-file-list/icons.d.ts +2 -1
- package/lib/ele-file-list/index.d.ts +36 -35
- package/lib/ele-file-list/props.d.ts +6 -5
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/lib/ele-icon-select/index.d.ts +59 -60
- package/lib/ele-icon-select/props.d.ts +18 -17
- package/lib/ele-loading/index.cjs +9 -15
- package/lib/ele-loading/index.d.ts +12 -15
- package/lib/ele-loading/props.d.ts +5 -4
- package/lib/ele-map-picker/components/map-view.cjs +1 -1
- package/lib/ele-map-picker/components/map-view.d.ts +29 -28
- package/lib/ele-map-picker/index.cjs +1 -1
- package/lib/ele-map-picker/index.d.ts +27 -26
- package/lib/ele-map-picker/props.d.ts +8 -7
- package/lib/ele-menus/index.cjs +12 -1
- package/lib/ele-menus/index.d.ts +62 -63
- package/lib/ele-menus/props.cjs +1 -3
- package/lib/ele-menus/props.d.ts +16 -17
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-menus/util.d.ts +3 -2
- package/lib/ele-modal/index.cjs +176 -198
- package/lib/ele-modal/index.d.ts +77 -70
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +26 -23
- package/lib/ele-modal/style/index.scss +87 -146
- package/lib/ele-modal/util.cjs +53 -179
- package/lib/ele-modal/util.d.ts +20 -45
- package/lib/ele-page/index.d.ts +2 -2
- package/lib/ele-page/props.d.ts +2 -1
- package/lib/ele-pagination/index.cjs +4 -1
- package/lib/ele-pagination/index.d.ts +40 -31
- package/lib/ele-pagination/props.cjs +5 -0
- package/lib/ele-pagination/props.d.ts +17 -11
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +93 -92
- package/lib/ele-popconfirm/props.d.ts +33 -32
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +71 -70
- package/lib/ele-popover/props.d.ts +26 -25
- package/lib/ele-printer/index.d.ts +18 -18
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/util.d.ts +2 -1
- package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
- package/lib/ele-pro-layout/components/pro-header.d.ts +85 -29
- package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +15 -19
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/lib/ele-pro-layout/index.cjs +62 -47
- package/lib/ele-pro-layout/index.d.ts +97 -97
- package/lib/ele-pro-layout/props.cjs +2 -4
- package/lib/ele-pro-layout/props.d.ts +11 -13
- package/lib/ele-pro-layout/style/css-var.scss +3 -18
- package/lib/ele-pro-layout/style/header.scss +74 -9
- package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/lib/ele-pro-layout/style/layout-style.scss +8 -3
- package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
- package/lib/ele-pro-layout/style/layout.scss +38 -8
- package/lib/ele-pro-layout/style/sidebar.scss +0 -1
- package/lib/ele-pro-layout/style/tabs.scss +19 -11
- package/lib/ele-pro-layout/types.d.ts +5 -5
- package/lib/ele-pro-layout/util.cjs +2 -3
- package/lib/ele-pro-layout/util.d.ts +6 -6
- package/lib/ele-pro-table/components/table-tools.cjs +14 -26
- package/lib/ele-pro-table/components/table-tools.d.ts +33 -23
- package/lib/ele-pro-table/components/tool-column-list.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/lib/ele-pro-table/components/tool-column.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column.d.ts +15 -13
- package/lib/ele-pro-table/components/tool-export.cjs +107 -61
- package/lib/ele-pro-table/components/tool-export.d.ts +52 -357
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +49 -5
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +4 -1
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print.cjs +195 -82
- package/lib/ele-pro-table/components/tool-print.d.ts +56 -794
- package/lib/ele-pro-table/index.cjs +108 -77
- package/lib/ele-pro-table/index.d.ts +131 -143
- package/lib/ele-pro-table/props.d.ts +44 -46
- package/lib/ele-pro-table/style/index.scss +9 -0
- package/lib/ele-pro-table/types.d.ts +45 -0
- package/lib/ele-pro-table/util.cjs +205 -52
- package/lib/ele-pro-table/util.d.ts +42 -23
- package/lib/ele-qr-code/index.d.ts +16 -15
- package/lib/ele-qr-code/props.d.ts +4 -3
- package/lib/ele-qr-code/util.d.ts +3 -2
- package/lib/ele-qr-code-svg/index.d.ts +18 -18
- package/lib/ele-segmented/index.d.ts +10 -9
- package/lib/ele-segmented/props.d.ts +3 -2
- package/lib/ele-split-panel/index.d.ts +18 -17
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-steps/index.d.ts +33 -33
- package/lib/ele-steps/props.d.ts +10 -9
- package/lib/ele-tab-tool/index.d.ts +2 -2
- package/lib/ele-tab-tool/props.d.ts +2 -1
- package/lib/ele-tab-wrap/index.cjs +2 -1
- package/lib/ele-tab-wrap/index.d.ts +6 -6
- package/lib/ele-tab-wrap/props.d.ts +3 -2
- package/lib/ele-table/index.d.ts +4 -4
- package/lib/ele-table/props.d.ts +3 -2
- package/lib/ele-table/style/index.scss +16 -0
- package/lib/ele-table-select/index.cjs +29 -27
- package/lib/ele-table-select/index.d.ts +45 -43
- package/lib/ele-table-select/props.d.ts +11 -10
- package/lib/ele-tabs/components/tab-title.d.ts +9 -8
- package/lib/ele-tabs/index.cjs +1 -0
- package/lib/ele-tabs/index.d.ts +43 -55
- package/lib/ele-tabs/props.d.ts +17 -23
- package/lib/ele-tabs/style/css-var.scss +1 -30
- package/lib/ele-tabs/style/index.scss +372 -241
- package/lib/ele-tabs/types.d.ts +2 -1
- package/lib/ele-text/index.d.ts +12 -12
- package/lib/ele-text/props.d.ts +5 -4
- package/lib/ele-tool/index.d.ts +7 -7
- package/lib/ele-tool/props.d.ts +3 -2
- package/lib/ele-toolbar/index.d.ts +15 -15
- package/lib/ele-toolbar/props.d.ts +7 -6
- package/lib/ele-tooltip/index.cjs +3 -0
- package/lib/ele-tooltip/index.d.ts +62 -61
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +28 -22
- package/lib/ele-tour/index.d.ts +15 -14
- package/lib/ele-tour/props.d.ts +3 -2
- package/lib/ele-tour/util.d.ts +3 -2
- package/lib/ele-tree-select/index.d.ts +37 -36
- package/lib/ele-tree-select/props.d.ts +12 -11
- package/lib/ele-tree-select/util.d.ts +3 -2
- package/lib/ele-upload-list/components/list-item.d.ts +7 -6
- package/lib/ele-upload-list/index.d.ts +26 -25
- package/lib/ele-upload-list/props.d.ts +6 -5
- package/lib/ele-virtual-table/components/body-cell.cjs +52 -70
- package/lib/ele-virtual-table/components/body-cell.d.ts +100 -64
- package/lib/ele-virtual-table/components/body-row.cjs +57 -52
- package/lib/ele-virtual-table/components/body-row.d.ts +89 -65
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
- package/lib/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
- package/lib/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/lib/ele-virtual-table/components/footer-row.cjs +19 -14
- package/lib/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/lib/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/lib/ele-virtual-table/components/header-row.d.ts +12 -11
- package/lib/ele-virtual-table/index.cjs +132 -134
- package/lib/ele-virtual-table/index.d.ts +91 -100
- package/lib/ele-virtual-table/props.d.ts +49 -51
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/ele-virtual-table/types.d.ts +88 -68
- package/lib/ele-virtual-table/util.cjs +32 -24
- package/lib/ele-virtual-table/util.d.ts +16 -12
- package/lib/ele-watermark/index.d.ts +15 -14
- package/lib/ele-watermark/props.d.ts +4 -3
- package/lib/ele-watermark/util.d.ts +3 -2
- package/lib/ele-xg-player/index.d.ts +10 -10
- package/lib/icons/AnalysisOutlined.d.ts +1 -1
- package/lib/icons/ApplicationOutlined.d.ts +1 -1
- package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
- package/lib/icons/AppstoreOutlined.d.ts +1 -1
- package/lib/icons/ArrowDown.d.ts +1 -1
- package/lib/icons/ArrowDownOutlined.d.ts +1 -1
- package/lib/icons/ArrowLeft.d.ts +1 -1
- package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
- package/lib/icons/ArrowRight.d.ts +1 -1
- package/lib/icons/ArrowRightOutlined.d.ts +1 -1
- package/lib/icons/ArrowUp.d.ts +1 -1
- package/lib/icons/ArrowUpOutlined.d.ts +1 -1
- package/lib/icons/BellOutlined.d.ts +1 -1
- package/lib/icons/BookOutlined.d.ts +1 -1
- package/lib/icons/CalendarOutlined.d.ts +1 -1
- package/lib/icons/CaretDownFilled.d.ts +1 -1
- package/lib/icons/CaretUpFilled.d.ts +1 -1
- package/lib/icons/CheckCircleFilled.d.ts +1 -1
- package/lib/icons/CheckCircleOutlined.d.ts +1 -1
- package/lib/icons/CheckOutlined.d.ts +1 -1
- package/lib/icons/CityOutlined.d.ts +1 -1
- package/lib/icons/ClockCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseCircleFilled.d.ts +1 -1
- package/lib/icons/CloseCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseOutlined.d.ts +1 -1
- package/lib/icons/CloudUploadOutlined.d.ts +1 -1
- package/lib/icons/ClusterOutlined.d.ts +1 -1
- package/lib/icons/CodeOutlined.d.ts +1 -1
- package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
- package/lib/icons/CompassOutlined.d.ts +1 -1
- package/lib/icons/CompressOutlined.d.ts +1 -1
- package/lib/icons/ConnectionOutlined.d.ts +1 -1
- package/lib/icons/ControlOutlined.d.ts +1 -1
- package/lib/icons/CopyOutlined.d.ts +1 -1
- package/lib/icons/CpuOutlined.d.ts +1 -1
- package/lib/icons/DashboardOutlined.d.ts +1 -1
- package/lib/icons/DatabaseOutlined.d.ts +1 -1
- package/lib/icons/DeleteOutlined.d.ts +1 -1
- package/lib/icons/DesktopOutlined.d.ts +1 -1
- package/lib/icons/DownloadOutlined.d.ts +1 -1
- package/lib/icons/DragOutlined.d.ts +1 -1
- package/lib/icons/EditOutlined.d.ts +1 -1
- package/lib/icons/EllipsisOutlined.d.ts +1 -1
- package/lib/icons/EnvironmentOutlined.d.ts +1 -1
- package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
- package/lib/icons/ExpandOutlined.d.ts +1 -1
- package/lib/icons/FileOutlined.d.ts +1 -1
- package/lib/icons/FilterFilled.d.ts +1 -1
- package/lib/icons/FolderAddOutlined.d.ts +1 -1
- package/lib/icons/FolderOutlined.d.ts +1 -1
- package/lib/icons/FormOutlined.d.ts +1 -1
- package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
- package/lib/icons/FullscreenOutlined.d.ts +1 -1
- package/lib/icons/FundOutlined.d.ts +1 -1
- package/lib/icons/GlobalOutlined.d.ts +1 -1
- package/lib/icons/HolderOutlined.d.ts +1 -1
- package/lib/icons/HomeOutlined.d.ts +1 -1
- package/lib/icons/IdcardOutlined.d.ts +1 -1
- package/lib/icons/InfoCircleFilled.d.ts +1 -1
- package/lib/icons/LinkOutlined.d.ts +1 -1
- package/lib/icons/LoadingDotOutlined.d.ts +1 -1
- package/lib/icons/LoadingOutlined.cjs +1 -1
- package/lib/icons/LoadingOutlined.d.ts +1 -1
- package/lib/icons/LockOutlined.d.ts +1 -1
- package/lib/icons/LogOutlined.d.ts +1 -1
- package/lib/icons/LogoutOutlined.d.ts +1 -1
- package/lib/icons/MailOutlined.d.ts +1 -1
- package/lib/icons/MenuFoldOutlined.d.ts +1 -1
- package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/lib/icons/MessageOutlined.d.ts +1 -1
- package/lib/icons/MinusCircleOutlined.d.ts +1 -1
- package/lib/icons/MobileOutlined.d.ts +1 -1
- package/lib/icons/MoonOutlined.d.ts +1 -1
- package/lib/icons/MoreOutlined.d.ts +1 -1
- package/lib/icons/PauseFilled.d.ts +1 -1
- package/lib/icons/PieChartOutlined.d.ts +1 -1
- package/lib/icons/PlayFilled.d.ts +1 -1
- package/lib/icons/PlusCircleOutlined.d.ts +1 -1
- package/lib/icons/PlusOutlined.d.ts +1 -1
- package/lib/icons/PrinterOutlined.d.ts +1 -1
- package/lib/icons/ProtectOutlined.d.ts +1 -1
- package/lib/icons/QuestionCircleFilled.d.ts +1 -1
- package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
- package/lib/icons/ReloadOutlined.d.ts +1 -1
- package/lib/icons/ResizeOutlined.cjs +29 -0
- package/lib/icons/ResizeOutlined.d.ts +2 -0
- package/lib/icons/SearchOutlined.d.ts +1 -1
- package/lib/icons/SettingOutlined.d.ts +1 -1
- package/lib/icons/ShoppingOutlined.d.ts +1 -1
- package/lib/icons/SortOutlined.d.ts +1 -1
- package/lib/icons/StarFilled.d.ts +1 -1
- package/lib/icons/StepBackwardFilled.d.ts +1 -1
- package/lib/icons/StepForwardFilled.d.ts +1 -1
- package/lib/icons/SuitcaseOutlined.d.ts +1 -1
- package/lib/icons/SunOutlined.d.ts +1 -1
- package/lib/icons/SwapOutlined.d.ts +1 -1
- package/lib/icons/SyncOutlined.d.ts +1 -1
- package/lib/icons/TableOutlined.d.ts +1 -1
- package/lib/icons/TagOutlined.d.ts +1 -1
- package/lib/icons/TimerOutlined.d.ts +1 -1
- package/lib/icons/UndoOutlined.d.ts +1 -1
- package/lib/icons/UnlockOutlined.d.ts +1 -1
- package/lib/icons/UploadOutlined.d.ts +1 -1
- package/lib/icons/UserOutlined.d.ts +1 -1
- package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
- package/lib/icons/VerticalRightOutlined.d.ts +1 -1
- package/lib/icons/WarningOutlined.d.ts +1 -1
- package/lib/icons/ZoomInOutlined.d.ts +1 -1
- package/lib/icons/ZoomOutOutlined.d.ts +1 -1
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.cjs +7 -1
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +7 -1
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +7 -1
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/style/nprogress.scss +1 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +140 -166
- package/lib/style/themes/rounded.scss +27 -45
- package/lib/utils/core.cjs +16 -2
- package/lib/utils/core.d.ts +7 -0
- package/lib/utils/menu-util.cjs +1 -4
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message-box.cjs +71 -0
- package/lib/utils/message-box.d.ts +25 -0
- package/lib/utils/message.cjs +216 -33
- package/lib/utils/message.d.ts +45 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +26 -25
package/lib/ele-menus/props.cjs
CHANGED
|
@@ -29,9 +29,7 @@ const menusProps = {
|
|
|
29
29
|
/** 省略菜单的属性 */
|
|
30
30
|
ellipsisProps: Object,
|
|
31
31
|
/** 是否开启菜单文本溢出提示 */
|
|
32
|
-
textEllipsisTooltip: Boolean,
|
|
33
|
-
/** 菜单文本溢出提示属性 */
|
|
34
|
-
textEllipsisTooltipProps: Object
|
|
32
|
+
textEllipsisTooltip: [Boolean, Object]
|
|
35
33
|
};
|
|
36
34
|
const menuPropKeys = Object.keys(elementPlus.menuProps);
|
|
37
35
|
const menusEmits = {
|
package/lib/ele-menus/props.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuItem, MenuTheme, PopupMenuTheme, PopupColorful, EllipsisProps } from './types';
|
|
2
2
|
import { menuProps } from 'element-plus';
|
|
3
|
-
import
|
|
3
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* 属性
|
|
6
7
|
*/
|
|
@@ -31,28 +32,26 @@ export declare const menusProps: {
|
|
|
31
32
|
/** 省略菜单的属性 */
|
|
32
33
|
ellipsisProps: PropType<EllipsisProps>;
|
|
33
34
|
/** 是否开启菜单文本溢出提示 */
|
|
34
|
-
textEllipsisTooltip:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
defaultActive: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
39
|
-
defaultOpeneds: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
35
|
+
textEllipsisTooltip: PropType<boolean | Partial<import('../ele-tooltip/props').TooltipProps>>;
|
|
36
|
+
mode: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
37
|
+
defaultActive: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
38
|
+
defaultOpeneds: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
40
39
|
uniqueOpened: BooleanConstructor;
|
|
41
40
|
router: BooleanConstructor;
|
|
42
|
-
menuTrigger: import(
|
|
41
|
+
menuTrigger: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
43
42
|
collapse: BooleanConstructor;
|
|
44
43
|
backgroundColor: StringConstructor;
|
|
45
44
|
textColor: StringConstructor;
|
|
46
45
|
activeTextColor: StringConstructor;
|
|
47
46
|
closeOnClickOutside: BooleanConstructor;
|
|
48
|
-
collapseTransition: import(
|
|
49
|
-
ellipsis: import(
|
|
50
|
-
popperOffset: import(
|
|
51
|
-
ellipsisIcon: import(
|
|
52
|
-
popperEffect: import(
|
|
47
|
+
collapseTransition: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
48
|
+
ellipsis: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
49
|
+
popperOffset: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
50
|
+
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
51
|
+
popperEffect: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "light" | "dark", unknown, "dark", boolean>;
|
|
53
52
|
popperClass: StringConstructor;
|
|
54
|
-
showTimeout: import(
|
|
55
|
-
hideTimeout: import(
|
|
53
|
+
showTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
54
|
+
hideTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
56
55
|
};
|
|
57
56
|
export type MenusProps = ExtractPropTypes<typeof menusProps>;
|
|
58
57
|
export type MenuPropKeys = Array<keyof typeof menuProps>;
|
|
@@ -76,5 +75,5 @@ export declare const menusEmits: {
|
|
|
76
75
|
parentMouseleave: (_item: MenuItem, _e: MouseEvent) => boolean;
|
|
77
76
|
close: (index: string, indexPath: string[]) => boolean;
|
|
78
77
|
open: (index: string, indexPath: string[]) => boolean;
|
|
79
|
-
select: (index: string, indexPath: string[], item: import(
|
|
78
|
+
select: (index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure> | undefined) => boolean;
|
|
80
79
|
};
|
|
@@ -22,11 +22,7 @@
|
|
|
22
22
|
@include set-ele-var('menu-colorful', $var);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.ele-menu.ele-menu-dark
|
|
26
|
-
.ele-admin-header.is-dark,
|
|
27
|
-
.ele-admin-header.is-primary,
|
|
28
|
-
.ele-admin-dark-sidebar .ele-admin-sidebar,
|
|
29
|
-
.ele-admin-dark-sidebar .ele-admin-sidebox {
|
|
25
|
+
.ele-menu.ele-menu-dark {
|
|
30
26
|
@include set-ele-var('menu-dark', $var);
|
|
31
27
|
}
|
|
32
28
|
|
package/lib/ele-menus/util.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { MenuItem, MenuTheme, PopupMenuTheme, PopupColorful, MenuResult, MenuEllipsisOption, MenuItemEvent } from './types';
|
|
2
|
+
import { VNode, Slot } from 'vue';
|
|
3
|
+
|
|
3
4
|
/** 子菜单项链接类名 */
|
|
4
5
|
export declare const linkClass = "ele-menu-link";
|
|
5
6
|
/** 菜单标题类名 */
|
package/lib/ele-modal/index.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const elementPlus = require("element-plus");
|
|
4
4
|
const icons = require("../icons");
|
|
5
|
-
const core = require("../utils/core");
|
|
6
5
|
const receiver = require("../ele-config-provider/receiver");
|
|
7
6
|
const ReceiverView = require("../ele-config-provider/components/receiver-view");
|
|
8
7
|
const util = require("./util");
|
|
@@ -15,195 +14,166 @@ const _sfc_main = vue.defineComponent({
|
|
|
15
14
|
CloseOutlined: icons.CloseOutlined,
|
|
16
15
|
CompressOutlined: icons.CompressOutlined,
|
|
17
16
|
ExpandOutlined: icons.ExpandOutlined,
|
|
17
|
+
ResizeOutlined: icons.ResizeOutlined,
|
|
18
18
|
ReceiverView
|
|
19
19
|
},
|
|
20
20
|
inheritAttrs: false,
|
|
21
21
|
props: props.modalProps,
|
|
22
22
|
emits: props.modalEmits,
|
|
23
|
-
setup(
|
|
23
|
+
setup(props2, { emit }) {
|
|
24
|
+
const state = { isInit: true };
|
|
24
25
|
const layoutProvide = receiver.useLayoutState();
|
|
25
26
|
const dialogRef = vue.ref(null);
|
|
26
|
-
const
|
|
27
|
-
util.getModalContainer(props$1.multiple, props$1.appendTo)
|
|
28
|
-
);
|
|
29
|
-
const isFullscreen = vue.ref(props$1.fullscreen ?? false);
|
|
27
|
+
const isFullscreen = vue.ref(props2.fullscreen ?? false);
|
|
30
28
|
const isActivated = vue.ref(true);
|
|
31
|
-
const dialogEnable = vue.ref(
|
|
32
|
-
props$1.destroyOnClose && !props$1.modelValue ? false : true
|
|
33
|
-
);
|
|
34
29
|
const dialogClass = vue.computed(() => {
|
|
35
|
-
const layoutState = vue.unref(layoutProvide);
|
|
36
30
|
const classes = [util.wrapperClass];
|
|
37
|
-
if (
|
|
38
|
-
classes.push(
|
|
31
|
+
if (props2.responsive ?? layoutProvide.responsive ?? true) {
|
|
32
|
+
classes.push("ele-modal-responsive");
|
|
39
33
|
}
|
|
40
|
-
if (
|
|
41
|
-
classes.push("ele-modal-form");
|
|
42
|
-
}
|
|
43
|
-
if (props$1.position) {
|
|
44
|
-
if (props$1.position === "top") {
|
|
45
|
-
classes.push("ele-modal-top");
|
|
46
|
-
} else if (props$1.position === "bottom") {
|
|
47
|
-
classes.push("ele-modal-bottom");
|
|
48
|
-
} else if (props$1.position === "left") {
|
|
49
|
-
classes.push("ele-modal-left");
|
|
50
|
-
} else if (props$1.position === "right") {
|
|
51
|
-
classes.push("ele-modal-right");
|
|
52
|
-
} else if (props$1.position === "leftTop") {
|
|
53
|
-
classes.push("ele-modal-left-top");
|
|
54
|
-
} else if (props$1.position === "leftBottom") {
|
|
55
|
-
classes.push("ele-modal-left-bottom");
|
|
56
|
-
} else if (props$1.position === "rightTop") {
|
|
57
|
-
classes.push("ele-modal-right-top");
|
|
58
|
-
} else if (props$1.position === "rightBottom") {
|
|
59
|
-
classes.push("ele-modal-right-bottom");
|
|
60
|
-
} else if (props$1.position === "center") {
|
|
61
|
-
classes.push("ele-modal-center");
|
|
62
|
-
}
|
|
63
|
-
} else if (props$1.alignCenter) {
|
|
34
|
+
if (props2.alignCenter || props2.position === "center") {
|
|
64
35
|
classes.push("ele-modal-center");
|
|
36
|
+
} else if (props2.position === "top") {
|
|
37
|
+
classes.push("ele-modal-top");
|
|
38
|
+
} else if (props2.position === "bottom") {
|
|
39
|
+
classes.push("ele-modal-bottom");
|
|
40
|
+
} else if (props2.position === "left") {
|
|
41
|
+
classes.push("ele-modal-left");
|
|
42
|
+
} else if (props2.position === "right") {
|
|
43
|
+
classes.push("ele-modal-right");
|
|
44
|
+
} else if (props2.position === "leftTop") {
|
|
45
|
+
classes.push("ele-modal-left-top");
|
|
46
|
+
} else if (props2.position === "leftBottom") {
|
|
47
|
+
classes.push("ele-modal-left-bottom");
|
|
48
|
+
} else if (props2.position === "rightTop") {
|
|
49
|
+
classes.push("ele-modal-right-top");
|
|
50
|
+
} else if (props2.position === "rightBottom") {
|
|
51
|
+
classes.push("ele-modal-right-bottom");
|
|
65
52
|
}
|
|
66
|
-
if (
|
|
67
|
-
classes.push(
|
|
53
|
+
if (props2.draggable) {
|
|
54
|
+
classes.push("ele-modal-movable");
|
|
68
55
|
}
|
|
69
|
-
if (
|
|
70
|
-
classes.push(
|
|
71
|
-
if (typeof props$1.resizable === "string") {
|
|
72
|
-
classes.push(util.resizableClass + "-" + props$1.resizable);
|
|
73
|
-
}
|
|
56
|
+
if (props2.resizable) {
|
|
57
|
+
classes.push("ele-modal-resizable");
|
|
74
58
|
}
|
|
75
|
-
if (
|
|
76
|
-
classes.push(
|
|
59
|
+
if (props2.multiple) {
|
|
60
|
+
classes.push("ele-modal-multiple");
|
|
77
61
|
}
|
|
78
62
|
if (isFullscreen.value) {
|
|
79
|
-
classes.push(
|
|
63
|
+
classes.push("ele-modal-fullscreen");
|
|
80
64
|
}
|
|
81
|
-
if (!
|
|
65
|
+
if (!props2.modelValue) {
|
|
82
66
|
classes.push(util.closedClass);
|
|
83
67
|
}
|
|
84
|
-
if (!isActivated.value &&
|
|
85
|
-
classes.push(
|
|
68
|
+
if (!isActivated.value && props2.modelValue) {
|
|
69
|
+
classes.push("ele-modal-hide");
|
|
86
70
|
}
|
|
87
|
-
if (
|
|
88
|
-
classes.push(
|
|
89
|
-
if (layoutState && layoutState.sidebar != null) {
|
|
90
|
-
if (layoutState.collapse && !layoutState.topLayout) {
|
|
91
|
-
classes.push(util.collapseClass);
|
|
92
|
-
}
|
|
93
|
-
if (layoutState.compact && layoutState.mixSidebar && !layoutState.topLayout) {
|
|
94
|
-
classes.push(util.compactClass);
|
|
95
|
-
}
|
|
96
|
-
if (layoutState.maximized) {
|
|
97
|
-
classes.push(util.maximizedClass);
|
|
98
|
-
}
|
|
99
|
-
if (layoutState.tabBar) {
|
|
100
|
-
classes.push(util.hasTabClass);
|
|
101
|
-
}
|
|
102
|
-
if (layoutState.mixSidebar && !layoutState.topLayout) {
|
|
103
|
-
classes.push(util.mixSidebarClass);
|
|
104
|
-
if (!layoutState.sidebar) {
|
|
105
|
-
classes.push(util.singleSidebarClass);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
if (layoutState.topLayout) {
|
|
109
|
-
classes.push(util.topLayoutClass);
|
|
110
|
-
}
|
|
111
|
-
if (layoutState.maximized && layoutState.expanded) {
|
|
112
|
-
classes.push(util.expandedClass);
|
|
113
|
-
}
|
|
114
|
-
if (layoutState.mobile) {
|
|
115
|
-
classes.push(util.mobileClass);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
71
|
+
if (props2.inner) {
|
|
72
|
+
classes.push("ele-modal-inner");
|
|
118
73
|
}
|
|
119
|
-
if (
|
|
120
|
-
classes.push(
|
|
74
|
+
if (props2.modalClass) {
|
|
75
|
+
classes.push(props2.modalClass);
|
|
121
76
|
}
|
|
122
77
|
return classes.join(" ");
|
|
123
78
|
});
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
alignCenter: false,
|
|
132
|
-
destroyOnClose: false,
|
|
133
|
-
modalClass: dialogClass.value
|
|
134
|
-
};
|
|
135
|
-
return Object.assign({}, attrs, core.pick(props$1, props.dialogPropKeys), option);
|
|
79
|
+
const teleportTo = vue.computed(() => {
|
|
80
|
+
return util.getModalContainer(
|
|
81
|
+
props2.inner,
|
|
82
|
+
props2.multiple,
|
|
83
|
+
props2.appendTo,
|
|
84
|
+
layoutProvide.modalsEl
|
|
85
|
+
);
|
|
136
86
|
});
|
|
137
87
|
const teleportDisabled = vue.computed(() => {
|
|
138
|
-
const appendTo =
|
|
139
|
-
const disabled = appendTo === "body" ? !
|
|
140
|
-
return
|
|
88
|
+
const appendTo = props2.appendTo || "body";
|
|
89
|
+
const disabled = appendTo === "body" ? !props2.appendToBody : false;
|
|
90
|
+
return props2.multiple || props2.inner ? false : disabled;
|
|
141
91
|
});
|
|
142
92
|
const getModalEl = () => {
|
|
143
93
|
var _a, _b;
|
|
144
94
|
return (_b = vue.unref((_a = vue.unref(dialogRef)) == null ? void 0 : _a.dialogContentRef)) == null ? void 0 : _b.$el;
|
|
145
95
|
};
|
|
146
96
|
const getZIndex = () => {
|
|
147
|
-
return
|
|
97
|
+
return props2.zIndex ?? 2e3;
|
|
98
|
+
};
|
|
99
|
+
const getPosition = () => {
|
|
100
|
+
if (props2.alignCenter) {
|
|
101
|
+
return "center";
|
|
102
|
+
}
|
|
103
|
+
if (props2.top != null && props2.top !== "") {
|
|
104
|
+
return { top: props2.top };
|
|
105
|
+
}
|
|
106
|
+
return props2.position;
|
|
107
|
+
};
|
|
108
|
+
const setInitPosition = () => {
|
|
109
|
+
if (state.isInit) {
|
|
110
|
+
state.isInit = false;
|
|
111
|
+
const modalEl = getModalEl();
|
|
112
|
+
const margin = util.getPositionMargin(getPosition());
|
|
113
|
+
if (modalEl && margin != null) {
|
|
114
|
+
modalEl.style.margin = margin;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const mousedownListener = (event) => {
|
|
119
|
+
if (props2.multiple) {
|
|
120
|
+
util.topModal(event.currentTarget, getZIndex());
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const handleHeaderMousedown = (event) => {
|
|
124
|
+
const modalEl = getModalEl();
|
|
125
|
+
if (!modalEl || !props2.draggable || isFullscreen.value) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
util.handleMove(modalEl, event, props2);
|
|
129
|
+
};
|
|
130
|
+
const handleResizeMousedown = (event) => {
|
|
131
|
+
const modalEl = getModalEl();
|
|
132
|
+
if (!modalEl || !props2.resizable || isFullscreen.value) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
util.handleResize(modalEl, event, props2);
|
|
148
136
|
};
|
|
149
137
|
const updateModelValue = (modelValue) => {
|
|
150
138
|
emit("update:modelValue", modelValue);
|
|
151
139
|
};
|
|
152
140
|
const toggleFullscreen = (fullscreen) => {
|
|
153
|
-
isFullscreen.value = fullscreen
|
|
141
|
+
isFullscreen.value = fullscreen ?? !isFullscreen.value;
|
|
154
142
|
vue.nextTick(() => {
|
|
155
|
-
util.
|
|
143
|
+
util.topModal(getModalEl(), getZIndex());
|
|
156
144
|
});
|
|
157
145
|
emit("update:fullscreen", isFullscreen.value);
|
|
158
146
|
};
|
|
159
|
-
const mousedownListener = (event) => {
|
|
160
|
-
util.handleMovable(event, props$1);
|
|
161
|
-
util.handleResizable(event, props$1);
|
|
162
|
-
util.setModalTop(event.currentTarget, getZIndex());
|
|
163
|
-
};
|
|
164
147
|
const onOpen = () => {
|
|
165
|
-
if (
|
|
166
|
-
isFullscreen.value =
|
|
167
|
-
}
|
|
168
|
-
if (!dialogEnable.value) {
|
|
169
|
-
dialogEnable.value = true;
|
|
148
|
+
if (props2.resetOnClose || props2.destroyOnClose) {
|
|
149
|
+
isFullscreen.value = props2.fullscreen ?? false;
|
|
170
150
|
}
|
|
171
151
|
vue.nextTick(() => {
|
|
172
152
|
const modalEl = getModalEl();
|
|
173
|
-
if (
|
|
174
|
-
util.resetModalStyle(modalEl,
|
|
153
|
+
if (props2.resetOnClose) {
|
|
154
|
+
util.resetModalStyle(modalEl, props2.width, getPosition());
|
|
155
|
+
} else {
|
|
156
|
+
setInitPosition();
|
|
175
157
|
}
|
|
176
|
-
|
|
177
|
-
util.setInitPosition(
|
|
178
|
-
modalEl,
|
|
179
|
-
props$1.resizable,
|
|
180
|
-
props$1.position,
|
|
181
|
-
props$1.moveOut,
|
|
182
|
-
props$1.resetOnClose
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
util.setModalTop(modalEl, getZIndex());
|
|
158
|
+
util.topModal(modalEl, getZIndex());
|
|
186
159
|
});
|
|
187
160
|
emit("open");
|
|
188
161
|
};
|
|
189
162
|
const onOpened = () => {
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
192
|
-
|
|
163
|
+
const modalEl = getModalEl();
|
|
164
|
+
if (modalEl) {
|
|
165
|
+
modalEl.addEventListener("mousedown", mousedownListener);
|
|
193
166
|
}
|
|
194
167
|
emit("opened");
|
|
195
168
|
};
|
|
196
169
|
const onClose = () => {
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
|
|
170
|
+
const modalEl = getModalEl();
|
|
171
|
+
if (modalEl) {
|
|
172
|
+
modalEl.removeEventListener("mousedown", mousedownListener);
|
|
200
173
|
}
|
|
201
174
|
emit("close");
|
|
202
175
|
};
|
|
203
176
|
const onClosed = () => {
|
|
204
|
-
if (props$1.destroyOnClose && dialogEnable.value) {
|
|
205
|
-
dialogEnable.value = false;
|
|
206
|
-
}
|
|
207
177
|
emit("closed");
|
|
208
178
|
};
|
|
209
179
|
const onOpenAutoFocus = () => {
|
|
@@ -213,51 +183,16 @@ const _sfc_main = vue.defineComponent({
|
|
|
213
183
|
emit("closeAutoFocus");
|
|
214
184
|
};
|
|
215
185
|
vue.watch(
|
|
216
|
-
() =>
|
|
217
|
-
(multiple) => {
|
|
218
|
-
teleportTo.value = util.getModalContainer(multiple, props$1.appendTo);
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
vue.watch(
|
|
222
|
-
() => props$1.appendTo,
|
|
223
|
-
(appendTo) => {
|
|
224
|
-
if (!props$1.multiple) {
|
|
225
|
-
teleportTo.value = util.getModalContainer(false, appendTo);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
);
|
|
229
|
-
vue.watch(
|
|
230
|
-
() => props$1.fullscreen,
|
|
186
|
+
() => props2.fullscreen,
|
|
231
187
|
(fullscreen) => {
|
|
232
188
|
isFullscreen.value = fullscreen ?? false;
|
|
233
189
|
}
|
|
234
190
|
);
|
|
235
|
-
vue.
|
|
236
|
-
()
|
|
237
|
-
|
|
238
|
-
if (props$1.modelValue && position && typeof position === "object") {
|
|
239
|
-
util.setInitPosition(
|
|
240
|
-
getModalEl(),
|
|
241
|
-
props$1.resizable,
|
|
242
|
-
position,
|
|
243
|
-
props$1.moveOut,
|
|
244
|
-
true
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
);
|
|
249
|
-
vue.watch(
|
|
250
|
-
() => props$1.destroyOnClose,
|
|
251
|
-
(destroyOnClose) => {
|
|
252
|
-
if (destroyOnClose) {
|
|
253
|
-
if (!props$1.modelValue && dialogEnable.value) {
|
|
254
|
-
dialogEnable.value = false;
|
|
255
|
-
}
|
|
256
|
-
} else if (!dialogEnable.value) {
|
|
257
|
-
dialogEnable.value = true;
|
|
258
|
-
}
|
|
191
|
+
vue.onMounted(() => {
|
|
192
|
+
if (props2.modelValue) {
|
|
193
|
+
setInitPosition();
|
|
259
194
|
}
|
|
260
|
-
);
|
|
195
|
+
});
|
|
261
196
|
vue.onActivated(() => {
|
|
262
197
|
isActivated.value = true;
|
|
263
198
|
});
|
|
@@ -266,11 +201,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
266
201
|
});
|
|
267
202
|
return {
|
|
268
203
|
dialogRef,
|
|
269
|
-
teleportTo,
|
|
270
204
|
isFullscreen,
|
|
271
|
-
|
|
272
|
-
|
|
205
|
+
dialogClass,
|
|
206
|
+
teleportTo,
|
|
273
207
|
teleportDisabled,
|
|
208
|
+
handleHeaderMousedown,
|
|
209
|
+
handleResizeMousedown,
|
|
274
210
|
updateModelValue,
|
|
275
211
|
toggleFullscreen,
|
|
276
212
|
onOpen,
|
|
@@ -289,20 +225,41 @@ const _export_sfc = (sfc, props2) => {
|
|
|
289
225
|
}
|
|
290
226
|
return target;
|
|
291
227
|
};
|
|
292
|
-
const _hoisted_1 = ["onClick"];
|
|
293
228
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
294
229
|
const _component_CompressOutlined = vue.resolveComponent("CompressOutlined");
|
|
295
230
|
const _component_ExpandOutlined = vue.resolveComponent("ExpandOutlined");
|
|
296
231
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
297
232
|
const _component_CloseOutlined = vue.resolveComponent("CloseOutlined");
|
|
233
|
+
const _component_ResizeOutlined = vue.resolveComponent("ResizeOutlined");
|
|
298
234
|
const _component_ReceiverView = vue.resolveComponent("ReceiverView");
|
|
299
235
|
const _component_ElDialog = vue.resolveComponent("ElDialog");
|
|
300
236
|
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
301
237
|
to: _ctx.teleportTo,
|
|
302
238
|
disabled: _ctx.teleportDisabled
|
|
303
239
|
}, [
|
|
304
|
-
vue.createVNode(_component_ElDialog, vue.mergeProps(_ctx
|
|
240
|
+
vue.createVNode(_component_ElDialog, vue.mergeProps(_ctx.$attrs, {
|
|
305
241
|
ref: "dialogRef",
|
|
242
|
+
modelValue: _ctx.modelValue,
|
|
243
|
+
title: _ctx.title,
|
|
244
|
+
width: _ctx.width,
|
|
245
|
+
fullscreen: false,
|
|
246
|
+
modal: _ctx.multiple ? false : _ctx.modal,
|
|
247
|
+
modalClass: _ctx.dialogClass,
|
|
248
|
+
appendToBody: false,
|
|
249
|
+
lockScroll: _ctx.inner || _ctx.multiple ? false : _ctx.lockScroll,
|
|
250
|
+
openDelay: _ctx.openDelay,
|
|
251
|
+
closeDelay: _ctx.closeDelay,
|
|
252
|
+
closeOnClickModal: _ctx.closeOnClickModal,
|
|
253
|
+
closeOnPressEscape: _ctx.closeOnPressEscape,
|
|
254
|
+
showClose: false,
|
|
255
|
+
beforeClose: _ctx.beforeClose,
|
|
256
|
+
draggable: false,
|
|
257
|
+
overflow: false,
|
|
258
|
+
center: _ctx.center,
|
|
259
|
+
alignCenter: false,
|
|
260
|
+
destroyOnClose: _ctx.destroyOnClose,
|
|
261
|
+
zIndex: _ctx.zIndex,
|
|
262
|
+
headerAriaLevel: _ctx.headerAriaLevel,
|
|
306
263
|
"onUpdate:modelValue": _ctx.updateModelValue,
|
|
307
264
|
onOpen: _ctx.onOpen,
|
|
308
265
|
onOpened: _ctx.onOpened,
|
|
@@ -313,11 +270,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
313
270
|
}), vue.createSlots({
|
|
314
271
|
header: vue.withCtx(({ close, titleId, titleClass }) => [
|
|
315
272
|
vue.createElementVNode("div", {
|
|
273
|
+
style: vue.normalizeStyle(_ctx.headerStyle),
|
|
316
274
|
class: "ele-modal-header",
|
|
317
|
-
|
|
275
|
+
onMousedown: _cache[4] || (_cache[4] = (...args) => _ctx.handleHeaderMousedown && _ctx.handleHeaderMousedown(...args))
|
|
318
276
|
}, [
|
|
319
|
-
|
|
320
|
-
key: 0,
|
|
277
|
+
vue.createElementVNode("div", {
|
|
321
278
|
class: "ele-modal-title",
|
|
322
279
|
style: vue.normalizeStyle(_ctx.titleStyle)
|
|
323
280
|
}, [
|
|
@@ -328,12 +285,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
328
285
|
}, () => [
|
|
329
286
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
330
287
|
])
|
|
331
|
-
], 4)
|
|
332
|
-
_ctx.
|
|
333
|
-
key:
|
|
288
|
+
], 4),
|
|
289
|
+
_ctx.maxable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
290
|
+
key: 0,
|
|
334
291
|
class: "ele-modal-tool",
|
|
335
292
|
style: vue.normalizeStyle(_ctx.fullscreenBtnStyle),
|
|
336
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFullscreen())
|
|
293
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFullscreen()),
|
|
294
|
+
onMousedown: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
295
|
+
}, ["stop"]))
|
|
337
296
|
}, [
|
|
338
297
|
vue.renderSlot(_ctx.$slots, "maxIcon", { fullscreen: _ctx.isFullscreen }, () => [
|
|
339
298
|
vue.createVNode(_component_ElIcon, null, {
|
|
@@ -343,53 +302,72 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
343
302
|
_: 1
|
|
344
303
|
})
|
|
345
304
|
])
|
|
346
|
-
],
|
|
347
|
-
_ctx.
|
|
348
|
-
key:
|
|
305
|
+
], 36)) : vue.createCommentVNode("", true),
|
|
306
|
+
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
307
|
+
key: 1,
|
|
349
308
|
class: "ele-modal-tool",
|
|
350
309
|
style: vue.normalizeStyle(_ctx.closeBtnStyle),
|
|
351
|
-
onClick:
|
|
310
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.updateModelValue(false)),
|
|
311
|
+
onMousedown: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
312
|
+
}, ["stop"]))
|
|
352
313
|
}, [
|
|
353
314
|
vue.renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
354
315
|
vue.createVNode(_component_ElIcon, null, {
|
|
355
316
|
default: vue.withCtx(() => [
|
|
356
|
-
vue.
|
|
317
|
+
_ctx.closeIcon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.closeIcon), { key: 0 })) : (vue.openBlock(), vue.createBlock(_component_CloseOutlined, { key: 1 }))
|
|
357
318
|
]),
|
|
358
319
|
_: 1
|
|
359
320
|
})
|
|
360
321
|
])
|
|
361
|
-
],
|
|
362
|
-
],
|
|
322
|
+
], 36)) : vue.createCommentVNode("", true)
|
|
323
|
+
], 36),
|
|
324
|
+
_ctx.resizable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: vue.normalizeClass([
|
|
327
|
+
"ele-modal-resize-icon",
|
|
328
|
+
{ "is-horizontal": _ctx.resizable === "horizontal" },
|
|
329
|
+
{ "is-vertical": _ctx.resizable === "vertical" }
|
|
330
|
+
]),
|
|
331
|
+
style: vue.normalizeStyle(_ctx.resizeIconStyle),
|
|
332
|
+
onMousedown: _cache[5] || (_cache[5] = (...args) => _ctx.handleResizeMousedown && _ctx.handleResizeMousedown(...args))
|
|
333
|
+
}, [
|
|
334
|
+
vue.renderSlot(_ctx.$slots, "resizeIcon", {}, () => [
|
|
335
|
+
vue.createVNode(_component_ElIcon, null, {
|
|
336
|
+
default: vue.withCtx(() => [
|
|
337
|
+
vue.createVNode(_component_ResizeOutlined)
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
})
|
|
341
|
+
])
|
|
342
|
+
], 38)) : vue.createCommentVNode("", true)
|
|
363
343
|
]),
|
|
364
344
|
default: vue.withCtx(() => [
|
|
365
|
-
|
|
366
|
-
key: 0,
|
|
345
|
+
vue.createVNode(_component_ReceiverView, {
|
|
367
346
|
wrapPosition: false,
|
|
368
|
-
class: "ele-modal-body",
|
|
347
|
+
class: vue.normalizeClass(["ele-modal-body", { "is-form": _ctx.form }]),
|
|
369
348
|
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
370
349
|
}, {
|
|
371
350
|
default: vue.withCtx(() => [
|
|
372
351
|
vue.renderSlot(_ctx.$slots, "default")
|
|
373
352
|
]),
|
|
374
353
|
_: 3
|
|
375
|
-
}, 8, ["
|
|
354
|
+
}, 8, ["class", "style"])
|
|
376
355
|
]),
|
|
377
356
|
_: 2
|
|
378
357
|
}, [
|
|
379
358
|
_ctx.$slots.footer ? {
|
|
380
359
|
name: "footer",
|
|
381
360
|
fn: vue.withCtx(() => [
|
|
382
|
-
|
|
383
|
-
key: 0,
|
|
361
|
+
vue.createElementVNode("div", {
|
|
384
362
|
class: "ele-modal-footer",
|
|
385
363
|
style: vue.normalizeStyle(_ctx.footerStyle)
|
|
386
364
|
}, [
|
|
387
365
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
388
|
-
], 4)
|
|
366
|
+
], 4)
|
|
389
367
|
]),
|
|
390
368
|
key: "0"
|
|
391
369
|
} : void 0
|
|
392
|
-
]), 1040, ["onUpdate:modelValue", "onOpen", "onOpened", "onClose", "onClosed", "onOpenAutoFocus", "onCloseAutoFocus"])
|
|
370
|
+
]), 1040, ["modelValue", "title", "width", "modal", "modalClass", "lockScroll", "openDelay", "closeDelay", "closeOnClickModal", "closeOnPressEscape", "beforeClose", "center", "destroyOnClose", "zIndex", "headerAriaLevel", "onUpdate:modelValue", "onOpen", "onOpened", "onClose", "onClosed", "onOpenAutoFocus", "onCloseAutoFocus"])
|
|
393
371
|
], 8, ["to", "disabled"]);
|
|
394
372
|
}
|
|
395
373
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|