easy-ep-ui 0.1.1 → 0.1.2

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.
Files changed (101) hide show
  1. package/LICENSE +172 -0
  2. package/README.md +29 -14
  3. package/dist/easy-ep-ui.js +1 -1
  4. package/dist/style.css +1 -1
  5. package/es/charts/BaseBar/index.d.ts +2 -0
  6. package/es/charts/BaseBar/src/index.vue.d.ts +45 -0
  7. package/es/charts/BaseLine/index.d.ts +2 -0
  8. package/es/charts/BaseLine/src/index.vue.d.ts +47 -0
  9. package/es/charts/BasePie/index.d.ts +2 -0
  10. package/es/charts/BasePie/src/index.vue.d.ts +41 -0
  11. package/es/charts/BaseRadar/index.d.ts +2 -0
  12. package/es/charts/BaseRadar/src/index.vue.d.ts +47 -0
  13. package/es/charts/config.d.ts +32 -0
  14. package/es/charts/index.d.ts +8 -0
  15. package/es/charts/useChart.d.ts +21 -0
  16. package/es/components/ee-dept-cascader/index.d.ts +2 -0
  17. package/es/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
  18. package/es/components/ee-dept-cascader/type.d.ts +39 -0
  19. package/es/components/ee-dict-select/src/index.vue.d.ts +19 -18
  20. package/es/components/ee-dict-select/type.d.ts +54 -0
  21. package/es/components/ee-form-dialog/src/index.vue.d.ts +108 -8
  22. package/es/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
  23. package/es/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
  24. package/es/components/ee-form-table/src/components/TableToolbar.vue.d.ts +1 -0
  25. package/es/components/ee-form-table/src/constants.d.ts +2 -2
  26. package/es/components/ee-form-table/src/hooks/useCrud.d.ts +2 -0
  27. package/es/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
  28. package/es/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
  29. package/es/components/ee-form-table/src/index.vue.d.ts +13 -1
  30. package/es/components/ee-form-table/types.d.ts +41 -0
  31. package/es/components/ee-remote-select/index.d.ts +2 -0
  32. package/es/components/ee-remote-select/src/index.vue.d.ts +30 -0
  33. package/es/components/ee-remote-select/type.d.ts +53 -0
  34. package/es/components/ee-role-select/index.d.ts +2 -0
  35. package/es/components/ee-role-select/src/index.vue.d.ts +29 -0
  36. package/es/components/ee-role-select/type.d.ts +44 -0
  37. package/es/components/ee-search-bar/src/index.vue.d.ts +80 -10
  38. package/es/components/ee-status-tag/src/index.vue.d.ts +1 -1
  39. package/es/components/ee-user-select/index.d.ts +2 -0
  40. package/es/components/ee-user-select/src/index.vue.d.ts +29 -0
  41. package/es/components/ee-user-select/type.d.ts +46 -0
  42. package/es/hooks/index.d.ts +4 -0
  43. package/es/hooks/useRemoteSelectPagination.d.ts +68 -0
  44. package/es/hooks/useSelectEcho.d.ts +27 -0
  45. package/es/index.d.ts +49 -2
  46. package/es/index.mjs +2605 -966
  47. package/es/locale/en.d.ts +3 -0
  48. package/es/locale/index.d.ts +86 -0
  49. package/es/locale/useLocale.d.ts +13 -0
  50. package/es/locale/zh-cn.d.ts +3 -0
  51. package/es/style.css +1 -1
  52. package/es/utils/types.d.ts +39 -0
  53. package/lib/charts/BaseBar/index.d.ts +2 -0
  54. package/lib/charts/BaseBar/src/index.vue.d.ts +45 -0
  55. package/lib/charts/BaseLine/index.d.ts +2 -0
  56. package/lib/charts/BaseLine/src/index.vue.d.ts +47 -0
  57. package/lib/charts/BasePie/index.d.ts +2 -0
  58. package/lib/charts/BasePie/src/index.vue.d.ts +41 -0
  59. package/lib/charts/BaseRadar/index.d.ts +2 -0
  60. package/lib/charts/BaseRadar/src/index.vue.d.ts +47 -0
  61. package/lib/charts/config.d.ts +32 -0
  62. package/lib/charts/index.d.ts +8 -0
  63. package/lib/charts/useChart.d.ts +21 -0
  64. package/lib/components/ee-dept-cascader/index.d.ts +2 -0
  65. package/lib/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
  66. package/lib/components/ee-dept-cascader/type.d.ts +39 -0
  67. package/lib/components/ee-dict-select/src/index.vue.d.ts +19 -18
  68. package/lib/components/ee-dict-select/type.d.ts +54 -0
  69. package/lib/components/ee-form-dialog/src/index.vue.d.ts +108 -8
  70. package/lib/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
  71. package/lib/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
  72. package/lib/components/ee-form-table/src/components/TableToolbar.vue.d.ts +1 -0
  73. package/lib/components/ee-form-table/src/constants.d.ts +2 -2
  74. package/lib/components/ee-form-table/src/hooks/useCrud.d.ts +2 -0
  75. package/lib/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
  76. package/lib/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
  77. package/lib/components/ee-form-table/src/index.vue.d.ts +13 -1
  78. package/lib/components/ee-form-table/types.d.ts +41 -0
  79. package/lib/components/ee-remote-select/index.d.ts +2 -0
  80. package/lib/components/ee-remote-select/src/index.vue.d.ts +30 -0
  81. package/lib/components/ee-remote-select/type.d.ts +53 -0
  82. package/lib/components/ee-role-select/index.d.ts +2 -0
  83. package/lib/components/ee-role-select/src/index.vue.d.ts +29 -0
  84. package/lib/components/ee-role-select/type.d.ts +44 -0
  85. package/lib/components/ee-search-bar/src/index.vue.d.ts +80 -10
  86. package/lib/components/ee-status-tag/src/index.vue.d.ts +1 -1
  87. package/lib/components/ee-user-select/index.d.ts +2 -0
  88. package/lib/components/ee-user-select/src/index.vue.d.ts +29 -0
  89. package/lib/components/ee-user-select/type.d.ts +46 -0
  90. package/lib/hooks/index.d.ts +4 -0
  91. package/lib/hooks/useRemoteSelectPagination.d.ts +68 -0
  92. package/lib/hooks/useSelectEcho.d.ts +27 -0
  93. package/lib/index.cjs +1 -1
  94. package/lib/index.d.ts +49 -2
  95. package/lib/locale/en.d.ts +3 -0
  96. package/lib/locale/index.d.ts +86 -0
  97. package/lib/locale/useLocale.d.ts +13 -0
  98. package/lib/locale/zh-cn.d.ts +3 -0
  99. package/lib/style.css +1 -1
  100. package/lib/utils/types.d.ts +39 -0
  101. package/package.json +5 -2
