y-element-ultra 0.0.2 → 0.0.3
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 -2
- package/es/core-components.js +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/utils/message.d.ts +2 -2
- package/es/utils/message.js +8 -8
- package/es/utils/modal-hook.d.ts +1 -1
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +2 -2
- package/es/y-admin-layout/components/layout-tabs.d.ts +3 -3
- package/es/y-admin-layout/index.d.ts +17 -17
- package/es/y-admin-layout/props.d.ts +7 -7
- package/es/y-app/index.d.ts +2 -2
- package/es/y-app/index.js +2 -2
- package/es/y-app/plus.d.ts +57 -57
- package/es/y-app/plusx.d.ts +10 -10
- package/es/y-avatar-group/index.d.ts +4 -4
- package/es/y-avatar-group/props.d.ts +3 -3
- package/es/y-basic-select/components/select-view.d.ts +4 -4
- package/es/y-basic-select/index.d.ts +9 -9
- package/es/y-basic-select/props.d.ts +3 -3
- package/es/y-basic-select/types.d.ts +4 -8
- package/es/y-buttons/types.d.ts +4 -4
- package/es/y-config-provider/components/receiver-view.js +19 -23
- package/es/y-config-provider/index.d.ts +4 -4
- package/es/y-config-provider/props.d.ts +4 -4
- package/es/y-config-provider/receiver.d.ts +3 -3
- package/es/y-config-provider/receiver.js +37 -1
- package/es/y-config-provider/types.d.ts +8 -8
- package/es/y-copyable/index.d.ts +2 -2
- package/es/y-copyable/props.d.ts +2 -2
- package/es/y-cron-builder/index.d.ts +2 -2
- package/es/y-cron-builder/index.js +2 -2
- package/es/y-cron-builder/props.d.ts +2 -2
- package/es/y-cron-panel/index.js +1 -1
- package/es/y-cropper/components/cropper-tools.d.ts +3 -3
- package/es/y-cropper/index.d.ts +2 -2
- package/es/y-cropper/props.d.ts +2 -2
- package/es/y-cropper-modal/index.d.ts +4 -4
- package/es/y-cropper-modal/props.d.ts +3 -3
- package/es/y-crud/index.d.ts +4 -4
- package/es/y-crud/props.d.ts +2 -2
- package/es/y-crud/types.d.ts +21 -21
- package/es/y-crud/util.d.ts +2 -2
- package/es/y-crud-builder/components/body-header.d.ts +5 -5
- package/es/y-crud-builder/components/code-generator.d.ts +3 -3
- package/es/y-crud-builder/components/code-preview.d.ts +3 -3
- package/es/y-crud-builder/components/form-design-modal.d.ts +7 -7
- package/es/y-crud-builder/components/import-modal.d.ts +5 -5
- package/es/y-crud-builder/components/page-config.d.ts +7 -7
- package/es/y-crud-builder/components/template-list.d.ts +3 -3
- package/es/y-crud-builder/index.d.ts +9 -9
- package/es/y-crud-builder/props.d.ts +6 -6
- package/es/y-crud-builder/types.d.ts +2 -2
- package/es/y-data-table/types.d.ts +2 -2
- package/es/y-drawer/index.d.ts +2 -2
- package/es/y-drawer/props.d.ts +2 -2
- package/es/y-dropdown/components/pro-dropdown.d.ts +2 -2
- package/es/y-dropdown-provider/index.d.ts +1 -1
- package/es/y-dropdown-provider/types.d.ts +2 -2
- package/es/y-dropdown-provider/util.d.ts +4 -4
- package/es/y-edit-tag/index.d.ts +2 -2
- package/es/y-edit-tag/props.d.ts +2 -2
- package/es/y-ellipsis/index.d.ts +2 -2
- package/es/y-ellipsis/types.d.ts +2 -2
- package/es/y-file-list/index.d.ts +5 -5
- package/es/y-file-list/props.d.ts +3 -3
- package/es/y-icon-select/components/icon-grid.d.ts +3 -3
- package/es/y-icon-select/index.d.ts +8 -8
- package/es/y-icon-select/props.d.ts +4 -4
- package/es/y-map-picker/index.d.ts +4 -4
- package/es/y-map-picker/props.d.ts +2 -2
- package/es/y-menus/types.d.ts +2 -2
- package/es/y-modal/index.d.ts +2 -2
- package/es/y-modal/props.d.ts +2 -2
- package/es/y-modal-render/index.js +1 -1
- package/es/y-modal-render/types.d.ts +3 -6
- package/es/y-modal-render/use-modal.d.ts +1 -1
- package/es/y-popconfirm/index.d.ts +4 -4
- package/es/y-popconfirm/props.d.ts +2 -2
- package/es/y-popconfirm-provider/index.d.ts +1 -1
- package/es/y-popconfirm-provider/types.d.ts +2 -2
- package/es/y-popconfirm-provider/util.d.ts +3 -3
- package/es/y-popover/index.d.ts +2 -2
- package/es/y-pro-form-builder/components/body-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/body-header.d.ts +5 -5
- package/es/y-pro-form-builder/components/code-generator.d.ts +6 -6
- package/es/y-pro-form-builder/components/code-preview.d.ts +3 -3
- package/es/y-pro-form-builder/components/config-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/import-modal.d.ts +5 -5
- package/es/y-pro-form-builder/components/preview-modal.d.ts +3 -3
- package/es/y-pro-form-builder/components/props-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/template-list.d.ts +3 -3
- package/es/y-pro-form-builder/index.d.ts +9 -9
- package/es/y-pro-form-builder/props.d.ts +6 -6
- package/es/y-pro-form-builder/types.d.ts +4 -4
- package/es/y-pro-layout/index.d.ts +22 -22
- package/es/y-pro-layout/index.js +2 -2
- package/es/y-pro-layout/props.d.ts +11 -11
- package/es/y-pro-layout/types.d.ts +2 -2
- package/es/y-pro-layout/util.d.ts +2 -2
- package/es/y-pro-table/components/tool-column.d.ts +3 -3
- package/es/y-pro-table/components/tool-export.d.ts +3 -3
- package/es/y-pro-table/components/tool-print.d.ts +7 -7
- package/es/y-pro-table/index.d.ts +7 -7
- package/es/y-pro-table/props.d.ts +3 -3
- package/es/y-pro-table/types.d.ts +13 -13
- package/es/y-pro-table/util.d.ts +2 -2
- package/es/y-qr-code-svg/qrcodegen.d.ts +2 -2
- package/es/y-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/es/y-table-select/index.d.ts +9 -9
- package/es/y-table-select/props.d.ts +4 -4
- package/es/y-tabs/index.d.ts +6 -6
- package/es/y-tabs/props.d.ts +3 -3
- package/es/y-tool/index.d.ts +4 -4
- package/es/y-tool/props.d.ts +2 -2
- package/es/y-toolbar/index.d.ts +7 -7
- package/es/y-toolbar/props.d.ts +3 -3
- package/es/y-toolbar/types.d.ts +2 -2
- package/es/y-tour/index.d.ts +2 -2
- package/es/y-tour/types.d.ts +2 -2
- package/es/y-tour/util.d.ts +2 -2
- package/es/y-tree-select/index.d.ts +6 -6
- package/es/y-tree-select/props.d.ts +2 -2
- package/es/y-upload-list/index.d.ts +2 -2
- package/es/y-upload-list/props.d.ts +2 -2
- package/es/y-virtual-table/components/cell-filter.d.ts +4 -4
- package/es/y-watermark/index.js +15 -17
- package/es/y-watermark/util.d.ts +1 -1
- package/lib/core-components.cjs +2 -2
- package/lib/core-components.d.ts +2 -2
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/utils/message.cjs +8 -8
- package/lib/utils/message.d.ts +2 -2
- package/lib/utils/modal-hook.d.ts +1 -1
- package/lib/utils/resolvers.cjs +2 -2
- package/lib/utils/resolvers.d.ts +2 -2
- package/lib/y-admin-layout/components/layout-tabs.d.ts +3 -3
- package/lib/y-admin-layout/index.d.ts +17 -17
- package/lib/y-admin-layout/props.d.ts +7 -7
- package/lib/y-app/index.cjs +2 -2
- package/lib/y-app/index.d.ts +2 -2
- package/lib/y-app/plus.d.ts +57 -57
- package/lib/y-app/plusx.d.ts +10 -10
- package/lib/y-avatar-group/index.d.ts +4 -4
- package/lib/y-avatar-group/props.d.ts +3 -3
- package/lib/y-basic-select/components/select-view.d.ts +4 -4
- package/lib/y-basic-select/index.d.ts +9 -9
- package/lib/y-basic-select/props.d.ts +3 -3
- package/lib/y-basic-select/types.d.ts +4 -8
- package/lib/y-buttons/types.d.ts +4 -4
- package/lib/y-config-provider/components/receiver-view.cjs +1 -1
- package/lib/y-config-provider/index.d.ts +4 -4
- package/lib/y-config-provider/props.d.ts +4 -4
- package/lib/y-config-provider/receiver.cjs +37 -1
- package/lib/y-config-provider/receiver.d.ts +3 -3
- package/lib/y-config-provider/types.d.ts +8 -8
- package/lib/y-copyable/index.d.ts +2 -2
- package/lib/y-copyable/props.d.ts +2 -2
- package/lib/y-cron-builder/index.cjs +2 -2
- package/lib/y-cron-builder/index.d.ts +2 -2
- package/lib/y-cron-builder/props.d.ts +2 -2
- package/lib/y-cron-panel/index.cjs +1 -1
- package/lib/y-cropper/components/cropper-tools.d.ts +3 -3
- package/lib/y-cropper/index.d.ts +2 -2
- package/lib/y-cropper/props.d.ts +2 -2
- package/lib/y-cropper-modal/index.d.ts +4 -4
- package/lib/y-cropper-modal/props.d.ts +3 -3
- package/lib/y-crud/index.d.ts +4 -4
- package/lib/y-crud/props.d.ts +2 -2
- package/lib/y-crud/types.d.ts +21 -21
- package/lib/y-crud/util.d.ts +2 -2
- package/lib/y-crud-builder/components/body-header.d.ts +5 -5
- package/lib/y-crud-builder/components/code-generator.d.ts +3 -3
- package/lib/y-crud-builder/components/code-preview.d.ts +3 -3
- package/lib/y-crud-builder/components/form-design-modal.d.ts +7 -7
- package/lib/y-crud-builder/components/import-modal.d.ts +5 -5
- package/lib/y-crud-builder/components/page-config.d.ts +7 -7
- package/lib/y-crud-builder/components/template-list.d.ts +3 -3
- package/lib/y-crud-builder/index.d.ts +9 -9
- package/lib/y-crud-builder/props.d.ts +6 -6
- package/lib/y-crud-builder/types.d.ts +2 -2
- package/lib/y-data-table/types.d.ts +2 -2
- package/lib/y-drawer/index.d.ts +2 -2
- package/lib/y-drawer/props.d.ts +2 -2
- package/lib/y-dropdown/components/pro-dropdown.d.ts +2 -2
- package/lib/y-dropdown-provider/index.d.ts +1 -1
- package/lib/y-dropdown-provider/types.d.ts +2 -2
- package/lib/y-dropdown-provider/util.d.ts +4 -4
- package/lib/y-edit-tag/index.d.ts +2 -2
- package/lib/y-edit-tag/props.d.ts +2 -2
- package/lib/y-ellipsis/index.d.ts +2 -2
- package/lib/y-ellipsis/types.d.ts +2 -2
- package/lib/y-file-list/index.d.ts +5 -5
- package/lib/y-file-list/props.d.ts +3 -3
- package/lib/y-icon-select/components/icon-grid.d.ts +3 -3
- package/lib/y-icon-select/index.d.ts +8 -8
- package/lib/y-icon-select/props.d.ts +4 -4
- package/lib/y-map-picker/index.d.ts +4 -4
- package/lib/y-map-picker/props.d.ts +2 -2
- package/lib/y-menus/types.d.ts +2 -2
- package/lib/y-modal/index.d.ts +2 -2
- package/lib/y-modal/props.d.ts +2 -2
- package/lib/y-modal-render/index.cjs +1 -1
- package/lib/y-modal-render/types.d.ts +3 -6
- package/lib/y-modal-render/use-modal.d.ts +1 -1
- package/lib/y-popconfirm/index.d.ts +4 -4
- package/lib/y-popconfirm/props.d.ts +2 -2
- package/lib/y-popconfirm-provider/index.d.ts +1 -1
- package/lib/y-popconfirm-provider/types.d.ts +2 -2
- package/lib/y-popconfirm-provider/util.d.ts +3 -3
- package/lib/y-popover/index.d.ts +2 -2
- package/lib/y-pro-form-builder/components/body-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/body-header.d.ts +5 -5
- package/lib/y-pro-form-builder/components/code-generator.d.ts +6 -6
- package/lib/y-pro-form-builder/components/code-preview.d.ts +3 -3
- package/lib/y-pro-form-builder/components/config-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/import-modal.d.ts +5 -5
- package/lib/y-pro-form-builder/components/preview-modal.d.ts +3 -3
- package/lib/y-pro-form-builder/components/props-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/template-list.d.ts +3 -3
- package/lib/y-pro-form-builder/index.d.ts +9 -9
- package/lib/y-pro-form-builder/props.d.ts +6 -6
- package/lib/y-pro-form-builder/types.d.ts +4 -4
- package/lib/y-pro-layout/index.cjs +2 -2
- package/lib/y-pro-layout/index.d.ts +22 -22
- package/lib/y-pro-layout/props.d.ts +11 -11
- package/lib/y-pro-layout/types.d.ts +2 -2
- package/lib/y-pro-layout/util.d.ts +2 -2
- package/lib/y-pro-table/components/tool-column.d.ts +3 -3
- package/lib/y-pro-table/components/tool-export.d.ts +3 -3
- package/lib/y-pro-table/components/tool-print.d.ts +7 -7
- package/lib/y-pro-table/index.d.ts +7 -7
- package/lib/y-pro-table/props.d.ts +3 -3
- package/lib/y-pro-table/types.d.ts +13 -13
- package/lib/y-pro-table/util.d.ts +2 -2
- package/lib/y-qr-code-svg/qrcodegen.d.ts +2 -2
- package/lib/y-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/lib/y-table-select/index.d.ts +9 -9
- package/lib/y-table-select/props.d.ts +4 -4
- package/lib/y-tabs/index.d.ts +6 -6
- package/lib/y-tabs/props.d.ts +3 -3
- package/lib/y-tool/index.d.ts +4 -4
- package/lib/y-tool/props.d.ts +2 -2
- package/lib/y-toolbar/index.d.ts +7 -7
- package/lib/y-toolbar/props.d.ts +3 -3
- package/lib/y-toolbar/types.d.ts +2 -2
- package/lib/y-tour/index.d.ts +2 -2
- package/lib/y-tour/types.d.ts +2 -2
- package/lib/y-tour/util.d.ts +2 -2
- package/lib/y-tree-select/index.d.ts +6 -6
- package/lib/y-tree-select/props.d.ts +2 -2
- package/lib/y-upload-list/index.d.ts +2 -2
- package/lib/y-upload-list/props.d.ts +2 -2
- package/lib/y-virtual-table/components/cell-filter.d.ts +4 -4
- package/lib/y-watermark/index.cjs +14 -16
- package/lib/y-watermark/util.d.ts +1 -1
- package/package.json +1 -1
package/es/y-tour/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YTooltipProps } from '../y-app/plus';
|
|
2
2
|
import { Offset } from './types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ export declare function getOffset(el: HTMLElement): Offset;
|
|
|
12
12
|
* @param model 是否是弹窗
|
|
13
13
|
* @param props 自定义属性
|
|
14
14
|
*/
|
|
15
|
-
export declare function getPopperProps(visible?: boolean, modal?: boolean, props?:
|
|
15
|
+
export declare function getPopperProps(visible?: boolean, modal?: boolean, props?: YTooltipProps): YTooltipProps;
|
|
16
16
|
/**
|
|
17
17
|
* 让元素可见
|
|
18
18
|
* @param el 元素
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElTreeV2Instance } from '../y-app/el';
|
|
2
|
-
import {
|
|
2
|
+
import { YBasicSelectInstance } from '../y-app/plus';
|
|
3
3
|
import { SelectValue, SelectedItem } from '../y-basic-select/types';
|
|
4
4
|
import { DataItem } from './types';
|
|
5
5
|
|
|
@@ -28,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
28
|
wrapperComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
29
29
|
wrapperComponentProps: ObjectConstructor;
|
|
30
30
|
placement: {
|
|
31
|
-
type: import('vue').PropType<import('../y-app/plus').
|
|
31
|
+
type: import('vue').PropType<import('../y-app/plus').YTooltipProps["placement"]>;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
34
|
popperClass: StringConstructor;
|
|
@@ -51,7 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
53
|
visible: BooleanConstructor;
|
|
54
|
-
popperOptions: import('vue').PropType<import('../y-app/plus').
|
|
54
|
+
popperOptions: import('vue').PropType<import('../y-app/plus').YTooltipProps["popperOptions"]>;
|
|
55
55
|
automaticDropdown: BooleanConstructor;
|
|
56
56
|
multiple: BooleanConstructor;
|
|
57
57
|
responsive: {
|
|
@@ -90,7 +90,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
90
90
|
clearTempSelectedItems: () => void;
|
|
91
91
|
removeTempSelectedItem: (item: SelectedItem) => void;
|
|
92
92
|
updateTempSelectedItems: (items: SelectedItem[]) => void;
|
|
93
|
-
selectRef: import('vue').Ref<
|
|
93
|
+
selectRef: import('vue').Ref<YBasicSelectInstance, YBasicSelectInstance>;
|
|
94
94
|
treeRef: import('vue').Ref<ElTreeV2Instance, ElTreeV2Instance>;
|
|
95
95
|
updatePopover: () => void;
|
|
96
96
|
updateVisible: (visible: boolean) => void;
|
|
@@ -128,7 +128,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
128
128
|
wrapperComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
129
129
|
wrapperComponentProps: ObjectConstructor;
|
|
130
130
|
placement: {
|
|
131
|
-
type: import('vue').PropType<import('../y-app/plus').
|
|
131
|
+
type: import('vue').PropType<import('../y-app/plus').YTooltipProps["placement"]>;
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
134
|
popperClass: StringConstructor;
|
|
@@ -151,7 +151,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
151
151
|
default: boolean;
|
|
152
152
|
};
|
|
153
153
|
visible: BooleanConstructor;
|
|
154
|
-
popperOptions: import('vue').PropType<import('../y-app/plus').
|
|
154
|
+
popperOptions: import('vue').PropType<import('../y-app/plus').YTooltipProps["popperOptions"]>;
|
|
155
155
|
automaticDropdown: BooleanConstructor;
|
|
156
156
|
multiple: BooleanConstructor;
|
|
157
157
|
responsive: {
|
|
@@ -36,7 +36,7 @@ export declare const treeSelectProps: {
|
|
|
36
36
|
/** 内容容器组件属性 */
|
|
37
37
|
wrapperComponentProps: ObjectConstructor;
|
|
38
38
|
placement: {
|
|
39
|
-
type: PropType<import('../y-app/plus').
|
|
39
|
+
type: PropType<import('../y-app/plus').YTooltipProps["placement"]>;
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
42
42
|
popperClass: StringConstructor;
|
|
@@ -59,7 +59,7 @@ export declare const treeSelectProps: {
|
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
visible: BooleanConstructor;
|
|
62
|
-
popperOptions: PropType<import('../y-app/plus').
|
|
62
|
+
popperOptions: PropType<import('../y-app/plus').YTooltipProps["popperOptions"]>;
|
|
63
63
|
automaticDropdown: BooleanConstructor;
|
|
64
64
|
multiple: BooleanConstructor;
|
|
65
65
|
responsive: {
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
30
|
};
|
|
31
31
|
imageProps: import('vue').PropType<import('../y-app/el').ElImageProps>;
|
|
32
32
|
progressProps: import('vue').PropType<import('../y-app/el').ElProgressProps>;
|
|
33
|
-
previewProps: import('vue').PropType<import('../y-app/plus').
|
|
33
|
+
previewProps: import('vue').PropType<import('../y-app/plus').YImageViewerProps>;
|
|
34
34
|
tools: BooleanConstructor;
|
|
35
35
|
listType: import('vue').PropType<import('./types').ListType>;
|
|
36
36
|
beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
|
|
@@ -73,7 +73,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
73
73
|
};
|
|
74
74
|
imageProps: import('vue').PropType<import('../y-app/el').ElImageProps>;
|
|
75
75
|
progressProps: import('vue').PropType<import('../y-app/el').ElProgressProps>;
|
|
76
|
-
previewProps: import('vue').PropType<import('../y-app/plus').
|
|
76
|
+
previewProps: import('vue').PropType<import('../y-app/plus').YImageViewerProps>;
|
|
77
77
|
tools: BooleanConstructor;
|
|
78
78
|
listType: import('vue').PropType<import('./types').ListType>;
|
|
79
79
|
beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { StyleValue } from '../y-app/types';
|
|
3
3
|
import { ElProgressProps, ElImageProps } from '../y-app/el';
|
|
4
|
-
import {
|
|
4
|
+
import { YImageViewerProps } from '../y-app/plus';
|
|
5
5
|
import { UploadItem, UploadLocale, EditUploadResult, ListType, BeforeUploadClick, BeforeItemEdit, BeforePreview } from './types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -47,7 +47,7 @@ export declare const uploadListProps: {
|
|
|
47
47
|
/** 自定义进度条属性 */
|
|
48
48
|
progressProps: PropType<ElProgressProps>;
|
|
49
49
|
/** 自定义图片预览属性 */
|
|
50
|
-
previewProps: PropType<
|
|
50
|
+
previewProps: PropType<YImageViewerProps>;
|
|
51
51
|
/** 是否开启底部预览和修改的操作按钮 */
|
|
52
52
|
tools: BooleanConstructor;
|
|
53
53
|
/** 列表显示样式 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Column, FilterValue } from '../../y-data-table/types';
|
|
3
|
-
import {
|
|
3
|
+
import { YTooltipProps, YTooltipInstance } from '../../y-app/plus';
|
|
4
4
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
6
|
/** 选中项 */
|
|
@@ -11,11 +11,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
filters: PropType<Column["filters"]>;
|
|
12
12
|
/** 弹出框定位 */
|
|
13
13
|
filterPlacement: {
|
|
14
|
-
type: PropType<
|
|
14
|
+
type: PropType<YTooltipProps["placement"]>;
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
}>, {
|
|
18
|
-
popperRef: import('vue').Ref<
|
|
18
|
+
popperRef: import('vue').Ref<YTooltipInstance, YTooltipInstance>;
|
|
19
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
20
|
change: (_filtered: FilterValue) => void;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
filters: PropType<Column["filters"]>;
|
|
28
28
|
/** 弹出框定位 */
|
|
29
29
|
filterPlacement: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<YTooltipProps["placement"]>;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
33
|
}>> & Readonly<{
|
package/es/y-watermark/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, inject, watch, onActivated, onDeactivated, createElementBlock, openBlock, normalizeStyle, unref, renderSlot,
|
|
2
|
-
import { normalizeStringArray } from "../utils/common";
|
|
1
|
+
import { defineComponent, ref, computed, inject, watch, onActivated, onDeactivated, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, createCommentVNode } from "vue";
|
|
3
2
|
import { useMutation } from "../y-qr-code-svg/util";
|
|
4
|
-
import SvgRender from "../y-qr-code-svg/components/svg-render";
|
|
5
3
|
import { svgContents } from "./util";
|
|
6
4
|
import { watermarkProps } from "./props";
|
|
7
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -69,11 +67,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
67
|
fontStyle: "normal",
|
|
70
68
|
...props.font || {}
|
|
71
69
|
},
|
|
72
|
-
contents: normalizeStringArray(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
),
|
|
70
|
+
// contents: normalizeStringArray(
|
|
71
|
+
// props.content,
|
|
72
|
+
// [imageConfig && !imageConfig.id, 'el', 'NDSP'],
|
|
73
|
+
// observeText
|
|
74
|
+
// ),
|
|
75
|
+
contents: [props.content],
|
|
77
76
|
image: props.image,
|
|
78
77
|
width: props.width,
|
|
79
78
|
height: props.height,
|
|
@@ -99,12 +98,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
98
|
offsetY: props.offset?.[1] ?? 0
|
|
100
99
|
};
|
|
101
100
|
};
|
|
102
|
-
const {
|
|
101
|
+
const {
|
|
102
|
+
imageId,
|
|
103
|
+
imageStyleId,
|
|
104
|
+
imageStyle,
|
|
105
|
+
// observeText,
|
|
106
|
+
updateImageStyle
|
|
107
|
+
} = useMutation({
|
|
103
108
|
getWrapperEl: () => wrapperRef.value,
|
|
104
109
|
getImageEl: () => imageRef.value,
|
|
105
110
|
getImageStyleOption
|
|
106
111
|
});
|
|
107
|
-
const markTeleport = computed(() => isDeactivated.value || !props.fixed);
|
|
108
112
|
const markDisabled = computed(() => !props.disabled || markId.value);
|
|
109
113
|
watch(
|
|
110
114
|
[
|
|
@@ -145,13 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
149
|
ref: imageRef,
|
|
146
150
|
key: unref(imageStyleId),
|
|
147
151
|
style: normalizeStyle(unref(imageStyle))
|
|
148
|
-
}, null, 4)) :
|
|
149
|
-
key: 1,
|
|
150
|
-
to: "body",
|
|
151
|
-
disabled: markTeleport.value
|
|
152
|
-
}, [
|
|
153
|
-
createVNode(SvgRender, normalizeProps(guardReactiveProps(svgMarkOption.value)), null, 16)
|
|
154
|
-
], 8, ["disabled"])) : createCommentVNode("", true)
|
|
152
|
+
}, null, 4)) : createCommentVNode("", true)
|
|
155
153
|
], 4);
|
|
156
154
|
};
|
|
157
155
|
}
|
package/es/y-watermark/util.d.ts
CHANGED
package/lib/core-components.cjs
CHANGED
|
@@ -89,7 +89,7 @@ exports.YCheckboxGroup = index$d;
|
|
|
89
89
|
exports.YConfigProvider = index$e;
|
|
90
90
|
exports.YCopyable = index$f;
|
|
91
91
|
exports.YCronBuilder = index$g;
|
|
92
|
-
exports.
|
|
92
|
+
exports.YCronPanel = index$h;
|
|
93
93
|
exports.YDashboard = index$i;
|
|
94
94
|
exports.YDataTable = index$j;
|
|
95
95
|
exports.YDot = index$k;
|
|
@@ -108,7 +108,7 @@ exports.YLoading = index$w;
|
|
|
108
108
|
exports.YMention = index$x;
|
|
109
109
|
exports.YMenus = index$y;
|
|
110
110
|
exports.YModal = index$z;
|
|
111
|
-
exports.
|
|
111
|
+
exports.YModalRender = index$A;
|
|
112
112
|
exports.YPage = index$B;
|
|
113
113
|
exports.YPagination = index$C;
|
|
114
114
|
exports.YPopconfirm = index$D;
|
package/lib/core-components.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { default as YCheckboxGroup } from './y-checkbox-group/index';
|
|
|
15
15
|
export { default as YConfigProvider } from './y-config-provider/index';
|
|
16
16
|
export { default as YCopyable } from './y-copyable/index';
|
|
17
17
|
export { default as YCronBuilder } from './y-cron-builder/index';
|
|
18
|
-
export { default as
|
|
18
|
+
export { default as YCronPanel } from './y-cron-panel/index';
|
|
19
19
|
export { default as YDashboard } from './y-dashboard/index';
|
|
20
20
|
export { default as YDataTable } from './y-data-table/index';
|
|
21
21
|
export { default as YDot } from './y-dot/index';
|
|
@@ -34,7 +34,7 @@ export { default as YLoading } from './y-loading/index';
|
|
|
34
34
|
export { default as YMention } from './y-mention/index';
|
|
35
35
|
export { default as YMenus } from './y-menus/index';
|
|
36
36
|
export { default as YModal } from './y-modal/index';
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as YModalRender } from './y-modal-render/index';
|
|
38
38
|
export { default as YPage } from './y-page/index';
|
|
39
39
|
export { default as YPagination } from './y-pagination/index';
|
|
40
40
|
export { default as YPopconfirm } from './y-popconfirm/index';
|
package/lib/lang/en_US.d.ts
CHANGED
package/lib/lang/zh_CN.d.ts
CHANGED
package/lib/lang/zh_TW.d.ts
CHANGED
package/lib/utils/message.cjs
CHANGED
|
@@ -111,42 +111,42 @@ function normalizeOption(params, globalOpt, onClose, type, loading, getWrapEl2,
|
|
|
111
111
|
"groupKey"
|
|
112
112
|
]);
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const YMessage = function(params, context) {
|
|
115
115
|
const onClose = () => ins.close();
|
|
116
116
|
const getWrap = () => getWrapEl();
|
|
117
117
|
const opt = normalizeOption(params, null, onClose, null, null, getWrap);
|
|
118
118
|
const ins = elementPlus.ElMessage(opt, context);
|
|
119
119
|
return ins;
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
YMessage.success = function(params, context) {
|
|
122
122
|
const onClose = () => ins.close();
|
|
123
123
|
const getWrap = () => getWrapEl();
|
|
124
124
|
const opt = normalizeOption(params, null, onClose, "success", null, getWrap);
|
|
125
125
|
const ins = elementPlus.ElMessage(opt, context);
|
|
126
126
|
return ins;
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
YMessage.warning = function(params, context) {
|
|
129
129
|
const onClose = () => ins.close();
|
|
130
130
|
const getWrap = () => getWrapEl();
|
|
131
131
|
const opt = normalizeOption(params, null, onClose, "warning", null, getWrap);
|
|
132
132
|
const ins = elementPlus.ElMessage(opt, context);
|
|
133
133
|
return ins;
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
YMessage.error = function(params, context) {
|
|
136
136
|
const onClose = () => ins.close();
|
|
137
137
|
const getWrap = () => getWrapEl();
|
|
138
138
|
const opt = normalizeOption(params, null, onClose, "error", null, getWrap);
|
|
139
139
|
const ins = elementPlus.ElMessage(opt, context);
|
|
140
140
|
return ins;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
YMessage.info = function(params, context) {
|
|
143
143
|
const onClose = () => ins.close();
|
|
144
144
|
const getWrap = () => getWrapEl();
|
|
145
145
|
const opt = normalizeOption(params, null, onClose, null, null, getWrap);
|
|
146
146
|
const ins = elementPlus.ElMessage(opt, context);
|
|
147
147
|
return ins;
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
YMessage.loading = function(params, context) {
|
|
150
150
|
blurCurrentFocus();
|
|
151
151
|
const onClose = () => ins.close();
|
|
152
152
|
const getWrap = () => getWrapEl();
|
|
@@ -154,7 +154,7 @@ EleMessage.loading = function(params, context) {
|
|
|
154
154
|
const ins = elementPlus.ElMessage(opt, context);
|
|
155
155
|
return ins;
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
YMessage.closeAll = function(type) {
|
|
158
158
|
return elementPlus.ElMessage.closeAll(type);
|
|
159
159
|
};
|
|
160
160
|
const MESSAGE_KEY = Symbol("message");
|
|
@@ -260,6 +260,6 @@ function useMessage(globalOpt) {
|
|
|
260
260
|
};
|
|
261
261
|
return message;
|
|
262
262
|
}
|
|
263
|
-
exports.EleMessage = EleMessage;
|
|
264
263
|
exports.MESSAGE_KEY = MESSAGE_KEY;
|
|
264
|
+
exports.YMessage = YMessage;
|
|
265
265
|
exports.useMessage = useMessage;
|
package/lib/utils/message.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function useModal(options?: UseModalOptions): {
|
|
|
13
13
|
messageBox: import('./message-box').MessageBox;
|
|
14
14
|
notification: import('element-plus/es/utils/index').SFCInstallWithContext<import('element-plus').Notify>;
|
|
15
15
|
ModalHolder: import('vue').DefineComponent<{}, () => any[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
-
modalProps: import('vue').Ref<import('../y-app/plus').
|
|
16
|
+
modalProps: import('vue').Ref<import('../y-app/plus').YDrawerPropsAndEmits | import('../y-app/plus').YModalPropsAndEmits, import('../y-app/plus').YDrawerPropsAndEmits | import('../y-app/plus').YModalPropsAndEmits> | undefined;
|
|
17
17
|
openModal: (option: import('../y-modal-render/types').ModalItem) => import('../y-modal-render/types').ModalItemId;
|
|
18
18
|
closeAllModal: (current?: boolean) => void;
|
|
19
19
|
closeModal: (modalId?: import('../y-modal-render/types').ModalItemId) => void;
|
package/lib/utils/resolvers.cjs
CHANGED
|
@@ -22,7 +22,7 @@ function getStylePath(namePath, packageName, path) {
|
|
|
22
22
|
}
|
|
23
23
|
return `${packageName}${path}/${namePath}`;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function YAdminResolver(options) {
|
|
26
26
|
return {
|
|
27
27
|
type: "component",
|
|
28
28
|
resolve: (name) => {
|
|
@@ -47,4 +47,4 @@ function EleAdminResolver(options) {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
exports.
|
|
50
|
+
exports.YAdminResolver = YAdminResolver;
|
package/lib/utils/resolvers.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ComponentResolver } from 'unplugin-vue-components/types';
|
|
|
3
3
|
/**
|
|
4
4
|
* 参数类型
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface YAdminResolverOptions {
|
|
7
7
|
/** 包路径 */
|
|
8
8
|
path?: string | '' | '/es' | '/lib' | '/es/core' | '/lib/core';
|
|
9
9
|
/** 排除的组件名称 */
|
|
@@ -15,4 +15,4 @@ export interface EleAdminResolverOptions {
|
|
|
15
15
|
* 按需加载插件
|
|
16
16
|
* @param options 参数
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function YAdminResolver(options?: YAdminResolverOptions): ComponentResolver;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { YDropdownProps } from '../../y-app/plus';
|
|
3
3
|
import { TabPaneItem, TabEventOption, ContextMenus } from '../../y-tabs/types';
|
|
4
4
|
import { TabStyle } from '../types';
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
30
|
/** 页签风格 */
|
|
31
31
|
tabStyle: PropType<TabStyle>;
|
|
32
32
|
/** 是否支持右键菜单 */
|
|
33
|
-
tabContextMenu: PropType<boolean |
|
|
33
|
+
tabContextMenu: PropType<boolean | YDropdownProps>;
|
|
34
34
|
/** 右键菜单 */
|
|
35
35
|
tabContextMenus: PropType<ContextMenus>;
|
|
36
36
|
/** 是否支持拖动排序 */
|
|
@@ -54,7 +54,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
54
54
|
/** 页签风格 */
|
|
55
55
|
tabStyle: PropType<TabStyle>;
|
|
56
56
|
/** 是否支持右键菜单 */
|
|
57
|
-
tabContextMenu: PropType<boolean |
|
|
57
|
+
tabContextMenu: PropType<boolean | YDropdownProps>;
|
|
58
58
|
/** 右键菜单 */
|
|
59
59
|
tabContextMenus: PropType<ContextMenus>;
|
|
60
60
|
/** 是否支持拖动排序 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YMenusInstance } from '../y-app/plus';
|
|
2
2
|
import { MenuItem, MenuItemClickType } from '../y-menus/types';
|
|
3
3
|
import { TabPaneItem, TabEventOption } from '../y-tabs/types';
|
|
4
4
|
|
|
@@ -38,16 +38,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
breadcrumb: {
|
|
41
|
-
type: import('vue').PropType<boolean | import('../y-app/plus').
|
|
41
|
+
type: import('vue').PropType<boolean | import('../y-app/plus').YBreadcrumbProps>;
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
backTop: {
|
|
45
|
-
type: import('vue').PropType<boolean | import('../y-app/plus').
|
|
45
|
+
type: import('vue').PropType<boolean | import('../y-app/plus').YBacktopProps>;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
-
headerMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
49
|
-
sidebarMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
50
|
-
sideboxMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
48
|
+
headerMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
49
|
+
sidebarMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
50
|
+
sideboxMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
51
51
|
layout: import('vue').PropType<import('./types').Layout>;
|
|
52
52
|
sidebarLayout: import('vue').PropType<import('./types').SidebarLayout>;
|
|
53
53
|
headerStyle: import('vue').PropType<import('./types').HeaderStyle>;
|
|
@@ -79,7 +79,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
79
79
|
};
|
|
80
80
|
homePath: StringConstructor;
|
|
81
81
|
isHome: BooleanConstructor;
|
|
82
|
-
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').
|
|
82
|
+
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').YDropdownProps>;
|
|
83
83
|
tabContextMenus: import('vue').PropType<import('../y-tabs/types').ContextMenus>;
|
|
84
84
|
tabSortable: BooleanConstructor;
|
|
85
85
|
headerTitleSlot: {
|
|
@@ -125,8 +125,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
125
125
|
};
|
|
126
126
|
mobile: BooleanConstructor;
|
|
127
127
|
}>, {
|
|
128
|
-
sidebarMenuRef: import('vue').ShallowRef<
|
|
129
|
-
sideboxMenuRef: import('vue').ShallowRef<
|
|
128
|
+
sidebarMenuRef: import('vue').ShallowRef<YMenusInstance, YMenusInstance>;
|
|
129
|
+
sideboxMenuRef: import('vue').ShallowRef<YMenusInstance, YMenusInstance>;
|
|
130
130
|
getContentEl: () => HTMLElement | null;
|
|
131
131
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
132
132
|
tabContextMenu: (_option: TabEventOption) => void;
|
|
@@ -175,16 +175,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
175
175
|
default: boolean;
|
|
176
176
|
};
|
|
177
177
|
breadcrumb: {
|
|
178
|
-
type: import('vue').PropType<boolean | import('../y-app/plus').
|
|
178
|
+
type: import('vue').PropType<boolean | import('../y-app/plus').YBreadcrumbProps>;
|
|
179
179
|
default: boolean;
|
|
180
180
|
};
|
|
181
181
|
backTop: {
|
|
182
|
-
type: import('vue').PropType<boolean | import('../y-app/plus').
|
|
182
|
+
type: import('vue').PropType<boolean | import('../y-app/plus').YBacktopProps>;
|
|
183
183
|
default: boolean;
|
|
184
184
|
};
|
|
185
|
-
headerMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
186
|
-
sidebarMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
187
|
-
sideboxMenuProps: import('vue').PropType<import('../y-app/plus').
|
|
185
|
+
headerMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
186
|
+
sidebarMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
187
|
+
sideboxMenuProps: import('vue').PropType<import('../y-app/plus').YMenusProps>;
|
|
188
188
|
layout: import('vue').PropType<import('./types').Layout>;
|
|
189
189
|
sidebarLayout: import('vue').PropType<import('./types').SidebarLayout>;
|
|
190
190
|
headerStyle: import('vue').PropType<import('./types').HeaderStyle>;
|
|
@@ -216,7 +216,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
216
216
|
};
|
|
217
217
|
homePath: StringConstructor;
|
|
218
218
|
isHome: BooleanConstructor;
|
|
219
|
-
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').
|
|
219
|
+
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').YDropdownProps>;
|
|
220
220
|
tabContextMenus: import('vue').PropType<import('../y-tabs/types').ContextMenus>;
|
|
221
221
|
tabSortable: BooleanConstructor;
|
|
222
222
|
headerTitleSlot: {
|
|
@@ -291,9 +291,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
291
291
|
mobile: boolean;
|
|
292
292
|
collapse: boolean;
|
|
293
293
|
compact: boolean;
|
|
294
|
-
breadcrumb: boolean | import('../y-app/plus').
|
|
294
|
+
breadcrumb: boolean | import('../y-app/plus').YBreadcrumbProps;
|
|
295
295
|
tabBar: import('./types').TabBar;
|
|
296
|
-
backTop: boolean | import('../y-app/plus').
|
|
296
|
+
backTop: boolean | import('../y-app/plus').YBacktopProps;
|
|
297
297
|
sidebarStyle: import('./types').SidebarStyle;
|
|
298
298
|
tabStyle: import('./types').TabStyle;
|
|
299
299
|
fixedHeader: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, InjectionKey } from 'vue';
|
|
2
2
|
import { StyleValue } from '../y-app/types';
|
|
3
|
-
import {
|
|
3
|
+
import { YMenusProps, YBreadcrumbProps, YBacktopProps, YDropdownProps } from '../y-app/plus';
|
|
4
4
|
import { MenuItem, MenuItemClickType } from '../y-menus/types';
|
|
5
5
|
import { BreadcrumbItem } from '../y-breadcrumb/types';
|
|
6
6
|
import { TabPaneItem, TabEventOption, ContextMenus } from '../y-tabs/types';
|
|
@@ -46,20 +46,20 @@ export declare const adminLayoutProps: {
|
|
|
46
46
|
};
|
|
47
47
|
/** 是否需要面包屑导航 */
|
|
48
48
|
breadcrumb: {
|
|
49
|
-
type: PropType<boolean |
|
|
49
|
+
type: PropType<boolean | YBreadcrumbProps>;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
/** 是否需要返回顶部 */
|
|
53
53
|
backTop: {
|
|
54
|
-
type: PropType<boolean |
|
|
54
|
+
type: PropType<boolean | YBacktopProps>;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
57
|
/** 顶栏菜单属性 */
|
|
58
|
-
headerMenuProps: PropType<
|
|
58
|
+
headerMenuProps: PropType<YMenusProps>;
|
|
59
59
|
/** 侧栏菜单属性 */
|
|
60
|
-
sidebarMenuProps: PropType<
|
|
60
|
+
sidebarMenuProps: PropType<YMenusProps>;
|
|
61
61
|
/** 双侧栏一级菜单属性 */
|
|
62
|
-
sideboxMenuProps: PropType<
|
|
62
|
+
sideboxMenuProps: PropType<YMenusProps>;
|
|
63
63
|
/** 布局类型 */
|
|
64
64
|
layout: PropType<Layout>;
|
|
65
65
|
/** 侧栏布局类型 */
|
|
@@ -105,7 +105,7 @@ export declare const adminLayoutProps: {
|
|
|
105
105
|
/** 是否选中固定的主页页签 */
|
|
106
106
|
isHome: BooleanConstructor;
|
|
107
107
|
/** 是否支持页签右键菜单 */
|
|
108
|
-
tabContextMenu: PropType<boolean |
|
|
108
|
+
tabContextMenu: PropType<boolean | YDropdownProps>;
|
|
109
109
|
/** 页签右键菜单数据 */
|
|
110
110
|
tabContextMenus: PropType<ContextMenus>;
|
|
111
111
|
/** 是否支持页签拖动排序 */
|
package/lib/y-app/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
-
const
|
|
3
|
+
const YModalRender = require("../y-modal-render/index");
|
|
4
4
|
const util = require("../y-modal-render/util");
|
|
5
5
|
const YDropdown = require("../y-dropdown/index");
|
|
6
6
|
const util$1 = require("../y-dropdown-provider/util");
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
return (_ctx, _cache) => {
|
|
47
47
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
48
48
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
49
|
-
vue.createVNode(vue.unref(
|
|
49
|
+
vue.createVNode(vue.unref(YModalRender), {
|
|
50
50
|
modals: vue.unref(modals),
|
|
51
51
|
onRemoveItem: vue.unref(removeModal),
|
|
52
52
|
onUpdateItemVisible: vue.unref(updateModalVisible),
|
package/lib/y-app/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
6
6
|
closeModal: (modalId?: import('../y-modal-render/types').ModalItemId) => void;
|
|
7
7
|
closeAllModal: () => void;
|
|
8
8
|
updateModalProps: (modalId?: import('../y-modal-render/types').ModalItemId, option?: Record<string, any>) => void;
|
|
9
|
-
openDropdown: (triggerEl: any, items?: import('../y-dropdown/types').DropdownItem[], props?: import('./plus').
|
|
10
|
-
openPopconfirm: (triggerEl: any, props?: import('./plus').
|
|
9
|
+
openDropdown: (triggerEl: any, items?: import('../y-dropdown/types').DropdownItem[], props?: import('./plus').YDropdownPropsAndEmits) => void;
|
|
10
|
+
openPopconfirm: (triggerEl: any, props?: import('./plus').YPopconfirmPropsAndEmits) => void;
|
|
11
11
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
13
13
|
export default _default;
|