ele-admin-plus 1.1.9-beta.7 → 1.1.9-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ele-alert/index.js +2 -4
- package/es/ele-app/el.d.ts +6 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-avatar-group/index.d.ts +1 -1
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-basic-select/index.d.ts +8 -8
- package/es/ele-basic-select/index.js +17 -13
- package/es/ele-check-card/index.d.ts +2 -2
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +45 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/types.d.ts +2 -0
- package/es/ele-copyable/index.d.ts +4 -6
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-cropper/index.d.ts +6 -6
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-dashboard/index.d.ts +0 -1
- package/es/ele-dashboard/index.js +8 -17
- package/es/ele-data-table/index.d.ts +2 -2
- package/es/ele-data-table/index.js +8 -0
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +10 -0
- package/es/ele-data-table/util.d.ts +5 -0
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-dot/index.d.ts +2 -4
- package/es/ele-dot/index.js +4 -10
- package/es/ele-drawer/index.d.ts +6 -6
- package/es/ele-drawer/index.js +14 -11
- package/es/ele-dropdown/index.js +6 -10
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +6 -0
- package/es/ele-edit-tag/index.js +17 -15
- package/es/ele-edit-tag/props.d.ts +4 -0
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +3 -3
- package/es/ele-ellipsis/index.js +2 -4
- package/es/ele-file-list/components/file-grid-item.js +16 -9
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-table-item.js +20 -15
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/index.d.ts +4 -4
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/index.d.ts +22 -10
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +6 -1
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +0 -2
- package/es/ele-loading/index.js +32 -30
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-menus/index.d.ts +3 -3
- package/es/ele-menus/index.js +6 -7
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +2 -1
- package/es/ele-modal/index.d.ts +2 -2
- package/es/ele-modal/index.js +14 -8
- package/es/ele-modal/style/index.scss +18 -29
- package/es/ele-pagination/index.d.ts +10 -8
- package/es/ele-pagination/index.js +19 -13
- package/es/ele-pagination/props.d.ts +3 -2
- package/es/ele-pagination/props.js +2 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-popconfirm/style/index.js +1 -1
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +6 -6
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +3 -1
- package/es/ele-pro-layout/index.d.ts +26 -26
- package/es/ele-pro-layout/index.js +7 -14
- package/es/ele-pro-table/components/table-tools.d.ts +99 -8
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.js +1 -0
- package/es/ele-pro-table/components/tool-column.js +6 -2
- package/es/ele-pro-table/components/tool-export.d.ts +457 -0
- package/es/ele-pro-table/components/tool-export.js +451 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +899 -0
- package/es/ele-pro-table/components/tool-print.js +547 -0
- package/es/ele-pro-table/index.d.ts +31 -12
- package/es/ele-pro-table/index.js +57 -14
- package/es/ele-pro-table/props.d.ts +14 -8
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +147 -5
- package/es/ele-pro-table/util.d.ts +47 -3
- package/es/ele-pro-table/util.js +119 -13
- package/es/ele-segmented/index.js +1 -3
- package/es/ele-split-panel/index.d.ts +9 -8
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-steps/index.d.ts +0 -1
- package/es/ele-steps/index.js +2 -4
- package/es/ele-table/index.d.ts +3 -0
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +2 -0
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-table-select/index.d.ts +1 -1
- package/es/ele-tabs/index.d.ts +7 -5
- package/es/ele-tabs/index.js +1 -6
- package/es/ele-tabs/props.d.ts +1 -1
- package/es/ele-tool/index.d.ts +1 -1
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +7 -0
- package/es/ele-tool/props.js +5 -0
- package/es/ele-tooltip/index.js +9 -13
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.js +80 -77
- package/es/ele-upload-list/components/list-item.d.ts +1 -1
- package/es/ele-upload-list/index.d.ts +6 -4
- package/es/ele-upload-list/index.js +2 -3
- package/es/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/es/ele-virtual-table/components/body-cell.js +32 -47
- package/es/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/es/ele-virtual-table/components/footer-row.js +15 -10
- package/es/ele-virtual-table/index.d.ts +1 -1
- package/es/ele-virtual-table/types.d.ts +15 -1
- package/es/ele-virtual-table/util.d.ts +26 -3
- package/es/ele-virtual-table/util.js +44 -0
- package/es/ele-watermark/index.d.ts +9 -0
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +5 -0
- package/es/ele-watermark/props.js +5 -0
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +58 -56
- package/es/lang/en_US.js +13 -2
- package/es/lang/zh_CN.js +13 -2
- package/es/lang/zh_TW.js +12 -1
- package/es/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/default.scss +5 -2
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +33 -20
- package/lib/ele-alert/index.cjs +2 -4
- package/lib/ele-app/el.d.ts +6 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +1 -1
- package/lib/ele-basic-select/index.cjs +16 -12
- package/lib/ele-basic-select/index.d.ts +8 -8
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +2 -2
- package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +2 -0
- package/lib/ele-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +4 -6
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +6 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +0 -1
- package/lib/ele-data-table/index.cjs +8 -0
- package/lib/ele-data-table/index.d.ts +2 -2
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +10 -0
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +5 -0
- package/lib/ele-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +2 -4
- package/lib/ele-drawer/index.cjs +13 -10
- package/lib/ele-drawer/index.d.ts +6 -6
- package/lib/ele-dropdown/index.cjs +6 -10
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +16 -14
- package/lib/ele-edit-tag/index.d.ts +6 -0
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +4 -0
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +2 -4
- package/lib/ele-ellipsis/index.d.ts +3 -3
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-table-item.cjs +19 -14
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +4 -4
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +22 -10
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +6 -1
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +31 -29
- package/lib/ele-loading/index.d.ts +0 -2
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-menus/index.cjs +6 -7
- package/lib/ele-menus/index.d.ts +3 -3
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +2 -1
- package/lib/ele-modal/index.cjs +13 -7
- package/lib/ele-modal/index.d.ts +2 -2
- package/lib/ele-modal/style/index.scss +18 -29
- package/lib/ele-pagination/index.cjs +18 -12
- package/lib/ele-pagination/index.d.ts +10 -8
- package/lib/ele-pagination/props.cjs +2 -0
- package/lib/ele-pagination/props.d.ts +3 -2
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +6 -6
- package/lib/ele-printer/util.cjs +1 -1
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +3 -1
- package/lib/ele-pro-layout/index.cjs +6 -13
- package/lib/ele-pro-layout/index.d.ts +26 -26
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +99 -8
- package/lib/ele-pro-table/components/tool-column-list.cjs +1 -0
- package/lib/ele-pro-table/components/tool-column.cjs +6 -2
- package/lib/ele-pro-table/components/tool-export.cjs +450 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +457 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print.cjs +546 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +899 -0
- package/lib/ele-pro-table/index.cjs +56 -13
- package/lib/ele-pro-table/index.d.ts +31 -12
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +14 -8
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +147 -5
- package/lib/ele-pro-table/util.cjs +119 -13
- package/lib/ele-pro-table/util.d.ts +47 -3
- package/lib/ele-segmented/index.cjs +1 -3
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +9 -8
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +0 -1
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +3 -0
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +2 -0
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.d.ts +1 -1
- package/lib/ele-tabs/index.cjs +1 -6
- package/lib/ele-tabs/index.d.ts +7 -5
- package/lib/ele-tabs/props.d.ts +1 -1
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +1 -1
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +7 -0
- package/lib/ele-tooltip/index.cjs +9 -13
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-upload-list/components/list-item.d.ts +1 -1
- package/lib/ele-upload-list/index.cjs +1 -2
- package/lib/ele-upload-list/index.d.ts +6 -4
- package/lib/ele-virtual-table/components/body-cell.cjs +31 -46
- package/lib/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/lib/ele-virtual-table/components/footer-row.cjs +13 -8
- package/lib/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/lib/ele-virtual-table/index.d.ts +1 -1
- package/lib/ele-virtual-table/types.d.ts +15 -1
- package/lib/ele-virtual-table/util.cjs +44 -0
- package/lib/ele-virtual-table/util.d.ts +26 -3
- package/lib/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +9 -0
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +5 -0
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/lang/en_US.cjs +13 -2
- package/lib/lang/zh_CN.cjs +13 -2
- package/lib/lang/zh_TW.cjs +12 -1
- package/lib/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/default.scss +5 -2
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +1 -1
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
package/es/ele-alert/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, mergeProps } from "vue";
|
|
2
2
|
import { ElIcon } from "element-plus";
|
|
3
3
|
import { CloseOutlined, InfoCircleFilled, CheckCircleFilled, ExclamationCircleFilled, CloseCircleFilled } from "../icons";
|
|
4
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
5
4
|
import { alertProps, alertEmits } from "./props";
|
|
6
5
|
const _sfc_main = defineComponent({
|
|
7
6
|
name: "EleAlert",
|
|
@@ -16,20 +15,19 @@ const _sfc_main = defineComponent({
|
|
|
16
15
|
props: alertProps,
|
|
17
16
|
emits: alertEmits,
|
|
18
17
|
setup(props, { emit, slots }) {
|
|
19
|
-
const { authenticated } = useLicense();
|
|
20
18
|
const visible = ref(true);
|
|
21
19
|
const isRich = computed(() => {
|
|
22
20
|
return !!props.description || !!slots.default;
|
|
23
21
|
});
|
|
24
22
|
const onClose = (e) => {
|
|
25
|
-
if (!visible.value || !props.closable
|
|
23
|
+
if (!visible.value || !props.closable) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
26
|
visible.value = false;
|
|
29
27
|
emit("close", e);
|
|
30
28
|
};
|
|
31
29
|
const open = () => {
|
|
32
|
-
if (!visible.value
|
|
30
|
+
if (!visible.value) {
|
|
33
31
|
visible.value = true;
|
|
34
32
|
}
|
|
35
33
|
};
|
package/es/ele-app/el.d.ts
CHANGED
|
@@ -49,13 +49,16 @@ import type {
|
|
|
49
49
|
ElImage,
|
|
50
50
|
ElScrollbar,
|
|
51
51
|
ElTreeV2,
|
|
52
|
-
|
|
52
|
+
ElForm,
|
|
53
|
+
ElFormItem,
|
|
54
|
+
FormItemRule
|
|
53
55
|
} from 'element-plus';
|
|
54
56
|
import type { dropdownProps } from 'element-plus';
|
|
55
57
|
import type { dropdownItemProps } from 'element-plus';
|
|
56
58
|
import type columnProps from 'element-plus/es/components/table/src/table-column/defaults';
|
|
57
59
|
import type { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
58
60
|
import type { ComponentProps } from './types';
|
|
61
|
+
export type ElFormItemRule = FormItemRule;
|
|
59
62
|
|
|
60
63
|
/**
|
|
61
64
|
* 组件属性
|
|
@@ -173,4 +176,6 @@ export type ElScrollbarInstance = InstanceType<typeof ElScrollbar> | null;
|
|
|
173
176
|
|
|
174
177
|
export type ElTreeV2Instance = InstanceType<typeof ElTreeV2> | null;
|
|
175
178
|
|
|
179
|
+
export type ElFormInstance = InstanceType<typeof ElForm> | null;
|
|
180
|
+
|
|
176
181
|
export type ElFormItemInstance = InstanceType<typeof ElFormItem> | null;
|
package/es/ele-app/plus.d.ts
CHANGED
|
@@ -14,13 +14,17 @@ import type { PopoverProps } from '../ele-popover/props';
|
|
|
14
14
|
import type ElePopover from '../ele-popover/index';
|
|
15
15
|
import type { ProTableProps } from '../ele-pro-table/props';
|
|
16
16
|
import type EleProTable from '../ele-pro-table/index';
|
|
17
|
+
import type { PrinterProps } from '../ele-printer/props';
|
|
17
18
|
import type EleTabs from '../ele-tabs/index';
|
|
19
|
+
import type { TableProps } from '../ele-table/props';
|
|
18
20
|
import type { TextProps } from '../ele-text/props';
|
|
19
21
|
import type EleText from '../ele-text/index';
|
|
20
22
|
import type { ToolbarProps } from '../ele-toolbar/props';
|
|
21
23
|
import type { TooltipProps } from '../ele-tooltip/props';
|
|
24
|
+
import type { ToolProps } from '../ele-tool/props';
|
|
22
25
|
import type EleTooltip from '../ele-tooltip/index';
|
|
23
26
|
import type EleVirtualTable from '../ele-virtual-table/index';
|
|
27
|
+
import type ReceiverView from '../ele-config-provider/components/receiver-view';
|
|
24
28
|
|
|
25
29
|
/**
|
|
26
30
|
* 组件属性
|
|
@@ -45,12 +49,18 @@ export type ElePopoverProps = Partial<PopoverProps>;
|
|
|
45
49
|
|
|
46
50
|
export type EleProTableProps = ComponentProps<ProTableProps>;
|
|
47
51
|
|
|
52
|
+
export type ElePrinterProps = ComponentProps<PrinterProps>;
|
|
53
|
+
|
|
54
|
+
export type EleTableProps = ComponentProps<TableProps>;
|
|
55
|
+
|
|
48
56
|
export type EleTextProps = ComponentProps<TextProps>;
|
|
49
57
|
|
|
50
58
|
export type EleToolbarProps = ComponentProps<ToolbarProps>;
|
|
51
59
|
|
|
52
60
|
export type EleTooltipProps = Partial<TooltipProps>;
|
|
53
61
|
|
|
62
|
+
export type EleToolProps = Partial<ToolProps>;
|
|
63
|
+
|
|
54
64
|
/**
|
|
55
65
|
* 组件实例
|
|
56
66
|
*/
|
|
@@ -73,3 +83,5 @@ export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
|
|
|
73
83
|
export type EleVirtualTableInstance = InstanceType<
|
|
74
84
|
typeof EleVirtualTable
|
|
75
85
|
> | null;
|
|
86
|
+
|
|
87
|
+
export type ReceiverViewInstance = InstanceType<typeof ReceiverView> | null;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
onError: (option: AvatarErrorOption) => void;
|
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
itemClick: (_item: AvatarItem) => boolean;
|
|
39
|
-
moreClick: () => boolean;
|
|
39
|
+
moreClick: () => boolean;
|
|
40
40
|
error: (_option: AvatarErrorOption) => boolean;
|
|
41
41
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
42
|
data: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, normalizeStyle, withCtx, renderSlot, createCommentVNode, mergeProps, createVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ElAvatar } from "element-plus";
|
|
3
3
|
import EleTooltip from "../ele-tooltip/index";
|
|
4
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
5
4
|
import { avatarGroupProps, avatarGroupEmits } from "./props";
|
|
6
5
|
const _sfc_main = defineComponent({
|
|
7
6
|
name: "EleAvatarGroup",
|
|
@@ -9,7 +8,6 @@ const _sfc_main = defineComponent({
|
|
|
9
8
|
props: avatarGroupProps,
|
|
10
9
|
emits: avatarGroupEmits,
|
|
11
10
|
setup(props, { emit }) {
|
|
12
|
-
const { authenticated } = useLicense();
|
|
13
11
|
const tooltipContent = ref("");
|
|
14
12
|
const virtualRef = ref();
|
|
15
13
|
const overflowVisible = ref(false);
|
|
@@ -27,7 +25,7 @@ const _sfc_main = defineComponent({
|
|
|
27
25
|
return props.maxCount != null && props.maxCount > 0 && props.data != null && props.data.length > props.maxCount;
|
|
28
26
|
});
|
|
29
27
|
const avatarData = computed(() => {
|
|
30
|
-
if (
|
|
28
|
+
if (props.data == null) {
|
|
31
29
|
return [];
|
|
32
30
|
}
|
|
33
31
|
return isOverflow.value ? props.data.slice(0, props.maxCount) : props.data;
|
|
@@ -15,21 +15,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
selected: import("vue").PropType<SelectedItem[]>;
|
|
16
16
|
maxTagCount: NumberConstructor;
|
|
17
17
|
maxTagTextLength: NumberConstructor;
|
|
18
|
-
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
18
|
+
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>; /** 输入框组件 */
|
|
19
19
|
automaticDropdown: BooleanConstructor;
|
|
20
20
|
filterable: BooleanConstructor;
|
|
21
21
|
visible: BooleanConstructor;
|
|
22
22
|
teleported: BooleanConstructor;
|
|
23
23
|
persistent: BooleanConstructor;
|
|
24
|
-
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
24
|
+
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
25
25
|
transition: {
|
|
26
|
-
type: StringConstructor;
|
|
26
|
+
type: StringConstructor; /** 是否未选中 */
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
30
30
|
popperClass: StringConstructor;
|
|
31
31
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
32
|
-
selectClass: StringConstructor;
|
|
32
|
+
selectClass: StringConstructor;
|
|
33
33
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
34
34
|
inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
35
35
|
}, {
|
|
@@ -74,21 +74,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
selected: import("vue").PropType<SelectedItem[]>;
|
|
75
75
|
maxTagCount: NumberConstructor;
|
|
76
76
|
maxTagTextLength: NumberConstructor;
|
|
77
|
-
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
77
|
+
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>; /** 输入框组件 */
|
|
78
78
|
automaticDropdown: BooleanConstructor;
|
|
79
79
|
filterable: BooleanConstructor;
|
|
80
80
|
visible: BooleanConstructor;
|
|
81
81
|
teleported: BooleanConstructor;
|
|
82
82
|
persistent: BooleanConstructor;
|
|
83
|
-
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
83
|
+
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
84
84
|
transition: {
|
|
85
|
-
type: StringConstructor;
|
|
85
|
+
type: StringConstructor; /** 是否未选中 */
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
88
88
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
89
89
|
popperClass: StringConstructor;
|
|
90
90
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
91
|
-
selectClass: StringConstructor;
|
|
91
|
+
selectClass: StringConstructor;
|
|
92
92
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
93
93
|
inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
94
94
|
}>> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, createVNode, createSlots, withModifiers, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ElInput, ElIcon, ElTag } from "element-plus";
|
|
3
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
|
-
import EleTooltip from "../ele-tooltip/index";
|
|
5
3
|
import { CloseCircleFilled, ArrowDown } from "../icons";
|
|
4
|
+
import EleTooltip from "../ele-tooltip/index";
|
|
5
|
+
import ReceiverView from "../ele-config-provider/components/receiver-view";
|
|
6
6
|
import { basicSelectProps, basicSelectEmits } from "./props";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
8
8
|
name: "EleBasicSelect",
|
|
@@ -10,14 +10,14 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
ElInput,
|
|
11
11
|
ElIcon,
|
|
12
12
|
ElTag,
|
|
13
|
-
EleTooltip,
|
|
14
13
|
CloseCircleFilled,
|
|
15
|
-
ArrowDown
|
|
14
|
+
ArrowDown,
|
|
15
|
+
EleTooltip,
|
|
16
|
+
ReceiverView
|
|
16
17
|
},
|
|
17
18
|
props: basicSelectProps,
|
|
18
19
|
emits: basicSelectEmits,
|
|
19
20
|
setup(props, { emit }) {
|
|
20
|
-
const { authenticated } = useLicense();
|
|
21
21
|
const tooltipRef = ref(null);
|
|
22
22
|
const inputRef = ref(null);
|
|
23
23
|
const searchRef = ref(null);
|
|
@@ -81,12 +81,12 @@ const _sfc_main = defineComponent({
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
const updateVisible = (visible) => {
|
|
84
|
-
if (
|
|
84
|
+
if (!props.disabled || !visible) {
|
|
85
85
|
emit("update:visible", visible);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
const onTagClose = (item) => {
|
|
89
|
-
if (
|
|
89
|
+
if (!props.disabled) {
|
|
90
90
|
emit("removeTag", item);
|
|
91
91
|
}
|
|
92
92
|
};
|
|
@@ -167,6 +167,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167
167
|
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
168
168
|
const _component_ElInput = resolveComponent("ElInput");
|
|
169
169
|
const _component_ElTag = resolveComponent("ElTag");
|
|
170
|
+
const _component_ReceiverView = resolveComponent("ReceiverView");
|
|
170
171
|
const _component_EleTooltip = resolveComponent("EleTooltip");
|
|
171
172
|
return openBlock(), createBlock(_component_EleTooltip, {
|
|
172
173
|
ref: "tooltipRef",
|
|
@@ -186,13 +187,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
186
187
|
"onUpdate:visible": _ctx.updateVisible
|
|
187
188
|
}, {
|
|
188
189
|
body: withCtx(() => [
|
|
189
|
-
_ctx.persistent || _ctx.visible ? (openBlock(),
|
|
190
|
+
_ctx.persistent || _ctx.visible ? (openBlock(), createBlock(_component_ReceiverView, {
|
|
190
191
|
key: 0,
|
|
191
192
|
class: "ele-popover-body",
|
|
192
|
-
onClick:
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
onClick: _ctx.focusSearchInput
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [
|
|
196
|
+
renderSlot(_ctx.$slots, "default")
|
|
197
|
+
]),
|
|
198
|
+
_: 3
|
|
199
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
196
200
|
]),
|
|
197
201
|
default: withCtx(() => [
|
|
198
202
|
createElementVNode("div", {
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
disabled: BooleanConstructor;
|
|
10
10
|
bordered: {
|
|
11
11
|
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
12
|
+
default: boolean;
|
|
13
13
|
};
|
|
14
14
|
arrow: {
|
|
15
15
|
type: BooleanConstructor;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
disabled: BooleanConstructor;
|
|
36
36
|
bordered: {
|
|
37
37
|
type: BooleanConstructor;
|
|
38
|
-
default: boolean;
|
|
38
|
+
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
arrow: {
|
|
41
41
|
type: BooleanConstructor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createBlock, normalizeProps, mergeProps, withCtx, Fragment, renderList, createVNode, normalizeStyle, normalizeClass, renderSlot, guardReactiveProps, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ElRow, ElCol } from "element-plus";
|
|
3
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
3
|
import CardItem from "./components/card-item";
|
|
5
4
|
import { checkCardProps, checkCardEmits } from "./props";
|
|
6
5
|
const _sfc_main = defineComponent({
|
|
@@ -9,7 +8,6 @@ const _sfc_main = defineComponent({
|
|
|
9
8
|
props: checkCardProps,
|
|
10
9
|
emits: checkCardEmits,
|
|
11
10
|
setup(props, { emit }) {
|
|
12
|
-
const { authenticated } = useLicense();
|
|
13
11
|
const isChecked = (item) => {
|
|
14
12
|
if (props.modelValue == null || item.value == null) {
|
|
15
13
|
return false;
|
|
@@ -23,9 +21,6 @@ const _sfc_main = defineComponent({
|
|
|
23
21
|
return props.modelValue.includes(item.value);
|
|
24
22
|
};
|
|
25
23
|
const updateModelValue = (value) => {
|
|
26
|
-
if (!authenticated.value) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
24
|
emit("update:modelValue", value);
|
|
30
25
|
emit("change", value);
|
|
31
26
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
wrapPosition: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
authenticated: import("vue").Ref<boolean>;
|
|
8
|
+
watermark: string[];
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
wrapPosition: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
wrapPosition: boolean;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, renderSlot } from "vue";
|
|
2
|
+
import EleWatermark from "../../ele-watermark/index";
|
|
3
|
+
import { useLicense, UNAUTHORIZED_TIP } from "../receiver";
|
|
4
|
+
const _sfc_main = defineComponent({
|
|
5
|
+
name: "ReceiverView",
|
|
6
|
+
components: { EleWatermark },
|
|
7
|
+
props: {
|
|
8
|
+
wrapPosition: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(_props) {
|
|
14
|
+
const { authenticated } = useLicense();
|
|
15
|
+
return {
|
|
16
|
+
authenticated,
|
|
17
|
+
watermark: UNAUTHORIZED_TIP.split(",") || "Error"
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const _export_sfc = (sfc, props) => {
|
|
22
|
+
const target = sfc.__vccOpts || sfc;
|
|
23
|
+
for (const [key, val] of props) {
|
|
24
|
+
target[key] = val;
|
|
25
|
+
}
|
|
26
|
+
return target;
|
|
27
|
+
};
|
|
28
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29
|
+
const _component_EleWatermark = resolveComponent("EleWatermark");
|
|
30
|
+
return openBlock(), createBlock(_component_EleWatermark, {
|
|
31
|
+
content: _ctx.watermark,
|
|
32
|
+
wrapPosition: false,
|
|
33
|
+
disabled: _ctx.authenticated,
|
|
34
|
+
style: normalizeStyle(!_ctx.wrapPosition || _ctx.authenticated ? void 0 : { position: "relative" })
|
|
35
|
+
}, {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
renderSlot(_ctx.$slots, "default", { authenticated: _ctx.authenticated })
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, ["content", "disabled", "style"]);
|
|
41
|
+
}
|
|
42
|
+
const receiverView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
43
|
+
export {
|
|
44
|
+
receiverView as default
|
|
45
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
locale: import("vue").PropType<import("./types").EleLocale>;
|
|
3
|
-
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
|
|
3
|
+
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
4
4
|
mapKey: StringConstructor;
|
|
5
5
|
license: StringConstructor;
|
|
6
6
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
locale: import("vue").PropType<import("./types").EleLocale>;
|
|
10
|
-
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
|
|
10
|
+
table: import("vue").PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
11
11
|
mapKey: StringConstructor;
|
|
12
12
|
license: StringConstructor;
|
|
13
13
|
}>>, {}, {}>;
|
|
@@ -7,10 +7,10 @@ export declare const configProviderProps: {
|
|
|
7
7
|
/** 国际化 */
|
|
8
8
|
locale: PropType<EleLocale>;
|
|
9
9
|
/** 表格全局配置 */
|
|
10
|
-
table: PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "tools" | "emptyProps" | "request" | "response" | "parseData" | "maximizedIndex" | "pagination">>>;
|
|
11
|
-
/**
|
|
10
|
+
table: PropType<Partial<Pick<import("../ele-app/plus").EleProTableProps, "size" | "stripe" | "border" | "tools" | "emptyProps" | "request" | "response" | "parseData" | "maximizedIndex" | "pagination" | "exportConfig" | "printConfig">>>;
|
|
11
|
+
/** 高德地图key */
|
|
12
12
|
mapKey: StringConstructor;
|
|
13
|
-
/**
|
|
13
|
+
/** license */
|
|
14
14
|
license: StringConstructor;
|
|
15
15
|
};
|
|
16
16
|
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
|
|
@@ -12,11 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
13
13
|
tooltip: {
|
|
14
14
|
type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
15
|
+
default: boolean;
|
|
16
|
+
}; /** 是否拷贝完成 */
|
|
17
17
|
resetAfter: {
|
|
18
18
|
type: NumberConstructor;
|
|
19
|
-
/** 是否拷贝完成 */
|
|
20
19
|
default: number;
|
|
21
20
|
};
|
|
22
21
|
locale: import("vue").PropType<Partial<CopyableLocale>>;
|
|
@@ -42,11 +41,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
41
|
copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
43
42
|
tooltip: {
|
|
44
43
|
type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
44
|
+
default: boolean;
|
|
45
|
+
}; /** 是否拷贝完成 */
|
|
47
46
|
resetAfter: {
|
|
48
47
|
type: NumberConstructor;
|
|
49
|
-
/** 是否拷贝完成 */
|
|
50
48
|
default: number;
|
|
51
49
|
};
|
|
52
50
|
locale: import("vue").PropType<Partial<CopyableLocale>>;
|
package/es/ele-copyable/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onDeactivated, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, createBlock, normalizeProps, mergeProps, withCtx, resolveDynamicComponent, createVNode } from "vue";
|
|
2
2
|
import { ElIcon } from "element-plus";
|
|
3
3
|
import { CopyOutlined, CheckOutlined } from "../icons";
|
|
4
|
-
import {
|
|
4
|
+
import { useLocale } from "../ele-config-provider/receiver";
|
|
5
5
|
import EleTooltip from "../ele-tooltip/index";
|
|
6
6
|
import { copyableProps, copyableEmits } from "./props";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
@@ -10,7 +10,6 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
props: copyableProps,
|
|
11
11
|
emits: copyableEmits,
|
|
12
12
|
setup(props, { emit }) {
|
|
13
|
-
const { authenticated } = useLicense();
|
|
14
13
|
const { lang } = useLocale("copyable", props);
|
|
15
14
|
const state = { timer: null };
|
|
16
15
|
const innerRef = ref(null);
|
|
@@ -53,9 +52,6 @@ const _sfc_main = defineComponent({
|
|
|
53
52
|
});
|
|
54
53
|
};
|
|
55
54
|
const onCopyClick = () => {
|
|
56
|
-
if (!authenticated.value) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
55
|
copyText(getText()).then(() => {
|
|
60
56
|
copied.value = true;
|
|
61
57
|
updateTooltip();
|
|
@@ -27,17 +27,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
toBlob: BooleanConstructor;
|
|
29
29
|
options: import("vue").PropType<CropperOptions>;
|
|
30
|
-
croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
|
|
30
|
+
croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
|
|
31
31
|
tooltip: {
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: boolean;
|
|
34
|
-
};
|
|
34
|
+
};
|
|
35
35
|
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
36
36
|
responsive: {
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
default: null;
|
|
39
39
|
};
|
|
40
|
-
locale: import("vue").PropType<Partial<import("./types").CropperLocale>>;
|
|
40
|
+
locale: import("vue").PropType<Partial<import("./types").CropperLocale>>; /** 渲染 */
|
|
41
41
|
}, {
|
|
42
42
|
imageRef: Ref<HTMLImageElement | null>;
|
|
43
43
|
previewRef: Ref<PreviewInstance>;
|
|
@@ -85,17 +85,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
};
|
|
86
86
|
toBlob: BooleanConstructor;
|
|
87
87
|
options: import("vue").PropType<CropperOptions>;
|
|
88
|
-
croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
|
|
88
|
+
croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
|
|
89
89
|
tooltip: {
|
|
90
90
|
type: BooleanConstructor;
|
|
91
91
|
default: boolean;
|
|
92
|
-
};
|
|
92
|
+
};
|
|
93
93
|
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
94
94
|
responsive: {
|
|
95
95
|
type: BooleanConstructor;
|
|
96
96
|
default: null;
|
|
97
97
|
};
|
|
98
|
-
locale: import("vue").PropType<Partial<import("./types").CropperLocale>>;
|
|
98
|
+
locale: import("vue").PropType<Partial<import("./types").CropperLocale>>; /** 渲染 */
|
|
99
99
|
}>> & {
|
|
100
100
|
onDone?: ((_result?: string | Blob | null | undefined) => any) | undefined;
|
|
101
101
|
}, {
|
package/es/ele-cropper/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, nextTick, onMounted, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createBlock, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import Cropper from "cropperjs";
|
|
3
|
-
import {
|
|
3
|
+
import { useResponsive } from "../ele-config-provider/receiver";
|
|
4
4
|
import CropperPreview from "./components/cropper-preview";
|
|
5
5
|
import CropperTools from "./components/cropper-tools";
|
|
6
6
|
import { cropperProps, cropperEmits } from "./props";
|
|
@@ -10,7 +10,6 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
props: cropperProps,
|
|
11
11
|
emits: cropperEmits,
|
|
12
12
|
setup(props, { emit }) {
|
|
13
|
-
const { authenticated } = useLicense();
|
|
14
13
|
const isResponsive = useResponsive(props);
|
|
15
14
|
const imageRef = ref(null);
|
|
16
15
|
const previewRef = ref(null);
|
|
@@ -83,9 +82,6 @@ const _sfc_main = defineComponent({
|
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
84
|
const onOk = () => {
|
|
86
|
-
if (!authenticated.value) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
85
|
if (!state.instance) {
|
|
90
86
|
emit("done");
|
|
91
87
|
return;
|
|
@@ -4,7 +4,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
size: (StringConstructor | NumberConstructor)[];
|
|
5
5
|
space: (StringConstructor | NumberConstructor)[];
|
|
6
6
|
}, {
|
|
7
|
-
authenticated: import("vue").Ref<boolean>;
|
|
8
7
|
rootStyle: import("vue").ComputedRef<Partial<import("vue").CSSProperties>>;
|
|
9
8
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
9
|
type: import("vue").PropType<import("./types").DashboardType>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot
|
|
2
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
3
2
|
import { dashboardProps } from "./props";
|
|
4
3
|
const _sfc_main = defineComponent({
|
|
5
4
|
name: "EleDashboard",
|
|
6
5
|
props: dashboardProps,
|
|
7
6
|
setup(props) {
|
|
8
|
-
const { authenticated } = useLicense();
|
|
9
7
|
const rootStyle = computed(() => {
|
|
10
8
|
const style = {};
|
|
11
9
|
if (props.size != null) {
|
|
@@ -25,7 +23,7 @@ const _sfc_main = defineComponent({
|
|
|
25
23
|
}
|
|
26
24
|
return style;
|
|
27
25
|
});
|
|
28
|
-
return {
|
|
26
|
+
return { rootStyle };
|
|
29
27
|
}
|
|
30
28
|
});
|
|
31
29
|
const _export_sfc = (sfc, props) => {
|
|
@@ -36,18 +34,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
36
34
|
return target;
|
|
37
35
|
};
|
|
38
36
|
const _hoisted_1 = { class: "ele-dashboard-inner" };
|
|
39
|
-
const _hoisted_2 = {
|
|
40
|
-
|
|
41
|
-
class: "ele-dashboard-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-bg" }, null, -1);
|
|
45
|
-
const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-bg" }, null, -1);
|
|
46
|
-
const _hoisted_6 = [
|
|
47
|
-
_hoisted_3,
|
|
48
|
-
_hoisted_4,
|
|
49
|
-
_hoisted_5
|
|
50
|
-
];
|
|
37
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-outer" }, [
|
|
38
|
+
/* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-bg" }),
|
|
39
|
+
/* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-bg" }),
|
|
40
|
+
/* @__PURE__ */ createElementVNode("div", { class: "ele-dashboard-bg" })
|
|
41
|
+
], -1);
|
|
51
42
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
43
|
return openBlock(), createElementBlock("div", {
|
|
53
44
|
class: normalizeClass([
|
|
@@ -61,7 +52,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61
52
|
createElementVNode("div", _hoisted_1, [
|
|
62
53
|
renderSlot(_ctx.$slots, "default")
|
|
63
54
|
]),
|
|
64
|
-
|
|
55
|
+
_hoisted_2
|
|
65
56
|
], 6);
|
|
66
57
|
}
|
|
67
58
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
142
142
|
doLayout: () => void;
|
|
143
143
|
sort: (prop: string, order: string) => void;
|
|
144
|
-
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
144
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
145
145
|
setScrollTop: (top?: number | undefined) => void;
|
|
146
146
|
setScrollLeft: (left?: number | undefined) => void;
|
|
147
147
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
155
|
cellContextmenu: (_row: DataItem, _column: Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
156
156
|
rowClick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
157
157
|
rowContextmenu: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
|
-
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
|
+
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
159
159
|
headerClick: (_column: Column, _e: MouseEvent) => boolean;
|
|
160
160
|
headerContextmenu: (_column: Column, _e: MouseEvent) => boolean;
|
|
161
161
|
sortChange: (_sorter: Sorter) => boolean;
|