joy-admin-components 0.2.88 → 0.2.90
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/dist/components/CmpDictionary/index.d.ts +42 -0
- package/dist/components/CmpIcon/index.d.ts +23 -0
- package/dist/components/ConfrimButton/index.d.ts +18 -0
- package/dist/components/DownExcelTemp/index.d.ts +19 -0
- package/dist/components/ImportButton/index.d.ts +19 -0
- package/dist/components/LayOutForm/index.d.ts +19 -0
- package/dist/components/Layer/index.d.ts +34 -0
- package/dist/components/ListPage/config.d.ts +47 -0
- package/dist/components/ListPage/index.d.ts +91 -0
- package/dist/components/SearchBar/index.d.ts +50 -0
- package/dist/components/VxeTable/index.d.ts +72 -0
- package/dist/index.d.ts +25 -1
- package/dist/joy-admin-components.css +1 -1
- package/dist/joy-admin-components.es.js +3 -3
- package/dist/joy-admin-components.umd.js +2 -2
- package/dist/locales/en-us.d.ts +5 -0
- package/dist/locales/index.d.ts +24 -0
- package/dist/locales/zh-cn.d.ts +5 -0
- package/dist/utils/index.d.ts +440 -0
- package/package.json +1 -1
- package/src/components/CmpDictionary/index.d.ts +2 -2
- package/src/components/ConfrimButton/index.d.ts +2 -2
- package/src/components/ImportButton/index.d.ts +1 -1
- package/src/components/LayOutForm/index.d.ts +2 -2
- package/src/components/Layer/index.d.ts +1 -1
- package/src/components/ListPage/index.d.ts +1 -1
- package/src/components/SearchBar/index.d.ts +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { SelectProps } from 'element-plus';
|
|
3
|
+
/**
|
|
4
|
+
* 字典选择器组件 - 基于 Element Plus Select 封装
|
|
5
|
+
* 支持 API 请求数据、全选、多语言等功能
|
|
6
|
+
*/
|
|
7
|
+
export interface CmpDictionaryProps extends Partial<SelectProps> {
|
|
8
|
+
/** 获取下拉数据的 API 函数 */
|
|
9
|
+
api?: () => Promise<{ data: any[] }>;
|
|
10
|
+
/** 是否显示全选复选框(仅多选模式),默认 true */
|
|
11
|
+
showCheckAll?: boolean;
|
|
12
|
+
/** 选项点击回调函数 */
|
|
13
|
+
optionClick?: (item: any) => void;
|
|
14
|
+
/** 多选模式下的最大选择数量 */
|
|
15
|
+
maxLimit?: number;
|
|
16
|
+
/** 多选模式下的最小选择数量 */
|
|
17
|
+
minLimit?: number;
|
|
18
|
+
/** 静态数据源(如果提供则不使用 api) */
|
|
19
|
+
data?: any[];
|
|
20
|
+
/** 字段映射配置 */
|
|
21
|
+
labelValue?: {
|
|
22
|
+
label?: string;
|
|
23
|
+
labelEn?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
};
|
|
26
|
+
/** 是否使用本地 i18n 翻译 label,默认 false */
|
|
27
|
+
changeLocal?: boolean;
|
|
28
|
+
/** v-model 绑定值 */
|
|
29
|
+
modelValue?: any;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CmpDictionaryEmits {
|
|
33
|
+
/** API 请求成功后触发 */
|
|
34
|
+
(e: 'success', data: any[]): void;
|
|
35
|
+
/** 选择值变化时触发 */
|
|
36
|
+
(e: 'change', value: any): void;
|
|
37
|
+
/** v-model 更新事件 */
|
|
38
|
+
(e: 'update:modelValue', value: any): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare const CmpDictionary: DefineComponent<CmpDictionaryProps>;
|
|
42
|
+
export default CmpDictionary;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 图标组件 - 基于 Element Plus Icon 封装
|
|
4
|
+
* 简化图标的使用,通过 name 属性指定图标名称
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```vue
|
|
8
|
+
* <CmpIcon name="Edit" />
|
|
9
|
+
* <CmpIcon name="Delete" />
|
|
10
|
+
* <CmpIcon name="Search" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export interface CmpIconProps {
|
|
14
|
+
/**
|
|
15
|
+
* 图标名称
|
|
16
|
+
* 支持 Element Plus 所有图标名称
|
|
17
|
+
* @see https://element-plus.org/zh-CN/component/icon.html
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const CmpIcon: DefineComponent<CmpIconProps>;
|
|
23
|
+
export default CmpIcon;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { PopconfirmProps } from 'element-plus';
|
|
3
|
+
/**
|
|
4
|
+
* 确认按钮组件 - 基于 Element Plus Popconfirm 封装
|
|
5
|
+
* 点击后弹出确认气泡,确认后执行操作(自动防抖 500ms)
|
|
6
|
+
* 继承 Element Plus ElPopconfirm 所有属性
|
|
7
|
+
*/
|
|
8
|
+
export type ConfrimButtonProps = Partial<PopconfirmProps>;
|
|
9
|
+
|
|
10
|
+
export interface ConfrimButtonEmits {
|
|
11
|
+
/** 确认操作时触发(已防抖处理) */
|
|
12
|
+
(e: 'ok'): void;
|
|
13
|
+
/** 取消操作时触发 */
|
|
14
|
+
(e: 'no'): void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const ConfrimButton: DefineComponent<ConfrimButtonProps>;
|
|
18
|
+
export default ConfrimButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* DownExcelTemp 组件 Props
|
|
4
|
+
*/
|
|
5
|
+
export interface DownExcelTempProps {
|
|
6
|
+
/**
|
|
7
|
+
* Excel 表配置
|
|
8
|
+
*/
|
|
9
|
+
sheetsConfig: Record<string, any>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 导出的文件名
|
|
13
|
+
*/
|
|
14
|
+
fileName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const DownExcelTemp: DefineComponent<DownExcelTempProps>;
|
|
18
|
+
|
|
19
|
+
export default DownExcelTemp;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 导入按钮组件 - 文件上传按钮
|
|
4
|
+
* 点击按钮选择文件,支持自定义文件类型
|
|
5
|
+
*/
|
|
6
|
+
export interface ImportButtonProps {
|
|
7
|
+
/** 接受的文件类型,默认 '.xlsx,.xls' */
|
|
8
|
+
accept?: string;
|
|
9
|
+
/** 按钮加载状态 */
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ImportButtonEmits {
|
|
14
|
+
/** 文件选择后触发 */
|
|
15
|
+
(e: 'fileChange', file: File): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const ImportButton: DefineComponent<ImportButtonProps>;
|
|
19
|
+
export default ImportButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { FormProps } from 'element-plus';
|
|
3
|
+
/**
|
|
4
|
+
* LayOutForm 组件 - 带栅格布局的表单容器
|
|
5
|
+
* 继承 Element Plus ElForm 所有属性
|
|
6
|
+
* 自动为表单项添加栅格布局,支持多列表单
|
|
7
|
+
*/
|
|
8
|
+
export interface LayOutFormProps extends FormProps {
|
|
9
|
+
/** 栅格间隔,默认 20 */
|
|
10
|
+
gutter?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface LayOutFormEmits {
|
|
14
|
+
/** 组件挂载完成后触发,返回表单 ref */
|
|
15
|
+
(e: 'ref', formRef: any): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const LayOutForm: DefineComponent<LayOutFormProps>;
|
|
19
|
+
export default LayOutForm;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Layer 组件 - 弹层组件(支持 Dialog 和 Drawer 两种模式)
|
|
4
|
+
* 基于 Element Plus 的 Dialog 和 Drawer 封装
|
|
5
|
+
*/
|
|
6
|
+
export interface LayerConfig {
|
|
7
|
+
/** 是否显示弹层 */
|
|
8
|
+
show: boolean;
|
|
9
|
+
/** 弹层类型:'layer' 为 Dialog,'drawer' 为 Drawer */
|
|
10
|
+
type?: 'layer' | 'drawer';
|
|
11
|
+
/** 弹层标题 */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** 弹层宽度,Dialog 默认 500,Drawer 默认 '100%' */
|
|
14
|
+
width?: string | number;
|
|
15
|
+
/** 是否显示底部按钮 */
|
|
16
|
+
showButton?: boolean;
|
|
17
|
+
/** 自定义关闭回调(仅 Drawer 模式有效) */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface LayerProps {
|
|
22
|
+
/** 弹层配置对象 */
|
|
23
|
+
layer: LayerConfig;
|
|
24
|
+
/** 确认按钮加载状态 */
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface LayerEmits {
|
|
29
|
+
/** 点击确认按钮时触发(已防抖 300ms) */
|
|
30
|
+
(e: 'confirm'): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const Layer: DefineComponent<LayerProps>;
|
|
34
|
+
export default Layer;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListPage 全局配置
|
|
3
|
+
* 可在项目入口文件(如 main.js)中调用 setListPageConfig 进行全局配置
|
|
4
|
+
*/
|
|
5
|
+
export interface ListPageConfig {
|
|
6
|
+
/** 页码参数名 */
|
|
7
|
+
pageNoKey: string;
|
|
8
|
+
/** 每页条数参数名 */
|
|
9
|
+
pageSizeKey: string;
|
|
10
|
+
/** 总条数字段名 */
|
|
11
|
+
totalKey: string;
|
|
12
|
+
/** 默认每页条数 */
|
|
13
|
+
defaultPageSize: number;
|
|
14
|
+
/** 每页条数选项 */
|
|
15
|
+
pageSizes: number[];
|
|
16
|
+
/** 响应数据字段映射 */
|
|
17
|
+
responseDataKeys: {
|
|
18
|
+
/** 数据列表字段名(优先级从左到右) */
|
|
19
|
+
rows: string[];
|
|
20
|
+
/** 总条数字段名 */
|
|
21
|
+
total: string[];
|
|
22
|
+
};
|
|
23
|
+
/** 是否显示搜索栏 */
|
|
24
|
+
showSearch: boolean;
|
|
25
|
+
/** 是否显示分页 */
|
|
26
|
+
showPage: boolean;
|
|
27
|
+
/** 是否显示阴影 */
|
|
28
|
+
showShadow: boolean;
|
|
29
|
+
/** 是否显示复选框列 */
|
|
30
|
+
showCheckBox: boolean;
|
|
31
|
+
/** 是否启用单元格选区复制功能 */
|
|
32
|
+
enableCellCopy: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 设置全局配置
|
|
36
|
+
* @param config - 配置对象
|
|
37
|
+
*/
|
|
38
|
+
export declare function setListPageConfig(config: Partial<ListPageConfig>): void;
|
|
39
|
+
/**
|
|
40
|
+
* 获取当前配置
|
|
41
|
+
* @returns 当前配置对象
|
|
42
|
+
*/
|
|
43
|
+
export declare function getListPageConfig(): ListPageConfig;
|
|
44
|
+
/**
|
|
45
|
+
* 重置为默认配置
|
|
46
|
+
*/
|
|
47
|
+
export declare function resetListPageConfig(): void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** 搜索表单项 */
|
|
3
|
+
export interface SearchFormItem {
|
|
4
|
+
/** 字段 key */
|
|
5
|
+
key: string;
|
|
6
|
+
/** 字段名称 */
|
|
7
|
+
name: string;
|
|
8
|
+
/** 字段值 */
|
|
9
|
+
value: any;
|
|
10
|
+
/** 表单项类型 */
|
|
11
|
+
type?: 'input' | 'select' | 'date' | 'custom' | 'br';
|
|
12
|
+
/** 日期类型 */
|
|
13
|
+
dateType?: 'date' | 'daterange' | 'datetimerange';
|
|
14
|
+
/** 是否隐藏 */
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
/** 自定义渲染函数(type 为 custom 时使用) */
|
|
17
|
+
render?: () => any;
|
|
18
|
+
/** 额外配置 */
|
|
19
|
+
option?: {
|
|
20
|
+
class?: string;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 搜索表单配置 */
|
|
26
|
+
export interface SearchFormConfig {
|
|
27
|
+
/** 表单项列表 */
|
|
28
|
+
items: SearchFormItem[];
|
|
29
|
+
/** 选中的行数据(多选) */
|
|
30
|
+
selections?: any[];
|
|
31
|
+
/** 是否显示搜索栏 */
|
|
32
|
+
showSearch?: boolean;
|
|
33
|
+
/** 是否显示分页 */
|
|
34
|
+
showPage?: boolean;
|
|
35
|
+
/** 是否显示阴影 */
|
|
36
|
+
showShadow?: boolean;
|
|
37
|
+
/** 是否显示复选框 */
|
|
38
|
+
showCheckBox?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** 表格配置 */
|
|
42
|
+
export interface TableConfig {
|
|
43
|
+
/** 数据格式化函数 */
|
|
44
|
+
dataFormat?: (data: any[]) => any[];
|
|
45
|
+
/** 重置回调函数 */
|
|
46
|
+
reset?: () => void | Promise<void>;
|
|
47
|
+
/** 自定义配置 */
|
|
48
|
+
customConfig?: Record<string, any>;
|
|
49
|
+
/** 列配置 */
|
|
50
|
+
columnConfig?: Record<string, any>;
|
|
51
|
+
/** 表格高度 */
|
|
52
|
+
height?: number | string;
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* ListPage 组件 - 列表页面容器
|
|
58
|
+
* 集成搜索栏、表格、分页等功能
|
|
59
|
+
* 基于 VxeTable 实现
|
|
60
|
+
*/
|
|
61
|
+
export interface ListPageProps {
|
|
62
|
+
/** 表格唯一标识,用于本地存储列设置 */
|
|
63
|
+
id: string;
|
|
64
|
+
/** 加载状态 */
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
/** 是否立即请求数据,默认 true */
|
|
67
|
+
immediate?: boolean;
|
|
68
|
+
/** 搜索表单配置 */
|
|
69
|
+
searchForm?: SearchFormConfig;
|
|
70
|
+
/** 获取列表数据的 API 函数 */
|
|
71
|
+
api?: (params: any) => Promise<{ code: number; data: { rows: any[]; totalRows: number } }>;
|
|
72
|
+
/** 静态数据源(如果提供则不使用 api) */
|
|
73
|
+
data?: any[];
|
|
74
|
+
/** 表格配置 */
|
|
75
|
+
tableConfig?: TableConfig;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** ListPage 暴露的方法 */
|
|
79
|
+
export interface ListPageExpose {
|
|
80
|
+
/** VxeTable 实例 */
|
|
81
|
+
tableRef: any;
|
|
82
|
+
/** 刷新列表数据 */
|
|
83
|
+
getList: (params?: any) => void;
|
|
84
|
+
/** 获取当前搜索参数 */
|
|
85
|
+
getPrm: () => any;
|
|
86
|
+
/** 重新计算表格高度 */
|
|
87
|
+
calculateTableHeight: () => void;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare const ListPage: DefineComponent<ListPageProps>;
|
|
91
|
+
export default ListPage;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** 搜索表单项 */
|
|
3
|
+
export interface SearchBarFormItem {
|
|
4
|
+
/** 字段 key */
|
|
5
|
+
key: string;
|
|
6
|
+
/** 字段名称 */
|
|
7
|
+
name: string;
|
|
8
|
+
/** 字段值 */
|
|
9
|
+
value: any;
|
|
10
|
+
/** 表单项类型 */
|
|
11
|
+
type?: 'input' | 'select' | 'date' | 'custom' | 'br';
|
|
12
|
+
/** 日期类型 */
|
|
13
|
+
dateType?: 'date' | 'daterange' | 'datetimerange';
|
|
14
|
+
/** 是否隐藏 */
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
/** 自定义渲染函数(type 为 custom 时使用) */
|
|
17
|
+
render?: () => any;
|
|
18
|
+
/** 额外配置 */
|
|
19
|
+
option?: {
|
|
20
|
+
class?: string;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 搜索表单配置 */
|
|
26
|
+
export interface SearchBarForm {
|
|
27
|
+
/** 表单项列表 */
|
|
28
|
+
items: SearchBarFormItem[];
|
|
29
|
+
/** 表单数据对象 */
|
|
30
|
+
data?: Record<string, any>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* SearchBar 组件 - 搜索栏
|
|
35
|
+
* 支持多种表单项类型,可折叠展开
|
|
36
|
+
*/
|
|
37
|
+
export interface SearchBarProps {
|
|
38
|
+
/** 搜索表单配置 */
|
|
39
|
+
form: SearchBarForm;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface SearchBarEmits {
|
|
43
|
+
/** 筛选按钮点击时触发 */
|
|
44
|
+
(e: 'confirm'): void;
|
|
45
|
+
/** 重置按钮点击时触发 */
|
|
46
|
+
(e: 'reset'): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare const SearchBar: DefineComponent<SearchBarProps>;
|
|
50
|
+
export default SearchBar;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 注册 VxeTable 格式化器
|
|
3
|
+
*
|
|
4
|
+
* 注册以下格式化器到 VxeUI:
|
|
5
|
+
* - formatNumber: 千分位数字格式化(默认 2 位小数)
|
|
6
|
+
* - formatMoney: 金额格式化(默认 2 位小数)
|
|
7
|
+
* - formatPercent: 百分比格式化(默认 2 位小数)
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { registerVxeFormatters } from 'joy-admin-components';
|
|
12
|
+
*
|
|
13
|
+
* // 在应用初始化时注册
|
|
14
|
+
* registerVxeFormatters();
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```vue
|
|
19
|
+
* <!-- 在表格列中使用 -->
|
|
20
|
+
* <vxe-column field="amount" title="金额" :formatter="['formatMoney', 2]" />
|
|
21
|
+
* <vxe-column field="quantity" title="数量" :formatter="['formatNumber', 0]" />
|
|
22
|
+
* <vxe-column field="rate" title="比率" :formatter="['formatPercent', 1]" />
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @requires vxe-pc-ui - VxeUI 库
|
|
26
|
+
*/
|
|
27
|
+
export function registerVxeFormatters(): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 注册 VxeTable 渲染器
|
|
31
|
+
*
|
|
32
|
+
* 注册以下渲染器到 VxeUI:
|
|
33
|
+
* - Enum: 枚举值渲染器
|
|
34
|
+
* - InputNumber: 数字输入渲染器
|
|
35
|
+
* - TrueFalse: 真假值渲染器
|
|
36
|
+
* - I18n: 国际化渲染器
|
|
37
|
+
* - Link: 跳转链接渲染器
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* import { registerVxeRenderers } from 'joy-admin-components';
|
|
42
|
+
*
|
|
43
|
+
* // 在应用初始化时注册
|
|
44
|
+
* registerVxeRenderers();
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @requires vxe-pc-ui - VxeUI 库
|
|
48
|
+
* @requires vue-router - Vue Router
|
|
49
|
+
* @requires vue-i18n - Vue I18n
|
|
50
|
+
*/
|
|
51
|
+
export function registerVxeRenderers(): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 一次性注册所有 VxeTable 插件(渲染器和格式化器)
|
|
55
|
+
*
|
|
56
|
+
* 这是一个便捷方法,等价于依次调用:
|
|
57
|
+
* - registerVxeFormatters()
|
|
58
|
+
* - registerVxeRenderers()
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* import { registerVxePlugins } from 'joy-admin-components';
|
|
63
|
+
*
|
|
64
|
+
* // 在应用初始化时一次性注册所有插件
|
|
65
|
+
* registerVxePlugins();
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @requires vxe-pc-ui - VxeUI 库
|
|
69
|
+
* @requires vue-router - Vue Router
|
|
70
|
+
* @requires vue-i18n - Vue I18n
|
|
71
|
+
*/
|
|
72
|
+
export function registerVxePlugins(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as LayOutForm } from './components/LayOutForm/index';
|
|
2
|
+
import { default as CmpDictionary } from './components/CmpDictionary/index';
|
|
3
|
+
import { default as CmpIcon } from './components/CmpIcon/index';
|
|
4
|
+
import { default as ConfrimButton } from './components/ConfrimButton/index';
|
|
5
|
+
import { default as ImportButton } from './components/ImportButton/index';
|
|
6
|
+
import { default as ListPage } from './components/ListPage/index';
|
|
7
|
+
import { default as SearchBar } from './components/SearchBar/index';
|
|
8
|
+
import { default as DownExcelTemp } from './components/DownExcelTemp/index';
|
|
9
|
+
import { default as Layer } from './components/Layer/index';
|
|
10
|
+
export { LayOutForm, CmpDictionary, CmpIcon, ConfrimButton, ImportButton, ListPage, SearchBar, DownExcelTemp, Layer, };
|
|
11
|
+
export * from './utils/index.js';
|
|
12
|
+
export { registerVxeFormatters, registerVxeRenderers, registerVxePlugins } from './components/VxeTable/index.jsx';
|
|
13
|
+
export { setupI18n, getI18n, getI18nT, zh_cn, en_us, messages } from './locales/index';
|
|
14
|
+
export { setListPageConfig, getListPageConfig, resetListPageConfig } from './components/ListPage/config';
|
|
15
|
+
export type * from './components/LayOutForm/index';
|
|
16
|
+
export type * from './components/CmpDictionary/index';
|
|
17
|
+
export type * from './components/CmpIcon/index';
|
|
18
|
+
export type * from './components/ConfrimButton/index';
|
|
19
|
+
export type * from './components/ImportButton/index';
|
|
20
|
+
export type * from './components/ListPage/index';
|
|
21
|
+
export type * from './components/SearchBar/index';
|
|
22
|
+
export type * from './components/DownExcelTemp/index';
|
|
23
|
+
export type * from './components/Layer/index';
|
|
24
|
+
export type * from './utils/index';
|
|
25
|
+
export type * from './components/VxeTable/index';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.cmp-icon[data-v-7b9ec6d8],.cmp-icon[data-v-733f9daa]{padding:0!important}.confirm-button-wrapper[data-v-24cb35fd],.ImportButton[data-v-b8f856ea]{vertical-align:middle;line-height:1;display:inline-block}.searchBar-container .searchBar[data-v-db6f71dd]{transition:all .3s;overflow:hidden}.searchBar-container[data-v-db6f71dd] .el-form-item{margin-bottom:8px!important}.searchBar-container .btns[data-v-db6f71dd]{justify-content:space-between;align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd]{align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd] .el-tabs__header{margin:0}.searchBar-container .btns .right[data-v-db6f71dd]{text-align:right;align-items:center;display:flex}[data-v-
|
|
1
|
+
.cmp-icon[data-v-7b9ec6d8],.cmp-icon[data-v-733f9daa]{padding:0!important}.confirm-button-wrapper[data-v-24cb35fd],.ImportButton[data-v-b8f856ea]{vertical-align:middle;line-height:1;display:inline-block}.searchBar-container .searchBar[data-v-db6f71dd]{transition:all .3s;overflow:hidden}.searchBar-container[data-v-db6f71dd] .el-form-item{margin-bottom:8px!important}.searchBar-container .btns[data-v-db6f71dd]{justify-content:space-between;align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd]{align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd] .el-tabs__header{margin:0}.searchBar-container .btns .right[data-v-db6f71dd]{text-align:right;align-items:center;display:flex}[data-v-8dbf5afd] .vxe-table-custom-wrapper.placement--top-right.is--active{max-height:400px!important}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column{-webkit-user-select:none;user-select:none}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column.cell-selected{position:relative;background-color:#409eff26!important}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column.cell-border-top:before{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;top:0;left:0;right:0}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column.cell-border-bottom:after{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;bottom:0;left:0;right:0}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column.cell-border-left{border-left:1px solid #409eff!important}[data-v-8dbf5afd] .vxe-table.cell-copy-enabled .vxe-body--column.cell-border-right{border-right:1px solid #409eff!important}.drawer-content .drawer-btn{box-sizing:border-box;text-align:right;z-index:10;background-color:#fff;width:100%;padding:10px 60px 20px 20px;position:absolute;bottom:0}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -259,7 +259,7 @@ var fe = Object.create, J = Object.defineProperty, pe = Object.getOwnPropertyDes
|
|
|
259
259
|
function Oe(e = null) {
|
|
260
260
|
if (e) {
|
|
261
261
|
let { global: t } = e;
|
|
262
|
-
return t.messages.value
|
|
262
|
+
return t.messages.value?.zh_cn ? t.mergeLocaleMessage("zh_cn", we) : t.setLocaleMessage("zh_cn", we), t.messages.value?.en_us ? t.mergeLocaleMessage("en_us", Te) : t.setLocaleMessage("en_us", Te), De = e, e;
|
|
263
263
|
}
|
|
264
264
|
return De ||= ie({
|
|
265
265
|
legacy: !1,
|
|
@@ -1114,7 +1114,7 @@ var St = { class: "center" }, Ct = /* @__PURE__ */ Z({
|
|
|
1114
1114
|
let { t: n, locale: r } = U(), i = ce(), a = bt(), o = e, s = A(!1), c = A([]);
|
|
1115
1115
|
o.searchForm.showSearch === void 0 && (o.searchForm.showSearch = a.showSearch), o.searchForm.showPage === void 0 && (o.searchForm.showPage = a.showPage), o.searchForm.showShadow === void 0 && (o.searchForm.showShadow = a.showShadow), o.searchForm.showCheckBox === void 0 && (o.searchForm.showCheckBox = a.showCheckBox), o.searchForm.enableCellCopy === void 0 && (o.searchForm.enableCellCopy = a.enableCellCopy), o.searchForm.selections || (o.searchForm.selections = []);
|
|
1116
1116
|
let m = l(() => {
|
|
1117
|
-
let e = i
|
|
1117
|
+
let e = i?.path.replace(/\//g, "-").replace(/^-/, "") || "default-table";
|
|
1118
1118
|
return o.id ? `listPageId-${e}-${o.id}` : `listPageId-${e}`;
|
|
1119
1119
|
}), _ = ae(o.searchForm.items), v = o.searchForm.pageNoKey || a.pageNoKey, y = o.searchForm.pageSizeKey || a.pageSizeKey, b = k({
|
|
1120
1120
|
[v]: 1,
|
|
@@ -1509,7 +1509,7 @@ var St = { class: "center" }, Ct = /* @__PURE__ */ Z({
|
|
|
1509
1509
|
], 2);
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
|
-
}, [["__scopeId", "data-v-
|
|
1512
|
+
}, [["__scopeId", "data-v-8dbf5afd"]]), wt = {
|
|
1513
1513
|
__name: "index",
|
|
1514
1514
|
props: {
|
|
1515
1515
|
sheetsConfig: {
|