@@ -0,0 +1,45 @@
1
+ type __VLS_Props = {
2
+ width?: string;
3
+ height?: string;
4
+ /** X 轴类别数组 */
5
+ xAxisData?: (string | number)[];
6
+ /** 系列数据 [{ name, data, color?, stack? }] */
7
+ seriesData?: {
8
+ name: string;
9
+ data: (number | null)[];
10
+ color?: string;
11
+ stack?: string;
12
+ }[];
13
+ /** 是否堆叠 */
14
+ isStack?: boolean;
15
+ /** 柱宽,默认自适应 */
16
+ barWidth?: string | number;
17
+ /** 图表标题 */
18
+ title?: string;
19
+ /** 是否显示图例,默认 true */
20
+ legendShow?: boolean;
21
+ /** 是否悬浮提示,默认 true */
22
+ tooltipShow?: boolean;
23
+ /** 业务方额外配置,优先级高于全局配置 */
24
+ extraOption?: Record<string, any>;
25
+ /** 是否自适应窗口,默认 true */
26
+ isAutoResize?: boolean;
27
+ };
28
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
+ width: string;
30
+ height: string;
31
+ xAxisData: (string | number)[];
32
+ seriesData: {
33
+ name: string;
34
+ data: (number | null)[];
35
+ color?: string;
36
+ stack?: string;
37
+ }[];
38
+ isStack: boolean;
39
+ legendShow: boolean;
40
+ tooltipShow: boolean;
41
+ isAutoResize: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
+ chartRef: HTMLDivElement;
44
+ }, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as EeBaseLine } from './src/index.vue';
2
+ export default EeBaseLine;
@@ -0,0 +1,47 @@
1
+ type __VLS_Props = {
2
+ width?: string;
3
+ height?: string;
4
+ /** X 轴类别数组 */
5
+ xAxisData?: (string | number)[];
6
+ /** 系列数据 [{ name, data, color? }] */
7
+ seriesData?: {
8
+ name: string;
9
+ data: (number | null)[];
10
+ color?: string;
11
+ }[];
12
+ /** 是否平滑折线 */
13
+ isSmooth?: boolean;
14
+ /** 是否显示拐点圆点,默认 true */
15
+ showSymbol?: boolean;
16
+ /** 是否填充面积 */
17
+ isArea?: boolean;
18
+ /** 图表标题 */
19
+ title?: string;
20
+ /** 是否显示图例,默认 true */
21
+ legendShow?: boolean;
22
+ /** 是否悬浮提示,默认 true */
23
+ tooltipShow?: boolean;
24
+ /** 业务方额外配置 */
25
+ extraOption?: Record<string, any>;
26
+ /** 是否自适应窗口,默认 true */
27
+ isAutoResize?: boolean;
28
+ };
29
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
30
+ width: string;
31
+ height: string;
32
+ xAxisData: (string | number)[];
33
+ seriesData: {
34
+ name: string;
35
+ data: (number | null)[];
36
+ color?: string;
37
+ }[];
38
+ legendShow: boolean;
39
+ tooltipShow: boolean;
40
+ isAutoResize: boolean;
41
+ isSmooth: boolean;
42
+ showSymbol: boolean;
43
+ isArea: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ chartRef: HTMLDivElement;
46
+ }, HTMLDivElement>;
47
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as EeBasePie } from './src/index.vue';
2
+ export default EeBasePie;
@@ -0,0 +1,41 @@
1
+ type __VLS_Props = {
2
+ width?: string;
3
+ height?: string;
4
+ /** 饼图数据 [{ name, value }] */
5
+ pieData?: {
6
+ name: string;
7
+ value: number;
8
+ }[];
9
+ /** 是否环形饼图 */
10
+ isRing?: boolean;
11
+ /** 内半径(环形饼图用),默认 ['0%', '60%'] */
12
+ radius?: [string, string];
13
+ /** 是否显示文字标签,默认 true */
14
+ labelShow?: boolean;
15
+ /** 图表标题 */
16
+ title?: string;
17
+ /** 是否显示图例,默认 true */
18
+ legendShow?: boolean;
19
+ /** 是否悬浮提示,默认 true */
20
+ tooltipShow?: boolean;
21
+ /** 业务方额外配置 */
22
+ extraOption?: Record<string, any>;
23
+ /** 是否自适应窗口,默认 true */
24
+ isAutoResize?: boolean;
25
+ };
26
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
27
+ width: string;
28
+ height: string;
29
+ legendShow: boolean;
30
+ tooltipShow: boolean;
31
+ isAutoResize: boolean;
32
+ pieData: {
33
+ name: string;
34
+ value: number;
35
+ }[];
36
+ isRing: boolean;
37
+ labelShow: boolean;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ chartRef: HTMLDivElement;
40
+ }, HTMLDivElement>;
41
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as EeBaseRadar } from './src/index.vue';
2
+ export default EeBaseRadar;
@@ -0,0 +1,47 @@
1
+ type __VLS_Props = {
2
+ width?: string;
3
+ height?: string;
4
+ /** 雷达维度指标 [{ name, max }] */
5
+ indicator?: {
6
+ name: string;
7
+ max: number;
8
+ }[];
9
+ /** 各组维度数值 [{ name, value }] */
10
+ seriesData?: {
11
+ name: string;
12
+ value: number[];
13
+ color?: string;
14
+ }[];
15
+ /** 是否填充区域 */
16
+ isFill?: boolean;
17
+ /** 图表标题 */
18
+ title?: string;
19
+ /** 是否显示图例,默认 true */
20
+ legendShow?: boolean;
21
+ /** 是否悬浮提示,默认 true */
22
+ tooltipShow?: boolean;
23
+ /** 业务方额外配置 */
24
+ extraOption?: Record<string, any>;
25
+ /** 是否自适应窗口,默认 true */
26
+ isAutoResize?: boolean;
27
+ };
28
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
+ width: string;
30
+ height: string;
31
+ seriesData: {
32
+ name: string;
33
+ value: number[];
34
+ color?: string;
35
+ }[];
36
+ legendShow: boolean;
37
+ tooltipShow: boolean;
38
+ isAutoResize: boolean;
39
+ indicator: {
40
+ name: string;
41
+ max: number;
42
+ }[];
43
+ isFill: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ chartRef: HTMLDivElement;
46
+ }, HTMLDivElement>;
47
+ export default _default;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * ECharts 全局默认样式配置
3
+ *
4
+ * 修改此文件后,所有使用封装图表组件的地方自动同步更新样式。
5
+ * 业务方可通过 extraOption prop 按需覆盖任意字段。
6
+ */
7
+ /** 默认调色板(10 色) */
8
+ export declare const DEFAULT_COLOR: string[];
9
+ /** 默认字体 */
10
+ export declare const DEFAULT_FONT_FAMILY = "PingFang SC, Microsoft YaHei, sans-serif";
11
+ /**
12
+ * 全局 ECharts 默认配置
13
+ *
14
+ * 结构遵循 ECharts option 规范,合并优先级:globalDefault < componentDefault < extraOption
15
+ */
16
+ export declare const GLOBAL_CHART_CONFIG: Record<string, any>;
17
+ /** 图表 loading 占位配置 */
18
+ export declare const LOADING_OPTION: {
19
+ text: string;
20
+ color: string;
21
+ textColor: string;
22
+ maskColor: string;
23
+ fontSize: number;
24
+ };
25
+ /**
26
+ * 深度合并配置(数组替换而非合并)
27
+ *
28
+ * @param target - 目标对象
29
+ * @param source - 源对象(优先级高于 target)
30
+ * @returns 合并后的新对象
31
+ */
32
+ export declare function deepMerge<T extends Record<string, any>>(target: T, source?: Partial<T>): T;
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as EeBaseBar } from './BaseBar';
3
+ import { default as EeBaseLine } from './BaseLine';
4
+ import { default as EeBasePie } from './BasePie';
5
+ import { default as EeBaseRadar } from './BaseRadar';
6
+ export { EeBaseBar, EeBaseLine, EeBasePie, EeBaseRadar };
7
+ /** 图表组件集合,供 app.use() 批量注册 */
8
+ export declare const chartComponents: Plugin[];
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue';
2
+ import * as echarts from 'echarts';
3
+ export interface UseChartOptions {
4
+ /** 是否启用自适应 resize */
5
+ isAutoResize?: boolean;
6
+ }
7
+ /**
8
+ * 创建图表控制器
9
+ *
10
+ * @param domRef - 图表容器 DOM 引用
11
+ * @param options - 配置项
12
+ */
13
+ export declare function useChart(domRef: Ref<HTMLElement | undefined>, options?: UseChartOptions): {
14
+ instance: import('vue').ShallowRef<echarts.ECharts | undefined, echarts.ECharts | undefined>;
15
+ isReady: Ref<boolean, boolean>;
16
+ setOption: (option: Record<string, any>, notMerge?: boolean) => void;
17
+ handleResize: () => void;
18
+ showLoading: () => void;
19
+ hideLoading: () => void;
20
+ destroy: () => void;
21
+ };
@@ -0,0 +1,2 @@
1
+ import { default as EeDeptCascader } from './src/index.vue';
2
+ export default EeDeptCascader;
@@ -0,0 +1,26 @@
1
+ import { EeDeptCascaderProps } from '../type';
2
+ declare const _default: import('vue').DefineComponent<EeDeptCascaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ clear: () => any;
4
+ "update:modelValue": (val: any) => any;
5
+ change: (val: any) => any;
6
+ blur: (evt: FocusEvent) => any;
7
+ focus: (evt: FocusEvent) => any;
8
+ "load-success": (options: any[]) => any;
9
+ }, string, import('vue').PublicProps, Readonly<EeDeptCascaderProps> & Readonly<{
10
+ onClear?: (() => any) | undefined;
11
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
12
+ onChange?: ((val: any) => any) | undefined;
13
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
14
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
15
+ "onLoad-success"?: ((options: any[]) => any) | undefined;
16
+ }>, {
17
+ labelField: string;
18
+ valueField: string;
19
+ size: "large" | "default" | "small";
20
+ detailEchoUrl: string;
21
+ clearable: boolean;
22
+ deptApiUrl: string;
23
+ childrenField: string;
24
+ showAllLevels: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { AxiosInstance } from 'axios';
2
+ /** EeDeptCascader 组件属性 */
3
+ export interface EeDeptCascaderProps {
4
+ /** 双向绑定值 */
5
+ modelValue?: string | number | (string | number)[];
6
+ /** 部门树形接口地址,默认 /api/system/dept/tree */
7
+ deptApiUrl?: string;
8
+ /** 详情回显接口地址,默认 /api/system/dept/detail */
9
+ detailEchoUrl?: string;
10
+ /** 选项 label 字段名,默认 label */
11
+ labelField?: string;
12
+ /** 选项 value 字段名,默认 value */
13
+ valueField?: string;
14
+ /** 树形子节点字段名,默认 children */
15
+ childrenField?: string;
16
+ /** 是否展示完整层级路径,默认 true */
17
+ showAllLevels?: boolean;
18
+ /** 固定附加请求参数 */
19
+ extraParams?: Record<string, any>;
20
+ /** 外部 axios 请求实例,不传则从全局配置获取 */
21
+ requestInstance?: AxiosInstance;
22
+ /** 占位符文本 */
23
+ placeholder?: string;
24
+ /** 是否可清空,默认 true */
25
+ clearable?: boolean;
26
+ /** 是否禁用 */
27
+ disabled?: boolean;
28
+ /** 组件尺寸 */
29
+ size?: 'large' | 'default' | 'small';
30
+ }
31
+ /** EeDeptCascader 组件事件 */
32
+ export interface EeDeptCascaderEmits {
33
+ (e: 'update:modelValue', val: string | number | (string | number)[]): void;
34
+ (e: 'change', val: string | number | (string | number)[]): void;
35
+ (e: 'clear'): void;
36
+ (e: 'blur', evt: FocusEvent): void;
37
+ (e: 'focus', evt: FocusEvent): void;
38
+ (e: 'load-success', options: any[]): void;
39
+ }
@@ -1,27 +1,28 @@
1
- import { DictOption } from '../../../utils/types';
2
- type __VLS_Props = {
3
- modelValue?: string | number | unknown[];
4
- options?: DictOption[];
5
- request?: () => Promise<DictOption[]>;
6
- valueField?: string;
7
- labelField?: string;
8
- size?: 'large' | 'default' | 'small';
9
- };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
- "update:modelValue": (val: string | number | unknown[]) => any;
12
- change: (val: string | number | unknown[]) => any;
1
+ import { EeDictSelectProps } from '../type';
2
+ declare const _default: import('vue').DefineComponent<EeDictSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ search: (keyword: string) => any;
13
4
  clear: () => any;
14
- focus: (evt: FocusEvent) => any;
5
+ "update:modelValue": (val: string | number | (string | number)[]) => any;
6
+ change: (val: string | number | (string | number)[]) => any;
15
7
  blur: (evt: FocusEvent) => any;
16
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- "onUpdate:modelValue"?: ((val: string | number | unknown[]) => any) | undefined;
18
- onChange?: ((val: string | number | unknown[]) => any) | undefined;
8
+ focus: (evt: FocusEvent) => any;
9
+ "load-success": (options: any[]) => any;
10
+ }, string, import('vue').PublicProps, Readonly<EeDictSelectProps> & Readonly<{
11
+ onSearch?: ((keyword: string) => any) | undefined;
19
12
  onClear?: (() => any) | undefined;
20
- onFocus?: ((evt: FocusEvent) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
14
+ onChange?: ((val: string | number | (string | number)[]) => any) | undefined;
21
15
  onBlur?: ((evt: FocusEvent) => any) | undefined;
16
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
17
+ "onLoad-success"?: ((options: any[]) => any) | undefined;
22
18
  }>, {
23
- valueField: string;
19
+ pageSize: number;
20
+ searchKey: string;
24
21
  labelField: string;
22
+ valueField: string;
25
23
  size: "large" | "default" | "small";
24
+ mode: "single" | "multiple";
25
+ clearable: boolean;
26
+ filterable: boolean;
26
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
28
  export default _default;
@@ -0,0 +1,54 @@
1
+ import { AxiosInstance } from 'axios';
2
+ /** EeDictSelect 组件属性 */
3
+ export interface EeDictSelectProps {
4
+ /** 双向绑定值 */
5
+ modelValue?: string | number | (string | number)[];
6
+ /** 字典编码,传入则自动调用默认字典列表接口 */
7
+ dictCode?: string;
8
+ /** 自定义远程字典接口地址,优先级高于 dictCode,覆盖默认字典接口 */
9
+ apiUrl?: string;
10
+ /** 自定义字典详情回显接口地址,不传则使用默认字典详情接口 */
11
+ detailEchoUrl?: string;
12
+ /** 选择模式,默认 single */
13
+ mode?: 'single' | 'multiple';
14
+ /** 选项 label 字段名,默认 label */
15
+ labelField?: string;
16
+ /** 选项 value 字段名,默认 value */
17
+ valueField?: string;
18
+ /** 搜索关键词参数字段名,默认 keyword */
19
+ searchKey?: string;
20
+ /** 每页条数,默认 20 */
21
+ pageSize?: number;
22
+ /** 固定附加请求参数 */
23
+ extraParams?: Record<string, any>;
24
+ /** 外部 axios 请求实例,不传则从全局配置获取 */
25
+ requestInstance?: AxiosInstance;
26
+ /** 静态选项数据,优先级最高,传入后不走接口 */
27
+ options?: Array<{
28
+ label: string;
29
+ value: any;
30
+ disabled?: boolean;
31
+ }>;
32
+ /** 占位符文本 */
33
+ placeholder?: string;
34
+ /** 是否可清空,默认 true */
35
+ clearable?: boolean;
36
+ /** 是否禁用 */
37
+ disabled?: boolean;
38
+ /** 是否只读 */
39
+ readonly?: boolean;
40
+ /** 是否可搜索过滤,默认 true */
41
+ filterable?: boolean;
42
+ /** 组件尺寸 */
43
+ size?: 'large' | 'default' | 'small';
44
+ }
45
+ /** EeDictSelect 组件事件 */
46
+ export interface EeDictSelectEmits {
47
+ (e: 'update:modelValue', val: string | number | (string | number)[]): void;
48
+ (e: 'change', val: string | number | (string | number)[]): void;
49
+ (e: 'clear'): void;
50
+ (e: 'blur', evt: FocusEvent): void;
51
+ (e: 'focus', evt: FocusEvent): void;
52
+ (e: 'search', keyword: string): void;
53
+ (e: 'load-success', options: any[]): void;
54
+ }
@@ -62,10 +62,60 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
62
62
  $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
63
63
  onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
64
64
  }>, {
65
- validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
66
- validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
67
- resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
68
- clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
65
+ validate: (callback
66
+ /**
67
+ * EeFormDialog 弹窗表单组件
68
+ *
69
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
70
+ * - 自动根据 fields 配置渲染表单项
71
+ * - 校验规则(rules)
72
+ * - 提交/取消按钮
73
+ * - loading 状态
74
+ */
75
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
76
+ validateField: (props
77
+ /**
78
+ * EeFormDialog 弹窗表单组件
79
+ *
80
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
81
+ * - 自动根据 fields 配置渲染表单项
82
+ * - 校验规则(rules)
83
+ * - 提交/取消按钮
84
+ * - loading 状态
85
+ */
86
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
87
+ /**
88
+ * EeFormDialog 弹窗表单组件
89
+ *
90
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
91
+ * - 自动根据 fields 配置渲染表单项
92
+ * - 校验规则(rules)
93
+ * - 提交/取消按钮
94
+ * - loading 状态
95
+ */
96
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
97
+ resetFields: (props
98
+ /**
99
+ * EeFormDialog 弹窗表单组件
100
+ *
101
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
102
+ * - 自动根据 fields 配置渲染表单项
103
+ * - 校验规则(rules)
104
+ * - 提交/取消按钮
105
+ * - loading 状态
106
+ */
107
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
108
+ clearValidate: (props
109
+ /**
110
+ * EeFormDialog 弹窗表单组件
111
+ *
112
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
113
+ * - 自动根据 fields 配置渲染表单项
114
+ * - 校验规则(rules)
115
+ * - 提交/取消按钮
116
+ * - loading 状态
117
+ */
118
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
69
119
  scrollToField: (prop: import('element-plus').FormItemProp) => void;
70
120
  getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
71
121
  fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
@@ -111,10 +161,60 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
111
161
  }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
112
162
  onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
113
163
  }>, "fields" | "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
114
- validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
115
- validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
116
- resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
117
- clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
164
+ validate: (callback
165
+ /**
166
+ * EeFormDialog 弹窗表单组件
167
+ *
168
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
169
+ * - 自动根据 fields 配置渲染表单项
170
+ * - 校验规则(rules)
171
+ * - 提交/取消按钮
172
+ * - loading 状态
173
+ */
174
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
175
+ validateField: (props
176
+ /**
177
+ * EeFormDialog 弹窗表单组件
178
+ *
179
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
180
+ * - 自动根据 fields 配置渲染表单项
181
+ * - 校验规则(rules)
182
+ * - 提交/取消按钮
183
+ * - loading 状态
184
+ */
185
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback
186
+ /**
187
+ * EeFormDialog 弹窗表单组件
188
+ *
189
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
190
+ * - 自动根据 fields 配置渲染表单项
191
+ * - 校验规则(rules)
192
+ * - 提交/取消按钮
193
+ * - loading 状态
194
+ */
195
+ ?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
196
+ resetFields: (props
197
+ /**
198
+ * EeFormDialog 弹窗表单组件
199
+ *
200
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
201
+ * - 自动根据 fields 配置渲染表单项
202
+ * - 校验规则(rules)
203
+ * - 提交/取消按钮
204
+ * - loading 状态
205
+ */
206
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
207
+ clearValidate: (props
208
+ /**
209
+ * EeFormDialog 弹窗表单组件
210
+ *
211
+ * 基于 el-dialog + el-form 封装的通用弹窗表单,支持:
212
+ * - 自动根据 fields 配置渲染表单项
213
+ * - 校验规则(rules)
214
+ * - 提交/取消按钮
215
+ * - loading 状态
216
+ */
217
+ ?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
118
218
  scrollToField: (prop: import('element-plus').FormItemProp) => void;
119
219
  getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
120
220
  fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;