@wyfex/ivue 0.14.0 → 0.15.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.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/dist/index.es.js +11 -11
  3. package/dist/index.umd.cjs +11 -11
  4. package/dist/ivue.css +1 -1
  5. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/defaultExtConfig.d.ts +4 -0
  6. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/props.d.ts +1 -1
  7. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/types.d.ts +8 -4
  8. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/props.d.ts +1 -1
  9. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/hook.d.ts +1 -1
  10. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/index.vue.d.ts +7 -7
  11. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/props.d.ts +1 -1
  12. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/types.d.ts +1 -1
  13. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Cascader.vue.d.ts +1 -1
  14. package/dist/types/{UseElForm → components/UseElForm}/components/controls/DatePicker.vue.d.ts +1 -1
  15. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Input.vue.d.ts +1 -1
  16. package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputNumber.vue.d.ts +1 -1
  17. package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputRange.vue.d.ts +1 -1
  18. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Radio.vue.d.ts +1 -1
  19. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Select.vue.d.ts +1 -1
  20. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimePicker.vue.d.ts +1 -1
  21. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimeSelect.vue.d.ts +1 -1
  22. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TreeSelect.vue.d.ts +1 -1
  23. package/dist/types/{UseElForm → components/UseElForm}/hook.d.ts +1 -1
  24. package/dist/types/{UseElForm → components/UseElForm}/props.d.ts +1 -1
  25. package/dist/types/{UseElForm → components/UseElForm}/types.d.ts +1 -1
  26. package/dist/types/{UseElInput → components/UseElInput}/props.d.ts +1 -1
  27. package/dist/types/{UseElSelect → components/UseElSelect}/hook.d.ts +1 -1
  28. package/dist/types/{UseElSelect → components/UseElSelect}/props.d.ts +1 -1
  29. package/dist/types/{UseElTable → components/UseElTable}/components/RecTableColumn.vue.d.ts +1 -1
  30. package/dist/types/{UseElTable → components/UseElTable}/defaultExtConfig.d.ts +5 -0
  31. package/dist/types/{UseElTable → components/UseElTable}/hooks/useElTable.d.ts +1 -1
  32. package/dist/types/{UseElTable → components/UseElTable}/hooks/useTableColumnMinWidth.d.ts +1 -1
  33. package/dist/types/components/UseElTable/hooks/useTableHeightAdaptive.d.ts +5 -0
  34. package/dist/types/{UseElTable → components/UseElTable}/props.d.ts +1 -1
  35. package/dist/types/{UseElTable → components/UseElTable}/types.d.ts +7 -2
  36. package/dist/types/{UseElTable → components/UseElTable}/utils.d.ts +1 -1
  37. package/dist/types/components/UseIconfont/index.vue.d.ts +50 -0
  38. package/dist/types/components/UseIconfont/props.d.ts +23 -0
  39. package/dist/types/{UseRender → components/UseRender}/props.d.ts +1 -1
  40. package/dist/types/{index.d.ts → components/index.d.ts} +1 -0
  41. package/package.json +5 -5
  42. package/src/components/UseElConfigProvider/defaultExtConfig.ts +1 -0
  43. package/src/components/UseElConfigProvider/types.ts +6 -2
  44. package/src/components/UseElTable/defaultExtConfig.ts +11 -0
  45. package/src/components/UseElTable/props.ts +1 -1
  46. package/src/components/UseElTable/types.ts +9 -2
  47. package/src/components/UseIconfont/props.ts +40 -0
  48. package/dist/types/UseElTable/hooks/useTableHeightAdaptive.d.ts +0 -4
  49. package/dist/types/{UseElButton → components/UseElButton}/defaultExtConfig.d.ts +0 -0
  50. package/dist/types/{UseElButton → components/UseElButton}/hook.d.ts +0 -0
  51. package/dist/types/{UseElButton → components/UseElButton}/index.vue.d.ts +0 -0
  52. package/dist/types/{UseElButton → components/UseElButton}/props.d.ts +0 -0
  53. package/dist/types/{UseElButton → components/UseElButton}/types.d.ts +0 -0
  54. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/index.vue.d.ts +0 -0
  55. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/index.vue.d.ts +0 -0
  56. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/types.d.ts +0 -0
  57. package/dist/types/{UseElDialog → components/UseElDialog}/hook.d.ts +0 -0
  58. package/dist/types/{UseElDialog → components/UseElDialog}/index.vue.d.ts +0 -0
  59. package/dist/types/{UseElDialog → components/UseElDialog}/props.d.ts +0 -0
  60. package/dist/types/{UseElDialog → components/UseElDialog}/types.d.ts +0 -0
  61. package/dist/types/{UseElDrawer → components/UseElDrawer}/hook.d.ts +0 -0
  62. package/dist/types/{UseElDrawer → components/UseElDrawer}/index.vue.d.ts +0 -0
  63. package/dist/types/{UseElDrawer → components/UseElDrawer}/props.d.ts +0 -0
  64. package/dist/types/{UseElDrawer → components/UseElDrawer}/types.d.ts +0 -0
  65. package/dist/types/{UseElForm → components/UseElForm}/components/QueryForm.vue.d.ts +0 -0
  66. package/dist/types/{UseElForm → components/UseElForm}/components/RowForm.vue.d.ts +0 -0
  67. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Switch.vue.d.ts +0 -0
  68. package/dist/types/{UseElForm → components/UseElForm}/components/useQueryColSpan.d.ts +0 -0
  69. package/dist/types/{UseElForm → components/UseElForm}/index.vue.d.ts +0 -0
  70. package/dist/types/{UseElInput → components/UseElInput}/index.vue.d.ts +0 -0
  71. package/dist/types/{UseElInput → components/UseElInput}/types.d.ts +0 -0
  72. package/dist/types/{UseElSelect → components/UseElSelect}/index.vue.d.ts +0 -0
  73. package/dist/types/{UseElSelect → components/UseElSelect}/types.d.ts +0 -0
  74. package/dist/types/{UseElSwitch → components/UseElSwitch}/index.vue.d.ts +0 -0
  75. package/dist/types/{UseElSwitch → components/UseElSwitch}/props.d.ts +0 -0
  76. package/dist/types/{UseElTable → components/UseElTable}/components/EditableCell.vue.d.ts +0 -0
  77. package/dist/types/{UseElTable → components/UseElTable}/components/Selection.vue.d.ts +0 -0
  78. package/dist/types/{UseElTable → components/UseElTable}/components/Span.vue.d.ts +0 -0
  79. package/dist/types/{UseElTable → components/UseElTable}/hooks/usePagination.d.ts +0 -0
  80. package/dist/types/{UseElTable → components/UseElTable}/hooks/useSelection.d.ts +2 -2
  81. /package/dist/types/{UseElTable → components/UseElTable}/index.vue.d.ts +0 -0
  82. /package/dist/types/{UseLineTitle → components/UseLineTitle}/defaultExtConfig.d.ts +0 -0
  83. /package/dist/types/{UseLineTitle → components/UseLineTitle}/index.vue.d.ts +0 -0
  84. /package/dist/types/{UseLineTitle → components/UseLineTitle}/props.d.ts +0 -0
  85. /package/dist/types/{UseLineTitle → components/UseLineTitle}/types.d.ts +0 -0
  86. /package/dist/types/{UseRender → components/UseRender}/hook.d.ts +0 -0
  87. /package/dist/types/{UseRender → components/UseRender}/index.vue.d.ts +0 -0
  88. /package/dist/types/{UseRender → components/UseRender}/types.d.ts +0 -0
  89. /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/index.vue.d.ts +0 -0
  90. /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/props.d.ts +0 -0
