bm-admin-ui 1.0.40-alpha → 1.0.41-alpha
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/components/breadcrumb/index.d.ts +162 -0
- package/es/components/breadcrumb/index.js +158 -0
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/es/components/button/index.d.ts +303 -1
- package/es/components/editor/index.d.ts +305 -0
- package/es/components/editor/index.js +12543 -0
- package/es/components/editor/src/editor.vue.d.ts +304 -0
- package/es/components/editor/src/props.d.ts +31 -0
- package/es/components/feedback/index.d.ts +1028 -2
- package/es/components/float-table/index.d.ts +68 -1
- package/es/components/flow-designer/index.d.ts +5 -1
- package/es/components/form-create/index.js +77 -156
- package/es/components/form-designer/index.js +33 -131
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -0
- package/es/components/input-tags-display/index.d.ts +138 -1
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/es/components/over-tooltips/index.d.ts +33 -1
- package/es/components/search-filter/index.d.ts +233 -1
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +752 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/es/components/shops-filter/index.d.ts +97 -1
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +1095 -1
- package/es/components/staffs-selector/index.js +535 -505
- package/es/components/staffs-selector/src/action.d.ts +66 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/es/components/timeline/index.d.ts +111 -2
- package/es/components/upload/index.d.ts +139 -2
- package/es/components/upload/index.js +207 -170
- package/es/components/upload/src/props.d.ts +50 -0
- package/es/components/upload/src/upload.vue.d.ts +44 -11
- package/es/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/es/utils/bm-admin-ui-resolver.js +1 -1
- package/es/utils/with-install.d.ts +7 -1
- package/es/utils/with-install.js +1 -0
- package/index.esm.js +81188 -71499
- package/index.js +81186 -71495
- package/lib/components/breadcrumb/index.d.ts +162 -0
- package/lib/components/breadcrumb/index.js +168 -0
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/lib/components/button/index.d.ts +303 -1
- package/lib/components/editor/index.d.ts +305 -0
- package/lib/components/editor/index.js +12548 -0
- package/lib/components/editor/src/editor.vue.d.ts +304 -0
- package/lib/components/editor/src/props.d.ts +31 -0
- package/lib/components/feedback/index.d.ts +1028 -2
- package/lib/components/float-table/index.d.ts +68 -1
- package/lib/components/flow-designer/index.d.ts +5 -1
- package/lib/components/form-create/index.js +76 -155
- package/lib/components/form-designer/index.js +32 -130
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +14 -0
- package/lib/components/input-tags-display/index.d.ts +138 -1
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/lib/components/over-tooltips/index.d.ts +33 -1
- package/lib/components/search-filter/index.d.ts +233 -1
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +752 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/lib/components/shops-filter/index.d.ts +97 -1
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +1095 -1
- package/lib/components/staffs-selector/index.js +536 -506
- package/lib/components/staffs-selector/src/action.d.ts +66 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/lib/components/timeline/index.d.ts +111 -2
- package/lib/components/upload/index.d.ts +139 -2
- package/lib/components/upload/index.js +205 -168
- package/lib/components/upload/src/props.d.ts +50 -0
- package/lib/components/upload/src/upload.vue.d.ts +44 -11
- package/lib/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/lib/utils/bm-admin-ui-resolver.js +1 -1
- package/lib/utils/with-install.d.ts +7 -1
- package/lib/utils/with-install.js +1 -0
- package/package.json +2 -2
- package/theme-chalk/breadcrumb.css +1 -0
- package/theme-chalk/editor.css +16 -0
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +16 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/breadcrumb/index.d.ts +162 -0
- package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/types/components/button/index.d.ts +303 -1
- package/types/components/editor/index.d.ts +305 -0
- package/types/components/editor/src/editor.vue.d.ts +304 -0
- package/types/components/editor/src/props.d.ts +31 -0
- package/types/components/feedback/index.d.ts +1028 -2
- package/types/components/float-table/index.d.ts +68 -1
- package/types/components/flow-designer/index.d.ts +5 -1
- package/types/components/index.d.ts +2 -0
- package/types/components/input-tags-display/index.d.ts +138 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/types/components/over-tooltips/index.d.ts +33 -1
- package/types/components/search-filter/index.d.ts +233 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +752 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/types/components/shops-filter/index.d.ts +97 -1
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +1095 -1
- package/types/components/staffs-selector/src/action.d.ts +66 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/types/components/timeline/index.d.ts +111 -2
- package/types/components/upload/index.d.ts +139 -2
- package/types/components/upload/src/props.d.ts +50 -0
- package/types/components/upload/src/upload.vue.d.ts +44 -11
- package/types/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/types/utils/with-install.d.ts +7 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
declare const BmBreadcrumb: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
path: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
emit: (event: "back", ...args: any[]) => void;
|
|
8
|
+
router: import("vue-router").Router;
|
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
path: {
|
|
11
|
+
type: any;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & {
|
|
15
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
handleJump: (path: any, backFn: any) => void;
|
|
18
|
+
ABreadcrumb: {
|
|
19
|
+
new (...args: any[]): {
|
|
20
|
+
$: import("vue").ComponentInternalInstance;
|
|
21
|
+
$data: {};
|
|
22
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
prefixCls: StringConstructor;
|
|
24
|
+
routes: {
|
|
25
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
26
|
+
};
|
|
27
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
28
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
29
|
+
itemRender: {
|
|
30
|
+
type: import("vue").PropType<(opt: {
|
|
31
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
32
|
+
params: unknown;
|
|
33
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
34
|
+
paths: string[];
|
|
35
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
36
|
+
};
|
|
37
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
38
|
+
$attrs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$refs: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
[name: string]: import("vue").Slot;
|
|
46
|
+
}>;
|
|
47
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
48
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
49
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
prefixCls: StringConstructor;
|
|
53
|
+
routes: {
|
|
54
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
55
|
+
};
|
|
56
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
57
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
58
|
+
itemRender: {
|
|
59
|
+
type: import("vue").PropType<(opt: {
|
|
60
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
61
|
+
params: unknown;
|
|
62
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
63
|
+
paths: string[];
|
|
64
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
65
|
+
};
|
|
66
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
|
|
67
|
+
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
68
|
+
created?: (() => void) | (() => void)[] | undefined;
|
|
69
|
+
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
70
|
+
mounted?: (() => void) | (() => void)[] | undefined;
|
|
71
|
+
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
72
|
+
updated?: (() => void) | (() => void)[] | undefined;
|
|
73
|
+
activated?: (() => void) | (() => void)[] | undefined;
|
|
74
|
+
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
75
|
+
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
76
|
+
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
77
|
+
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
78
|
+
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
79
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
80
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
81
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
|
|
82
|
+
};
|
|
83
|
+
$forceUpdate: () => void;
|
|
84
|
+
$nextTick: typeof import("vue").nextTick;
|
|
85
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
86
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
+
prefixCls: StringConstructor;
|
|
88
|
+
routes: {
|
|
89
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
90
|
+
};
|
|
91
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
92
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
93
|
+
itemRender: {
|
|
94
|
+
type: import("vue").PropType<(opt: {
|
|
95
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
96
|
+
params: unknown;
|
|
97
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
98
|
+
paths: string[];
|
|
99
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
100
|
+
};
|
|
101
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & import("vue").ComponentCustomProperties;
|
|
102
|
+
__isFragment?: undefined;
|
|
103
|
+
__isTeleport?: undefined;
|
|
104
|
+
__isSuspense?: undefined;
|
|
105
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
prefixCls: StringConstructor;
|
|
107
|
+
routes: {
|
|
108
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
109
|
+
};
|
|
110
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
111
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
112
|
+
itemRender: {
|
|
113
|
+
type: import("vue").PropType<(opt: {
|
|
114
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
115
|
+
params: unknown;
|
|
116
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
117
|
+
paths: string[];
|
|
118
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
119
|
+
};
|
|
120
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
|
|
121
|
+
readonly Item: import("vue").DefineComponent<{
|
|
122
|
+
prefixCls: StringConstructor;
|
|
123
|
+
href: StringConstructor;
|
|
124
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
125
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
126
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
127
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
|
+
prefixCls: StringConstructor;
|
|
129
|
+
href: StringConstructor;
|
|
130
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
131
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
132
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
133
|
+
}>>, {}>;
|
|
134
|
+
readonly Separator: import("vue").DefineComponent<{
|
|
135
|
+
prefixCls: StringConstructor;
|
|
136
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
137
|
+
prefixCls: StringConstructor;
|
|
138
|
+
}>>, {}>;
|
|
139
|
+
};
|
|
140
|
+
ABreadcrumbItem: import("vue").DefineComponent<{
|
|
141
|
+
prefixCls: StringConstructor;
|
|
142
|
+
href: StringConstructor;
|
|
143
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
144
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
145
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
146
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
prefixCls: StringConstructor;
|
|
148
|
+
href: StringConstructor;
|
|
149
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
150
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
151
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
152
|
+
}>>, {}>;
|
|
153
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "back"[], "back", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
path: {
|
|
155
|
+
type: any;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
}, {}>>;
|
|
161
|
+
export { BmBreadcrumb };
|
|
162
|
+
export default BmBreadcrumb;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
+
import { inject, defineComponent, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, toDisplayString } from 'vue';
|
|
3
|
+
import ABreadcrumb from 'ant-design-vue/lib/breadcrumb';
|
|
4
|
+
import ABreadcrumbItem from 'ant-design-vue/lib/breadcrumb/BreadcrumbItem';
|
|
5
|
+
import '@vue/devtools-api';
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
* vue-router v4.1.6
|
|
9
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var NavigationType;
|
|
14
|
+
(function (NavigationType) {
|
|
15
|
+
NavigationType["pop"] = "pop";
|
|
16
|
+
NavigationType["push"] = "push";
|
|
17
|
+
})(NavigationType || (NavigationType = {}));
|
|
18
|
+
var NavigationDirection;
|
|
19
|
+
(function (NavigationDirection) {
|
|
20
|
+
NavigationDirection["back"] = "back";
|
|
21
|
+
NavigationDirection["forward"] = "forward";
|
|
22
|
+
NavigationDirection["unknown"] = "";
|
|
23
|
+
})(NavigationDirection || (NavigationDirection = {}));
|
|
24
|
+
|
|
25
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : '');
|
|
26
|
+
/**
|
|
27
|
+
* Enumeration with all possible types for navigation failures. Can be passed to
|
|
28
|
+
* {@link isNavigationFailure} to check for specific failures.
|
|
29
|
+
*/
|
|
30
|
+
var NavigationFailureType;
|
|
31
|
+
(function (NavigationFailureType) {
|
|
32
|
+
/**
|
|
33
|
+
* An aborted navigation is a navigation that failed because a navigation
|
|
34
|
+
* guard returned `false` or called `next(false)`
|
|
35
|
+
*/
|
|
36
|
+
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
|
|
37
|
+
/**
|
|
38
|
+
* A cancelled navigation is a navigation that failed because a more recent
|
|
39
|
+
* navigation finished started (not necessarily finished).
|
|
40
|
+
*/
|
|
41
|
+
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
|
|
42
|
+
/**
|
|
43
|
+
* A duplicated navigation is a navigation that failed because it was
|
|
44
|
+
* initiated while already being at the exact same location.
|
|
45
|
+
*/
|
|
46
|
+
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
|
|
47
|
+
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
51
|
+
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
52
|
+
* Location Matched
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : '');
|
|
57
|
+
/**
|
|
58
|
+
* Allows overriding the router view depth to control which component in
|
|
59
|
+
* `matched` is rendered. rvd stands for Router View Depth
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : '');
|
|
64
|
+
/**
|
|
65
|
+
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
66
|
+
* stands for router
|
|
67
|
+
*
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
const routerKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router' : '');
|
|
71
|
+
/**
|
|
72
|
+
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
73
|
+
* stands for route location
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'route location' : '');
|
|
78
|
+
/**
|
|
79
|
+
* Allows overriding the current route used by router-view. Internally this is
|
|
80
|
+
* used when the `route` prop is passed.
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view location' : '');
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Returns the router instance. Equivalent to using `$router` inside
|
|
88
|
+
* templates.
|
|
89
|
+
*/
|
|
90
|
+
function useRouter() {
|
|
91
|
+
return inject(routerKey);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var _export_sfc = (sfc, props) => {
|
|
95
|
+
const target = sfc.__vccOpts || sfc;
|
|
96
|
+
for (const [key, val] of props) {
|
|
97
|
+
target[key] = val;
|
|
98
|
+
}
|
|
99
|
+
return target;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const _hoisted_1 = ["onClick"];
|
|
103
|
+
const _hoisted_2 = {
|
|
104
|
+
key: 1,
|
|
105
|
+
class: "link"
|
|
106
|
+
};
|
|
107
|
+
const __default__ = {
|
|
108
|
+
name: "BmBreadcrumb"
|
|
109
|
+
};
|
|
110
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
111
|
+
...__default__,
|
|
112
|
+
props: {
|
|
113
|
+
path: {
|
|
114
|
+
type: Array,
|
|
115
|
+
required: true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
emits: ["back"],
|
|
119
|
+
setup(__props, { emit }) {
|
|
120
|
+
const props = __props;
|
|
121
|
+
const router = useRouter();
|
|
122
|
+
const handleJump = (path, backFn) => {
|
|
123
|
+
console.log(path);
|
|
124
|
+
if (!path)
|
|
125
|
+
return;
|
|
126
|
+
if (backFn)
|
|
127
|
+
return emit("back", path);
|
|
128
|
+
console.log(path);
|
|
129
|
+
router.push(path);
|
|
130
|
+
};
|
|
131
|
+
return (_ctx, _cache) => {
|
|
132
|
+
return openBlock(), createBlock(unref(ABreadcrumb), { class: "breadcrumb" }, {
|
|
133
|
+
default: withCtx(() => [
|
|
134
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.path, (item, index) => {
|
|
135
|
+
return openBlock(), createBlock(unref(ABreadcrumbItem), {
|
|
136
|
+
key: item.url
|
|
137
|
+
}, {
|
|
138
|
+
default: withCtx(() => [
|
|
139
|
+
index < __props.path.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "link",
|
|
142
|
+
onClick: ($event) => handleJump(item.url, item.backFn)
|
|
143
|
+
}, toDisplayString(item.name), 9, _hoisted_1)) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(item.name), 1))
|
|
144
|
+
]),
|
|
145
|
+
_: 2
|
|
146
|
+
}, 1024);
|
|
147
|
+
}), 128))
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb.vue"]]);
|
|
155
|
+
|
|
156
|
+
const BmBreadcrumb = withInstall(Breadcrumb);
|
|
157
|
+
|
|
158
|
+
export { BmBreadcrumb, BmBreadcrumb as default };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
path: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
emit: (event: "back", ...args: any[]) => void;
|
|
8
|
+
router: import("vue-router").Router;
|
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
path: {
|
|
11
|
+
type: any;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & {
|
|
15
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
handleJump: (path: any, backFn: any) => void;
|
|
18
|
+
ABreadcrumb: {
|
|
19
|
+
new (...args: any[]): {
|
|
20
|
+
$: import("vue").ComponentInternalInstance;
|
|
21
|
+
$data: {};
|
|
22
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
prefixCls: StringConstructor;
|
|
24
|
+
routes: {
|
|
25
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
26
|
+
};
|
|
27
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
28
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
29
|
+
itemRender: {
|
|
30
|
+
type: import("vue").PropType<(opt: {
|
|
31
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
32
|
+
params: unknown;
|
|
33
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
34
|
+
paths: string[];
|
|
35
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
36
|
+
};
|
|
37
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
38
|
+
$attrs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$refs: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
[name: string]: import("vue").Slot;
|
|
46
|
+
}>;
|
|
47
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
48
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
49
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
prefixCls: StringConstructor;
|
|
53
|
+
routes: {
|
|
54
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
55
|
+
};
|
|
56
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
57
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
58
|
+
itemRender: {
|
|
59
|
+
type: import("vue").PropType<(opt: {
|
|
60
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
61
|
+
params: unknown;
|
|
62
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
63
|
+
paths: string[];
|
|
64
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
65
|
+
};
|
|
66
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
|
|
67
|
+
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
68
|
+
created?: (() => void) | (() => void)[] | undefined;
|
|
69
|
+
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
70
|
+
mounted?: (() => void) | (() => void)[] | undefined;
|
|
71
|
+
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
72
|
+
updated?: (() => void) | (() => void)[] | undefined;
|
|
73
|
+
activated?: (() => void) | (() => void)[] | undefined;
|
|
74
|
+
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
75
|
+
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
76
|
+
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
77
|
+
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
78
|
+
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
79
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
80
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
81
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
|
|
82
|
+
};
|
|
83
|
+
$forceUpdate: () => void;
|
|
84
|
+
$nextTick: typeof import("vue").nextTick;
|
|
85
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
86
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
+
prefixCls: StringConstructor;
|
|
88
|
+
routes: {
|
|
89
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
90
|
+
};
|
|
91
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
92
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
93
|
+
itemRender: {
|
|
94
|
+
type: import("vue").PropType<(opt: {
|
|
95
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
96
|
+
params: unknown;
|
|
97
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
98
|
+
paths: string[];
|
|
99
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
100
|
+
};
|
|
101
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & import("vue").ComponentCustomProperties;
|
|
102
|
+
__isFragment?: undefined;
|
|
103
|
+
__isTeleport?: undefined;
|
|
104
|
+
__isSuspense?: undefined;
|
|
105
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
prefixCls: StringConstructor;
|
|
107
|
+
routes: {
|
|
108
|
+
type: import("vue").PropType<import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[]>;
|
|
109
|
+
};
|
|
110
|
+
params: import("vue-types").VueTypeValidableDef<any>;
|
|
111
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
112
|
+
itemRender: {
|
|
113
|
+
type: import("vue").PropType<(opt: {
|
|
114
|
+
route: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route;
|
|
115
|
+
params: unknown;
|
|
116
|
+
routes: import("ant-design-vue/lib/breadcrumb/Breadcrumb").Route[];
|
|
117
|
+
paths: string[];
|
|
118
|
+
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
119
|
+
};
|
|
120
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
|
|
121
|
+
readonly Item: import("vue").DefineComponent<{
|
|
122
|
+
prefixCls: StringConstructor;
|
|
123
|
+
href: StringConstructor;
|
|
124
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
125
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
126
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
127
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
|
+
prefixCls: StringConstructor;
|
|
129
|
+
href: StringConstructor;
|
|
130
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
131
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
132
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
133
|
+
}>>, {}>;
|
|
134
|
+
readonly Separator: import("vue").DefineComponent<{
|
|
135
|
+
prefixCls: StringConstructor;
|
|
136
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
137
|
+
prefixCls: StringConstructor;
|
|
138
|
+
}>>, {}>;
|
|
139
|
+
};
|
|
140
|
+
ABreadcrumbItem: import("vue").DefineComponent<{
|
|
141
|
+
prefixCls: StringConstructor;
|
|
142
|
+
href: StringConstructor;
|
|
143
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
144
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
145
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
146
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
prefixCls: StringConstructor;
|
|
148
|
+
href: StringConstructor;
|
|
149
|
+
separator: import("vue-types").VueTypeValidableDef<any>;
|
|
150
|
+
overlay: import("vue-types").VueTypeValidableDef<any>;
|
|
151
|
+
onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
|
|
152
|
+
}>>, {}>;
|
|
153
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "back"[], "back", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
path: {
|
|
155
|
+
type: any;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
}, {}>;
|
|
161
|
+
export default _default;
|