ele-admin-plus 1.4.0 → 1.4.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-components.d.ts +2 -0
- package/es/core-components.js +104 -100
- package/es/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
- package/es/ele-admin-layout/components/layout-skeleton.js +9 -3
- package/es/ele-admin-layout/components/layout-tabs.d.ts +7 -2
- package/es/ele-admin-layout/components/layout-tabs.js +9 -4
- package/es/ele-admin-layout/index.js +23 -18
- package/es/ele-alert/index.js +7 -8
- package/es/ele-app/el.d.ts +3 -1
- package/es/ele-app/plus.d.ts +19 -40
- package/es/ele-app/plusx.d.ts +53 -0
- package/es/ele-app/style/overwrite/date-picker/index.scss +1 -1
- package/es/ele-autocomplete/index.d.ts +265 -47
- package/es/ele-autocomplete/props.d.ts +124 -22
- package/es/ele-avatar-group/types.d.ts +1 -1
- package/es/ele-backtop/index.js +13 -8
- package/es/ele-basic-select/components/select-view.d.ts +160 -0
- package/es/ele-basic-select/components/select-view.js +309 -0
- package/es/ele-basic-select/index.d.ts +45 -35
- package/es/ele-basic-select/index.js +160 -250
- package/es/ele-basic-select/props.d.ts +34 -16
- package/es/ele-basic-select/props.js +33 -15
- package/es/ele-basic-select/style/index.js +2 -0
- package/es/ele-basic-select/types.d.ts +22 -1
- package/es/ele-basic-select/util.js +6 -1
- package/es/ele-bottom-bar/index.js +6 -6
- package/es/ele-breadcrumb/types.d.ts +1 -1
- package/es/ele-cascader/index.d.ts +17 -19
- package/es/ele-cascader/props.d.ts +4 -5
- package/es/ele-check-card/types.d.ts +1 -1
- package/es/ele-checkbox-group/index.d.ts +1 -1
- package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +96 -83
- package/es/ele-config-provider/receiver.d.ts +4 -2
- package/es/ele-config-provider/receiver.js +12 -1
- package/es/ele-config-provider/types.d.ts +10 -1
- package/es/ele-copyable/index.d.ts +2 -4
- package/es/ele-cron-builder/index.d.ts +24 -0
- package/es/ele-cron-builder/index.js +81 -0
- package/es/ele-cron-builder/props.d.ts +31 -0
- package/es/ele-cron-builder/props.js +24 -0
- package/es/ele-cron-builder/style/index.d.ts +1 -0
- package/es/ele-cron-builder/style/index.js +4 -0
- package/es/ele-cron-builder/style/index.scss +6 -0
- package/es/ele-cron-builder/types.d.ts +8 -0
- package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-day.js +232 -0
- package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-hour.js +174 -0
- package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-minute.js +174 -0
- package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-month.js +174 -0
- package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-second.js +174 -0
- package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-week.js +229 -0
- package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-year.js +186 -0
- package/es/ele-cron-panel/index.d.ts +14 -0
- package/es/ele-cron-panel/index.js +348 -0
- package/es/ele-cron-panel/props.d.ts +20 -0
- package/es/ele-cron-panel/props.js +14 -0
- package/es/ele-cron-panel/style/index.d.ts +1 -0
- package/es/ele-cron-panel/style/index.js +7 -0
- package/es/ele-cron-panel/style/index.scss +282 -0
- package/es/ele-cron-panel/types.d.ts +118 -0
- package/es/ele-cron-panel/util.d.ts +23 -0
- package/es/ele-cron-panel/util.js +542 -0
- package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/es/ele-cropper/index.d.ts +1 -3
- package/es/ele-cropper-modal/index.d.ts +3 -5
- package/es/ele-crud/components/page-side.js +1 -4
- package/es/ele-crud/index.d.ts +3 -3
- package/es/ele-crud/types.d.ts +1 -1
- package/es/ele-crud/util.d.ts +1 -1
- package/es/ele-crud-builder/components/body-header.d.ts +1 -1
- package/es/ele-crud-builder/components/code-generator.d.ts +1 -1
- package/es/ele-crud-builder/components/code-preview.d.ts +1 -1
- package/es/ele-crud-builder/components/form-design-modal.d.ts +1 -1
- package/es/ele-crud-builder/components/import-modal.d.ts +1 -1
- package/es/ele-crud-builder/components/page-config.d.ts +1 -1
- package/es/ele-crud-builder/components/template-list.d.ts +1 -1
- package/es/ele-crud-builder/index.d.ts +3 -3
- package/es/ele-crud-builder/index.js +1 -1
- package/es/ele-crud-builder/props.d.ts +2 -1
- package/es/ele-crud-builder/types.d.ts +1 -1
- package/es/ele-crud-builder/util.js +2 -2
- package/es/ele-data-table/index.d.ts +38 -44
- package/es/ele-data-table/index.js +6 -3
- package/es/ele-data-table/props.d.ts +39 -45
- package/es/ele-drawer/index.d.ts +11 -2
- package/es/ele-drawer/index.js +9 -4
- package/es/ele-drawer/props.d.ts +11 -0
- package/es/ele-drawer/props.js +11 -2
- package/es/ele-drawer/style/index.scss +11 -0
- package/es/ele-dropdown/components/pro-dropdown.d.ts +28 -28
- package/es/ele-dropdown/index.d.ts +30 -30
- package/es/ele-dropdown/props.d.ts +12 -12
- package/es/ele-dropdown/types.d.ts +1 -1
- package/es/ele-edit-tag/index.d.ts +1 -1
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +1 -1
- package/es/ele-file-list/components/file-table.d.ts +1 -1
- package/es/ele-file-list/icons.js +10 -1
- package/es/ele-file-list/index.d.ts +3 -3
- package/es/ele-file-list/types.d.ts +1 -1
- package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/es/ele-icon-select/components/icon-grid.js +20 -12
- package/es/ele-icon-select/index.d.ts +59 -56
- package/es/ele-icon-select/index.js +94 -86
- package/es/ele-icon-select/props.d.ts +36 -31
- package/es/ele-icon-select/props.js +34 -30
- package/es/ele-icon-select/style/css-var.scss +1 -1
- package/es/ele-icon-select/style/index.scss +50 -18
- package/es/ele-icon-select/types.d.ts +13 -0
- package/es/ele-image-viewer/index.d.ts +2 -16
- package/es/ele-image-viewer/index.js +13 -15
- package/es/ele-image-viewer/props.d.ts +1 -8
- package/es/ele-loading/index.js +6 -6
- package/es/ele-map-picker/index.d.ts +5 -7
- package/es/ele-mention/index.d.ts +29 -8
- package/es/ele-mention/props.d.ts +9 -0
- package/es/ele-menus/types.d.ts +2 -0
- package/es/ele-menus/util.js +1 -1
- package/es/ele-modal/index.d.ts +8 -6
- package/es/ele-modal/index.js +12 -5
- package/es/ele-modal/props.d.ts +2 -0
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +16 -0
- package/es/ele-popconfirm/index.d.ts +95 -96
- package/es/ele-popconfirm/index.js +6 -21
- package/es/ele-popconfirm/props.d.ts +32 -32
- package/es/ele-popover/index.d.ts +72 -72
- package/es/ele-printer/index.d.ts +2 -2
- package/es/ele-printer/index.js +7 -7
- package/es/ele-pro-form/components/item-type-data.js +39 -64
- package/es/ele-pro-form/components/render-util.d.ts +2 -2
- package/es/ele-pro-form/index.d.ts +10 -5
- package/es/ele-pro-form/props.d.ts +3 -1
- package/es/ele-pro-form-builder/components/body-form.d.ts +1 -1
- package/es/ele-pro-form-builder/components/body-header.d.ts +1 -1
- package/es/ele-pro-form-builder/components/code-generator.d.ts +1 -1
- package/es/ele-pro-form-builder/components/code-preview.d.ts +1 -1
- package/es/ele-pro-form-builder/components/config-form.d.ts +1 -1
- package/es/ele-pro-form-builder/components/import-modal.d.ts +1 -1
- package/es/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
- package/es/ele-pro-form-builder/components/props-form.d.ts +1 -1
- package/es/ele-pro-form-builder/components/table-util.js +3 -0
- package/es/ele-pro-form-builder/components/template-list.d.ts +1 -1
- package/es/ele-pro-form-builder/index.d.ts +1 -1
- package/es/ele-pro-form-builder/props.d.ts +2 -1
- package/es/ele-pro-form-builder/types.d.ts +1 -1
- package/es/ele-pro-layout/index.d.ts +29 -29
- package/es/ele-pro-layout/props.d.ts +12 -12
- package/es/ele-pro-layout/style/index.scss +0 -2
- package/es/ele-pro-layout/types.d.ts +2 -0
- package/es/ele-pro-table/components/table-tools.d.ts +12 -97
- package/es/ele-pro-table/components/table-tools.js +118 -248
- package/es/ele-pro-table/components/tool-export.d.ts +7 -3
- package/es/ele-pro-table/components/tool-export.js +32 -20
- package/es/ele-pro-table/components/tool-print.d.ts +6 -2
- package/es/ele-pro-table/components/tool-print.js +37 -25
- package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/es/ele-pro-table/exceljs-plugin.js +81 -0
- package/es/ele-pro-table/index.d.ts +46 -53
- package/es/ele-pro-table/index.js +127 -61
- package/es/ele-pro-table/props.d.ts +18 -21
- package/es/ele-pro-table/style/css-var.scss +4 -0
- package/es/ele-pro-table/style/index.scss +2 -2
- package/es/ele-pro-table/types.d.ts +11 -0
- package/es/ele-radio-group/index.d.ts +2 -2
- package/es/ele-segmented/index.d.ts +2 -2
- package/es/ele-segmented/props.d.ts +1 -1
- package/es/ele-segmented/style/index.scss +1 -0
- package/es/ele-select/index.d.ts +12 -12
- package/es/ele-select/props.d.ts +2 -2
- package/es/ele-select/props.js +2 -2
- package/es/ele-select-tree/index.d.ts +10 -10
- package/es/ele-select-tree/props.d.ts +2 -2
- package/es/ele-select-tree/props.js +2 -2
- package/es/ele-split-panel/style/index.scss +1 -1
- package/es/ele-steps/types.d.ts +1 -1
- package/es/ele-tab-bar/index.d.ts +4 -2
- package/es/ele-tab-bar/index.js +1 -0
- package/es/ele-tab-bar/props.d.ts +3 -1
- package/es/ele-tab-bar/props.js +4 -2
- package/es/ele-tab-bar/style/index.scss +1 -0
- package/es/ele-table-select/index.d.ts +2 -0
- package/es/ele-table-select/props.d.ts +4 -2
- package/es/ele-table-select/props.js +4 -2
- package/es/ele-tabs/index.d.ts +16 -12
- package/es/ele-tabs/style/index.scss +1 -0
- package/es/ele-tabs/types.d.ts +1 -1
- package/es/ele-timeline/types.d.ts +3 -3
- package/es/ele-tooltip/index.d.ts +53 -53
- package/es/ele-tour/index.d.ts +3 -3
- package/es/ele-tour/index.js +7 -7
- package/es/ele-transfer/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +4 -2
- package/es/ele-tree-select/props.d.ts +1 -1
- package/es/ele-upload-list/components/list-item.d.ts +3 -0
- package/es/ele-upload-list/components/list-item.js +1 -0
- package/es/ele-upload-list/index.d.ts +3 -3
- package/es/ele-upload-list/index.js +25 -8
- package/es/ele-upload-list/types.d.ts +1 -1
- package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/es/ele-virtual-table/index.d.ts +38 -44
- package/es/ele-virtual-table/props.d.ts +19 -22
- package/es/ele-watermark/index.d.ts +20 -7
- package/es/ele-watermark/index.js +254 -92
- package/es/ele-watermark/props.d.ts +10 -3
- package/es/ele-watermark/props.js +10 -3
- package/es/ele-watermark/types.d.ts +12 -0
- package/es/ele-watermark/util.d.ts +4 -9
- package/es/ele-watermark/util.js +20 -22
- package/es/lang/en_US.js +116 -0
- package/es/lang/zh_CN.js +116 -0
- package/es/lang/zh_TW.js +116 -0
- package/es/style/plus.scss +3 -1
- package/es/style/themes/default.scss +18 -3
- package/es/style/themes/rounded.scss +5 -1
- package/es/style/themes/transparent.scss +3 -0
- package/es/utils/common.d.ts +10 -0
- package/es/utils/common.js +10 -0
- package/es/utils/core.d.ts +6 -0
- package/es/utils/core.js +10 -1
- package/es/utils/menu-util.js +1 -0
- package/es/utils/theme-util.d.ts +1 -1
- package/lib/core-components.cjs +104 -100
- package/lib/core-components.d.ts +2 -0
- package/lib/ele-admin-layout/components/layout-skeleton.cjs +9 -3
- package/lib/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
- package/lib/ele-admin-layout/components/layout-tabs.cjs +9 -4
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +7 -2
- package/lib/ele-admin-layout/index.cjs +23 -18
- package/lib/ele-alert/index.cjs +6 -7
- package/lib/ele-app/el.d.ts +3 -1
- package/lib/ele-app/plus.d.ts +19 -40
- package/lib/ele-app/plusx.d.ts +53 -0
- package/lib/ele-app/style/overwrite/date-picker/index.scss +1 -1
- package/lib/ele-autocomplete/index.d.ts +265 -47
- package/lib/ele-autocomplete/props.d.ts +124 -22
- package/lib/ele-avatar-group/types.d.ts +1 -1
- package/lib/ele-backtop/index.cjs +12 -7
- package/lib/ele-basic-select/components/select-view.cjs +308 -0
- package/lib/ele-basic-select/components/select-view.d.ts +160 -0
- package/lib/ele-basic-select/index.cjs +159 -249
- package/lib/ele-basic-select/index.d.ts +45 -35
- package/lib/ele-basic-select/props.cjs +33 -15
- package/lib/ele-basic-select/props.d.ts +34 -16
- package/lib/ele-basic-select/style/index.cjs +2 -0
- package/lib/ele-basic-select/types.d.ts +22 -1
- package/lib/ele-basic-select/util.cjs +6 -1
- package/lib/ele-bottom-bar/index.cjs +5 -5
- package/lib/ele-breadcrumb/types.d.ts +1 -1
- package/lib/ele-cascader/index.d.ts +17 -19
- package/lib/ele-cascader/props.d.ts +4 -5
- package/lib/ele-check-card/types.d.ts +1 -1
- package/lib/ele-checkbox-group/index.d.ts +1 -1
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/lib/ele-config-provider/receiver.cjs +14 -1
- package/lib/ele-config-provider/receiver.d.ts +4 -2
- package/lib/ele-config-provider/types.d.ts +10 -1
- package/lib/ele-copyable/index.d.ts +2 -4
- package/lib/ele-cron-builder/index.cjs +80 -0
- package/lib/ele-cron-builder/index.d.ts +24 -0
- package/lib/ele-cron-builder/props.cjs +24 -0
- package/lib/ele-cron-builder/props.d.ts +31 -0
- package/lib/ele-cron-builder/style/index.cjs +5 -0
- package/lib/ele-cron-builder/style/index.d.ts +1 -0
- package/lib/ele-cron-builder/style/index.scss +6 -0
- package/lib/ele-cron-builder/types.d.ts +8 -0
- package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
- package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
- package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
- package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/lib/ele-cron-panel/index.cjs +347 -0
- package/lib/ele-cron-panel/index.d.ts +14 -0
- package/lib/ele-cron-panel/props.cjs +14 -0
- package/lib/ele-cron-panel/props.d.ts +20 -0
- package/lib/ele-cron-panel/style/index.cjs +8 -0
- package/lib/ele-cron-panel/style/index.d.ts +1 -0
- package/lib/ele-cron-panel/style/index.scss +282 -0
- package/lib/ele-cron-panel/types.d.ts +118 -0
- package/lib/ele-cron-panel/util.cjs +542 -0
- package/lib/ele-cron-panel/util.d.ts +23 -0
- package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/lib/ele-cropper/index.d.ts +1 -3
- package/lib/ele-cropper-modal/index.d.ts +3 -5
- package/lib/ele-crud/components/page-side.cjs +1 -4
- package/lib/ele-crud/index.d.ts +3 -3
- package/lib/ele-crud/types.d.ts +1 -1
- package/lib/ele-crud/util.d.ts +1 -1
- package/lib/ele-crud-builder/components/body-header.d.ts +1 -1
- package/lib/ele-crud-builder/components/code-generator.d.ts +1 -1
- package/lib/ele-crud-builder/components/code-preview.d.ts +1 -1
- package/lib/ele-crud-builder/components/form-design-modal.d.ts +1 -1
- package/lib/ele-crud-builder/components/import-modal.d.ts +1 -1
- package/lib/ele-crud-builder/components/page-config.d.ts +1 -1
- package/lib/ele-crud-builder/components/template-list.d.ts +1 -1
- package/lib/ele-crud-builder/index.cjs +1 -1
- package/lib/ele-crud-builder/index.d.ts +3 -3
- package/lib/ele-crud-builder/props.d.ts +2 -1
- package/lib/ele-crud-builder/types.d.ts +1 -1
- package/lib/ele-crud-builder/util.cjs +2 -2
- package/lib/ele-data-table/index.cjs +6 -3
- package/lib/ele-data-table/index.d.ts +38 -44
- package/lib/ele-data-table/props.d.ts +39 -45
- package/lib/ele-drawer/index.cjs +18 -13
- package/lib/ele-drawer/index.d.ts +11 -2
- package/lib/ele-drawer/props.cjs +10 -1
- package/lib/ele-drawer/props.d.ts +11 -0
- package/lib/ele-drawer/style/index.scss +11 -0
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +28 -28
- package/lib/ele-dropdown/index.d.ts +30 -30
- package/lib/ele-dropdown/props.d.ts +12 -12
- package/lib/ele-dropdown/types.d.ts +1 -1
- package/lib/ele-edit-tag/index.d.ts +1 -1
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-file-list/components/file-grid.d.ts +1 -1
- package/lib/ele-file-list/components/file-table.d.ts +1 -1
- package/lib/ele-file-list/icons.cjs +10 -1
- package/lib/ele-file-list/index.d.ts +3 -3
- package/lib/ele-file-list/types.d.ts +1 -1
- package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
- package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/lib/ele-icon-select/index.cjs +93 -85
- package/lib/ele-icon-select/index.d.ts +59 -56
- package/lib/ele-icon-select/props.cjs +34 -30
- package/lib/ele-icon-select/props.d.ts +36 -31
- package/lib/ele-icon-select/style/css-var.scss +1 -1
- package/lib/ele-icon-select/style/index.scss +50 -18
- package/lib/ele-icon-select/types.d.ts +13 -0
- package/lib/ele-image-viewer/index.cjs +12 -14
- package/lib/ele-image-viewer/index.d.ts +2 -16
- package/lib/ele-image-viewer/props.d.ts +1 -8
- package/lib/ele-loading/index.cjs +5 -5
- package/lib/ele-map-picker/index.d.ts +5 -7
- package/lib/ele-mention/index.d.ts +29 -8
- package/lib/ele-mention/props.d.ts +9 -0
- package/lib/ele-menus/types.d.ts +2 -0
- package/lib/ele-menus/util.cjs +1 -1
- package/lib/ele-modal/index.cjs +43 -36
- package/lib/ele-modal/index.d.ts +8 -6
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +2 -0
- package/lib/ele-modal/style/index.scss +16 -0
- package/lib/ele-popconfirm/index.cjs +5 -20
- package/lib/ele-popconfirm/index.d.ts +95 -96
- package/lib/ele-popconfirm/props.d.ts +32 -32
- package/lib/ele-popover/index.d.ts +72 -72
- package/lib/ele-printer/index.cjs +6 -6
- package/lib/ele-printer/index.d.ts +2 -2
- package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
- package/lib/ele-pro-form/components/render-util.d.ts +2 -2
- package/lib/ele-pro-form/index.d.ts +10 -5
- package/lib/ele-pro-form/props.d.ts +3 -1
- package/lib/ele-pro-form-builder/components/body-form.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/body-header.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/code-generator.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/code-preview.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/config-form.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/import-modal.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/props-form.d.ts +1 -1
- package/lib/ele-pro-form-builder/components/table-util.cjs +3 -0
- package/lib/ele-pro-form-builder/components/template-list.d.ts +1 -1
- package/lib/ele-pro-form-builder/index.d.ts +1 -1
- package/lib/ele-pro-form-builder/props.d.ts +2 -1
- package/lib/ele-pro-form-builder/types.d.ts +1 -1
- package/lib/ele-pro-layout/index.d.ts +29 -29
- package/lib/ele-pro-layout/props.d.ts +12 -12
- package/lib/ele-pro-layout/style/index.scss +0 -2
- package/lib/ele-pro-layout/types.d.ts +2 -0
- package/lib/ele-pro-table/components/table-tools.cjs +117 -247
- package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
- package/lib/ele-pro-table/components/tool-export.cjs +32 -20
- package/lib/ele-pro-table/components/tool-export.d.ts +7 -3
- package/lib/ele-pro-table/components/tool-print.cjs +37 -25
- package/lib/ele-pro-table/components/tool-print.d.ts +6 -2
- package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
- package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/lib/ele-pro-table/index.cjs +153 -87
- package/lib/ele-pro-table/index.d.ts +46 -53
- package/lib/ele-pro-table/props.d.ts +18 -21
- package/lib/ele-pro-table/style/css-var.scss +4 -0
- package/lib/ele-pro-table/style/index.scss +2 -2
- package/lib/ele-pro-table/types.d.ts +11 -0
- package/lib/ele-radio-group/index.d.ts +2 -2
- package/lib/ele-segmented/index.d.ts +2 -2
- package/lib/ele-segmented/props.d.ts +1 -1
- package/lib/ele-segmented/style/index.scss +1 -0
- package/lib/ele-select/index.d.ts +12 -12
- package/lib/ele-select/props.cjs +1 -1
- package/lib/ele-select/props.d.ts +2 -2
- package/lib/ele-select-tree/index.d.ts +10 -10
- package/lib/ele-select-tree/props.cjs +1 -1
- package/lib/ele-select-tree/props.d.ts +2 -2
- package/lib/ele-split-panel/style/index.scss +1 -1
- package/lib/ele-steps/types.d.ts +1 -1
- package/lib/ele-tab-bar/index.cjs +1 -0
- package/lib/ele-tab-bar/index.d.ts +4 -2
- package/lib/ele-tab-bar/props.cjs +4 -2
- package/lib/ele-tab-bar/props.d.ts +3 -1
- package/lib/ele-tab-bar/style/index.scss +1 -0
- package/lib/ele-table-select/index.d.ts +2 -0
- package/lib/ele-table-select/props.cjs +4 -2
- package/lib/ele-table-select/props.d.ts +4 -2
- package/lib/ele-tabs/index.d.ts +16 -12
- package/lib/ele-tabs/style/index.scss +1 -0
- package/lib/ele-tabs/types.d.ts +1 -1
- package/lib/ele-timeline/types.d.ts +3 -3
- package/lib/ele-tooltip/index.d.ts +53 -53
- package/lib/ele-tour/index.cjs +6 -6
- package/lib/ele-tour/index.d.ts +3 -3
- package/lib/ele-transfer/index.d.ts +1 -1
- package/lib/ele-tree-select/index.d.ts +4 -2
- package/lib/ele-tree-select/props.d.ts +1 -1
- package/lib/ele-upload-list/components/list-item.cjs +1 -0
- package/lib/ele-upload-list/components/list-item.d.ts +3 -0
- package/lib/ele-upload-list/index.cjs +25 -8
- package/lib/ele-upload-list/index.d.ts +3 -3
- package/lib/ele-upload-list/types.d.ts +1 -1
- package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/lib/ele-virtual-table/index.d.ts +38 -44
- package/lib/ele-virtual-table/props.d.ts +19 -22
- package/lib/ele-watermark/index.cjs +252 -90
- package/lib/ele-watermark/index.d.ts +20 -7
- package/lib/ele-watermark/props.cjs +10 -3
- package/lib/ele-watermark/props.d.ts +10 -3
- package/lib/ele-watermark/types.d.ts +12 -0
- package/lib/ele-watermark/util.cjs +22 -22
- package/lib/ele-watermark/util.d.ts +4 -9
- package/lib/lang/en_US.cjs +116 -0
- package/lib/lang/zh_CN.cjs +116 -0
- package/lib/lang/zh_TW.cjs +116 -0
- package/lib/style/plus.scss +3 -1
- package/lib/style/themes/default.scss +18 -3
- package/lib/style/themes/rounded.scss +5 -1
- package/lib/style/themes/transparent.scss +3 -0
- package/lib/utils/common.cjs +10 -0
- package/lib/utils/common.d.ts +10 -0
- package/lib/utils/core.cjs +10 -1
- package/lib/utils/core.d.ts +6 -0
- package/lib/utils/menu-util.cjs +1 -0
- package/lib/utils/theme-util.d.ts +1 -1
- package/package.json +3 -2
- package/typings/global.d.ts +2 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { ElInputInstance } from '../../ele-app/el';
|
|
2
|
+
import { SelectedItem } from '../types';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
select?(_: {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
value: import('../types').SelectValue;
|
|
9
|
+
selectedLabel: string | undefined;
|
|
10
|
+
selected: SelectedItem[] | undefined;
|
|
11
|
+
currentTags: SelectedItem[];
|
|
12
|
+
omittedTags: SelectedItem[];
|
|
13
|
+
omittedSize: number;
|
|
14
|
+
openPopper: () => void;
|
|
15
|
+
closePopper: () => void;
|
|
16
|
+
removeItem: (item: SelectedItem) => void;
|
|
17
|
+
}): any;
|
|
18
|
+
prefix?(_: {}): any;
|
|
19
|
+
clearIcon?(_: {}): any;
|
|
20
|
+
suffixIcon?(_: {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
}): any;
|
|
23
|
+
maxTagPlaceholder?(_: {
|
|
24
|
+
omittedValues: SelectedItem[];
|
|
25
|
+
omittedSize: number;
|
|
26
|
+
}): any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
29
|
+
value: {
|
|
30
|
+
type: import('vue').PropType<import('../types').SelectValue>;
|
|
31
|
+
default: () => null;
|
|
32
|
+
};
|
|
33
|
+
multiple: BooleanConstructor;
|
|
34
|
+
disabled: BooleanConstructor;
|
|
35
|
+
size: import('vue').PropType<import('../../ele-app/el').ElInputProps["size"]>;
|
|
36
|
+
clearable: BooleanConstructor;
|
|
37
|
+
placeholder: StringConstructor;
|
|
38
|
+
selectedLabel: StringConstructor;
|
|
39
|
+
selected: import('vue').PropType<SelectedItem[]>;
|
|
40
|
+
maxTagCount: NumberConstructor;
|
|
41
|
+
maxTagTextLength: NumberConstructor;
|
|
42
|
+
tagType: import('vue').PropType<import('../../ele-app/el').ElTagProps["type"]>;
|
|
43
|
+
automaticDropdown: BooleanConstructor;
|
|
44
|
+
filterable: BooleanConstructor;
|
|
45
|
+
visible: BooleanConstructor;
|
|
46
|
+
selectClass: StringConstructor;
|
|
47
|
+
selectStyle: import('vue').PropType<import('../../ele-app/types').StyleValue | string>;
|
|
48
|
+
inputStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
|
|
49
|
+
selectTagsStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
|
|
50
|
+
popperClass: StringConstructor;
|
|
51
|
+
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
52
|
+
popperHeight: (StringConstructor | NumberConstructor)[];
|
|
53
|
+
popperType: {
|
|
54
|
+
type: import('vue').PropType<import('../types').PopperType>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
popperProps: import('vue').PropType<import('../types').PopperProps>;
|
|
58
|
+
popperSlots: ObjectConstructor;
|
|
59
|
+
popperTitle: StringConstructor;
|
|
60
|
+
teleported: BooleanConstructor;
|
|
61
|
+
persistent: BooleanConstructor;
|
|
62
|
+
placement: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["placement"]>;
|
|
63
|
+
transition: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
popperOptions: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["popperOptions"]>;
|
|
68
|
+
responsive: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: null;
|
|
71
|
+
};
|
|
72
|
+
}>, {
|
|
73
|
+
inputRef: import('vue').Ref<ElInputInstance, ElInputInstance>;
|
|
74
|
+
searchRef: import('vue').Ref<ElInputInstance, ElInputInstance>;
|
|
75
|
+
focusSearchInput: () => void;
|
|
76
|
+
updateSearchValue: (modelValue: string) => void;
|
|
77
|
+
updateInputValue: (modelValue: string) => void;
|
|
78
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
clear: () => void;
|
|
80
|
+
focus: (_e: FocusEvent) => void;
|
|
81
|
+
blur: (_e: FocusEvent) => void;
|
|
82
|
+
"update:visible": (_visible: boolean) => void;
|
|
83
|
+
filterChange: (_value: string) => void;
|
|
84
|
+
removeTag: (_item: SelectedItem) => void;
|
|
85
|
+
inputClick: (_e: MouseEvent) => void;
|
|
86
|
+
wrapClick: (_isCustom?: boolean | undefined) => void;
|
|
87
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
88
|
+
value: {
|
|
89
|
+
type: import('vue').PropType<import('../types').SelectValue>;
|
|
90
|
+
default: () => null;
|
|
91
|
+
};
|
|
92
|
+
multiple: BooleanConstructor;
|
|
93
|
+
disabled: BooleanConstructor;
|
|
94
|
+
size: import('vue').PropType<import('../../ele-app/el').ElInputProps["size"]>;
|
|
95
|
+
clearable: BooleanConstructor;
|
|
96
|
+
placeholder: StringConstructor;
|
|
97
|
+
selectedLabel: StringConstructor;
|
|
98
|
+
selected: import('vue').PropType<SelectedItem[]>;
|
|
99
|
+
maxTagCount: NumberConstructor;
|
|
100
|
+
maxTagTextLength: NumberConstructor;
|
|
101
|
+
tagType: import('vue').PropType<import('../../ele-app/el').ElTagProps["type"]>;
|
|
102
|
+
automaticDropdown: BooleanConstructor;
|
|
103
|
+
filterable: BooleanConstructor;
|
|
104
|
+
visible: BooleanConstructor;
|
|
105
|
+
selectClass: StringConstructor;
|
|
106
|
+
selectStyle: import('vue').PropType<import('../../ele-app/types').StyleValue | string>;
|
|
107
|
+
inputStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
|
|
108
|
+
selectTagsStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
|
|
109
|
+
popperClass: StringConstructor;
|
|
110
|
+
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
111
|
+
popperHeight: (StringConstructor | NumberConstructor)[];
|
|
112
|
+
popperType: {
|
|
113
|
+
type: import('vue').PropType<import('../types').PopperType>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
popperProps: import('vue').PropType<import('../types').PopperProps>;
|
|
117
|
+
popperSlots: ObjectConstructor;
|
|
118
|
+
popperTitle: StringConstructor;
|
|
119
|
+
teleported: BooleanConstructor;
|
|
120
|
+
persistent: BooleanConstructor;
|
|
121
|
+
placement: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["placement"]>;
|
|
122
|
+
transition: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
popperOptions: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["popperOptions"]>;
|
|
127
|
+
responsive: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: null;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{
|
|
132
|
+
onClear?: (() => any) | undefined;
|
|
133
|
+
onFocus?: ((_e: FocusEvent) => any) | undefined;
|
|
134
|
+
onBlur?: ((_e: FocusEvent) => any) | undefined;
|
|
135
|
+
"onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
|
|
136
|
+
onFilterChange?: ((_value: string) => any) | undefined;
|
|
137
|
+
onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
|
|
138
|
+
onInputClick?: ((_e: MouseEvent) => any) | undefined;
|
|
139
|
+
onWrapClick?: ((_isCustom?: boolean | undefined) => any) | undefined;
|
|
140
|
+
}>, {
|
|
141
|
+
value: import('../types').SelectValue;
|
|
142
|
+
teleported: boolean;
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
clearable: boolean;
|
|
145
|
+
filterable: boolean;
|
|
146
|
+
persistent: boolean;
|
|
147
|
+
visible: boolean;
|
|
148
|
+
transition: string;
|
|
149
|
+
automaticDropdown: boolean;
|
|
150
|
+
multiple: boolean;
|
|
151
|
+
responsive: boolean;
|
|
152
|
+
popperType: import('../types').PopperType;
|
|
153
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
154
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
155
|
+
export default _default;
|
|
156
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
157
|
+
new (): {
|
|
158
|
+
$slots: S;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
-
const elementPlus = require("element-plus");
|
|
4
|
-
const index = require("../icons/index");
|
|
5
3
|
const EleTooltip = require("../ele-tooltip/index");
|
|
4
|
+
const EleModal = require("../ele-modal/index");
|
|
5
|
+
const EleDrawer = require("../ele-drawer/index");
|
|
6
6
|
const ReceiverView = require("../ele-config-provider/components/receiver-view");
|
|
7
|
+
const SelectView = require("./components/select-view");
|
|
7
8
|
const props = require("./props");
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
10
|
...{ name: "EleBasicSelect" },
|
|
@@ -13,48 +14,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
13
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14
15
|
const props2 = __props;
|
|
15
16
|
const emit = __emit;
|
|
17
|
+
const selectViewRef = vue.ref(null);
|
|
16
18
|
const tooltipRef = vue.ref(null);
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
props2.
|
|
21
|
-
|
|
22
|
-
const searchValue = vue.ref("");
|
|
23
|
-
const isEmpty = vue.computed(() => {
|
|
24
|
-
if (!props2.multiple) {
|
|
25
|
-
return props2.value == null || props2.value === "";
|
|
26
|
-
}
|
|
27
|
-
return !Array.isArray(props2.value) || !props2.value.length;
|
|
28
|
-
});
|
|
29
|
-
const inputPlaceholder = vue.computed(() => {
|
|
30
|
-
const str = isEmpty.value && props2.placeholder ? props2.placeholder : "";
|
|
31
|
-
if (!props2.filterable || !props2.visible || props2.multiple) {
|
|
32
|
-
return str;
|
|
33
|
-
}
|
|
34
|
-
return props2.selectedLabel || str;
|
|
35
|
-
});
|
|
36
|
-
const isCollapse = vue.computed(() => {
|
|
37
|
-
return typeof props2.maxTagCount === "number" && props2.selected != null && props2.selected.length > props2.maxTagCount;
|
|
38
|
-
});
|
|
39
|
-
const currentTags = vue.computed(() => {
|
|
40
|
-
if (!isCollapse.value || isEmpty.value || props2.selected == null) {
|
|
41
|
-
return props2.selected || [];
|
|
42
|
-
}
|
|
43
|
-
return props2.selected.slice(0, props2.maxTagCount);
|
|
44
|
-
});
|
|
45
|
-
const omittedTags = vue.computed(() => {
|
|
46
|
-
if (!isCollapse.value || isEmpty.value || props2.selected == null) {
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
return props2.selected.slice(props2.maxTagCount);
|
|
50
|
-
});
|
|
51
|
-
const omittedSize = vue.computed(() => {
|
|
52
|
-
if (isEmpty.value || props2.maxTagCount == null || props2.maxTagCount < 0) {
|
|
53
|
-
return 0;
|
|
19
|
+
const isSelectInputClick = vue.ref(false);
|
|
20
|
+
const updateVisible = (visible) => {
|
|
21
|
+
isSelectInputClick.value = false;
|
|
22
|
+
if (!props2.disabled || !visible) {
|
|
23
|
+
emit("update:visible", visible);
|
|
54
24
|
}
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
let isSelectInputClick = false;
|
|
25
|
+
};
|
|
58
26
|
const updatePopper = () => {
|
|
59
27
|
tooltipRef.value && tooltipRef.value.updatePopper();
|
|
60
28
|
};
|
|
@@ -66,115 +34,156 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
34
|
return;
|
|
67
35
|
}
|
|
68
36
|
}
|
|
69
|
-
|
|
70
|
-
input && input.focus();
|
|
71
|
-
vue.nextTick(() => {
|
|
72
|
-
input && input.focus();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const updateSearchValue = (modelValue) => {
|
|
77
|
-
if (props2.filterable && props2.visible && props2.multiple) {
|
|
78
|
-
searchValue.value = modelValue;
|
|
79
|
-
emit("filterChange", modelValue);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
const updateInputValue = (modelValue) => {
|
|
83
|
-
if (props2.filterable && props2.visible && !props2.multiple) {
|
|
84
|
-
inputValue.value = modelValue;
|
|
85
|
-
emit("filterChange", modelValue);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const updateVisible = (visible) => {
|
|
89
|
-
isSelectInputClick = false;
|
|
90
|
-
if (!props2.disabled || !visible) {
|
|
91
|
-
emit("update:visible", visible);
|
|
37
|
+
selectViewRef.value && selectViewRef.value.focusSearchInput();
|
|
92
38
|
}
|
|
93
39
|
};
|
|
94
40
|
const handleUpdatePopoverVisible = (visible) => {
|
|
95
|
-
if (!visible && props2.filterable && isSelectInputClick) {
|
|
96
|
-
isSelectInputClick = false;
|
|
41
|
+
if (!visible && props2.filterable && isSelectInputClick.value) {
|
|
42
|
+
isSelectInputClick.value = false;
|
|
97
43
|
return;
|
|
98
44
|
}
|
|
99
45
|
updateVisible(visible);
|
|
100
46
|
};
|
|
101
|
-
const
|
|
102
|
-
isSelectInputClick = true;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (!props2.disabled) {
|
|
106
|
-
emit("removeTag", item);
|
|
47
|
+
const handleWrapClick = (isCustom) => {
|
|
48
|
+
isSelectInputClick.value = true;
|
|
49
|
+
if (!isCustom && (props2.popperType === "modal" || props2.popperType === "drawer")) {
|
|
50
|
+
updateVisible(true);
|
|
107
51
|
}
|
|
108
52
|
};
|
|
109
|
-
const handleClear = () => {
|
|
110
|
-
isSelectInputClick = false;
|
|
111
|
-
emit("clear");
|
|
112
|
-
};
|
|
113
53
|
const handleInputClick = (e) => {
|
|
114
54
|
if (props2.automaticDropdown && props2.visible) {
|
|
115
|
-
isSelectInputClick = true;
|
|
55
|
+
isSelectInputClick.value = true;
|
|
116
56
|
e.stopPropagation();
|
|
117
57
|
}
|
|
118
58
|
};
|
|
119
|
-
const
|
|
59
|
+
const handleRemoveTag = (item) => {
|
|
60
|
+
emit("removeTag", item);
|
|
61
|
+
};
|
|
62
|
+
const handleClear = () => {
|
|
63
|
+
isSelectInputClick.value = false;
|
|
64
|
+
emit("clear");
|
|
65
|
+
};
|
|
66
|
+
const handleFocus = (e) => {
|
|
120
67
|
if (props2.automaticDropdown && !props2.visible) {
|
|
121
68
|
updateVisible(true);
|
|
122
69
|
}
|
|
123
70
|
emit("focus", e);
|
|
124
71
|
};
|
|
125
|
-
const
|
|
72
|
+
const handleBlur = (e) => {
|
|
126
73
|
emit("blur", e);
|
|
127
74
|
};
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
e.stopPropagation();
|
|
131
|
-
e.preventDefault();
|
|
132
|
-
updateVisible(false);
|
|
133
|
-
}
|
|
75
|
+
const handleFilterChange = (value) => {
|
|
76
|
+
emit("filterChange", value);
|
|
134
77
|
};
|
|
135
|
-
vue.watch(
|
|
136
|
-
() => props2.selectedLabel,
|
|
137
|
-
(label) => {
|
|
138
|
-
if (!props2.filterable || !props2.visible) {
|
|
139
|
-
inputValue.value = props2.multiple || !label ? "" : label;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
vue.watch(
|
|
144
|
-
() => props2.visible,
|
|
145
|
-
(visible) => {
|
|
146
|
-
if (props2.filterable) {
|
|
147
|
-
if (props2.multiple) {
|
|
148
|
-
searchValue.value = "";
|
|
149
|
-
if (visible) {
|
|
150
|
-
focusSearchInput();
|
|
151
|
-
}
|
|
152
|
-
} else {
|
|
153
|
-
const label = props2.selectedLabel;
|
|
154
|
-
inputValue.value = visible || !label ? "" : label;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
78
|
__expose({
|
|
160
79
|
tooltipRef,
|
|
161
|
-
|
|
162
|
-
searchRef,
|
|
163
|
-
currentTags,
|
|
164
|
-
omittedTags,
|
|
165
|
-
omittedSize,
|
|
80
|
+
selectViewRef,
|
|
166
81
|
updatePopper,
|
|
167
82
|
focusSearchInput,
|
|
168
|
-
updateSearchValue,
|
|
169
|
-
updateInputValue,
|
|
170
83
|
updateVisible
|
|
171
84
|
});
|
|
172
85
|
return (_ctx, _cache) => {
|
|
173
|
-
return vue.openBlock(), vue.createBlock(
|
|
86
|
+
return _ctx.popperType === "modal" || _ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 0 }, _ctx.$props, {
|
|
87
|
+
ref_key: "selectViewRef",
|
|
88
|
+
ref: selectViewRef,
|
|
89
|
+
"onUpdate:visible": updateVisible,
|
|
90
|
+
onRemoveTag: handleRemoveTag,
|
|
91
|
+
onClear: handleClear,
|
|
92
|
+
onFocus: handleFocus,
|
|
93
|
+
onBlur: handleBlur,
|
|
94
|
+
onFilterChange: handleFilterChange,
|
|
95
|
+
onInputClick: handleInputClick,
|
|
96
|
+
onWrapClick: handleWrapClick
|
|
97
|
+
}), vue.createSlots({
|
|
98
|
+
default: vue.withCtx(() => [
|
|
99
|
+
_ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(EleDrawer, vue.mergeProps({
|
|
100
|
+
key: 0,
|
|
101
|
+
title: _ctx.popperTitle,
|
|
102
|
+
size: _ctx.popperWidth,
|
|
103
|
+
closeOnClickModal: false,
|
|
104
|
+
destroyOnClose: !_ctx.persistent,
|
|
105
|
+
responsive: _ctx.responsive,
|
|
106
|
+
class: _ctx.popperClass
|
|
107
|
+
}, _ctx.popperProps || {}, {
|
|
108
|
+
modelValue: _ctx.visible,
|
|
109
|
+
"onUpdate:modelValue": handleUpdatePopoverVisible
|
|
110
|
+
}), vue.createSlots({
|
|
111
|
+
default: vue.withCtx(() => [
|
|
112
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, [
|
|
116
|
+
vue.renderList(Object.keys(_ctx.popperSlots || {}).filter(
|
|
117
|
+
(k) => k !== "default" && _ctx.popperSlots && _ctx.popperSlots[k] && _ctx.popperSlots[k] !== "default" && _ctx.$slots[_ctx.popperSlots[k]]
|
|
118
|
+
), (name) => {
|
|
119
|
+
return {
|
|
120
|
+
name,
|
|
121
|
+
fn: vue.withCtx((slotProps) => {
|
|
122
|
+
var _a;
|
|
123
|
+
return [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, (_a = _ctx.popperSlots) == null ? void 0 : _a[name], vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
125
|
+
];
|
|
126
|
+
})
|
|
127
|
+
};
|
|
128
|
+
})
|
|
129
|
+
]), 1040, ["title", "size", "destroyOnClose", "responsive", "class", "modelValue"])) : (vue.openBlock(), vue.createBlock(EleModal, vue.mergeProps({
|
|
130
|
+
key: 1,
|
|
131
|
+
position: "center",
|
|
132
|
+
title: _ctx.popperTitle,
|
|
133
|
+
width: _ctx.popperWidth,
|
|
134
|
+
bodyHeight: _ctx.popperHeight,
|
|
135
|
+
closeOnClickModal: false,
|
|
136
|
+
destroyOnClose: !_ctx.persistent,
|
|
137
|
+
responsive: _ctx.responsive,
|
|
138
|
+
class: _ctx.popperClass
|
|
139
|
+
}, _ctx.popperProps || {}, {
|
|
140
|
+
modelValue: _ctx.visible,
|
|
141
|
+
"onUpdate:modelValue": handleUpdatePopoverVisible
|
|
142
|
+
}), vue.createSlots({
|
|
143
|
+
default: vue.withCtx(() => [
|
|
144
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
}, [
|
|
148
|
+
vue.renderList(Object.keys(_ctx.popperSlots || {}).filter(
|
|
149
|
+
(k) => k !== "default" && _ctx.popperSlots && _ctx.popperSlots[k] && _ctx.popperSlots[k] !== "default" && _ctx.$slots[_ctx.popperSlots[k]]
|
|
150
|
+
), (name) => {
|
|
151
|
+
return {
|
|
152
|
+
name,
|
|
153
|
+
fn: vue.withCtx((slotProps) => {
|
|
154
|
+
var _a;
|
|
155
|
+
return [
|
|
156
|
+
vue.renderSlot(_ctx.$slots, (_a = _ctx.popperSlots) == null ? void 0 : _a[name], vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
157
|
+
];
|
|
158
|
+
})
|
|
159
|
+
};
|
|
160
|
+
})
|
|
161
|
+
]), 1040, ["title", "width", "bodyHeight", "destroyOnClose", "responsive", "class", "modelValue"]))
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, [
|
|
165
|
+
vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "default"), (name) => {
|
|
166
|
+
return {
|
|
167
|
+
name,
|
|
168
|
+
fn: vue.withCtx((slotProps) => [
|
|
169
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
170
|
+
])
|
|
171
|
+
};
|
|
172
|
+
})
|
|
173
|
+
]), 1040)) : _ctx.popperType === "default" ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
|
|
174
|
+
key: 1,
|
|
175
|
+
wrapHeight: _ctx.popperHeight,
|
|
176
|
+
class: vue.normalizeClass(_ctx.popperClass)
|
|
177
|
+
}, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
}, 8, ["wrapHeight", "class"])) : (vue.openBlock(), vue.createBlock(EleTooltip, vue.mergeProps({
|
|
183
|
+
key: 2,
|
|
174
184
|
ref_key: "tooltipRef",
|
|
175
185
|
ref: tooltipRef,
|
|
176
186
|
trigger: "click",
|
|
177
|
-
visible: _ctx.visible,
|
|
178
187
|
disabled: _ctx.disabled,
|
|
179
188
|
placement: _ctx.placement,
|
|
180
189
|
teleported: _ctx.teleported,
|
|
@@ -186,12 +195,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
195
|
effect: "light",
|
|
187
196
|
persistent: true,
|
|
188
197
|
isPopover: true,
|
|
189
|
-
triggerKeys: []
|
|
198
|
+
triggerKeys: []
|
|
199
|
+
}, _ctx.popperProps || {}, {
|
|
200
|
+
visible: _ctx.visible,
|
|
190
201
|
"onUpdate:visible": handleUpdatePopoverVisible
|
|
191
|
-
}, {
|
|
202
|
+
}), {
|
|
192
203
|
body: vue.withCtx(() => [
|
|
193
204
|
_ctx.persistent || _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
|
|
194
205
|
key: 0,
|
|
206
|
+
wrapHeight: _ctx.popperHeight,
|
|
195
207
|
class: "ele-popover-body",
|
|
196
208
|
onClick: focusSearchInput,
|
|
197
209
|
onMouseup: focusSearchInput
|
|
@@ -200,138 +212,36 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
200
212
|
vue.renderSlot(_ctx.$slots, "default")
|
|
201
213
|
]),
|
|
202
214
|
_: 3
|
|
203
|
-
})) : vue.createCommentVNode("", true)
|
|
215
|
+
}, 8, ["wrapHeight"])) : vue.createCommentVNode("", true)
|
|
204
216
|
]),
|
|
205
217
|
default: vue.withCtx(() => [
|
|
206
|
-
vue.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}, [
|
|
221
|
-
vue.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
231
|
-
"onUpdate:modelValue": updateInputValue,
|
|
232
|
-
onClick: handleInputClick,
|
|
233
|
-
onFocus: handleInputFocus,
|
|
234
|
-
onBlur: handleInputBlur,
|
|
235
|
-
onKeydown: vue.withKeys(handleInputEsc, ["esc"])
|
|
236
|
-
}, vue.createSlots({
|
|
237
|
-
suffix: vue.withCtx(() => [
|
|
238
|
-
_ctx.clearable && !_ctx.disabled && !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
239
|
-
key: 0,
|
|
240
|
-
class: "ele-select-clear el-input__icon",
|
|
241
|
-
onClick: vue.withModifiers(handleClear, ["stop"])
|
|
242
|
-
}, {
|
|
243
|
-
default: vue.withCtx(() => [
|
|
244
|
-
vue.renderSlot(_ctx.$slots, "clearIcon", {}, () => [
|
|
245
|
-
vue.createVNode(vue.unref(index.CloseCircleFilled))
|
|
246
|
-
])
|
|
247
|
-
]),
|
|
248
|
-
_: 3
|
|
249
|
-
})) : vue.createCommentVNode("", true),
|
|
250
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "ele-select-arrow el-input__icon" }, {
|
|
251
|
-
default: vue.withCtx(() => [
|
|
252
|
-
vue.renderSlot(_ctx.$slots, "suffixIcon", { visible: _ctx.visible }, () => [
|
|
253
|
-
vue.createVNode(vue.unref(index.ArrowDown))
|
|
254
|
-
])
|
|
255
|
-
]),
|
|
256
|
-
_: 3
|
|
257
|
-
})
|
|
258
|
-
]),
|
|
259
|
-
_: 2
|
|
260
|
-
}, [
|
|
261
|
-
_ctx.$slots.prefix ? {
|
|
262
|
-
name: "prefix",
|
|
263
|
-
fn: vue.withCtx(() => [
|
|
264
|
-
vue.renderSlot(_ctx.$slots, "prefix")
|
|
265
|
-
]),
|
|
266
|
-
key: "0"
|
|
267
|
-
} : void 0
|
|
268
|
-
]), 1032, ["size", "disabled", "modelValue", "placeholder", "readonly", "style"]),
|
|
269
|
-
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
270
|
-
key: 0,
|
|
271
|
-
class: "ele-select-tags",
|
|
272
|
-
style: vue.normalizeStyle(_ctx.selectTagsStyle)
|
|
273
|
-
}, [
|
|
274
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentTags.value, (item, index2) => {
|
|
275
|
-
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
|
|
276
|
-
key: index2 + "-" + item.value,
|
|
277
|
-
size: _ctx.size,
|
|
278
|
-
type: _ctx.tagType,
|
|
279
|
-
closable: !_ctx.disabled,
|
|
280
|
-
disableTransitions: true,
|
|
281
|
-
title: item.label,
|
|
282
|
-
onClose: ($event) => handleTagClose(item)
|
|
283
|
-
}, {
|
|
284
|
-
default: vue.withCtx(() => [
|
|
285
|
-
item.label && _ctx.maxTagTextLength && item.label.length > _ctx.maxTagTextLength ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
286
|
-
vue.createTextVNode(vue.toDisplayString(item.label.slice(0, _ctx.maxTagTextLength)) + "... ", 1)
|
|
287
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
288
|
-
vue.createTextVNode(vue.toDisplayString(item.label), 1)
|
|
289
|
-
], 64))
|
|
290
|
-
]),
|
|
291
|
-
_: 2
|
|
292
|
-
}, 1032, ["size", "type", "closable", "title", "onClose"]);
|
|
293
|
-
}), 128)),
|
|
294
|
-
isCollapse.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
|
|
295
|
-
key: 0,
|
|
296
|
-
size: _ctx.size,
|
|
297
|
-
type: _ctx.tagType,
|
|
298
|
-
disableTransitions: true
|
|
299
|
-
}, {
|
|
300
|
-
default: vue.withCtx(() => [
|
|
301
|
-
vue.renderSlot(_ctx.$slots, "maxTagPlaceholder", {
|
|
302
|
-
omittedValues: omittedTags.value,
|
|
303
|
-
omittedSize: omittedSize.value
|
|
304
|
-
}, () => [
|
|
305
|
-
vue.createTextVNode(" +" + vue.toDisplayString(omittedSize.value), 1)
|
|
306
|
-
])
|
|
307
|
-
]),
|
|
308
|
-
_: 3
|
|
309
|
-
}, 8, ["size", "type"])) : vue.createCommentVNode("", true),
|
|
310
|
-
!_ctx.disabled && _ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
|
|
311
|
-
key: 1,
|
|
312
|
-
size: _ctx.size,
|
|
313
|
-
disableTransitions: true,
|
|
314
|
-
class: "ele-select-search"
|
|
315
|
-
}, {
|
|
316
|
-
default: vue.withCtx(() => [
|
|
317
|
-
vue.createVNode(vue.unref(elementPlus.ElInput), {
|
|
318
|
-
ref_key: "searchRef",
|
|
319
|
-
ref: searchRef,
|
|
320
|
-
size: _ctx.size,
|
|
321
|
-
validateEvent: false,
|
|
322
|
-
modelValue: searchValue.value,
|
|
323
|
-
placeholder: inputPlaceholder.value,
|
|
324
|
-
"onUpdate:modelValue": updateSearchValue,
|
|
325
|
-
onKeydown: vue.withKeys(handleInputEsc, ["esc"])
|
|
326
|
-
}, null, 8, ["size", "modelValue", "placeholder"])
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}, 8, ["size"])) : vue.createCommentVNode("", true)
|
|
330
|
-
], 4)) : vue.createCommentVNode("", true)
|
|
331
|
-
], 6)
|
|
218
|
+
_ctx.selectStyle === "none" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: vue.normalizeClass(_ctx.selectClass)
|
|
221
|
+
}, null, 2)) : (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 1 }, _ctx.$props, {
|
|
222
|
+
ref_key: "selectViewRef",
|
|
223
|
+
ref: selectViewRef,
|
|
224
|
+
"onUpdate:visible": updateVisible,
|
|
225
|
+
onRemoveTag: handleRemoveTag,
|
|
226
|
+
onClear: handleClear,
|
|
227
|
+
onFocus: handleFocus,
|
|
228
|
+
onBlur: handleBlur,
|
|
229
|
+
onFilterChange: handleFilterChange,
|
|
230
|
+
onInputClick: handleInputClick,
|
|
231
|
+
onWrapClick: handleWrapClick
|
|
232
|
+
}), vue.createSlots({ _: 2 }, [
|
|
233
|
+
vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "default"), (name) => {
|
|
234
|
+
return {
|
|
235
|
+
name,
|
|
236
|
+
fn: vue.withCtx((slotProps) => [
|
|
237
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
238
|
+
])
|
|
239
|
+
};
|
|
240
|
+
})
|
|
241
|
+
]), 1040))
|
|
332
242
|
]),
|
|
333
243
|
_: 3
|
|
334
|
-
},
|
|
244
|
+
}, 16, ["disabled", "placement", "teleported", "width", "popperClass", "popperOptions", "transition", "gpuAcceleration", "visible"]));
|
|
335
245
|
};
|
|
336
246
|
}
|
|
337
247
|
});
|