easy-ep-ui 0.1.1 → 0.2.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 +172 -0
- package/README.md +29 -14
- package/dist/easy-ep-ui.js +1 -1
- package/dist/style.css +1 -1
- package/es/charts/BaseBar/index.d.ts +2 -0
- package/es/charts/BaseBar/src/index.vue.d.ts +45 -0
- package/es/charts/BaseLine/index.d.ts +2 -0
- package/es/charts/BaseLine/src/index.vue.d.ts +47 -0
- package/es/charts/BasePie/index.d.ts +2 -0
- package/es/charts/BasePie/src/index.vue.d.ts +41 -0
- package/es/charts/BaseRadar/index.d.ts +2 -0
- package/es/charts/BaseRadar/src/index.vue.d.ts +47 -0
- package/es/charts/config.d.ts +32 -0
- package/es/charts/index.d.ts +8 -0
- package/es/charts/useChart.d.ts +21 -0
- package/es/components/ee-dept-cascader/index.d.ts +2 -0
- package/es/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
- package/es/components/ee-dept-cascader/type.d.ts +39 -0
- package/es/components/ee-dict-select/src/index.vue.d.ts +19 -18
- package/es/components/ee-dict-select/type.d.ts +54 -0
- package/es/components/ee-form-dialog/src/index.vue.d.ts +108 -8
- package/es/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
- package/es/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
- package/es/components/ee-form-table/src/components/TableToolbar.vue.d.ts +10 -3
- package/es/components/ee-form-table/src/constants.d.ts +2 -2
- package/es/components/ee-form-table/src/hooks/useCrud.d.ts +3 -1
- package/es/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
- package/es/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
- package/es/components/ee-form-table/src/hooks/useTable.d.ts +28 -11
- package/es/components/ee-form-table/src/index.vue.d.ts +33 -2
- package/es/components/ee-form-table/types.d.ts +86 -1
- package/es/components/ee-remote-select/index.d.ts +2 -0
- package/es/components/ee-remote-select/src/index.vue.d.ts +30 -0
- package/es/components/ee-remote-select/type.d.ts +53 -0
- package/es/components/ee-role-select/index.d.ts +2 -0
- package/es/components/ee-role-select/src/index.vue.d.ts +29 -0
- package/es/components/ee-role-select/type.d.ts +44 -0
- package/es/components/ee-search-bar/src/index.vue.d.ts +80 -10
- package/es/components/ee-status-tag/src/index.vue.d.ts +1 -1
- package/es/components/ee-user-select/index.d.ts +2 -0
- package/es/components/ee-user-select/src/index.vue.d.ts +29 -0
- package/es/components/ee-user-select/type.d.ts +46 -0
- package/es/hooks/index.d.ts +4 -0
- package/es/hooks/useRemoteSelectPagination.d.ts +68 -0
- package/es/hooks/useSelectEcho.d.ts +27 -0
- package/es/index.d.ts +50 -2
- package/es/index.mjs +3119 -1092
- package/es/locale/en.d.ts +3 -0
- package/es/locale/index.d.ts +91 -0
- package/es/locale/useLocale.d.ts +13 -0
- package/es/locale/zh-cn.d.ts +3 -0
- package/es/style.css +1 -1
- package/es/utils/types.d.ts +39 -0
- package/lib/charts/BaseBar/index.d.ts +2 -0
- package/lib/charts/BaseBar/src/index.vue.d.ts +45 -0
- package/lib/charts/BaseLine/index.d.ts +2 -0
- package/lib/charts/BaseLine/src/index.vue.d.ts +47 -0
- package/lib/charts/BasePie/index.d.ts +2 -0
- package/lib/charts/BasePie/src/index.vue.d.ts +41 -0
- package/lib/charts/BaseRadar/index.d.ts +2 -0
- package/lib/charts/BaseRadar/src/index.vue.d.ts +47 -0
- package/lib/charts/config.d.ts +32 -0
- package/lib/charts/index.d.ts +8 -0
- package/lib/charts/useChart.d.ts +21 -0
- package/lib/components/ee-dept-cascader/index.d.ts +2 -0
- package/lib/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
- package/lib/components/ee-dept-cascader/type.d.ts +39 -0
- package/lib/components/ee-dict-select/src/index.vue.d.ts +19 -18
- package/lib/components/ee-dict-select/type.d.ts +54 -0
- package/lib/components/ee-form-dialog/src/index.vue.d.ts +108 -8
- package/lib/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
- package/lib/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
- package/lib/components/ee-form-table/src/components/TableToolbar.vue.d.ts +10 -3
- package/lib/components/ee-form-table/src/constants.d.ts +2 -2
- package/lib/components/ee-form-table/src/hooks/useCrud.d.ts +3 -1
- package/lib/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
- package/lib/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
- package/lib/components/ee-form-table/src/hooks/useTable.d.ts +28 -11
- package/lib/components/ee-form-table/src/index.vue.d.ts +33 -2
- package/lib/components/ee-form-table/types.d.ts +86 -1
- package/lib/components/ee-remote-select/index.d.ts +2 -0
- package/lib/components/ee-remote-select/src/index.vue.d.ts +30 -0
- package/lib/components/ee-remote-select/type.d.ts +53 -0
- package/lib/components/ee-role-select/index.d.ts +2 -0
- package/lib/components/ee-role-select/src/index.vue.d.ts +29 -0
- package/lib/components/ee-role-select/type.d.ts +44 -0
- package/lib/components/ee-search-bar/src/index.vue.d.ts +80 -10
- package/lib/components/ee-status-tag/src/index.vue.d.ts +1 -1
- package/lib/components/ee-user-select/index.d.ts +2 -0
- package/lib/components/ee-user-select/src/index.vue.d.ts +29 -0
- package/lib/components/ee-user-select/type.d.ts +46 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/useRemoteSelectPagination.d.ts +68 -0
- package/lib/hooks/useSelectEcho.d.ts +27 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +50 -2
- package/lib/locale/en.d.ts +3 -0
- package/lib/locale/index.d.ts +91 -0
- package/lib/locale/useLocale.d.ts +13 -0
- package/lib/locale/zh-cn.d.ts +3 -0
- package/lib/style.css +1 -1
- package/lib/utils/types.d.ts +39 -0
- package/package.json +5 -2
package/es/index.d.ts
CHANGED
|
@@ -1,15 +1,63 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { ComponentSize } from './components/ee-form-table/types';
|
|
2
4
|
import { default as EeDictSelect } from './components/ee-dict-select';
|
|
3
5
|
import { default as EeStatusTag } from './components/ee-status-tag';
|
|
4
6
|
import { default as EeSearchBar } from './components/ee-search-bar';
|
|
5
7
|
import { default as EeFormDialog } from './components/ee-form-dialog';
|
|
6
8
|
import { default as EeFormTable } from './components/ee-form-table';
|
|
9
|
+
import { default as EeRemoteSelect } from './components/ee-remote-select';
|
|
10
|
+
import { default as EeDeptCascader } from './components/ee-dept-cascader';
|
|
11
|
+
import { default as EeUserSelect } from './components/ee-user-select';
|
|
12
|
+
import { default as EeRoleSelect } from './components/ee-role-select';
|
|
13
|
+
import { EeBaseBar, EeBaseLine, EeBasePie, EeBaseRadar } from './charts';
|
|
14
|
+
import { Locale } from './locale';
|
|
15
|
+
export type { Locale };
|
|
16
|
+
/** 全局 requestInstance 注入 key,组件通过 inject 获取 */
|
|
17
|
+
export declare const EE_REQUEST_KEY = "eeRequestInstance";
|
|
18
|
+
/** Easy EP UI 全局配置选项 */
|
|
19
|
+
export interface EasyEpUIOptions {
|
|
20
|
+
/** 全局 axios 请求实例,所有选择组件共享,组件内通过 inject 获取 */
|
|
21
|
+
requestInstance?: AxiosInstance;
|
|
22
|
+
size?: ComponentSize;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
locale?: string | Partial<Locale>;
|
|
25
|
+
formTable?: Record<string, unknown>;
|
|
26
|
+
searchBar?: Record<string, unknown>;
|
|
27
|
+
formDialog?: Record<string, unknown>;
|
|
28
|
+
dictSelect?: Record<string, unknown>;
|
|
29
|
+
statusTag?: Record<string, unknown>;
|
|
30
|
+
remoteSelect?: Record<string, unknown>;
|
|
31
|
+
deptCascader?: Record<string, unknown>;
|
|
32
|
+
userSelect?: Record<string, unknown>;
|
|
33
|
+
roleSelect?: Record<string, unknown>;
|
|
34
|
+
/** 图表组件全局默认配置覆盖 */
|
|
35
|
+
baseChart?: Record<string, unknown>;
|
|
36
|
+
}
|
|
7
37
|
export type { DictOption, SearchField, TableColumn, FormField, Pagination, StatusMapping } from './utils/types';
|
|
8
38
|
export type { ColumnSearchItem, SearchConfig, PaginationConfig, ActionConfig, ActionButton, ToolbarConfig, ToolbarButton, CrudConfig, CrudApi, SelectionConfig, ExportConfig, DrawerConfig, ColumnSettingConfig, AutoHeightConfig, } from './components/ee-form-table/types';
|
|
9
39
|
export type { EeFormTableProps } from './components/ee-form-table/types';
|
|
10
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 全局注册 Easy EP UI 组件和配置
|
|
42
|
+
*
|
|
43
|
+
* @param app - Vue 应用实例
|
|
44
|
+
* @param options - 全局配置(locale / requestInstance / size / per-component 配置)
|
|
45
|
+
*/
|
|
46
|
+
export declare function install(app: App, options?: EasyEpUIOptions): void;
|
|
11
47
|
declare const EasyEpUI: {
|
|
12
48
|
install: typeof install;
|
|
13
49
|
};
|
|
14
50
|
export default EasyEpUI;
|
|
15
|
-
export { EeDictSelect, EeStatusTag, EeSearchBar, EeFormDialog, EeFormTable, };
|
|
51
|
+
export { EeDictSelect, EeStatusTag, EeSearchBar, EeFormDialog, EeFormTable, EeRemoteSelect, EeDeptCascader, EeUserSelect, EeRoleSelect, EeBaseBar, EeBaseLine, EeBasePie, EeBaseRadar, };
|
|
52
|
+
export { GLOBAL_CHART_CONFIG, deepMerge } from './charts/config';
|
|
53
|
+
export { useChart } from './charts/useChart';
|
|
54
|
+
export { EE_LOCALE_KEY } from './locale/useLocale';
|
|
55
|
+
export { mergeLocale } from './locale';
|
|
56
|
+
export { useRemoteSelectPagination, useSelectEcho } from './hooks';
|
|
57
|
+
export type { RemotePaginationOption, RemoteSelectOption } from './hooks';
|
|
58
|
+
export type { EchoOption } from './hooks';
|
|
59
|
+
export type { EeRemoteSelectProps, EeRemoteSelectEmits } from './components/ee-remote-select/type';
|
|
60
|
+
export type { EeDictSelectProps, EeDictSelectEmits } from './components/ee-dict-select/type';
|
|
61
|
+
export type { EeDeptCascaderProps, EeDeptCascaderEmits } from './components/ee-dept-cascader/type';
|
|
62
|
+
export type { EeUserSelectProps, EeUserSelectEmits } from './components/ee-user-select/type';
|
|
63
|
+
export type { EeRoleSelectProps, EeRoleSelectEmits } from './components/ee-role-select/type';
|