@wapri/element-pro 3.0.0
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/LICENSE +21 -0
- package/dist/CheckCard/Group.vue.d.ts +54 -0
- package/dist/CheckCard/context.d.ts +12 -0
- package/dist/CheckCard/index.d.ts +443 -0
- package/dist/CheckCard/index.vue.d.ts +53 -0
- package/dist/CheckCard/selection.d.ts +4 -0
- package/dist/CheckCard/types.d.ts +29 -0
- package/dist/ConfigProvider/context.d.ts +11 -0
- package/dist/ConfigProvider/index.d.ts +50 -0
- package/dist/ConfigProvider/index.vue.d.ts +28 -0
- package/dist/CropperUpload/CropperDialog.vue.d.ts +23 -0
- package/dist/CropperUpload/index.d.ts +241 -0
- package/dist/CropperUpload/index.vue.d.ts +81 -0
- package/dist/CropperUpload/types.d.ts +137 -0
- package/dist/CropperUpload/utils.d.ts +42 -0
- package/dist/DateQuickSelect/index.d.ts +65 -0
- package/dist/DateQuickSelect/index.vue.d.ts +55 -0
- package/dist/DateQuickSelect/types.d.ts +19 -0
- package/dist/DateQuickSelect/utils.d.ts +9 -0
- package/dist/DrawerForm/index.d.ts +201 -0
- package/dist/DrawerForm/index.vue.d.ts +76 -0
- package/dist/Ellipsis/index.d.ts +35 -0
- package/dist/Ellipsis/types.d.ts +23 -0
- package/dist/Layout/components/SidebarTrigger.vue.d.ts +21 -0
- package/dist/Layout/index.d.ts +147 -0
- package/dist/Layout/index.vue.d.ts +65 -0
- package/dist/Layout/types.d.ts +24 -0
- package/dist/MainContent/index.d.ts +115 -0
- package/dist/MainContent/index.vue.d.ts +51 -0
- package/dist/MainContent/types.d.ts +17 -0
- package/dist/ModalForm/index.d.ts +201 -0
- package/dist/ModalForm/index.vue.d.ts +76 -0
- package/dist/ProTable/components/ProTablePagination.vue.d.ts +43 -0
- package/dist/ProTable/components/ProTableSearchForm.vue.d.ts +34 -0
- package/dist/ProTable/components/ProTableSelectedFilters.vue.d.ts +21 -0
- package/dist/ProTable/components/ProTableSelectionActions.vue.d.ts +36 -0
- package/dist/ProTable/components/ProTableToolbar.vue.d.ts +47 -0
- package/dist/ProTable/composables/useProTableData.d.ts +34 -0
- package/dist/ProTable/composables/useProTableSelection.d.ts +10 -0
- package/dist/ProTable/composables/useStickyTable.d.ts +18 -0
- package/dist/ProTable/index.d.ts +412 -0
- package/dist/ProTable/index.vue.d.ts +54 -0
- package/dist/ProTable/types.d.ts +265 -0
- package/dist/ProTable/utils.d.ts +25 -0
- package/dist/ShareButton/index.d.ts +157 -0
- package/dist/ShareButton/index.vue.d.ts +60 -0
- package/dist/ShareButton/steps.d.ts +13 -0
- package/dist/ShareButton/types.d.ts +34 -0
- package/dist/Sidebar/components/SidebarGroup.vue.d.ts +53 -0
- package/dist/Sidebar/components/SidebarIcon.vue.d.ts +23 -0
- package/dist/Sidebar/components/SidebarItem.vue.d.ts +33 -0
- package/dist/Sidebar/components/SidebarItemContent.vue.d.ts +27 -0
- package/dist/Sidebar/components/SidebarLink.vue.d.ts +54 -0
- package/dist/Sidebar/components/SidebarLogo.vue.d.ts +48 -0
- package/dist/Sidebar/composables/useActiveMenuScroll.d.ts +18 -0
- package/dist/Sidebar/context.d.ts +10 -0
- package/dist/Sidebar/index.d.ts +350 -0
- package/dist/Sidebar/index.vue.d.ts +72 -0
- package/dist/Sidebar/types.d.ts +154 -0
- package/dist/Sidebar/utils.d.ts +16 -0
- package/dist/SvgIcon/iconfont.d.ts +11 -0
- package/dist/SvgIcon/index.d.ts +35 -0
- package/dist/SvgIcon/index.vue.d.ts +38 -0
- package/dist/TagSelector/index.d.ts +51 -0
- package/dist/TagSelector/index.vue.d.ts +49 -0
- package/dist/TagSelector/types.d.ts +6 -0
- package/dist/VH100/index.d.ts +40 -0
- package/dist/VH100/index.vue.d.ts +26 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +3985 -0
- package/dist/shared/overlayForm/types.d.ts +25 -0
- package/dist/shared/overlayForm/useOverlayForm.d.ts +18 -0
- package/dist/style.css +1 -0
- package/dist/utils/install.d.ts +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Component, VNodeChild } from 'vue';
|
|
2
|
+
|
|
3
|
+
/** 侧栏菜单元信息 */
|
|
4
|
+
export interface SidebarMenuMeta {
|
|
5
|
+
/** 菜单标题 */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** 菜单图标,支持 Element Plus 图标名(`Setting`、`setting`、`el-icon-setting`)或由 `renderIcon` 处理的自定义图标名 */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** 需要高亮的菜单路径,用于详情页等隐藏路由 */
|
|
10
|
+
activeMenu?: string;
|
|
11
|
+
}
|
|
12
|
+
/** 侧栏菜单项,兼容若依风格的动态路由结构 */
|
|
13
|
+
export interface SidebarMenuItem {
|
|
14
|
+
/** 菜单路径,支持绝对路径与相对父级的相对路径 */
|
|
15
|
+
path: string;
|
|
16
|
+
/** 是否在侧栏中隐藏 */
|
|
17
|
+
hidden?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否始终渲染为父级菜单,即使只有一个可见子菜单
|
|
20
|
+
* @default true
|
|
21
|
+
* */
|
|
22
|
+
alwaysShow?: boolean;
|
|
23
|
+
/** 是否没有可显示的子菜单 */
|
|
24
|
+
noShowingChildren?: boolean;
|
|
25
|
+
/** JSON 字符串形式的查询参数,如 `{"id":"1"}` */
|
|
26
|
+
query?: string;
|
|
27
|
+
/** 子菜单 */
|
|
28
|
+
children?: SidebarMenuItem[];
|
|
29
|
+
/** 菜单元信息 */
|
|
30
|
+
meta?: SidebarMenuMeta;
|
|
31
|
+
}
|
|
32
|
+
/** 菜单跳转目标 */
|
|
33
|
+
export type SidebarLinkTarget = string | {
|
|
34
|
+
path: string;
|
|
35
|
+
query?: Record<string, unknown>;
|
|
36
|
+
};
|
|
37
|
+
/** 侧栏导航模式:`grouped` 双列分组导航,`classic` 经典 el-menu 树形导航 */
|
|
38
|
+
export type SidebarMode = 'classic' | 'grouped';
|
|
39
|
+
/** 侧栏主题:`dark` 深色主题,`light` 浅色主题 */
|
|
40
|
+
export type SidebarTheme = 'light' | 'dark';
|
|
41
|
+
/** Logo 门户标识:`merchant` 后台,`platform` 平台 */
|
|
42
|
+
export type SidebarPortal = 'merchant' | 'platform';
|
|
43
|
+
/**
|
|
44
|
+
* 侧栏主题变量,会被映射为组件根节点的 CSS 变量。
|
|
45
|
+
* 不传时使用内置默认值,也可在外部通过同名 CSS 变量覆盖。
|
|
46
|
+
*/
|
|
47
|
+
export interface SidebarVariables {
|
|
48
|
+
/** 深色主题菜单文字颜色 */
|
|
49
|
+
menuColor?: string;
|
|
50
|
+
/** 浅色主题菜单文字颜色 */
|
|
51
|
+
menuLightColor?: string;
|
|
52
|
+
/** 深色主题激活态文字颜色 */
|
|
53
|
+
menuColorActive?: string;
|
|
54
|
+
/** 深色主题菜单背景色 */
|
|
55
|
+
menuBackground?: string;
|
|
56
|
+
/** 浅色主题菜单背景色 */
|
|
57
|
+
menuLightBackground?: string;
|
|
58
|
+
/** 深色主题子菜单背景色 */
|
|
59
|
+
subMenuBackground?: string;
|
|
60
|
+
/** 深色主题子菜单悬浮背景色 */
|
|
61
|
+
subMenuHover?: string;
|
|
62
|
+
/** Logo 主标题颜色 */
|
|
63
|
+
logoTitleColor?: string;
|
|
64
|
+
/** Logo 浅色主题主标题颜色 */
|
|
65
|
+
logoLightTitleColor?: string;
|
|
66
|
+
/** 激活态主色 */
|
|
67
|
+
activeColor?: string;
|
|
68
|
+
/** 浅色主题激活态背景色 */
|
|
69
|
+
activeColorLight?: string;
|
|
70
|
+
/** 深色主题激活态背景色 */
|
|
71
|
+
activeColorDarkBg?: string;
|
|
72
|
+
/** 侧栏宽度 */
|
|
73
|
+
width?: string;
|
|
74
|
+
/** 分组导航展开态宽度 */
|
|
75
|
+
groupedWidth?: string;
|
|
76
|
+
/** 折叠态宽度 */
|
|
77
|
+
collapsedWidth?: string;
|
|
78
|
+
}
|
|
79
|
+
/** 自定义图标渲染函数,入参为菜单元信息中的 `icon` */
|
|
80
|
+
export type SidebarIconRender = (icon: string) => VNodeChild;
|
|
81
|
+
/** Sidebar 组件 props */
|
|
82
|
+
export interface SidebarProps {
|
|
83
|
+
/** 侧栏菜单数据,通常为已按权限过滤后的一级菜单列表 */
|
|
84
|
+
menus?: SidebarMenuItem[];
|
|
85
|
+
/** 当前激活菜单路径,通常由宿主传入 `route.path`,并优先使用 `route.meta.activeMenu` */
|
|
86
|
+
activeMenu?: string;
|
|
87
|
+
/** 是否折叠侧栏 */
|
|
88
|
+
collapse?: boolean;
|
|
89
|
+
/** 导航模式,默认 `classic` */
|
|
90
|
+
mode?: SidebarMode;
|
|
91
|
+
/** 侧栏主题,默认 `dark`;`grouped` 模式下固定使用浅色主题 */
|
|
92
|
+
theme?: SidebarTheme;
|
|
93
|
+
/** 主题变量 */
|
|
94
|
+
variables?: SidebarVariables;
|
|
95
|
+
/** 是否显示 Logo 区域 */
|
|
96
|
+
showLogo?: boolean;
|
|
97
|
+
/** Logo 图片地址 */
|
|
98
|
+
logo?: string;
|
|
99
|
+
/** Logo 主标题,未配置 `logo` 时折叠态会直接展示该标题 */
|
|
100
|
+
title?: string;
|
|
101
|
+
/** Logo 副标题,即门户名称,不传则不渲染门户标识 */
|
|
102
|
+
subtitle?: string;
|
|
103
|
+
/** 门户标识类型,决定副标题的配色 */
|
|
104
|
+
portal?: SidebarPortal;
|
|
105
|
+
/** Logo 点击跳转目标,默认 `/index` */
|
|
106
|
+
logoTo?: SidebarLinkTarget;
|
|
107
|
+
/** 内部链接使用的组件,默认 `router-link`;传入自定义组件即可完全接管链接渲染 */
|
|
108
|
+
linkComponent?: string | Component;
|
|
109
|
+
/** 自定义图标渲染函数,命中 Element Plus 图标名时不会调用 */
|
|
110
|
+
renderIcon?: SidebarIconRender;
|
|
111
|
+
}
|
|
112
|
+
/** 菜单链接渲染所需信息 */
|
|
113
|
+
export interface SidebarLinkInfo {
|
|
114
|
+
/** 跳转目标 */
|
|
115
|
+
to: SidebarLinkTarget;
|
|
116
|
+
/** 是否为外部链接 */
|
|
117
|
+
isExternal: boolean;
|
|
118
|
+
/** 是否为当前激活项 */
|
|
119
|
+
active: boolean;
|
|
120
|
+
/** 对应的菜单项 */
|
|
121
|
+
item?: SidebarMenuItem;
|
|
122
|
+
}
|
|
123
|
+
/** SidebarLogo 组件 props */
|
|
124
|
+
export interface SidebarLogoProps {
|
|
125
|
+
/** 是否折叠 */
|
|
126
|
+
collapse?: boolean;
|
|
127
|
+
/** 是否处于分组导航模式 */
|
|
128
|
+
grouped?: boolean;
|
|
129
|
+
/** Logo 图片地址 */
|
|
130
|
+
logo?: string;
|
|
131
|
+
/** 主标题 */
|
|
132
|
+
title?: string;
|
|
133
|
+
/** 副标题(门户名称) */
|
|
134
|
+
subtitle?: string;
|
|
135
|
+
/** 门户标识类型 */
|
|
136
|
+
portal?: SidebarPortal;
|
|
137
|
+
/** 点击跳转目标 */
|
|
138
|
+
to?: SidebarLinkTarget;
|
|
139
|
+
/** 内部链接使用的组件 */
|
|
140
|
+
linkComponent?: string | Component;
|
|
141
|
+
}
|
|
142
|
+
/** SidebarItem 组件 props */
|
|
143
|
+
export interface SidebarItemProps {
|
|
144
|
+
/** 菜单项 */
|
|
145
|
+
item: SidebarMenuItem;
|
|
146
|
+
/** 是否为嵌套子菜单 */
|
|
147
|
+
isNest?: boolean;
|
|
148
|
+
/** 父级路径 */
|
|
149
|
+
basePath?: string;
|
|
150
|
+
/** 自定义图标渲染函数 */
|
|
151
|
+
renderIcon?: SidebarIconRender;
|
|
152
|
+
/** 内部链接使用的组件 */
|
|
153
|
+
linkComponent?: string | Component;
|
|
154
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SidebarLinkTarget, SidebarMenuItem } from './types';
|
|
2
|
+
|
|
3
|
+
/** 判断路径是否为外部链接(http/https/mailto/tel) */
|
|
4
|
+
export declare function isExternalPath(path: unknown): boolean;
|
|
5
|
+
/** 去掉路径中重复的斜杠与结尾斜杠 */
|
|
6
|
+
export declare function normalizePath(path: string): string;
|
|
7
|
+
/** 基于父级路径拼接出完整路由路径,外部链接原样返回 */
|
|
8
|
+
export declare function resolveMenuPath(basePath: string | undefined, routePath: string | undefined): string;
|
|
9
|
+
/** 解析菜单项中 JSON 字符串形式的 query,解析失败时返回 undefined */
|
|
10
|
+
export declare function parseMenuQuery(query: string | undefined): Record<string, unknown> | undefined;
|
|
11
|
+
/** 拼接菜单跳转目标,带 query 时返回对象形式 */
|
|
12
|
+
export declare function createLinkTarget(basePath: string | undefined, routePath: string | undefined, query?: string): SidebarLinkTarget;
|
|
13
|
+
/** 取跳转目标中的路径字符串 */
|
|
14
|
+
export declare function getLinkPath(target: SidebarLinkTarget): string;
|
|
15
|
+
/** 过滤掉隐藏菜单,并按路径、标题去重,避免后端重复菜单导致侧栏出现重复项 */
|
|
16
|
+
export declare function dedupeMenus(menus: SidebarMenuItem[] | undefined): SidebarMenuItem[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IconfontSymbol {
|
|
2
|
+
content: string;
|
|
3
|
+
viewBox: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 在浏览器中按需加载图标集脚本(例如阿里 Iconfont 导出的 symbol 集合)。
|
|
7
|
+
*
|
|
8
|
+
* 图标源由调用方传入(`SvgIcon` 的 `src` 或 `ConfigProvider` 的 `iconfont`),库内不内置任何图标地址。
|
|
9
|
+
*/
|
|
10
|
+
export declare function loadIconfont(url: string): Promise<void>;
|
|
11
|
+
export declare function getIconfontSymbol(id: string): IconfontSymbol | undefined;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const SvgIcon: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
size: {
|
|
3
|
+
type: import('vue').PropType<string | number>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
name: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
src: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
type: import('vue').PropType<string | string[]>;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
size: {
|
|
18
|
+
type: import('vue').PropType<string | number>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
name: {
|
|
22
|
+
type: import('vue').PropType<string>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
src: {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
color: {
|
|
29
|
+
type: import('vue').PropType<string | string[]>;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{}>, {
|
|
32
|
+
size: number | string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, unknown>;
|
|
34
|
+
export type { SvgIconProps } from './index.vue';
|
|
35
|
+
export default SvgIcon;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface SvgIconProps {
|
|
2
|
+
/** Iconfont symbol 名称,可传 `card` 或完整的 `icon-card`。 */
|
|
3
|
+
name: string;
|
|
4
|
+
/** 图标尺寸;数字单位为 px。 */
|
|
5
|
+
size?: number | string;
|
|
6
|
+
/** 图标颜色;数组按 SVG path 顺序应用,最后一项会复用到其余 path。 */
|
|
7
|
+
color?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* 图标集脚本地址。不传时使用 `ConfigProvider` 注入的 `iconfont`;
|
|
10
|
+
* 两者都没有时只读取页面内已存在的 `<symbol>`,不发起任何网络请求。
|
|
11
|
+
*/
|
|
12
|
+
src?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SvgIconProps>, {
|
|
15
|
+
size: string;
|
|
16
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SvgIconProps>, {
|
|
17
|
+
size: string;
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
size: number | string;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const TagSelector: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import('vue').PropType<import('./types').TagSelectorValue | import('./types').TagSelectorValue[]>;
|
|
4
|
+
};
|
|
5
|
+
multiple: {
|
|
6
|
+
type: import('vue').PropType<boolean>;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
options: {
|
|
10
|
+
type: import('vue').PropType<import('./types').TagSelectorOption[]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
showAll: {
|
|
14
|
+
type: import('vue').PropType<boolean>;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
allText: {
|
|
18
|
+
type: import('vue').PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: import('./types').TagSelectorValue | import('./types').TagSelectorValue[] | undefined) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: import('vue').PropType<import('./types').TagSelectorValue | import('./types').TagSelectorValue[]>;
|
|
26
|
+
};
|
|
27
|
+
multiple: {
|
|
28
|
+
type: import('vue').PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: import('vue').PropType<import('./types').TagSelectorOption[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
showAll: {
|
|
36
|
+
type: import('vue').PropType<boolean>;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
allText: {
|
|
40
|
+
type: import('vue').PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{
|
|
44
|
+
"onUpdate:modelValue"?: ((value: import('./types').TagSelectorValue | import('./types').TagSelectorValue[] | undefined) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
multiple: boolean;
|
|
47
|
+
showAll: boolean;
|
|
48
|
+
allText: string;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, unknown>;
|
|
50
|
+
export * from './types';
|
|
51
|
+
export default TagSelector;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TagSelectorOption, TagSelectorValue } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue?: TagSelectorValue | TagSelectorValue[];
|
|
5
|
+
options: TagSelectorOption[];
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
showAll?: boolean;
|
|
8
|
+
allText?: string;
|
|
9
|
+
}>, {
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
showAll: boolean;
|
|
12
|
+
allText: string;
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: TagSelectorValue | TagSelectorValue[] | undefined) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
modelValue?: TagSelectorValue | TagSelectorValue[];
|
|
17
|
+
options: TagSelectorOption[];
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
showAll?: boolean;
|
|
20
|
+
allText?: string;
|
|
21
|
+
}>, {
|
|
22
|
+
multiple: boolean;
|
|
23
|
+
showAll: boolean;
|
|
24
|
+
allText: string;
|
|
25
|
+
}>>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: TagSelectorValue | TagSelectorValue[] | undefined) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
multiple: boolean;
|
|
29
|
+
showAll: boolean;
|
|
30
|
+
allText: string;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const VH100: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
stype: {
|
|
4
|
+
type: import('vue').PropType<import('vue').CSSProperties>;
|
|
5
|
+
};
|
|
6
|
+
class: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
};
|
|
9
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
stype: {
|
|
18
|
+
type: import('vue').PropType<import('vue').CSSProperties>;
|
|
19
|
+
};
|
|
20
|
+
class: {
|
|
21
|
+
type: import('vue').PropType<string>;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
stype: {
|
|
29
|
+
type: import('vue').PropType<import('vue').CSSProperties>;
|
|
30
|
+
};
|
|
31
|
+
class: {
|
|
32
|
+
type: import('vue').PropType<string>;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
})> & Record<string, unknown>;
|
|
39
|
+
export type { VH100Props } from './index.vue';
|
|
40
|
+
export default VH100;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type VH100Props = {
|
|
4
|
+
stype?: CSSProperties;
|
|
5
|
+
class?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<VH100Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<VH100Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultPrefix = "wa-ui";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ModalForm } from './ModalForm';
|
|
2
|
+
import { DrawerForm } from './DrawerForm';
|
|
3
|
+
import { Ellipsis } from './Ellipsis';
|
|
4
|
+
import { App } from 'vue';
|
|
5
|
+
import { DateQuickSelect } from './DateQuickSelect';
|
|
6
|
+
import { ProTable } from './ProTable';
|
|
7
|
+
import { TagSelector } from './TagSelector';
|
|
8
|
+
import { VH100 } from './VH100';
|
|
9
|
+
import { ConfigProvider } from './ConfigProvider';
|
|
10
|
+
import { SvgIcon } from './SvgIcon';
|
|
11
|
+
import { Layout } from './Layout';
|
|
12
|
+
import { MainContent } from './MainContent';
|
|
13
|
+
import { ShareButton } from './ShareButton';
|
|
14
|
+
import { Sidebar } from './Sidebar';
|
|
15
|
+
import { CropperUpload } from './CropperUpload';
|
|
16
|
+
import { version } from '../package.json';
|
|
17
|
+
|
|
18
|
+
export * from './ProTable';
|
|
19
|
+
export { type DateQuickSelectSelection, type DateQuickSelectValue, type DateQuickSelectValueType, } from './DateQuickSelect';
|
|
20
|
+
export * from './TagSelector';
|
|
21
|
+
export * from './VH100';
|
|
22
|
+
export * from './ConfigProvider';
|
|
23
|
+
export * from './SvgIcon';
|
|
24
|
+
export * from './CheckCard';
|
|
25
|
+
export * from './Ellipsis';
|
|
26
|
+
export * from './Layout';
|
|
27
|
+
export * from './MainContent';
|
|
28
|
+
export * from './ShareButton';
|
|
29
|
+
export * from './Sidebar';
|
|
30
|
+
export * from './CropperUpload';
|
|
31
|
+
export { ConfigProvider, SvgIcon, ProTable, VH100, ModalForm, DrawerForm, Ellipsis, DateQuickSelect, TagSelector, Sidebar, MainContent, Layout, ShareButton, CropperUpload, };
|
|
32
|
+
export type { ModalFormProps, DrawerFormProps, OverlayFormProps, OverlayFormAction } from './shared/overlayForm/types';
|
|
33
|
+
export { version };
|
|
34
|
+
declare const _default: {
|
|
35
|
+
install: (app: App) => void;
|
|
36
|
+
version: string;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|