ele-admin-plus 1.1.9-beta.10 → 1.1.9-beta.12
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/ele-alert/index.d.ts +22 -22
- package/es/ele-alert/index.js +2 -2
- package/es/ele-app/el.d.ts +2 -1
- package/es/ele-app/index.d.ts +2 -2
- package/es/ele-avatar-group/index.d.ts +26 -26
- package/es/ele-bar-code/index.d.ts +6 -6
- package/es/ele-basic-select/index.d.ts +31 -31
- package/es/ele-basic-select/index.js +7 -1
- package/es/ele-basic-select/props.d.ts +1 -1
- package/es/ele-bottom-bar/index.d.ts +5 -5
- package/es/ele-breadcrumb/index.d.ts +8 -8
- package/es/ele-breadcrumb/props.d.ts +1 -1
- package/es/ele-card/index.d.ts +11 -11
- package/es/ele-check-card/components/card-item.d.ts +3 -3
- package/es/ele-check-card/index.d.ts +12 -12
- package/es/ele-config-provider/components/receiver-view.d.ts +2 -2
- package/es/ele-config-provider/index.d.ts +6 -6
- package/es/ele-config-provider/receiver.d.ts +1 -1
- package/es/ele-config-provider/receiver.js +4 -8
- package/es/ele-config-provider/types.d.ts +2 -18
- package/es/ele-copyable/index.d.ts +28 -28
- package/es/ele-count-up/index.d.ts +6 -6
- package/es/ele-cropper/components/cropper-preview.d.ts +2 -2
- package/es/ele-cropper/components/cropper-tools.d.ts +8 -8
- package/es/ele-cropper/index.d.ts +11 -11
- package/es/ele-cropper-modal/index.d.ts +13 -13
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-dashboard/index.d.ts +4 -4
- package/es/ele-data-table/index.d.ts +56 -56
- package/es/ele-dot/index.d.ts +3 -3
- package/es/ele-drawer/index.d.ts +72 -69
- package/es/ele-drawer/index.js +107 -113
- package/es/ele-drawer/props.d.ts +1 -1
- package/es/ele-drawer/style/index.scss +48 -105
- package/es/ele-dropdown/index.d.ts +62 -62
- package/es/ele-dropdown/props.d.ts +4 -4
- package/es/ele-edit-tag/index.d.ts +30 -30
- package/es/ele-edit-tag/index.js +1 -1
- package/es/ele-ellipsis/index.d.ts +19 -19
- package/es/ele-file-list/components/file-grid-item.d.ts +7 -7
- package/es/ele-file-list/components/file-grid-item.js +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +4 -4
- package/es/ele-file-list/components/file-sort.d.ts +1 -1
- package/es/ele-file-list/components/file-table-item.d.ts +7 -7
- package/es/ele-file-list/components/file-table-item.js +1 -1
- package/es/ele-file-list/components/file-table.d.ts +4 -4
- package/es/ele-file-list/index.d.ts +32 -32
- package/es/ele-file-list-tool/index.d.ts +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +11 -11
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-icon-select/index.d.ts +45 -45
- package/es/ele-icon-select/props.d.ts +1 -1
- package/es/ele-loading/index.d.ts +11 -15
- package/es/ele-loading/index.js +10 -16
- package/es/ele-map-picker/components/map-view.d.ts +25 -25
- package/es/ele-map-picker/components/map-view.js +1 -1
- package/es/ele-map-picker/index.d.ts +21 -21
- package/es/ele-map-picker/index.js +1 -1
- package/es/ele-menus/index.d.ts +56 -58
- package/es/ele-menus/index.js +1 -1
- package/es/ele-menus/props.d.ts +2 -4
- package/es/ele-menus/props.js +1 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-modal/index.d.ts +73 -67
- package/es/ele-modal/index.js +164 -186
- package/es/ele-modal/props.d.ts +3 -1
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +85 -146
- package/es/ele-modal/util.d.ts +18 -44
- package/es/ele-modal/util.js +53 -179
- package/es/ele-page/index.d.ts +1 -1
- package/es/ele-pagination/index.d.ts +39 -30
- package/es/ele-pagination/index.js +4 -1
- package/es/ele-pagination/props.d.ts +7 -2
- package/es/ele-pagination/props.js +5 -0
- package/es/ele-popconfirm/index.d.ts +86 -86
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +5 -5
- package/es/ele-popover/index.d.ts +67 -67
- package/es/ele-popover/index.js +6 -14
- package/es/ele-popover/props.d.ts +4 -4
- package/es/ele-printer/index.d.ts +17 -17
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +81 -26
- package/es/ele-pro-layout/components/pro-header.js +110 -20
- package/es/ele-pro-layout/components/pro-iframe.d.ts +3 -4
- package/es/ele-pro-layout/components/pro-iframe.js +31 -41
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
- package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
- package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
- package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -6
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +3 -3
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
- package/es/ele-pro-layout/index.d.ts +93 -94
- package/es/ele-pro-layout/index.js +62 -47
- package/es/ele-pro-layout/props.d.ts +4 -7
- 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 +1 -1
- package/es/ele-pro-layout/util.d.ts +1 -2
- package/es/ele-pro-layout/util.js +2 -3
- package/es/ele-pro-table/components/table-tools.d.ts +17 -17
- package/es/ele-pro-table/components/tool-column-list.d.ts +2 -2
- package/es/ele-pro-table/components/tool-column.d.ts +9 -9
- package/es/ele-pro-table/components/tool-export.d.ts +15 -292
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
- package/es/ele-pro-table/components/tool-print.d.ts +23 -736
- package/es/ele-pro-table/components/tool-print.js +0 -3
- package/es/ele-pro-table/index.d.ts +124 -126
- package/es/ele-pro-table/index.js +32 -26
- package/es/ele-pro-table/props.d.ts +16 -16
- package/es/ele-pro-table/types.d.ts +11 -0
- package/es/ele-pro-table/util.d.ts +11 -15
- package/es/ele-pro-table/util.js +18 -15
- package/es/ele-qr-code/index.d.ts +13 -13
- package/es/ele-qr-code-svg/index.d.ts +17 -17
- package/es/ele-segmented/index.d.ts +7 -7
- package/es/ele-split-panel/index.d.ts +15 -15
- package/es/ele-steps/index.d.ts +32 -32
- package/es/ele-tab-tool/index.d.ts +1 -1
- package/es/ele-tab-wrap/index.d.ts +5 -5
- package/es/ele-tab-wrap/index.js +2 -1
- package/es/ele-table/index.d.ts +3 -3
- package/es/ele-table/props.d.ts +1 -1
- package/es/ele-table-select/index.d.ts +41 -40
- package/es/ele-table-select/index.js +29 -27
- package/es/ele-table-select/props.d.ts +1 -1
- package/es/ele-tabs/components/tab-title.d.ts +3 -3
- package/es/ele-tabs/index.d.ts +31 -31
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-tabs/props.d.ts +4 -4
- 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 +11 -11
- package/es/ele-tool/index.d.ts +6 -6
- package/es/ele-tool/props.d.ts +1 -1
- package/es/ele-toolbar/index.d.ts +14 -14
- package/es/ele-tooltip/index.d.ts +56 -56
- package/es/ele-tooltip/index.js +3 -0
- package/es/ele-tooltip/props.d.ts +8 -3
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-tour/index.d.ts +10 -10
- package/es/ele-tree-select/index.d.ts +31 -31
- package/es/ele-tree-select/props.d.ts +1 -1
- package/es/ele-upload-list/components/list-item.d.ts +2 -2
- package/es/ele-upload-list/index.d.ts +22 -22
- package/es/ele-virtual-table/components/body-cell.d.ts +16 -16
- package/es/ele-virtual-table/components/body-row.d.ts +17 -17
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +13 -13
- package/es/ele-virtual-table/components/expand-row.d.ts +1 -1
- package/es/ele-virtual-table/components/footer-row.d.ts +5 -5
- package/es/ele-virtual-table/components/header-cell.d.ts +11 -11
- package/es/ele-virtual-table/components/header-row.d.ts +7 -7
- package/es/ele-virtual-table/index.d.ts +71 -71
- package/es/ele-virtual-table/props.d.ts +21 -21
- package/es/ele-virtual-table/style/index.scss +1 -1
- package/es/ele-virtual-table/util.d.ts +1 -1
- package/es/ele-watermark/index.d.ts +12 -12
- package/es/ele-xg-player/index.d.ts +6 -6
- 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/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/style/nprogress.scss +1 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +56 -80
- package/es/style/themes/rounded.scss +16 -30
- package/es/utils/menu-util.js +2 -5
- package/lib/ele-alert/index.cjs +2 -2
- package/lib/ele-alert/index.d.ts +22 -22
- package/lib/ele-app/el.d.ts +2 -1
- package/lib/ele-app/index.d.ts +2 -2
- package/lib/ele-avatar-group/index.d.ts +26 -26
- package/lib/ele-bar-code/index.d.ts +6 -6
- package/lib/ele-basic-select/index.cjs +7 -1
- package/lib/ele-basic-select/index.d.ts +31 -31
- package/lib/ele-basic-select/props.d.ts +1 -1
- package/lib/ele-bottom-bar/index.d.ts +5 -5
- package/lib/ele-breadcrumb/index.d.ts +8 -8
- package/lib/ele-breadcrumb/props.d.ts +1 -1
- package/lib/ele-card/index.d.ts +11 -11
- package/lib/ele-check-card/components/card-item.d.ts +3 -3
- package/lib/ele-check-card/index.d.ts +12 -12
- package/lib/ele-config-provider/components/receiver-view.d.ts +2 -2
- package/lib/ele-config-provider/index.d.ts +6 -6
- package/lib/ele-config-provider/receiver.cjs +3 -7
- package/lib/ele-config-provider/receiver.d.ts +1 -1
- package/lib/ele-config-provider/types.d.ts +2 -18
- package/lib/ele-copyable/index.d.ts +28 -28
- package/lib/ele-count-up/index.d.ts +6 -6
- package/lib/ele-cropper/components/cropper-preview.d.ts +2 -2
- package/lib/ele-cropper/components/cropper-tools.d.ts +8 -8
- package/lib/ele-cropper/index.d.ts +11 -11
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-cropper-modal/index.d.ts +13 -13
- package/lib/ele-dashboard/index.d.ts +4 -4
- package/lib/ele-data-table/index.d.ts +56 -56
- package/lib/ele-dot/index.d.ts +3 -3
- package/lib/ele-drawer/index.cjs +105 -111
- package/lib/ele-drawer/index.d.ts +72 -69
- package/lib/ele-drawer/props.d.ts +1 -1
- package/lib/ele-drawer/style/index.scss +48 -105
- package/lib/ele-dropdown/index.d.ts +62 -62
- package/lib/ele-dropdown/props.d.ts +4 -4
- package/lib/ele-edit-tag/index.cjs +1 -1
- package/lib/ele-edit-tag/index.d.ts +30 -30
- package/lib/ele-ellipsis/index.d.ts +19 -19
- package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
- package/lib/ele-file-list/components/file-grid-item.d.ts +7 -7
- package/lib/ele-file-list/components/file-grid.d.ts +4 -4
- package/lib/ele-file-list/components/file-sort.d.ts +1 -1
- package/lib/ele-file-list/components/file-table-item.cjs +1 -1
- package/lib/ele-file-list/components/file-table-item.d.ts +7 -7
- package/lib/ele-file-list/components/file-table.d.ts +4 -4
- package/lib/ele-file-list/index.d.ts +32 -32
- package/lib/ele-file-list-tool/index.d.ts +2 -2
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +11 -11
- package/lib/ele-icon-select/index.d.ts +45 -45
- package/lib/ele-icon-select/props.d.ts +1 -1
- package/lib/ele-loading/index.cjs +9 -15
- package/lib/ele-loading/index.d.ts +11 -15
- package/lib/ele-map-picker/components/map-view.cjs +1 -1
- package/lib/ele-map-picker/components/map-view.d.ts +25 -25
- package/lib/ele-map-picker/index.cjs +1 -1
- package/lib/ele-map-picker/index.d.ts +21 -21
- package/lib/ele-menus/index.cjs +1 -1
- package/lib/ele-menus/index.d.ts +56 -58
- package/lib/ele-menus/props.cjs +1 -3
- package/lib/ele-menus/props.d.ts +2 -4
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-modal/index.cjs +176 -198
- package/lib/ele-modal/index.d.ts +73 -67
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +3 -1
- package/lib/ele-modal/style/index.scss +85 -146
- package/lib/ele-modal/util.cjs +53 -179
- package/lib/ele-modal/util.d.ts +18 -44
- package/lib/ele-page/index.d.ts +1 -1
- package/lib/ele-pagination/index.cjs +4 -1
- package/lib/ele-pagination/index.d.ts +39 -30
- package/lib/ele-pagination/props.cjs +5 -0
- package/lib/ele-pagination/props.d.ts +7 -2
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +86 -86
- package/lib/ele-popconfirm/props.d.ts +5 -5
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +67 -67
- package/lib/ele-popover/props.d.ts +4 -4
- package/lib/ele-printer/index.d.ts +17 -17
- 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 +81 -26
- package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +3 -4
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -6
- 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 +3 -3
- package/lib/ele-pro-layout/index.cjs +61 -46
- package/lib/ele-pro-layout/index.d.ts +93 -94
- package/lib/ele-pro-layout/props.cjs +2 -4
- package/lib/ele-pro-layout/props.d.ts +4 -7
- 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 +1 -1
- package/lib/ele-pro-layout/util.cjs +2 -3
- package/lib/ele-pro-layout/util.d.ts +1 -2
- package/lib/ele-pro-table/components/table-tools.d.ts +17 -17
- package/lib/ele-pro-table/components/tool-column-list.d.ts +2 -2
- package/lib/ele-pro-table/components/tool-column.d.ts +9 -9
- package/lib/ele-pro-table/components/tool-export.d.ts +15 -292
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
- package/lib/ele-pro-table/components/tool-print.cjs +0 -3
- package/lib/ele-pro-table/components/tool-print.d.ts +23 -736
- package/lib/ele-pro-table/index.cjs +30 -24
- package/lib/ele-pro-table/index.d.ts +124 -126
- package/lib/ele-pro-table/props.d.ts +16 -16
- package/lib/ele-pro-table/types.d.ts +11 -0
- package/lib/ele-pro-table/util.cjs +18 -15
- package/lib/ele-pro-table/util.d.ts +11 -15
- package/lib/ele-qr-code/index.d.ts +13 -13
- package/lib/ele-qr-code-svg/index.d.ts +17 -17
- package/lib/ele-segmented/index.d.ts +7 -7
- package/lib/ele-split-panel/index.d.ts +15 -15
- package/lib/ele-steps/index.d.ts +32 -32
- package/lib/ele-tab-tool/index.d.ts +1 -1
- package/lib/ele-tab-wrap/index.cjs +2 -1
- package/lib/ele-tab-wrap/index.d.ts +5 -5
- package/lib/ele-table/index.d.ts +3 -3
- package/lib/ele-table/props.d.ts +1 -1
- package/lib/ele-table-select/index.cjs +29 -27
- package/lib/ele-table-select/index.d.ts +41 -40
- package/lib/ele-table-select/props.d.ts +1 -1
- package/lib/ele-tabs/components/tab-title.d.ts +3 -3
- package/lib/ele-tabs/index.cjs +1 -0
- package/lib/ele-tabs/index.d.ts +31 -31
- package/lib/ele-tabs/props.d.ts +4 -4
- 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 +11 -11
- package/lib/ele-tool/index.d.ts +6 -6
- package/lib/ele-tool/props.d.ts +1 -1
- package/lib/ele-toolbar/index.d.ts +14 -14
- package/lib/ele-tooltip/index.cjs +3 -0
- package/lib/ele-tooltip/index.d.ts +56 -56
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +8 -3
- package/lib/ele-tour/index.d.ts +10 -10
- package/lib/ele-tree-select/index.d.ts +31 -31
- package/lib/ele-tree-select/props.d.ts +1 -1
- package/lib/ele-upload-list/components/list-item.d.ts +2 -2
- package/lib/ele-upload-list/index.d.ts +22 -22
- package/lib/ele-virtual-table/components/body-cell.d.ts +16 -16
- package/lib/ele-virtual-table/components/body-row.d.ts +17 -17
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
- package/lib/ele-virtual-table/components/cell-filter.d.ts +13 -13
- package/lib/ele-virtual-table/components/expand-row.d.ts +1 -1
- package/lib/ele-virtual-table/components/footer-row.d.ts +5 -5
- package/lib/ele-virtual-table/components/header-cell.d.ts +11 -11
- package/lib/ele-virtual-table/components/header-row.d.ts +7 -7
- package/lib/ele-virtual-table/index.d.ts +71 -71
- package/lib/ele-virtual-table/props.d.ts +21 -21
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/ele-virtual-table/util.d.ts +1 -1
- package/lib/ele-watermark/index.d.ts +12 -12
- package/lib/ele-xg-player/index.d.ts +6 -6
- 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.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/style/nprogress.scss +1 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +56 -80
- package/lib/style/themes/rounded.scss +16 -30
- package/lib/utils/menu-util.cjs +1 -4
- package/package.json +15 -15
package/lib/ele-modal/util.cjs
CHANGED
|
@@ -1,104 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const core = require("../utils/core");
|
|
4
|
-
const
|
|
5
|
-
const headerClass = "ele-modal-header";
|
|
4
|
+
const containerClass = "ele-modal-container";
|
|
6
5
|
const wrapperClass = "ele-modal";
|
|
7
|
-
const containerId = "ele-modal-container";
|
|
8
|
-
const movableClass = "ele-modal-movable";
|
|
9
|
-
const resizableClass = "ele-modal-resizable";
|
|
10
|
-
const multipleClass = "ele-modal-multiple";
|
|
11
|
-
const fullscreenClass = "ele-modal-fullscreen";
|
|
12
|
-
const innerClass = "ele-modal-inner";
|
|
13
|
-
const responsiveClass = "ele-modal-responsive";
|
|
14
6
|
const closedClass = "ele-modal-closed";
|
|
15
|
-
const hideClass = "ele-modal-hide";
|
|
16
|
-
const collapseClass = "ele-state-collapse";
|
|
17
|
-
const compactClass = "ele-state-compact";
|
|
18
|
-
const maximizedClass = "ele-state-maximized";
|
|
19
|
-
const hasTabClass = "ele-state-has-tab";
|
|
20
|
-
const mixSidebarClass = "ele-state-mix-sidebar";
|
|
21
|
-
const singleSidebarClass = "ele-state-single-sidebar";
|
|
22
|
-
const topLayoutClass = "ele-state-top-layout";
|
|
23
|
-
const expandedClass = "ele-state-expanded";
|
|
24
|
-
const mobileClass = "ele-state-mobile";
|
|
25
7
|
const fixTop = 0.65;
|
|
26
8
|
const fixLeft = 0.65;
|
|
27
|
-
function initModalStyle(modalEl
|
|
9
|
+
function initModalStyle(modalEl) {
|
|
28
10
|
modalEl.style.top = modalEl.offsetTop + "px";
|
|
29
11
|
modalEl.style.left = modalEl.offsetLeft + "px";
|
|
30
|
-
modalEl.style.bottom = "auto";
|
|
31
12
|
modalEl.style.right = "auto";
|
|
32
|
-
modalEl.style.
|
|
13
|
+
modalEl.style.bottom = "auto";
|
|
33
14
|
modalEl.style.position = "absolute";
|
|
34
|
-
modalEl.style.
|
|
35
|
-
modalEl.style.verticalAlign = "top";
|
|
36
|
-
}
|
|
37
|
-
function getModalContainer(multiple, appendTo) {
|
|
38
|
-
if (!multiple) {
|
|
39
|
-
return appendTo || "body";
|
|
40
|
-
}
|
|
41
|
-
const container = document.getElementById(containerId);
|
|
42
|
-
if (container) {
|
|
43
|
-
return container;
|
|
44
|
-
}
|
|
45
|
-
const elem = document.createElement("div");
|
|
46
|
-
elem.id = containerId;
|
|
47
|
-
document.body.appendChild(elem);
|
|
48
|
-
return elem;
|
|
49
|
-
}
|
|
50
|
-
function getVisibleModals() {
|
|
51
|
-
const el = getModalContainer(true);
|
|
52
|
-
const modals = el.querySelectorAll(`.${wrapperClass}:not(.${closedClass})`);
|
|
53
|
-
return modals ? Array.from(modals) : [];
|
|
54
|
-
}
|
|
55
|
-
function getModalMaxIndex(el) {
|
|
56
|
-
const modals = getVisibleModals();
|
|
57
|
-
let maxIndex = 0;
|
|
58
|
-
modals.forEach((modalEl) => {
|
|
59
|
-
const zIndex = core.getCurrentStyle(modalEl).zIndex;
|
|
60
|
-
if (zIndex != null) {
|
|
61
|
-
const index = Number(zIndex);
|
|
62
|
-
if (index >= maxIndex && (!el || modalEl !== el)) {
|
|
63
|
-
maxIndex = index + 1;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return maxIndex;
|
|
15
|
+
modalEl.style.margin = "0";
|
|
68
16
|
}
|
|
69
17
|
function canMoveOut(moveOut, direction) {
|
|
70
|
-
if (direction && moveOut != null &&
|
|
18
|
+
if (direction && moveOut != null && Array.isArray(moveOut)) {
|
|
71
19
|
return moveOut.includes(direction);
|
|
72
20
|
}
|
|
73
21
|
return false;
|
|
74
22
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
23
|
+
function getModalContainer(inner, multiple, appendTo, modalsEl) {
|
|
24
|
+
if (multiple) {
|
|
25
|
+
const parent = (inner ? modalsEl : void 0) || document.body;
|
|
26
|
+
const wrapper = parent.querySelector(`.${containerClass}`);
|
|
27
|
+
if (wrapper) {
|
|
28
|
+
return wrapper;
|
|
29
|
+
}
|
|
30
|
+
const elem = document.createElement("div");
|
|
31
|
+
elem.classList.add(containerClass);
|
|
32
|
+
parent.appendChild(elem);
|
|
33
|
+
return elem;
|
|
79
34
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return;
|
|
35
|
+
if (inner && modalsEl) {
|
|
36
|
+
return modalsEl;
|
|
83
37
|
}
|
|
38
|
+
return appendTo || "body";
|
|
39
|
+
}
|
|
40
|
+
function handleMove(modalEl, event, props) {
|
|
84
41
|
const wrapEl = modalEl.parentElement;
|
|
85
42
|
if (!wrapEl) {
|
|
86
43
|
return;
|
|
87
44
|
}
|
|
88
|
-
const headerEl = modalEl.querySelector("." + headerClass);
|
|
89
|
-
if (!headerEl) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const titleEl = headerEl.querySelector("." + titleClass);
|
|
93
|
-
if (!titleEl || event.target !== headerEl && event.target !== titleEl) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const modalClass = (_a = wrapEl.parentElement) == null ? void 0 : _a.classList;
|
|
97
|
-
if (modalClass && modalClass.contains(fullscreenClass)) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
45
|
modalEl.style.userSelect = "none";
|
|
101
|
-
initModalStyle(modalEl
|
|
46
|
+
initModalStyle(modalEl);
|
|
102
47
|
const downX = event.clientX;
|
|
103
48
|
const downY = event.clientY;
|
|
104
49
|
const downOL = modalEl.offsetLeft;
|
|
@@ -155,32 +100,13 @@ function handleMovable(event, props) {
|
|
|
155
100
|
document.addEventListener("mousemove", mousemoveFn);
|
|
156
101
|
document.addEventListener("mouseup", mouseupFn);
|
|
157
102
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!props.resizable) {
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
const modalEl = event.currentTarget;
|
|
163
|
-
if (!modalEl) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
103
|
+
function handleResize(modalEl, event, props) {
|
|
166
104
|
const wrapEl = modalEl.parentElement;
|
|
167
105
|
if (!wrapEl) {
|
|
168
106
|
return;
|
|
169
107
|
}
|
|
170
|
-
const overlayEl = wrapEl.parentElement;
|
|
171
|
-
if (!overlayEl) {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (overlayEl.classList.contains(fullscreenClass)) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const limitX = modalEl.clientWidth + modalEl.offsetLeft - wrapEl.scrollLeft + overlayEl.offsetLeft;
|
|
178
|
-
const limitY = modalEl.clientHeight + modalEl.offsetTop - wrapEl.scrollTop + overlayEl.offsetTop;
|
|
179
|
-
if (event.clientX > limitX || limitX - event.clientX > 12 || event.clientY > limitY || limitY - event.clientY > 12) {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
108
|
modalEl.style.userSelect = "none";
|
|
183
|
-
initModalStyle(modalEl
|
|
109
|
+
initModalStyle(modalEl);
|
|
184
110
|
const downX = event.clientX;
|
|
185
111
|
const downY = event.clientY;
|
|
186
112
|
const downW = modalEl.clientWidth;
|
|
@@ -211,34 +137,45 @@ function handleResizable(event, props) {
|
|
|
211
137
|
document.addEventListener("mousemove", mousemoveFn);
|
|
212
138
|
document.addEventListener("mouseup", mouseupFn);
|
|
213
139
|
}
|
|
214
|
-
function
|
|
140
|
+
function topModal(modalEl, zIndex) {
|
|
215
141
|
var _a;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
const overlayEl = (_a = modalEl.parentElement) == null ? void 0 : _a.parentElement;
|
|
220
|
-
if (!overlayEl || !overlayEl.classList || !overlayEl.classList.contains(multipleClass)) {
|
|
142
|
+
const overlayEl = (_a = modalEl == null ? void 0 : modalEl.parentElement) == null ? void 0 : _a.parentElement;
|
|
143
|
+
if (!overlayEl) {
|
|
221
144
|
return;
|
|
222
145
|
}
|
|
223
146
|
const currentIndex = core.getCurrentStyle(overlayEl).zIndex;
|
|
224
|
-
const
|
|
147
|
+
const containerEl = overlayEl.parentElement;
|
|
148
|
+
const modals = containerEl ? containerEl.querySelectorAll(`.${wrapperClass}:not(.${closedClass})`) : void 0;
|
|
149
|
+
let maxIndex = 0;
|
|
150
|
+
(modals ? Array.from(modals) : []).forEach((modalEl2) => {
|
|
151
|
+
const zIndex2 = core.getCurrentStyle(modalEl2).zIndex;
|
|
152
|
+
if (zIndex2 != null) {
|
|
153
|
+
const index = Number(zIndex2);
|
|
154
|
+
if (index >= maxIndex && (!overlayEl || modalEl2 !== overlayEl)) {
|
|
155
|
+
maxIndex = index + 1;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
225
159
|
if (maxIndex > Number(currentIndex || zIndex || 0)) {
|
|
226
160
|
overlayEl.style.zIndex = String(maxIndex);
|
|
227
161
|
}
|
|
228
162
|
}
|
|
229
|
-
function
|
|
163
|
+
function getPositionMargin(position) {
|
|
164
|
+
if (position == null || typeof position !== "object" || position.top == null && position.right == null && position.bottom == null && position.left == null) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
return [position.top, position.right, position.bottom, position.left].map((p) => typeof p === "number" ? `${p}px` : p || "auto").join(" ");
|
|
168
|
+
}
|
|
169
|
+
function resetModalStyle(modalEl, width, position) {
|
|
230
170
|
if (!modalEl) {
|
|
231
171
|
return;
|
|
232
172
|
}
|
|
173
|
+
modalEl.style.margin = getPositionMargin(position) || "";
|
|
174
|
+
modalEl.style.position = "";
|
|
233
175
|
modalEl.style.top = "";
|
|
234
176
|
modalEl.style.left = "";
|
|
235
177
|
modalEl.style.right = "";
|
|
236
178
|
modalEl.style.bottom = "";
|
|
237
|
-
modalEl.style.margin = "";
|
|
238
|
-
modalEl.style.marginTop = typeof top === "number" ? `${top}px` : top ?? "";
|
|
239
|
-
modalEl.style.display = "";
|
|
240
|
-
modalEl.style.position = "";
|
|
241
|
-
modalEl.style.verticalAlign = "";
|
|
242
179
|
modalEl.style.height = "";
|
|
243
180
|
modalEl.style.maxHeight = "";
|
|
244
181
|
modalEl.style.minHeight = "";
|
|
@@ -246,75 +183,12 @@ function resetModalStyle(modalEl, width, top) {
|
|
|
246
183
|
modalEl.style.maxWidth = "";
|
|
247
184
|
modalEl.style.minWidth = "";
|
|
248
185
|
}
|
|
249
|
-
function setModalPosition(modalEl, resizable, position, moveOut) {
|
|
250
|
-
if (!position || typeof position !== "object" || !modalEl) {
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
const wrapEl = modalEl.parentElement;
|
|
254
|
-
if (!wrapEl) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
initModalStyle(modalEl, resizable);
|
|
258
|
-
const location = {};
|
|
259
|
-
const canOutB = canMoveOut(moveOut, "bottom");
|
|
260
|
-
const canOutR = canMoveOut(moveOut, "right");
|
|
261
|
-
const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : fixTop);
|
|
262
|
-
const maxTop = t < 0 ? 0 : t;
|
|
263
|
-
const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : fixLeft);
|
|
264
|
-
const maxLeft = l < 0 ? 0 : l;
|
|
265
|
-
if (position.top != null) {
|
|
266
|
-
location.top = position.top;
|
|
267
|
-
} else if (position.bottom != null) {
|
|
268
|
-
location.bottom = position.bottom;
|
|
269
|
-
} else if (position.left != null || position.right != null) {
|
|
270
|
-
location.top = maxTop / 2;
|
|
271
|
-
}
|
|
272
|
-
if (position.left != null) {
|
|
273
|
-
location.left = position.left;
|
|
274
|
-
} else if (position.right != null) {
|
|
275
|
-
location.right = position.right;
|
|
276
|
-
} else if (position.top != null || position.bottom != null) {
|
|
277
|
-
location.left = maxLeft / 2;
|
|
278
|
-
}
|
|
279
|
-
Object.keys(location).forEach((key) => {
|
|
280
|
-
const value = location[key];
|
|
281
|
-
if (typeof value === "number") {
|
|
282
|
-
modalEl.style[key] = `${Math.floor(value)}px`;
|
|
283
|
-
} else if (value != null) {
|
|
284
|
-
modalEl.style[key] = value;
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
function setInitPosition(modalEl, resizable, position, moveOut, force) {
|
|
289
|
-
const attr = "ele-position";
|
|
290
|
-
if (modalEl && position && (force || !modalEl.getAttribute(attr))) {
|
|
291
|
-
modalEl.setAttribute(attr, "1");
|
|
292
|
-
setModalPosition(modalEl, resizable, position, moveOut);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
186
|
exports.closedClass = closedClass;
|
|
296
|
-
exports.
|
|
297
|
-
exports.compactClass = compactClass;
|
|
298
|
-
exports.containerId = containerId;
|
|
299
|
-
exports.expandedClass = expandedClass;
|
|
300
|
-
exports.fullscreenClass = fullscreenClass;
|
|
187
|
+
exports.containerClass = containerClass;
|
|
301
188
|
exports.getModalContainer = getModalContainer;
|
|
302
|
-
exports.
|
|
303
|
-
exports.
|
|
304
|
-
exports.
|
|
305
|
-
exports.hideClass = hideClass;
|
|
306
|
-
exports.innerClass = innerClass;
|
|
307
|
-
exports.maximizedClass = maximizedClass;
|
|
308
|
-
exports.mixSidebarClass = mixSidebarClass;
|
|
309
|
-
exports.mobileClass = mobileClass;
|
|
310
|
-
exports.movableClass = movableClass;
|
|
311
|
-
exports.multipleClass = multipleClass;
|
|
189
|
+
exports.getPositionMargin = getPositionMargin;
|
|
190
|
+
exports.handleMove = handleMove;
|
|
191
|
+
exports.handleResize = handleResize;
|
|
312
192
|
exports.resetModalStyle = resetModalStyle;
|
|
313
|
-
exports.
|
|
314
|
-
exports.responsiveClass = responsiveClass;
|
|
315
|
-
exports.setInitPosition = setInitPosition;
|
|
316
|
-
exports.setModalPosition = setModalPosition;
|
|
317
|
-
exports.setModalTop = setModalTop;
|
|
318
|
-
exports.singleSidebarClass = singleSidebarClass;
|
|
319
|
-
exports.topLayoutClass = topLayoutClass;
|
|
193
|
+
exports.topModal = topModal;
|
|
320
194
|
exports.wrapperClass = wrapperClass;
|
package/lib/ele-modal/util.d.ts
CHANGED
|
@@ -1,71 +1,45 @@
|
|
|
1
1
|
import { ModalProps } from './props';
|
|
2
|
-
import {
|
|
2
|
+
import { Position } from './types';
|
|
3
3
|
|
|
4
|
+
export declare const containerClass = "ele-modal-container";
|
|
4
5
|
export declare const wrapperClass = "ele-modal";
|
|
5
|
-
export declare const containerId = "ele-modal-container";
|
|
6
|
-
export declare const movableClass = "ele-modal-movable";
|
|
7
|
-
export declare const resizableClass = "ele-modal-resizable";
|
|
8
|
-
export declare const multipleClass = "ele-modal-multiple";
|
|
9
|
-
export declare const fullscreenClass = "ele-modal-fullscreen";
|
|
10
|
-
export declare const innerClass = "ele-modal-inner";
|
|
11
|
-
export declare const responsiveClass = "ele-modal-responsive";
|
|
12
6
|
export declare const closedClass = "ele-modal-closed";
|
|
13
|
-
export declare const hideClass = "ele-modal-hide";
|
|
14
|
-
export declare const collapseClass = "ele-state-collapse";
|
|
15
|
-
export declare const compactClass = "ele-state-compact";
|
|
16
|
-
export declare const maximizedClass = "ele-state-maximized";
|
|
17
|
-
export declare const hasTabClass = "ele-state-has-tab";
|
|
18
|
-
export declare const mixSidebarClass = "ele-state-mix-sidebar";
|
|
19
|
-
export declare const singleSidebarClass = "ele-state-single-sidebar";
|
|
20
|
-
export declare const topLayoutClass = "ele-state-top-layout";
|
|
21
|
-
export declare const expandedClass = "ele-state-expanded";
|
|
22
|
-
export declare const mobileClass = "ele-state-mobile";
|
|
23
7
|
/**
|
|
24
|
-
*
|
|
8
|
+
* 获取弹窗容器
|
|
9
|
+
* @param inner 是否限制在主体内部
|
|
25
10
|
* @param multiple 是否支持同时打开多个
|
|
26
|
-
* @param appendTo
|
|
11
|
+
* @param appendTo 自定义插入的容器
|
|
12
|
+
* @param modalsEl 限制在主体内部时的容器
|
|
27
13
|
*/
|
|
28
|
-
export declare function getModalContainer(multiple?: boolean, appendTo?: string): Element | string;
|
|
14
|
+
export declare function getModalContainer(inner?: boolean, multiple?: boolean, appendTo?: string, modalsEl?: HTMLElement | null): Element | string;
|
|
29
15
|
/**
|
|
30
16
|
* 弹窗移动事件处理
|
|
17
|
+
* @param modalEl 弹窗节点
|
|
31
18
|
* @param event 事件
|
|
32
19
|
* @param props 属性
|
|
33
20
|
*/
|
|
34
|
-
export declare function
|
|
21
|
+
export declare function handleMove(modalEl: HTMLElement, event: MouseEvent, props: ModalProps): void;
|
|
35
22
|
/**
|
|
36
23
|
* 弹窗拉伸事件处理
|
|
37
24
|
* @param event 事件
|
|
38
25
|
* @param props 属性
|
|
39
26
|
*/
|
|
40
|
-
export declare function
|
|
27
|
+
export declare function handleResize(modalEl: HTMLElement, event: MouseEvent, props: ModalProps): void;
|
|
41
28
|
/**
|
|
42
29
|
* 置顶弹窗
|
|
43
|
-
* @param modalEl
|
|
30
|
+
* @param modalEl 弹窗
|
|
44
31
|
* @param zIndex 弹窗初始层级
|
|
45
|
-
* @returns
|
|
46
32
|
*/
|
|
47
|
-
export declare function
|
|
33
|
+
export declare function topModal(modalEl?: HTMLElement, zIndex?: number): void;
|
|
48
34
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param modalEl 弹窗节点
|
|
51
|
-
* @param width 初始宽度
|
|
52
|
-
* @param top 初始顶部距离
|
|
53
|
-
*/
|
|
54
|
-
export declare function resetModalStyle(modalEl?: HTMLElement, width?: string | number, top?: string | number): void;
|
|
55
|
-
/**
|
|
56
|
-
* 设置弹窗位置
|
|
57
|
-
* @param modalEl 弹窗节点
|
|
35
|
+
* 获取位置对应的外间距值
|
|
58
36
|
* @param position 位置
|
|
59
|
-
* @param resizable 是否可以拉伸
|
|
60
|
-
* @param moveOut 是否可以拉出容器
|
|
61
37
|
*/
|
|
62
|
-
export declare function
|
|
38
|
+
export declare function getPositionMargin(position?: Position): string | undefined;
|
|
63
39
|
/**
|
|
64
|
-
*
|
|
40
|
+
* 重置弹窗位置及大小
|
|
65
41
|
* @param modalEl 弹窗节点
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
68
|
-
* @param moveOut 是否可以拉出容器
|
|
69
|
-
* @param force 是否强制更新
|
|
42
|
+
* @param width 初始宽度
|
|
43
|
+
* @param top 初始顶部距离
|
|
70
44
|
*/
|
|
71
|
-
export declare function
|
|
45
|
+
export declare function resetModalStyle(modalEl?: HTMLElement, width?: string | number, position?: Position): void;
|
package/lib/ele-page/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
flexTable: BooleanConstructor;
|
|
8
8
|
hideFooter: BooleanConstructor;
|
|
9
|
-
}, unknown, unknown, {}, {}, import(
|
|
9
|
+
}, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
10
|
plain: BooleanConstructor;
|
|
11
11
|
multiCard: {
|
|
12
12
|
type: BooleanConstructor;
|
|
@@ -11,7 +11,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
11
11
|
const isInfinite = vue.computed(() => "*" === props2.total);
|
|
12
12
|
const pageTotal = vue.computed(() => {
|
|
13
13
|
if (isInfinite.value) {
|
|
14
|
-
|
|
14
|
+
if (props2.hasNext) {
|
|
15
|
+
return Number.MAX_SAFE_INTEGER;
|
|
16
|
+
}
|
|
17
|
+
return (props2.currentPage || 1) * (props2.pageSize || 10);
|
|
15
18
|
}
|
|
16
19
|
const num = props2.total == null ? void 0 : Number(props2.total);
|
|
17
20
|
return num == null || isNaN(num) ? void 0 : num;
|
|
@@ -1,55 +1,63 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
total: import(
|
|
2
|
+
total: import('vue').PropType<import('./types').PaginationTotal>;
|
|
3
|
+
hasNext: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
3
7
|
type: {
|
|
4
|
-
type: import(
|
|
8
|
+
type: import('vue').PropType<import('./types').PaginationType>;
|
|
5
9
|
default: string;
|
|
6
10
|
};
|
|
7
11
|
pageSize: NumberConstructor;
|
|
8
12
|
defaultPageSize: NumberConstructor;
|
|
9
13
|
pageCount: NumberConstructor;
|
|
10
|
-
pagerCount: import(
|
|
14
|
+
pagerCount: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
11
15
|
currentPage: NumberConstructor;
|
|
12
16
|
defaultCurrentPage: NumberConstructor;
|
|
13
|
-
layout: import(
|
|
14
|
-
pageSizes: import(
|
|
15
|
-
popperClass: import(
|
|
16
|
-
prevText: import(
|
|
17
|
-
prevIcon: import(
|
|
18
|
-
nextText: import(
|
|
19
|
-
nextIcon: import(
|
|
20
|
-
teleported: import(
|
|
17
|
+
layout: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
18
|
+
pageSizes: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
19
|
+
popperClass: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
20
|
+
prevText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
21
|
+
prevIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
22
|
+
nextText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
23
|
+
nextIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
24
|
+
teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
25
|
small: BooleanConstructor;
|
|
22
26
|
background: BooleanConstructor;
|
|
23
27
|
disabled: BooleanConstructor;
|
|
24
28
|
hideOnSinglePage: BooleanConstructor;
|
|
25
29
|
}, {
|
|
26
|
-
isInfinite: import(
|
|
27
|
-
pageTotal: import(
|
|
30
|
+
isInfinite: import('vue').ComputedRef<boolean>;
|
|
31
|
+
pageTotal: import('vue').ComputedRef<number | undefined>;
|
|
28
32
|
onUpdateCurrentPage: (currentPage: number) => void;
|
|
29
33
|
onUpdatePageSize: (pageSize: number) => void;
|
|
30
|
-
}, unknown, {}, {}, import(
|
|
34
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
35
|
'update:currentPage': (_currentPage: number) => boolean;
|
|
32
36
|
'update:pageSize': (_pageSize: number) => boolean;
|
|
33
|
-
}, string, import(
|
|
34
|
-
total: import(
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
total: import('vue').PropType<import('./types').PaginationTotal>;
|
|
39
|
+
hasNext: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
35
43
|
type: {
|
|
36
|
-
type: import(
|
|
44
|
+
type: import('vue').PropType<import('./types').PaginationType>;
|
|
37
45
|
default: string;
|
|
38
46
|
};
|
|
39
47
|
pageSize: NumberConstructor;
|
|
40
48
|
defaultPageSize: NumberConstructor;
|
|
41
49
|
pageCount: NumberConstructor;
|
|
42
|
-
pagerCount: import(
|
|
50
|
+
pagerCount: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
43
51
|
currentPage: NumberConstructor;
|
|
44
52
|
defaultCurrentPage: NumberConstructor;
|
|
45
|
-
layout: import(
|
|
46
|
-
pageSizes: import(
|
|
47
|
-
popperClass: import(
|
|
48
|
-
prevText: import(
|
|
49
|
-
prevIcon: import(
|
|
50
|
-
nextText: import(
|
|
51
|
-
nextIcon: import(
|
|
52
|
-
teleported: import(
|
|
53
|
+
layout: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
54
|
+
pageSizes: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
55
|
+
popperClass: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
56
|
+
prevText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
57
|
+
prevIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
58
|
+
nextText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
59
|
+
nextIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
60
|
+
teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
53
61
|
small: BooleanConstructor;
|
|
54
62
|
background: BooleanConstructor;
|
|
55
63
|
disabled: BooleanConstructor;
|
|
@@ -58,16 +66,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
58
66
|
"onUpdate:currentPage"?: ((_currentPage: number) => any) | undefined;
|
|
59
67
|
"onUpdate:pageSize"?: ((_pageSize: number) => any) | undefined;
|
|
60
68
|
}, {
|
|
61
|
-
type: import(
|
|
69
|
+
type: import('./types').PaginationType;
|
|
70
|
+
hasNext: boolean;
|
|
62
71
|
pagerCount: number;
|
|
63
72
|
layout: string;
|
|
64
73
|
pageSizes: number[];
|
|
65
74
|
popperClass: string;
|
|
66
75
|
prevText: string;
|
|
67
|
-
prevIcon: import(
|
|
76
|
+
prevIcon: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown>;
|
|
68
77
|
nextText: string;
|
|
69
|
-
nextIcon: import(
|
|
70
|
-
teleported: import(
|
|
78
|
+
nextIcon: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown>;
|
|
79
|
+
teleported: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
71
80
|
small: boolean;
|
|
72
81
|
background: boolean;
|
|
73
82
|
disabled: boolean;
|
|
@@ -7,6 +7,11 @@ import { PropType, ExtractPropTypes } from 'vue';
|
|
|
7
7
|
export declare const paginationProps: {
|
|
8
8
|
/** 总条目数 */
|
|
9
9
|
total: PropType<PaginationTotal>;
|
|
10
|
+
/** 是否还有下一页 */
|
|
11
|
+
hasNext: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
10
15
|
/** 风格 */
|
|
11
16
|
type: {
|
|
12
17
|
type: PropType<PaginationType>;
|
|
@@ -22,9 +27,9 @@ export declare const paginationProps: {
|
|
|
22
27
|
pageSizes: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
23
28
|
popperClass: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
24
29
|
prevText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
25
|
-
prevIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import(
|
|
30
|
+
prevIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
26
31
|
nextText: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
27
|
-
nextIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import(
|
|
32
|
+
nextIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
28
33
|
teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
34
|
small: BooleanConstructor;
|
|
30
35
|
background: BooleanConstructor;
|
|
@@ -3,6 +3,7 @@ const vue = require("vue");
|
|
|
3
3
|
const elementPlus = require("element-plus");
|
|
4
4
|
const core = require("../utils/core");
|
|
5
5
|
const EleTooltip = require("../ele-tooltip/index");
|
|
6
|
+
const props$1 = require("../ele-tooltip/props");
|
|
6
7
|
const icons = require("../icons");
|
|
7
8
|
const props = require("./props");
|
|
8
9
|
const _sfc_main = vue.defineComponent({
|
|
@@ -14,33 +15,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
15
|
const { t } = elementPlus.useLocale();
|
|
15
16
|
const tooltipRef = vue.ref(null);
|
|
16
17
|
const tooltipProps = vue.computed(() => {
|
|
17
|
-
const
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"bodyStyle",
|
|
22
|
-
"titleStyle",
|
|
23
|
-
"contentStyle",
|
|
24
|
-
"confirmButtonText",
|
|
25
|
-
"cancelButtonText",
|
|
26
|
-
"confirmButtonType",
|
|
27
|
-
"cancelButtonType",
|
|
28
|
-
"icon",
|
|
29
|
-
"iconColor",
|
|
30
|
-
"hideIcon",
|
|
31
|
-
"hideConfirmButton",
|
|
32
|
-
"hideCancelButton",
|
|
33
|
-
"iconStyle",
|
|
34
|
-
"iconProps",
|
|
35
|
-
"confirmButtonProps",
|
|
36
|
-
"cancelButtonProps",
|
|
37
|
-
"footerStyle",
|
|
38
|
-
"onUpdate:visible",
|
|
39
|
-
"onBefore-enter",
|
|
40
|
-
"onBefore-leave",
|
|
41
|
-
"onAfter-enter",
|
|
42
|
-
"onAfter-leave"
|
|
43
|
-
]);
|
|
18
|
+
const keys = props$1.tooltipPropKeys.filter(
|
|
19
|
+
(k) => !["content", "bodyStyle"].includes(k)
|
|
20
|
+
);
|
|
21
|
+
const options = core.pick(props2, keys);
|
|
44
22
|
options.ariaLabel = props2.title;
|
|
45
23
|
options.gpuAcceleration = props2.transition === "el-fade-in-linear";
|
|
46
24
|
const classes = ["ele-popconfirm"];
|