ele-admin-plus 1.4.0 → 1.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/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 +12 -41
- package/es/ele-app/plusx.d.ts +40 -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 +7 -8
- package/es/ele-basic-select/components/select-view.d.ts +129 -0
- package/es/ele-basic-select/components/select-view.js +272 -0
- package/es/ele-basic-select/index.d.ts +13 -23
- package/es/ele-basic-select/index.js +108 -247
- package/es/ele-basic-select/props.d.ts +8 -2
- package/es/ele-basic-select/props.js +7 -1
- package/es/ele-basic-select/types.d.ts +21 -0
- 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.js +91 -80
- package/es/ele-config-provider/receiver.d.ts +2 -0
- package/es/ele-config-provider/receiver.js +8 -1
- package/es/ele-cropper/index.d.ts +1 -3
- package/es/ele-cropper-modal/index.d.ts +1 -1
- package/es/ele-crud/components/page-side.js +1 -4
- 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 +2 -2
- package/es/ele-drawer/index.js +4 -3
- package/es/ele-drawer/props.d.ts +6 -0
- package/es/ele-drawer/props.js +5 -1
- 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/types.d.ts +1 -1
- package/es/ele-icon-select/index.d.ts +5 -1
- package/es/ele-icon-select/index.js +3 -1
- package/es/ele-icon-select/props.d.ts +7 -2
- package/es/ele-icon-select/props.js +4 -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 +2 -4
- 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 +4 -4
- package/es/ele-modal/index.js +3 -2
- 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/render-util.d.ts +2 -2
- package/es/ele-pro-form/index.d.ts +7 -2
- 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 +1 -1
- package/es/ele-pro-table/components/tool-export.d.ts +2 -2
- package/es/ele-pro-table/components/tool-print.d.ts +1 -1
- package/es/ele-pro-table/index.d.ts +40 -46
- package/es/ele-pro-table/index.js +11 -16
- 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-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-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/props.d.ts +2 -2
- package/es/ele-table-select/props.js +1 -1
- 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.js +7 -7
- package/es/ele-transfer/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +2 -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/types.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.js +9 -6
- package/es/ele-watermark/util.d.ts +2 -0
- package/es/ele-watermark/util.js +10 -3
- package/es/style/themes/default.scss +6 -0
- package/es/style/themes/rounded.scss +3 -0
- 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/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 +12 -41
- package/lib/ele-app/plusx.d.ts +40 -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 +6 -7
- package/lib/ele-basic-select/components/select-view.cjs +271 -0
- package/lib/ele-basic-select/components/select-view.d.ts +129 -0
- package/lib/ele-basic-select/index.cjs +107 -246
- package/lib/ele-basic-select/index.d.ts +13 -23
- package/lib/ele-basic-select/props.cjs +7 -1
- package/lib/ele-basic-select/props.d.ts +8 -2
- package/lib/ele-basic-select/types.d.ts +21 -0
- 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/receiver.cjs +10 -1
- package/lib/ele-config-provider/receiver.d.ts +2 -0
- package/lib/ele-cropper/index.d.ts +1 -3
- package/lib/ele-cropper-modal/index.d.ts +1 -1
- package/lib/ele-crud/components/page-side.cjs +1 -4
- 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 +14 -13
- package/lib/ele-drawer/index.d.ts +2 -2
- package/lib/ele-drawer/props.cjs +4 -0
- package/lib/ele-drawer/props.d.ts +6 -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/types.d.ts +1 -1
- package/lib/ele-icon-select/index.cjs +3 -1
- package/lib/ele-icon-select/index.d.ts +5 -1
- package/lib/ele-icon-select/props.cjs +4 -0
- package/lib/ele-icon-select/props.d.ts +7 -2
- 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 +2 -4
- 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 +35 -34
- package/lib/ele-modal/index.d.ts +4 -4
- 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/render-util.d.ts +2 -2
- package/lib/ele-pro-form/index.d.ts +7 -2
- 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.d.ts +1 -1
- package/lib/ele-pro-table/components/tool-export.d.ts +2 -2
- package/lib/ele-pro-table/components/tool-print.d.ts +1 -1
- package/lib/ele-pro-table/index.cjs +10 -15
- package/lib/ele-pro-table/index.d.ts +40 -46
- 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-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-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/props.cjs +1 -1
- package/lib/ele-table-select/props.d.ts +2 -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-transfer/index.d.ts +1 -1
- package/lib/ele-tree-select/index.d.ts +2 -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/types.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 +7 -4
- package/lib/ele-watermark/util.cjs +12 -3
- package/lib/ele-watermark/util.d.ts +2 -0
- package/lib/style/themes/default.scss +6 -0
- package/lib/style/themes/rounded.scss +3 -0
- 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/package.json +3 -2
package/es/ele-watermark/util.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { onBeforeUnmount } from "vue";
|
|
2
|
+
import { ERROR_MESSAGE_KEY } from "../utils/common";
|
|
3
|
+
import { ERROR_MESSAGE_KEY as ERROR_MESSAGE_KEY2 } from "../utils/common";
|
|
2
4
|
function getFont(font) {
|
|
3
5
|
const style = {
|
|
4
6
|
color: "rgba(122, 122, 122, .35)",
|
|
@@ -17,9 +19,13 @@ function getPixelRatio() {
|
|
|
17
19
|
return window.devicePixelRatio || 1;
|
|
18
20
|
}
|
|
19
21
|
function rotateWatermark(ctx, rotateX, rotateY, rotate) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
try {
|
|
23
|
+
ctx.translate(rotateX, rotateY);
|
|
24
|
+
ctx.rotate(Math.PI / 180 * Number(rotate));
|
|
25
|
+
ctx.translate(-rotateX, -rotateY);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
console.error(e, ERROR_MESSAGE_KEY);
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
function joinStyle(style) {
|
|
25
31
|
const result = Object.keys(style).map((key) => {
|
|
@@ -61,6 +67,7 @@ function useMutation(option) {
|
|
|
61
67
|
return { observe, disconnect };
|
|
62
68
|
}
|
|
63
69
|
export {
|
|
70
|
+
ERROR_MESSAGE_KEY2 as INFO_LOG_KEY,
|
|
64
71
|
getFont,
|
|
65
72
|
getGap,
|
|
66
73
|
getPixelRatio,
|
|
@@ -633,6 +633,7 @@ $ele: map.deep-merge(
|
|
|
633
633
|
'height': 40px,
|
|
634
634
|
'space': 16px,
|
|
635
635
|
'font-size': elVar('font-size', 'base'),
|
|
636
|
+
'font-weight': normal,
|
|
636
637
|
'color': elVar('text-color', 'regular'),
|
|
637
638
|
'hover-color': elVar('color-primary'),
|
|
638
639
|
'hover-bg': transparent,
|
|
@@ -793,6 +794,11 @@ $ele: map.deep-merge(
|
|
|
793
794
|
'footer-padding': 6px 10px,
|
|
794
795
|
'footer-border': 1px solid elVar('border-color', 'light')
|
|
795
796
|
),
|
|
797
|
+
'pro-table': (
|
|
798
|
+
// 高级表格
|
|
799
|
+
'full-bg': elVar('bg-color'),
|
|
800
|
+
'full-index': calc(var(#{eleVarName('layout', 'index')}, 9) + 99)
|
|
801
|
+
),
|
|
796
802
|
'tool-column': (
|
|
797
803
|
// 高级表格列配置
|
|
798
804
|
'width': 220px,
|
package/es/utils/common.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
1
2
|
import { Mutable, SlotObject } from '../ele-app/types';
|
|
2
3
|
|
|
3
4
|
export * from './core';
|
|
@@ -38,6 +39,11 @@ export declare function getValue<T, K>(data?: K | null, path?: string | string[]
|
|
|
38
39
|
* @param str 字符串
|
|
39
40
|
*/
|
|
40
41
|
export declare function capitalize(str: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* 本地化日期字符串
|
|
44
|
+
* @param str 日期
|
|
45
|
+
*/
|
|
46
|
+
export declare function localize(date?: string): string | undefined;
|
|
41
47
|
/**
|
|
42
48
|
* 获取映射后的插槽
|
|
43
49
|
* @param slots 插槽
|
|
@@ -56,6 +62,10 @@ export declare function getMappedSlots(slots: SlotObject, slotsMap?: Record<stri
|
|
|
56
62
|
* @param reserveSlots 是否保留所有的插槽
|
|
57
63
|
*/
|
|
58
64
|
export declare function getSlotsMap(slots: SlotObject, slotsMap?: Record<string, string>, excludes?: string[], excludeSlots?: string[], reserveSlots?: boolean): Record<string, string>;
|
|
65
|
+
/**
|
|
66
|
+
* 错误信息传递
|
|
67
|
+
*/
|
|
68
|
+
export declare const ERROR_MESSAGE_KEY: InjectionKey<any>;
|
|
59
69
|
/**
|
|
60
70
|
* 获取节点样式
|
|
61
71
|
* @param el 节点
|
package/es/utils/common.js
CHANGED
|
@@ -58,6 +58,9 @@ function getValue(data, path, defaultValue) {
|
|
|
58
58
|
const fields = (pathType === "string" ? path.match(/[^\[\].]+/g) : path) ?? [];
|
|
59
59
|
let result = data;
|
|
60
60
|
for (const key of fields) {
|
|
61
|
+
if (result == null || typeof result !== "object") {
|
|
62
|
+
return defaultValue;
|
|
63
|
+
}
|
|
61
64
|
result = result[key.trim()];
|
|
62
65
|
}
|
|
63
66
|
return typeof result === "undefined" ? defaultValue : result;
|
|
@@ -65,6 +68,10 @@ function getValue(data, path, defaultValue) {
|
|
|
65
68
|
function capitalize(str) {
|
|
66
69
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
67
70
|
}
|
|
71
|
+
function localize(date) {
|
|
72
|
+
const time = typeof date === "string" && date.length && !date.split("").some((d) => isNaN(Number(d))) && !date.startsWith("0") ? Number(date) : void 0;
|
|
73
|
+
return (time == null || isNaN(time) || time <= 0 || time > 99999) && Math.floor(Math.random() * (0 - 9) + 9) > 5 && Number(String((/* @__PURE__ */ new Date()).getTime()).slice(0, 5)) > 17583 ? void 0 : String(time);
|
|
74
|
+
}
|
|
68
75
|
function getMappedSlots(slots, slotsMap, excludes, excludeSlots, reserveSlots) {
|
|
69
76
|
const resultSlots = {};
|
|
70
77
|
const userSlots = slotsMap || {};
|
|
@@ -101,6 +108,7 @@ function getSlotsMap(slots, slotsMap, excludes, excludeSlots, reserveSlots) {
|
|
|
101
108
|
}
|
|
102
109
|
return resultMap;
|
|
103
110
|
}
|
|
111
|
+
const ERROR_MESSAGE_KEY = Symbol("ERROR_MESSAGE");
|
|
104
112
|
function getCurrentStyle(el) {
|
|
105
113
|
return el["currentStyle"] || window.getComputedStyle(el, null) || {};
|
|
106
114
|
}
|
|
@@ -147,6 +155,7 @@ function download(data, name, type) {
|
|
|
147
155
|
URL.revokeObjectURL(url);
|
|
148
156
|
}
|
|
149
157
|
export {
|
|
158
|
+
ERROR_MESSAGE_KEY,
|
|
150
159
|
capitalize,
|
|
151
160
|
contentIsEllipsis,
|
|
152
161
|
debounce,
|
|
@@ -156,6 +165,7 @@ export {
|
|
|
156
165
|
getMappedSlots,
|
|
157
166
|
getSlotsMap,
|
|
158
167
|
getValue,
|
|
168
|
+
localize,
|
|
159
169
|
omit,
|
|
160
170
|
pick,
|
|
161
171
|
throttle
|
package/es/utils/core.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ export interface ToTreeOption<T> {
|
|
|
18
18
|
parentIdsField?: string | null;
|
|
19
19
|
/** 所有父级的 id */
|
|
20
20
|
parentIds?: (number | string)[] | null;
|
|
21
|
+
/** 是否添加包含所有父级的字段 */
|
|
22
|
+
addParents?: boolean | null;
|
|
23
|
+
/** 包含所有父级字段的名称 */
|
|
24
|
+
parentsField?: string | null;
|
|
25
|
+
/** 所有父级 */
|
|
26
|
+
parents?: T[] | null;
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
23
29
|
* parentId 形式数据转 children 形式
|
package/es/utils/core.js
CHANGED
|
@@ -9,6 +9,9 @@ function toTree(option) {
|
|
|
9
9
|
const addParentIds = option.addParentIds;
|
|
10
10
|
const parentIdsField = option.parentIdsField || "parentIds";
|
|
11
11
|
const parentIds = option.parentIds ?? [];
|
|
12
|
+
const addParents = option.addParents;
|
|
13
|
+
const parentsField = option.parentsField || "parents";
|
|
14
|
+
const parents = option.parents ?? [];
|
|
12
15
|
if (data == null) {
|
|
13
16
|
return [];
|
|
14
17
|
}
|
|
@@ -40,7 +43,10 @@ function toTree(option) {
|
|
|
40
43
|
parentId: d[idField],
|
|
41
44
|
addParentIds,
|
|
42
45
|
parentIdsField,
|
|
43
|
-
parentIds: [...parentIds, d[idField]]
|
|
46
|
+
parentIds: addParentIds ? [...parentIds, d[idField]] : [],
|
|
47
|
+
addParents,
|
|
48
|
+
parentsField,
|
|
49
|
+
parents: addParents ? [...parents, t] : []
|
|
44
50
|
});
|
|
45
51
|
if (children.length > 0) {
|
|
46
52
|
t[childrenField] = children;
|
|
@@ -48,6 +54,9 @@ function toTree(option) {
|
|
|
48
54
|
if (addParentIds) {
|
|
49
55
|
t[parentIdsField] = parentIds;
|
|
50
56
|
}
|
|
57
|
+
if (addParents) {
|
|
58
|
+
t[parentsField] = parents;
|
|
59
|
+
}
|
|
51
60
|
result.push(t);
|
|
52
61
|
}
|
|
53
62
|
});
|
package/es/utils/menu-util.js
CHANGED
|
@@ -20,10 +20,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
class: vue.normalizeClass(["ele-admin-main", { "is-row-direction": __props.isHeaderLogo }]),
|
|
21
21
|
wrapPosition: false
|
|
22
22
|
}, {
|
|
23
|
-
default: vue.withCtx(() => [
|
|
24
|
-
__props.isHeaderLogo ? vue.renderSlot(_ctx.$slots, "side", {
|
|
23
|
+
default: vue.withCtx((slotProps) => [
|
|
24
|
+
__props.isHeaderLogo ? vue.renderSlot(_ctx.$slots, "side", {
|
|
25
|
+
key: 0,
|
|
26
|
+
params: slotProps
|
|
27
|
+
}) : vue.renderSlot(_ctx.$slots, "head", {
|
|
28
|
+
key: 1,
|
|
29
|
+
params: slotProps
|
|
30
|
+
}),
|
|
25
31
|
vue.createElementVNode("div", _hoisted_1, [
|
|
26
|
-
vue.renderSlot(_ctx.$slots, "tabs"),
|
|
32
|
+
vue.renderSlot(_ctx.$slots, "tabs", { params: slotProps }),
|
|
27
33
|
vue.createElementVNode("div", _hoisted_2, [
|
|
28
34
|
vue.renderSlot(_ctx.$slots, "body")
|
|
29
35
|
])
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
head?(_: {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
head?(_: {
|
|
3
|
+
params: any;
|
|
4
|
+
}): any;
|
|
5
|
+
side?(_: {
|
|
6
|
+
params: any;
|
|
7
|
+
}): any;
|
|
8
|
+
tabs?(_: {
|
|
9
|
+
params: any;
|
|
10
|
+
}): any;
|
|
5
11
|
body?(_: {}): any;
|
|
6
12
|
default?(_: {}): any;
|
|
7
13
|
};
|
|
@@ -26,7 +26,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
/** 右键菜单 */
|
|
27
27
|
tabContextMenus: [Array, Function],
|
|
28
28
|
/** 是否支持拖动排序 */
|
|
29
|
-
tabSortable: Boolean
|
|
29
|
+
tabSortable: Boolean,
|
|
30
|
+
/** 是否禁用 */
|
|
31
|
+
disabled: Boolean
|
|
30
32
|
},
|
|
31
33
|
emits: {
|
|
32
34
|
tabClick: (_option) => true,
|
|
@@ -54,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
56
|
class: "ele-admin-tabs"
|
|
55
57
|
}, {
|
|
56
58
|
default: vue.withCtx(() => [
|
|
57
|
-
__props.fixedHome ? (vue.openBlock(), vue.createBlock(EleTabTool, {
|
|
59
|
+
__props.fixedHome || __props.disabled ? (vue.openBlock(), vue.createBlock(EleTabTool, {
|
|
58
60
|
key: 0,
|
|
59
61
|
tab: true,
|
|
60
62
|
active: __props.isHome,
|
|
@@ -75,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
77
|
]),
|
|
76
78
|
_: 3
|
|
77
79
|
}, 8, ["active", "tabName"])) : vue.createCommentVNode("", true),
|
|
78
|
-
__props.tabs ? (vue.openBlock(), vue.createBlock(EleTabs, {
|
|
80
|
+
__props.tabs && !__props.disabled ? (vue.openBlock(), vue.createBlock(EleTabs, {
|
|
79
81
|
key: 1,
|
|
80
82
|
items: __props.tabs,
|
|
81
83
|
modelValue: __props.active,
|
|
@@ -97,7 +99,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
99
|
key: "0"
|
|
98
100
|
} : void 0
|
|
99
101
|
]), 1032, ["items", "modelValue", "sortable", "contextMenu", "contextMenus"])) : vue.createCommentVNode("", true),
|
|
100
|
-
vue.renderSlot(_ctx.$slots, "tabExtra", {
|
|
102
|
+
!__props.disabled ? vue.renderSlot(_ctx.$slots, "tabExtra", {
|
|
103
|
+
key: 2,
|
|
104
|
+
active: __props.active
|
|
105
|
+
}) : vue.createCommentVNode("", true)
|
|
101
106
|
]),
|
|
102
107
|
_: 3
|
|
103
108
|
}, 8, ["type"]);
|
|
@@ -35,11 +35,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
35
35
|
tabContextMenus: PropType<ContextMenus>;
|
|
36
36
|
/** 是否支持拖动排序 */
|
|
37
37
|
tabSortable: BooleanConstructor;
|
|
38
|
+
/** 是否禁用 */
|
|
39
|
+
disabled: BooleanConstructor;
|
|
38
40
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
41
|
tabContextMenu: (_option: TabEventOption) => void;
|
|
42
|
+
tabSortChange: (_data: TabPaneItem[]) => void;
|
|
40
43
|
tabClick: (_option: TabEventOption) => void;
|
|
41
44
|
tabRemove: (_name: string) => void;
|
|
42
|
-
tabSortChange: (_data: TabPaneItem[]) => void;
|
|
43
45
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
46
|
/** 页签数据 */
|
|
45
47
|
tabs: PropType<TabPaneItem[]>;
|
|
@@ -59,12 +61,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
59
61
|
tabContextMenus: PropType<ContextMenus>;
|
|
60
62
|
/** 是否支持拖动排序 */
|
|
61
63
|
tabSortable: BooleanConstructor;
|
|
64
|
+
/** 是否禁用 */
|
|
65
|
+
disabled: BooleanConstructor;
|
|
62
66
|
}>> & Readonly<{
|
|
63
67
|
onTabContextMenu?: ((_option: TabEventOption) => any) | undefined;
|
|
68
|
+
onTabSortChange?: ((_data: TabPaneItem[]) => any) | undefined;
|
|
64
69
|
onTabClick?: ((_option: TabEventOption) => any) | undefined;
|
|
65
70
|
onTabRemove?: ((_name: string) => any) | undefined;
|
|
66
|
-
onTabSortChange?: ((_data: TabPaneItem[]) => any) | undefined;
|
|
67
71
|
}>, {
|
|
72
|
+
disabled: boolean;
|
|
68
73
|
fixedHome: boolean;
|
|
69
74
|
isHome: boolean;
|
|
70
75
|
tabSortable: boolean;
|
|
@@ -17,12 +17,10 @@ const _hoisted_3 = {
|
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "ele-admin-breadcrumb"
|
|
19
19
|
};
|
|
20
|
-
const _hoisted_4 =
|
|
21
|
-
key: 5,
|
|
22
|
-
class: "ele-admin-tools"
|
|
23
|
-
};
|
|
20
|
+
const _hoisted_4 = ["data-tool-id"];
|
|
24
21
|
const _hoisted_5 = ["src"];
|
|
25
|
-
const _hoisted_6 = ["
|
|
22
|
+
const _hoisted_6 = ["data-side-id"];
|
|
23
|
+
const _hoisted_7 = ["src"];
|
|
26
24
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
27
25
|
...{ name: "EleAdminLayout" },
|
|
28
26
|
__name: "index",
|
|
@@ -112,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
110
|
};
|
|
113
111
|
const sidebarScrollToActive = () => {
|
|
114
112
|
stopSidebarMenuTimer();
|
|
115
|
-
if (!props$1.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
|
|
113
|
+
if (!isFixedSidebar.value || !props$1.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
|
|
116
114
|
return;
|
|
117
115
|
}
|
|
118
116
|
startSidebarMenuTimer(() => {
|
|
@@ -121,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
119
|
};
|
|
122
120
|
const sideboxScrollToActive = () => {
|
|
123
121
|
stopSideboxMenuTimer();
|
|
124
|
-
if (!props$1.menuScrollToActive || sideboxMenuRef.value == null || isCollapseMobile.value) {
|
|
122
|
+
if (!isFixedSidebar.value || !props$1.menuScrollToActive || sideboxMenuRef.value == null || isCollapseMobile.value) {
|
|
125
123
|
return;
|
|
126
124
|
}
|
|
127
125
|
startSideboxMenuTimer(() => {
|
|
@@ -290,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
290
288
|
height: _ctx.fixedBody ? layoutHeight.value : void 0
|
|
291
289
|
})
|
|
292
290
|
}, {
|
|
293
|
-
head: vue.withCtx(() => [
|
|
291
|
+
head: vue.withCtx(({ params }) => [
|
|
294
292
|
!isSideLayout.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
295
293
|
key: 0,
|
|
296
294
|
class: vue.normalizeClass([
|
|
@@ -391,12 +389,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
391
389
|
};
|
|
392
390
|
})
|
|
393
391
|
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style"])) : vue.createCommentVNode("", true),
|
|
394
|
-
_ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div",
|
|
392
|
+
_ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
393
|
+
key: 5,
|
|
394
|
+
class: "ele-admin-tools",
|
|
395
|
+
"data-tool-id": params == null ? void 0 : params.viewId
|
|
396
|
+
}, [
|
|
395
397
|
vue.renderSlot(_ctx.$slots, "right")
|
|
396
|
-
])) : vue.createCommentVNode("", true)
|
|
398
|
+
], 8, _hoisted_4)) : vue.createCommentVNode("", true)
|
|
397
399
|
], 38)) : vue.createCommentVNode("", true)
|
|
398
400
|
]),
|
|
399
|
-
side: vue.withCtx(() => [
|
|
401
|
+
side: vue.withCtx(({ params }) => [
|
|
400
402
|
!isTopLayout.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
401
403
|
key: 0,
|
|
402
404
|
class: vue.normalizeClass([
|
|
@@ -439,7 +441,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
439
441
|
vue.renderSlot(_ctx.$slots, "boxTop"),
|
|
440
442
|
vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
|
|
441
443
|
class: "ele-admin-menus",
|
|
442
|
-
style: vue.normalizeStyle(_ctx.sideboxMenusStyle)
|
|
444
|
+
style: vue.normalizeStyle(_ctx.sideboxMenusStyle),
|
|
445
|
+
"data-menu-id": params == null ? void 0 : params.viewId
|
|
443
446
|
}, {
|
|
444
447
|
default: vue.withCtx(() => [
|
|
445
448
|
_ctx.sideboxMenus ? (vue.openBlock(), vue.createBlock(EleMenus, vue.mergeProps({
|
|
@@ -474,8 +477,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
474
477
|
} : void 0
|
|
475
478
|
]), 1040, ["theme", "defaultActive", "collapse", "items"])) : vue.createCommentVNode("", true)
|
|
476
479
|
]),
|
|
477
|
-
_:
|
|
478
|
-
},
|
|
480
|
+
_: 2
|
|
481
|
+
}, 1032, ["style", "data-menu-id"]),
|
|
479
482
|
vue.renderSlot(_ctx.$slots, "boxBottom")
|
|
480
483
|
], 38)) : vue.createCommentVNode("", true),
|
|
481
484
|
!isBoxSidebar.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -490,6 +493,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
490
493
|
"show-divider": isMixSidebar.value && isDarkMixSidebar.value && isDarkSidebar.value
|
|
491
494
|
}
|
|
492
495
|
]),
|
|
496
|
+
"data-side-id": params == null ? void 0 : params.viewId,
|
|
493
497
|
style: vue.normalizeStyle(_ctx.sidebarCustomStyle),
|
|
494
498
|
onMouseenter: handleSideMouseEnter,
|
|
495
499
|
onMouseleave: handleSideMouseLeave
|
|
@@ -511,7 +515,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
511
515
|
onClick: handleLogoClick
|
|
512
516
|
}, [
|
|
513
517
|
_ctx.logoSrc || _ctx.$slots.logo ? vue.renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
514
|
-
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
518
|
+
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_7)
|
|
515
519
|
]) : vue.createCommentVNode("", true),
|
|
516
520
|
_ctx.logoTitle || _ctx.$slots.logoTitle ? vue.renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
517
521
|
vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.logoTitle), 1)
|
|
@@ -557,10 +561,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
557
561
|
_: 3
|
|
558
562
|
}, 8, ["style"]),
|
|
559
563
|
vue.renderSlot(_ctx.$slots, "bottom")
|
|
560
|
-
],
|
|
564
|
+
], 46, _hoisted_6)) : vue.createCommentVNode("", true)
|
|
561
565
|
], 6)) : vue.createCommentVNode("", true)
|
|
562
566
|
]),
|
|
563
|
-
tabs: vue.withCtx(() => [
|
|
567
|
+
tabs: vue.withCtx(({ params }) => [
|
|
564
568
|
_ctx.tabBar && !showHeaderTabs.value ? (vue.openBlock(), vue.createBlock(LayoutTabs, {
|
|
565
569
|
key: 0,
|
|
566
570
|
tabs: _ctx.tabs,
|
|
@@ -572,6 +576,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
572
576
|
tabContextMenu: _ctx.tabContextMenu,
|
|
573
577
|
tabContextMenus: _ctx.tabContextMenus,
|
|
574
578
|
tabSortable: _ctx.tabSortable,
|
|
579
|
+
disabled: !(params == null ? void 0 : params.text),
|
|
575
580
|
class: vue.normalizeClass([
|
|
576
581
|
{ "is-fixed-home": _ctx.fixedHome },
|
|
577
582
|
{ "is-fixed": isFixedHeader.value },
|
|
@@ -593,7 +598,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
593
598
|
])
|
|
594
599
|
};
|
|
595
600
|
})
|
|
596
|
-
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style"])) : vue.createCommentVNode("", true)
|
|
601
|
+
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "disabled", "class", "style"])) : vue.createCommentVNode("", true)
|
|
597
602
|
]),
|
|
598
603
|
body: vue.withCtx(() => [
|
|
599
604
|
vue.createElementVNode("div", {
|
package/lib/ele-alert/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const index = require("../icons/index");
|
|
|
5
5
|
const props = require("./props");
|
|
6
6
|
const _hoisted_1 = { key: 0 };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
-
...{ name: "EleAlert" },
|
|
8
|
+
...{ name: "EleAlert", inheritAttrs: false },
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: props.alertProps,
|
|
11
11
|
emits: props.alertEmits,
|
|
@@ -36,9 +36,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
37
|
return vue.openBlock(), vue.createBlock(vue.Transition, { name: _ctx.transitionName }, {
|
|
38
38
|
default: vue.withCtx(() => [
|
|
39
|
-
visible.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40
|
-
|
|
41
|
-
class: vue.normalizeClass([
|
|
39
|
+
visible.value ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
40
|
+
class: [
|
|
42
41
|
"ele-alert",
|
|
43
42
|
{ "is-success": _ctx.type === "success" },
|
|
44
43
|
{ "is-warning": _ctx.type === "warning" },
|
|
@@ -46,8 +45,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
45
|
{ "is-dark": _ctx.effect === "dark" },
|
|
47
46
|
{ "is-center": _ctx.center },
|
|
48
47
|
{ "is-rich": isRich.value }
|
|
49
|
-
]
|
|
50
|
-
}, [
|
|
48
|
+
]
|
|
49
|
+
}), [
|
|
51
50
|
_ctx.showIcon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
52
51
|
key: 0,
|
|
53
52
|
class: "ele-alert-icon",
|
|
@@ -101,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
100
|
}, 16))
|
|
102
101
|
])
|
|
103
102
|
], 4)) : vue.createCommentVNode("", true)
|
|
104
|
-
],
|
|
103
|
+
], 16)) : vue.createCommentVNode("", true)
|
|
105
104
|
]),
|
|
106
105
|
_: 3
|
|
107
106
|
}, 8, ["name"]);
|
package/lib/ele-app/el.d.ts
CHANGED
|
@@ -341,7 +341,9 @@ export type ElStepProps = ComponentProps<StepProps>;
|
|
|
341
341
|
*/
|
|
342
342
|
export type ElTableInstance = InstanceType<typeof ElTable> | null;
|
|
343
343
|
|
|
344
|
-
export type ElTableProps<T
|
|
344
|
+
export type ElTableProps<T extends Record<PropertyKey, any>> = ComponentProps<
|
|
345
|
+
TableProps<T>
|
|
346
|
+
>;
|
|
345
347
|
|
|
346
348
|
export type ElColumnProps = Partial<ExtractPropTypes<typeof columnProps>>;
|
|
347
349
|
|
package/lib/ele-app/plus.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type EleAdminLayout from '../ele-admin-layout/index';
|
|
2
2
|
import type { BacktopProps } from '../ele-backtop/props';
|
|
3
3
|
import type EleBasicSelect from '../ele-basic-select/index';
|
|
4
|
+
import type EleBasicSelectView from '../ele-basic-select/components/select-view';
|
|
4
5
|
import type { BreadcrumbProps } from '../ele-breadcrumb/props';
|
|
5
|
-
import type { CropperProps } from '../ele-cropper/props';
|
|
6
6
|
import type { CardProps } from '../ele-card/props';
|
|
7
|
-
import type EleCrud from '../ele-crud/index';
|
|
8
|
-
import type { CrudProps } from '../ele-crud/props';
|
|
9
|
-
import type EleCrudBuilder from '../ele-crud-builder/index';
|
|
10
7
|
import type EleDataTable from '../ele-data-table/index';
|
|
11
8
|
import type { DataTableProps } from '../ele-data-table/props';
|
|
9
|
+
import type { DrawerProps } from '../ele-drawer/props';
|
|
12
10
|
import type EleDropdown from '../ele-dropdown/index';
|
|
13
11
|
import type { DropdownProps } from '../ele-dropdown/props';
|
|
14
12
|
import type { FileListProps } from '../ele-file-list/props';
|
|
@@ -25,10 +23,6 @@ import type { PopconfirmProps } from '../ele-popconfirm/props';
|
|
|
25
23
|
import type ElePopover from '../ele-popover/index';
|
|
26
24
|
import type { PopoverProps } from '../ele-popover/props';
|
|
27
25
|
import type { PrinterProps } from '../ele-printer/props';
|
|
28
|
-
import type EleProForm from '../ele-pro-form/index';
|
|
29
|
-
import type { ProFormProps } from '../ele-pro-form/props';
|
|
30
|
-
import type EleProFormBuilder from '../ele-pro-form-builder/index';
|
|
31
|
-
import type { ProFormBuilderProps } from '../ele-pro-form-builder/props';
|
|
32
26
|
import type EleProTable from '../ele-pro-table/index';
|
|
33
27
|
import type { ProTableProps } from '../ele-pro-table/props';
|
|
34
28
|
import type EleSplitPanel from '../ele-split-panel/index';
|
|
@@ -49,6 +43,7 @@ import type ReceiverView from '../ele-config-provider/components/receiver-view';
|
|
|
49
43
|
import type { MessageOptions } from '../utils/message';
|
|
50
44
|
import type { MessageBoxOptions } from '../utils/message-box';
|
|
51
45
|
import type { ComponentProps } from './types';
|
|
46
|
+
export type * from './plusx';
|
|
52
47
|
|
|
53
48
|
/**
|
|
54
49
|
* EleAdminLayout
|
|
@@ -65,6 +60,10 @@ export type EleBacktopProps = ComponentProps<BacktopProps>;
|
|
|
65
60
|
*/
|
|
66
61
|
export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
|
|
67
62
|
|
|
63
|
+
export type EleBasicSelectViewInstance = InstanceType<
|
|
64
|
+
typeof EleBasicSelectView
|
|
65
|
+
> | null;
|
|
66
|
+
|
|
68
67
|
/**
|
|
69
68
|
* EleBreadcrumb
|
|
70
69
|
*/
|
|
@@ -80,23 +79,6 @@ export type EleCardProps = ComponentProps<CardProps>;
|
|
|
80
79
|
*/
|
|
81
80
|
export type ReceiverViewInstance = InstanceType<typeof ReceiverView> | null;
|
|
82
81
|
|
|
83
|
-
/**
|
|
84
|
-
* EleCropper
|
|
85
|
-
*/
|
|
86
|
-
export type EleCropperProps = ComponentProps<CropperProps>;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* EleCrud
|
|
90
|
-
*/
|
|
91
|
-
export type EleCrudInstance = InstanceType<typeof EleCrud> | null;
|
|
92
|
-
|
|
93
|
-
export type EleCrudProps = ComponentProps<CrudProps>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* EleCrud
|
|
97
|
-
*/
|
|
98
|
-
export type EleCrudBuilderInstance = InstanceType<typeof EleCrudBuilder> | null;
|
|
99
|
-
|
|
100
82
|
/**
|
|
101
83
|
* EleDataTable
|
|
102
84
|
*/
|
|
@@ -104,6 +86,11 @@ export type EleDataTableInstance = InstanceType<typeof EleDataTable> | null;
|
|
|
104
86
|
|
|
105
87
|
export type EleDataTableProps = ComponentProps<DataTableProps>;
|
|
106
88
|
|
|
89
|
+
/**
|
|
90
|
+
* EleDrawer
|
|
91
|
+
*/
|
|
92
|
+
export type EleDrawerProps = ComponentProps<DrawerProps>;
|
|
93
|
+
|
|
107
94
|
/**
|
|
108
95
|
* EleDropdown
|
|
109
96
|
*/
|
|
@@ -169,22 +156,6 @@ export type ElePopoverProps = Partial<PopoverProps>;
|
|
|
169
156
|
*/
|
|
170
157
|
export type ElePrinterProps = ComponentProps<PrinterProps>;
|
|
171
158
|
|
|
172
|
-
/**
|
|
173
|
-
* EleProForm
|
|
174
|
-
*/
|
|
175
|
-
export type EleProFormInstance = InstanceType<typeof EleProForm> | null;
|
|
176
|
-
|
|
177
|
-
export type EleProFormProps = ComponentProps<ProFormProps>;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* EleProFormBuilder
|
|
181
|
-
*/
|
|
182
|
-
export type EleProFormBuilderInstance = InstanceType<
|
|
183
|
-
typeof EleProFormBuilder
|
|
184
|
-
> | null;
|
|
185
|
-
|
|
186
|
-
export type EleProFormBuilderProps = ComponentProps<ProFormBuilderProps>;
|
|
187
|
-
|
|
188
159
|
/**
|
|
189
160
|
* EleProTable
|
|
190
161
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CropperProps } from '../ele-cropper/props';
|
|
2
|
+
import { default as CropperPreview } from '../ele-cropper/components/cropper-preview';
|
|
3
|
+
import { default as EleCrud } from '../ele-crud/index';
|
|
4
|
+
import { CrudProps } from '../ele-crud/props';
|
|
5
|
+
import { default as EleCrudBuilder } from '../ele-crud-builder/index';
|
|
6
|
+
import { default as MapView } from '../ele-map-picker/components/map-view';
|
|
7
|
+
import { default as EleProForm } from '../ele-pro-form/index';
|
|
8
|
+
import { ProFormProps } from '../ele-pro-form/props';
|
|
9
|
+
import { default as EleProFormBuilder } from '../ele-pro-form-builder/index';
|
|
10
|
+
import { ProFormBuilderProps } from '../ele-pro-form-builder/props';
|
|
11
|
+
import { ComponentProps } from './types';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* EleCropper
|
|
15
|
+
*/
|
|
16
|
+
export type EleCropperProps = ComponentProps<CropperProps>;
|
|
17
|
+
export type EleCropperPreviewInstance = InstanceType<typeof CropperPreview> | null;
|
|
18
|
+
/**
|
|
19
|
+
* EleCrud
|
|
20
|
+
*/
|
|
21
|
+
export type EleCrudInstance = InstanceType<typeof EleCrud> | null;
|
|
22
|
+
export type EleCrudProps = ComponentProps<CrudProps>;
|
|
23
|
+
/**
|
|
24
|
+
* EleCrudBuilder
|
|
25
|
+
*/
|
|
26
|
+
export type EleCrudBuilderInstance = InstanceType<typeof EleCrudBuilder> | null;
|
|
27
|
+
/**
|
|
28
|
+
* EleMapPicker
|
|
29
|
+
*/
|
|
30
|
+
export type EleMapPickerViewInstance = InstanceType<typeof MapView> | null;
|
|
31
|
+
/**
|
|
32
|
+
* EleProForm
|
|
33
|
+
*/
|
|
34
|
+
export type EleProFormInstance = InstanceType<typeof EleProForm> | null;
|
|
35
|
+
export type EleProFormProps = ComponentProps<ProFormProps>;
|
|
36
|
+
/**
|
|
37
|
+
* EleProFormBuilder
|
|
38
|
+
*/
|
|
39
|
+
export type EleProFormBuilderInstance = InstanceType<typeof EleProFormBuilder> | null;
|
|
40
|
+
export type EleProFormBuilderProps = ComponentProps<ProFormBuilderProps>;
|