@@ -4,6 +4,10 @@ declare const _default: {
4
4
  label: string;
5
5
  children: string;
6
6
  };
7
+ table: {
8
+ bottomOffset: number;
9
+ modalFooterHeight: number;
10
+ };
7
11
  debug: {
8
12
  open: false;
9
13
  type: "primary";
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { UploadConfig } from '../../../types';
2
+ import { UploadConfig } from '../../types';
3
3
  import { ExtConfig } from './types';
4
4
  declare const _default: {
5
5
  language: {
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { default as componentProps } from './props';
3
- import { DictProps } from '../../../types';
4
- import { LogType } from '../../../hooks/useLog';
3
+ import { DictProps } from '../../types';
4
+ import { LogType } from '../../hooks/useLog';
5
5
  export type Props = ExtractPropTypes<typeof componentProps>;
6
6
  export interface Debug {
7
7
  open: boolean;
@@ -9,6 +9,10 @@ export interface Debug {
9
9
  toJson: boolean;
10
10
  }
11
11
  export interface ExtConfig {
12
- dictProps: DictProps;
13
- debug: Debug;
12
+ dictProps?: DictProps;
13
+ table?: {
14
+ bottomOffset: number;
15
+ modalFooterHeight?: number;
16
+ };
17
+ debug?: Debug;
14
18
  }
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { RenderConfig } from '../../../types';
2
+ import { RenderConfig } from '../../types';
3
3
  declare const _default: {
4
4
  modelValue: {
5
5
  type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { ConfigColumn, Emits, Props } from './types';
3
- import { GlobalConfig, RenderConfig } from '../../../types';
3
+ import { GlobalConfig, RenderConfig } from '../../types';
4
4
  export declare const useElDescriptions: ({ props, emits, globalConfig }: {
5
5
  props: Props;
6
6
  emits: Emits;
@@ -1,4 +1,4 @@
1
- import { RenderConfig } from '../../../types';
1
+ import { RenderConfig } from '../../types';
2
2
  declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
3
  configs: {
4
4
  type: import('vue').PropType<import('./types').ConfigColumn[]>;
@@ -13,11 +13,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
13
13
  default: boolean;
14
14
  };
15
15
  dictMap: {
16
- type: import('vue').PropType<import('../../../types').DictMap>;
16
+ type: import('vue').PropType<import('../../types').DictMap>;
17
17
  default: () => {};
18
18
  };
19
19
  dictProps: {
20
- type: import('vue').PropType<import('../../../types').DictProps>;
20
+ type: import('vue').PropType<import('../../types').DictProps>;
21
21
  default: () => {};
22
22
  };
23
23
  column: {
@@ -60,11 +60,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
60
60
  default: boolean;
61
61
  };
62
62
  dictMap: {
63
- type: import('vue').PropType<import('../../../types').DictMap>;
63
+ type: import('vue').PropType<import('../../types').DictMap>;
64
64
  default: () => {};
65
65
  };
66
66
  dictProps: {
67
- type: import('vue').PropType<import('../../../types').DictProps>;
67
+ type: import('vue').PropType<import('../../types').DictProps>;
68
68
  default: () => {};
69
69
  };
70
70
  column: {
@@ -94,9 +94,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
94
94
  }>> & Readonly<{
95
95
  onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
96
96
  }>, {
97
- dictMap: import('../../../types').DictMap;
97
+ dictMap: import('../../types').DictMap;
98
98
  useRender: boolean | RenderConfig;
99
- dictProps: import('../../../types').DictProps;
99
+ dictProps: import('../../types').DictProps;
100
100
  column: number;
101
101
  border: boolean;
102
102
  labelWidth: string | number;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ConfigColumn } from './types';
3
- import { DictMap, DictProps, RenderConfig } from '../../../types';
3
+ import { DictMap, DictProps, RenderConfig } from '../../types';
4
4
  declare const _default: {
5
5
  configs: {
6
6
  type: PropType<ConfigColumn[]>;
@@ -1,5 +1,5 @@
1
1
  import { Component, ExtractPropTypes } from 'vue';
2
- import { EditAttrs, RenderConfig, UseDict } from '../../../types';
2
+ import { EditAttrs, RenderConfig, UseDict } from '../../types';
3
3
  import { default as componentProps } from './props';
4
4
  export type Props = ExtractPropTypes<typeof componentProps>;
5
5
  export interface Emits {
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { DictMap, GlobalConfig } from '../../../../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  modelValue: string | string[] | undefined;
5
5
  item: FormColumn;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { DictMap, GlobalConfig } from '../../../../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { DictMap, GlobalConfig } from '../../../../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  modelValue: string | number | boolean | string[] | number[];
5
5
  item: FormColumn;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { GlobalConfig } from '../../../../../types';
2
+ import { GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { FormColumn } from '../../types';
2
- import { DictMap, GlobalConfig } from '../../../../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../types';
3
3
  type __VLS_Props = {
4
4
  item: FormColumn;
5
5
  formModel: Record<string, any>;
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { Emits, FormColumn, Props } from './types';
3
- import { GlobalConfig } from '../../../types';
3
+ import { GlobalConfig } from '../../types';
4
4
  export declare const useElForm: ({ props, emits, globalConfig }: {
5
5
  props: Props;
6
6
  emits: Emits;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { FormColumn, QueryConfig } from './types';
3
- import { DictMap, DictProps, RenderConfig } from '../../../types';
3
+ import { DictMap, DictProps, RenderConfig } from '../../types';
4
4
  declare const _default: {
5
5
  formColumns: {
6
6
  type: PropType<FormColumn[]>;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { default as componentProps } from './props';
3
- import { RenderConfig, UseDict } from '../../../types';
3
+ import { RenderConfig, UseDict } from '../../types';
4
4
  export type Props = ExtractPropTypes<typeof componentProps>;
5
5
  export interface Emits {
6
6
  (e: 'onDictKeys', value?: string[]): void;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { RenderConfig } from '../../../types';
2
+ import { RenderConfig } from '../../types';
3
3
  declare const _default: {
4
4
  modelValue: {
5
5
  type: (StringConstructor | NumberConstructor)[];
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { Emits, Props } from './types';
3
- import { GlobalConfig } from '../../../types';
3
+ import { GlobalConfig } from '../../types';
4
4
  export declare const useElSelect: ({ props, emits, globalConfig }: {
5
5
  props: Props;
6
6
  emits: Emits;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { DictProps, RenderConfig } from '../../../types';
2
+ import { DictProps, RenderConfig } from '../../types';
3
3
  declare const _default: {
4
4
  modelValue: {
5
5
  type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TableColumn, Props } from '../types';
3
- import { GlobalConfig } from '../../../../types';
3
+ import { GlobalConfig } from '../../../types';
4
4
  declare var __VLS_9: {
5
5
  label: string | undefined;
6
6
  prop: string | undefined;
@@ -5,6 +5,11 @@ declare const _default: {
5
5
  borderBottom: string;
6
6
  };
7
7
  };
8
+ heightAdaptive: {
9
+ isModal: false;
10
+ modalFooterHeight: number;
11
+ bottomOffset: number;
12
+ };
8
13
  selection: {
9
14
  width: number;
10
15
  enableRowClick: false;
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { Emits, Props, TableColumn } from '../types';
3
- import { GlobalConfig } from '../../../../types';
3
+ import { GlobalConfig } from '../../../types';
4
4
  export declare const useElTable: ({ mergedProps, emits, globalConfig }: {
5
5
  mergedProps: ComputedRef<Props>;
6
6
  emits: Emits;
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import { TableInstance } from 'element-plus';
3
3
  import { Props } from '../types';
4
- import { GlobalConfig } from '../../../../types';
4
+ import { GlobalConfig } from '../../../types';
5
5
  export declare const useTableColumnMinWidth: (etRef: Ref<TableInstance | null>, mergedProps: ComputedRef<Props>, globalConfig: ComputedRef<GlobalConfig>) => void;
@@ -0,0 +1,5 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { Props } from '../types';
3
+ export declare const useTableHeightAdaptive: (rootRef: Ref<HTMLDivElement | null>, tableWrapperRef: Ref<HTMLDivElement | null>, mergedProps: ComputedRef<Props>) => {
4
+ tableRealHeight: Ref<string, string>;
5
+ };
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ExtConfig, TableColumn } from './types';
3
- import { DictMap, DictProps } from '../../../types';
3
+ import { DictMap, DictProps } from '../../types';
4
4
  declare const _default: {
5
5
  tableColumns: {
6
6
  type: PropType<TableColumn[]>;
@@ -1,10 +1,10 @@
1
1
  import { Component, ExtractPropTypes } from 'vue';
2
- import { EditAttrs, GlobalConfig, UseDict } from '../../../types';
2
+ import { EditAttrs, GlobalConfig, UseDict } from '../../types';
3
3
  import { default as componentProps } from './props';
4
4
  export type Props = ExtractPropTypes<typeof componentProps>;
5
5
  export interface Emits {
6
6
  (e: 'onDictKeys', value?: string[]): void;
7
- (e: 'update:selectionData', selectionData: any[] | any): void;
7
+ (e: 'update:selectionData', selectionData: any): void;
8
8
  (e: 'update:currentRow', currentRow: any): void;
9
9
  (e: 'update:currentPage', currentPage: number): void;
10
10
  (e: 'update:pageSize', pageSize: number): void;
@@ -68,6 +68,11 @@ export interface ExtConfig {
68
68
  borderBottom?: string;
69
69
  };
70
70
  };
71
+ heightAdaptive?: {
72
+ isModal?: boolean;
73
+ modalFooterHeight?: number;
74
+ bottomOffset?: number;
75
+ };
71
76
  selection?: Selection;
72
77
  index?: {
73
78
  label?: string;
@@ -1,5 +1,5 @@
1
1
  import { TableColumn } from './types';
2
- import { GlobalConfig } from '../../../types';
2
+ import { GlobalConfig } from '../../types';
3
3
  export declare const processFieldProp: (row: Record<string, unknown>, item: TableColumn, globalConfig: GlobalConfig) => {
4
4
  class: string;
5
5
  style: string;
@@ -0,0 +1,50 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ name: {
3
+ type: StringConstructor;
4
+ required: boolean;
5
+ };
6
+ prefix: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ fontSize: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ color: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ clickable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ name: {
24
+ type: StringConstructor;
25
+ required: boolean;
26
+ };
27
+ prefix: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ fontSize: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ color: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ clickable: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ prefix: string;
45
+ fontSize: string;
46
+ color: string;
47
+ clickable: boolean;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ name: {
3
+ type: StringConstructor;
4
+ required: boolean;
5
+ };
6
+ prefix: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ fontSize: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ color: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ clickable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ };
23
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { RenderContent } from '../../../types';
2
+ import { RenderContent } from '../../types';
3
3
  declare const _default: {
4
4
  content: {
5
5
  type: PropType<RenderContent>;
@@ -9,6 +9,7 @@ export { default as UseElInput } from './UseElInput/index.vue';
9
9
  export { default as UseElSelect } from './UseElSelect/index.vue';
10
10
  export { default as UseElSwitch } from './UseElSwitch/index.vue';
11
11
  export { default as UseElTable } from './UseElTable/index.vue';
12
+ export { default as UseIconfont } from './UseIconfont/index.vue';
12
13
  export { default as UseLineTitle } from './UseLineTitle/index.vue';
13
14
  export { default as UseRender } from './UseRender/index.vue';
14
15
  export { default as UseSvgIcon } from './UseSvgIcon/index.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyfex/ivue",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的 iVue 组件库",
5
5
  "homepage": "https://wyfe.top/idocs/ivue",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  "vue": ">=3.2.0 <4.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^25.9.3",
53
+ "@types/node": "^26.0.1",
54
54
  "@vitejs/plugin-vue": "^6.0.7",
55
55
  "@vue/tsconfig": "^0.9.1",
56
56
  "@wyfex/iutils": "file:D:/20260516/wyfex/wyfex-iutils/wyfex-iutils-0.35.0.tgz",
@@ -58,11 +58,11 @@
58
58
  "sass-embedded": "^1.100.0",
59
59
  "typescript": "~6.0.3",
60
60
  "unplugin-auto-import": "^21.0.0",
61
- "unplugin-dts": "^1.0.2",
61
+ "unplugin-dts": "^1.0.3",
62
62
  "unplugin-vue-components": "^32.1.0",
63
- "vite": "^8.0.16",
63
+ "vite": "^8.1.0",
64
64
  "vite-svg-loader": "^5.1.1",
65
- "vue": "^3.5.38",
65
+ "vue": "^3.5.39",
66
66
  "vue-tsc": "^3.3.5"
67
67
  }
68
68
  }
@@ -5,5 +5,6 @@ import type { ExtConfig } from './types'
5
5
  */
6
6
  export default {
7
7
  dictProps: { value: 'value', label: 'label', children: 'children' },
8
+ table: { bottomOffset: 20, modalFooterHeight: 82 },
8
9
  debug: { open: false, type: 'primary', toJson: false }
9
10
  } satisfies ExtConfig
@@ -33,9 +33,13 @@ export interface ExtConfig {
33
33
  /**
34
34
  * 字典属性配置项
35
35
  */
36
- dictProps: DictProps
36
+ dictProps?: DictProps
37
+ /**
38
+ * 表格配置
39
+ */
40
+ table?: { bottomOffset: number; modalFooterHeight?: number }
37
41
  /**
38
42
  * 调试配置项
39
43
  */
40
- debug: Debug
44
+ debug?: Debug
41
45
  }
@@ -15,6 +15,17 @@ export default {
15
15
  borderBottom: '1px solid var(--el-border-color-light)'
16
16
  }
17
17
  },
18
+ /**
19
+ * 高度自适应配置项
20
+ * isModal:是否弹窗模式,弹窗模式自动追加底部按钮预留
21
+ * modalFooterHeight:弹窗底部操作栏固定高度,isModal=true 生效
22
+ * bottomOffset:底部通用预留偏移
23
+ */
24
+ heightAdaptive: {
25
+ isModal: false,
26
+ modalFooterHeight: 82,
27
+ bottomOffset: 20
28
+ },
18
29
  /**
19
30
  * 选择器配置项
20
31
  * 绑定v-model:selectionData="selectionData"则开启选择器 不显式设置type则默认为CHECKBOX复选
@@ -23,7 +23,7 @@ export default {
23
23
  required: true
24
24
  },
25
25
  /**
26
- * 表格高度 如为autoCalc则使用组件内部高度自适应逻辑,可指定具体高度值
26
+ * 表格高度 如为autoCalc则使用组件内部高度自适应逻辑,可指定具体高度值或auto
27
27
  */
28
28
  tableHeight: {
29
29
  type: String,
@@ -14,7 +14,7 @@ export interface Emits {
14
14
  // dictKeys事件
15
15
  (e: 'onDictKeys', value?: string[]): void
16
16
  // 选中数据更新事件(支持 v-model:selectionData)
17
- (e: 'update:selectionData', selectionData: any[] | any): void
17
+ (e: 'update:selectionData', selectionData: any): void
18
18
  // 当前行更新事件(支持 v-model:currentRow)
19
19
  (e: 'update:currentRow', currentRow: any): void
20
20
  // 当前页码更新事件(支持 v-model:currentPage)
@@ -83,7 +83,8 @@ export interface TableColumn {
83
83
  useDict?: boolean | string | UseDict
84
84
  /**
85
85
  * 插槽
86
- * 为true则在模板代码中添加`<template #prop="{ row }"></template>`即可,可传入string自定义具名插槽名称
86
+ * 为true则在模板代码中添加`<template #prop="{ row }"></template>`即可
87
+ * 可传入string自定义具名插槽名称
87
88
  */
88
89
  slot?: boolean | string
89
90
  width?: string | number
@@ -123,6 +124,12 @@ export interface ExtConfig {
123
124
  class?: string
124
125
  style?: { padding?: string; borderBottom?: string }
125
126
  }
127
+ // 高度配置项
128
+ heightAdaptive?: {
129
+ isModal?: boolean
130
+ modalFooterHeight?: number
131
+ bottomOffset?: number
132
+ }
126
133
  // 选择器配置项
127
134
  selection?: Selection
128
135
  // 序号列配置项
@@ -0,0 +1,40 @@
1
+ /**
2
+ * 组件props
3
+ */
4
+ export default {
5
+ /**
6
+ * 图标名称 必传
7
+ */
8
+ name: {
9
+ type: String,
10
+ required: true
11
+ },
12
+ /**
13
+ * 图标前缀
14
+ */
15
+ prefix: {
16
+ type: String,
17
+ default: 'iconfont'
18
+ },
19
+ /**
20
+ * 图标大小
21
+ */
22
+ fontSize: {
23
+ type: String,
24
+ default: '18px'
25
+ },
26
+ /**
27
+ * 图标颜色
28
+ */
29
+ color: {
30
+ type: String,
31
+ default: ''
32
+ },
33
+ /**
34
+ * 是否可点击
35
+ */
36
+ clickable: {
37
+ type: Boolean,
38
+ default: false
39
+ }
40
+ }
@@ -1,4 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare const useTableHeightAdaptive: (rootRef: Ref<HTMLDivElement | null>, tableWrapperRef: Ref<HTMLDivElement | null>) => {
3
- tableRealHeight: Ref<string, string>;
4
- };