hs-admin-ui 3.0.4 → 3.0.6
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/types/components/business/bcForm/baseForm.vue.d.ts +39 -0
- package/dist/types/components/business/bcForm/bcForm.vue.d.ts +37 -0
- package/dist/types/components/business/bcForm/type.d.ts +16 -0
- package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +101 -0
- package/dist/types/components/business/bcFormTable/bcTable.vue.d.ts +32 -0
- package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts +45 -0
- package/dist/types/components/business/bcFormTable/components/contextBody/useContextMenu.d.ts +20 -0
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/sortForm.vue.d.ts +19 -0
- package/dist/types/components/business/bcFormTable/components/form/formSearchBtn.vue.d.ts +76 -0
- package/dist/types/components/business/bcFormTable/components/index.d.ts +6 -0
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/sortColumn.vue.d.ts +21 -0
- package/dist/types/components/business/bcFormTable/components/table/table.vue.d.ts +59 -0
- package/dist/types/components/business/bcFormTable/components/table/useTable.d.ts +16 -0
- package/dist/types/components/business/bcFormTable/components/table/useTableHeight.d.ts +11 -0
- package/dist/types/components/business/bcFormTable/components/tabs/tabs.vue.d.ts +25 -0
- package/dist/types/components/business/bcFormTable/methods/cellDetailMethod.d.ts +3 -0
- package/dist/types/components/business/bcFormTable/methods/filterAgeMethod.d.ts +3 -0
- package/dist/types/components/business/bcFormTable/methods/footerMethod.d.ts +4 -0
- package/dist/types/components/business/bcFormTable/methods/formBtnMethod.d.ts +8 -0
- package/dist/types/components/business/bcFormTable/methods/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/utils/exportSelected.d.ts +11 -0
- package/dist/types/components/business/bcFormTable/utils/onFormKey.d.ts +17 -0
- package/dist/types/components/business/bcFormTable/utils/onTableKey.d.ts +17 -0
- package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +108 -0
- package/dist/types/components/business/bcFormTable/utils/store.d.ts +2937 -0
- package/dist/types/components/business/bcFormTable/utils/useButon.d.ts +13 -0
- package/dist/types/components/business/bcFormTable/utils/useTableHeight.d.ts +14 -0
- package/dist/types/utils/arrayOperation.d.ts +21 -0
- package/dist/types/utils/authFunction.d.ts +18 -0
- package/dist/types/utils/build.d.ts +12 -0
- package/dist/types/utils/common.d.ts +9 -0
- package/dist/types/utils/commonFunction.d.ts +18 -0
- package/dist/types/utils/device_info.d.ts +14 -0
- package/dist/types/utils/download.d.ts +6 -0
- package/dist/types/utils/formatTime.d.ts +37 -0
- package/dist/types/utils/getDataType.d.ts +9 -0
- package/dist/types/utils/getStyleSheets.d.ts +11 -0
- package/dist/types/utils/index.d.ts +21 -0
- package/dist/types/utils/loading.d.ts +10 -0
- package/dist/types/utils/mitt.d.ts +3 -0
- package/dist/types/utils/other.d.ts +75 -0
- package/dist/types/utils/request/index.d.ts +2 -0
- package/dist/types/utils/request/interceptors/request/authorization.interceptor.d.ts +4 -0
- package/dist/types/utils/request/interceptors/request/index.d.ts +2 -0
- package/dist/types/utils/request/interceptors/request/result.type.interceptor.d.ts +4 -0
- package/dist/types/utils/request/interceptors/request/undefined-params-handler.interceptor.d.ts +13 -0
- package/dist/types/utils/request/interceptors/response/error-handler.interceptor.d.ts +4 -0
- package/dist/types/utils/request/interceptors/response/index.d.ts +2 -0
- package/dist/types/utils/request/request.d.ts +6 -0
- package/dist/types/utils/request2.d.ts +3 -0
- package/dist/types/utils/setIconfont.d.ts +11 -0
- package/dist/types/utils/showMessage.d.ts +6 -0
- package/dist/types/utils/showMessageBox.d.ts +6 -0
- package/dist/types/utils/showNotification.d.ts +6 -0
- package/dist/types/utils/showPopup/index.d.ts +35 -0
- package/dist/types/utils/storage.d.ts +84 -0
- package/dist/types/utils/theme.d.ts +13 -0
- package/dist/types/utils/toolsValidate.d.ts +149 -0
- package/dist/types/utils/watermark.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { IFormData, IFormTable, ICustomData, IAuthData } from '../../../../types';
|
|
2
|
+
import { VxeTableInstance } from 'vxe-table';
|
|
3
|
+
import { Ref, ComputedRef } from 'vue';
|
|
4
|
+
|
|
5
|
+
export type { IFormInstance } from '../../bcForm/type';
|
|
6
|
+
/** 权限数据 */
|
|
7
|
+
export interface AUTH_DATA_MAP {
|
|
8
|
+
/** 菜单版本 */
|
|
9
|
+
menu_version?: number;
|
|
10
|
+
/** 字典权限 */
|
|
11
|
+
dict_functions: Record<'code' | 'name' | 'json_data', string>[];
|
|
12
|
+
/** 数据权限 */
|
|
13
|
+
data_functions: Record<'code' | 'name' | 'json_data', string>[];
|
|
14
|
+
/** 字段权限 */
|
|
15
|
+
field_functions: {
|
|
16
|
+
table: IAuthData.IAuth;
|
|
17
|
+
form: IAuthData.IAuth;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface FORM_TABLE {
|
|
21
|
+
data: {
|
|
22
|
+
table: ICustomData.FormTable;
|
|
23
|
+
form: IFormData.Form;
|
|
24
|
+
};
|
|
25
|
+
auth: AUTH_DATA_MAP;
|
|
26
|
+
}
|
|
27
|
+
export interface BcBoxApi {
|
|
28
|
+
refreshData: () => void;
|
|
29
|
+
getAuthData: () => AUTH_DATA_MAP;
|
|
30
|
+
}
|
|
31
|
+
export interface BcTableFormApi {
|
|
32
|
+
updateSearchForm: (params: ICustomData.Data) => void;
|
|
33
|
+
searchValidate: () => Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
/** 对外导出表格参数实例 */
|
|
36
|
+
export interface TableParams {
|
|
37
|
+
tableApi: Ref<Record<string, VxeTableInstance>>;
|
|
38
|
+
activeTabs: Ref<string>;
|
|
39
|
+
/** vxe-table实例,含有表格所有实例方法 */
|
|
40
|
+
api: ComputedRef<VxeTableInstance>;
|
|
41
|
+
}
|
|
42
|
+
export interface FetchTableParams {
|
|
43
|
+
/** 是否分页 */
|
|
44
|
+
is_apply_page?: boolean;
|
|
45
|
+
/** 当前页 */
|
|
46
|
+
currentPage?: number;
|
|
47
|
+
/** 每页条数 */
|
|
48
|
+
pageSize?: number;
|
|
49
|
+
/** 查询参数 */
|
|
50
|
+
[key: string]: ICustomData.ANY;
|
|
51
|
+
}
|
|
52
|
+
/** 对外导出表格参数实例(含数实例数据) */
|
|
53
|
+
export interface TableInstance extends TableParams {
|
|
54
|
+
/** 表格配置数据 */
|
|
55
|
+
data: Ref<ICustomData.FormTable | undefined>;
|
|
56
|
+
/** 请求方法 */
|
|
57
|
+
fetchTableData: (params: FetchTableParams) => void;
|
|
58
|
+
/** 查询参数 */
|
|
59
|
+
formData?: ComputedRef<ICustomData.Data | undefined>;
|
|
60
|
+
configData?: IAuthData.Auth;
|
|
61
|
+
}
|
|
62
|
+
/** 是否进行全量的数据刷新,源于子组件调用根组件注册bcBoxApi.refreshData()的刷新数据功能 */
|
|
63
|
+
export declare const isRefreshData: Ref<boolean>;
|
|
64
|
+
/** 是否出现错误提示 */
|
|
65
|
+
export declare const isShowError: Ref<boolean>;
|
|
66
|
+
/** 是否关闭权限验证 */
|
|
67
|
+
export declare const isShowAuth: Ref<boolean>;
|
|
68
|
+
/** 特殊类型列字段 */
|
|
69
|
+
export declare const specialType: string[];
|
|
70
|
+
/** 查询条件分组标识 */
|
|
71
|
+
export declare const CUSTOME_GROUP_TIP = "custome_field_";
|
|
72
|
+
export declare function setPropertyData<T extends IFormTable.Data>(params: T): T;
|
|
73
|
+
export declare function getRender(baseData: ICustomData.FormItemConfigData['baseData']): "hs-button" | "bc-icon" | "hs-button-group" | "hs-input" | "hs-select" | "hs-option" | "hs-option-group" | "hs-form" | "hs-form-item" | "hs-row" | "hs-col" | "hs-tree" | "hs-input-number" | "hs-switch" | "hs-radio" | "hs-radio-group" | "hs-radio-button" | "hs-checkbox" | "hs-checkbox-group" | "hs-checkbox-button" | "hs-rate" | "hs-autocomplete" | "hs-slider" | "hs-cascader" | "hs-cascader-panel" | "hs-color-picker" | "hs-upload" | "hs-transfer" | "hs-date-picker" | "hs-scrollbar" | "hs-calendar" | "hs-carousel" | "hs-carousel-item" | "hs-collapse" | "hs-collapse-item" | "hs-progress" | "hs-result" | "hs-tour" | "hs-tour-step" | "hs-tag" | "hs-check-tag" | "hs-affix" | "hs-tabs" | "hs-tab-pane" | "hs-steps" | "hs-step" | "hs-alert" | "hs-dialog" | "hs-drawer" | "hs-popconfirm" | "hs-popover" | "hs-tooltip" | "hs-watermark" | "hs-dropdown" | "hs-dropdown-menu" | "hs-dropdown-item" | "hs-tree-select" | "hs-badge" | "hs-empty" | "hs-image" | "hs-image-viewer" | "bc-btn" | "bc-box" | "bc-radio" | "bc-checkbox" | "bc-form" | "bc-table" | "bc-form-table" | "bc-form-config" | "bc-select" | "bc-tree-select" | "bc-page-config" | "bc-switch-systems" | "bc-auto-complete" | "bc-group-date" | "bc-page-tree-for-system" | "bc-upload" | "hs-config-input" | "hs-config-event" | "hs-config-select" | "hs-config-date-picker" | "hs-config-button" | "hs-config-autocomplete" | "hs-config-switch" | "hs-config-upload" | "hs-config-checkbox" | "hs-config-radio" | "hs-config-input-number" | "hs-config-cascader" | "hs-config-cascader-panel" | "hs-config-tree-select";
|
|
74
|
+
export declare function getRenderComponent(el: ICustomData.ElComponent): "hs-button" | "bc-icon" | "hs-button-group" | "hs-input" | "hs-select" | "hs-option" | "hs-option-group" | "hs-form" | "hs-form-item" | "hs-row" | "hs-col" | "hs-tree" | "hs-input-number" | "hs-switch" | "hs-radio" | "hs-radio-group" | "hs-radio-button" | "hs-checkbox" | "hs-checkbox-group" | "hs-checkbox-button" | "hs-rate" | "hs-autocomplete" | "hs-slider" | "hs-cascader" | "hs-cascader-panel" | "hs-color-picker" | "hs-upload" | "hs-transfer" | "hs-date-picker" | "hs-scrollbar" | "hs-calendar" | "hs-carousel" | "hs-carousel-item" | "hs-collapse" | "hs-collapse-item" | "hs-progress" | "hs-result" | "hs-tour" | "hs-tour-step" | "hs-tag" | "hs-check-tag" | "hs-affix" | "hs-tabs" | "hs-tab-pane" | "hs-steps" | "hs-step" | "hs-alert" | "hs-dialog" | "hs-drawer" | "hs-popconfirm" | "hs-popover" | "hs-tooltip" | "hs-watermark" | "hs-dropdown" | "hs-dropdown-menu" | "hs-dropdown-item" | "hs-tree-select" | "hs-badge" | "hs-empty" | "hs-image" | "hs-image-viewer" | "bc-btn" | "bc-box" | "bc-radio" | "bc-checkbox" | "bc-form" | "bc-table" | "bc-form-table" | "bc-form-config" | "bc-select" | "bc-tree-select" | "bc-page-config" | "bc-switch-systems" | "bc-auto-complete" | "bc-group-date" | "bc-page-tree-for-system" | "bc-upload" | "hs-config-input" | "hs-config-event" | "hs-config-select" | "hs-config-date-picker" | "hs-config-button" | "hs-config-autocomplete" | "hs-config-switch" | "hs-config-upload" | "hs-config-checkbox" | "hs-config-radio" | "hs-config-input-number" | "hs-config-cascader" | "hs-config-cascader-panel" | "hs-config-tree-select";
|
|
75
|
+
/** 权限控制是否显示 */
|
|
76
|
+
export declare function isShowItem(params: Record<'isShow' | 'fieldShow' | 'userFieldShow', boolean> & ICustomData.Data): boolean;
|
|
77
|
+
/** 格式化搜索区域表单数据 */
|
|
78
|
+
export declare function getSearchForm<T = ICustomData.Form>(data: ICustomData.FormTable): Promise<T>;
|
|
79
|
+
export declare function getTableDatas<T = ICustomData.Table[]>(params: ICustomData.FormTable): Promise<T>;
|
|
80
|
+
/** 格式化表数据 */
|
|
81
|
+
export declare function getTableData(data: ICustomData.Table, formData?: ICustomData.Form['formData']): Promise<{
|
|
82
|
+
id: string;
|
|
83
|
+
baseData: ICustomData.TableBaseData;
|
|
84
|
+
tableConfig: ICustomData.TableItem[];
|
|
85
|
+
tableData: any;
|
|
86
|
+
}>;
|
|
87
|
+
/** 调用接口获取表格数据 */
|
|
88
|
+
export declare function fetchTableData(baseData: ICustomData.TableBaseData, formData?: ICustomData.Form['formData']): Promise<any>;
|
|
89
|
+
/** 接口数据
|
|
90
|
+
* 1. 获取配置项信息
|
|
91
|
+
* 2. 整合配置数据信息
|
|
92
|
+
* 3. 根据配置项获取数据
|
|
93
|
+
*/
|
|
94
|
+
export declare function getLoadData(data: ICustomData.FormTable): Promise<ICustomData.FormTable>;
|
|
95
|
+
export declare function getFormData(result: IFormData.Form): {
|
|
96
|
+
form: IFormData.FormConfig<keyof IFormData.FormItemTypeMap>[];
|
|
97
|
+
data: IFormData.Data;
|
|
98
|
+
mid?: string | undefined;
|
|
99
|
+
uid?: string | undefined; /** 查询参数 */
|
|
100
|
+
is_auth?: string | undefined;
|
|
101
|
+
project_code?: string | undefined;
|
|
102
|
+
config_version?: number | undefined;
|
|
103
|
+
config_type?: "1" | "2" | undefined;
|
|
104
|
+
config_name: string;
|
|
105
|
+
config_unique_id: string;
|
|
106
|
+
attrs: IFormData.FormAttr;
|
|
107
|
+
btns: ICustomData.BtnItem[];
|
|
108
|
+
};
|