@aplus-frontend/ui 0.4.1 → 0.4.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 (116) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  2. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  3. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  4. package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
  5. package/es/src/ap-field/select/index.vue.d.ts +423 -1
  6. package/es/src/ap-field/select/index.vue.mjs +4 -3
  7. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  8. package/es/src/ap-field/text/index.vue.d.ts +1 -13
  9. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  10. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  11. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  12. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  13. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  14. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  15. package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
  16. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  17. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  19. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  20. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  21. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  22. package/es/src/ap-list/index.vue.d.ts +1 -1
  23. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  24. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  25. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  26. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  27. package/es/src/ap-table/constants.d.ts +2260 -26
  28. package/es/src/ap-table/context.d.ts +1 -0
  29. package/es/src/ap-table/context.mjs +11 -10
  30. package/es/src/ap-table/utils.d.ts +1168 -8
  31. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  32. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  33. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  34. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  35. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  36. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  37. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  38. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  39. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
  40. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  41. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  42. package/es/src/business/ap-group-search/index.d.ts +444 -4
  43. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  44. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
  45. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  46. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  47. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  48. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  49. package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
  50. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  51. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  52. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  53. package/es/src/editable-table/index.vue.d.ts +1 -1
  54. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  55. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  56. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  57. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  58. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
  59. package/lib/src/ap-field/select/index.vue.d.ts +423 -1
  60. package/lib/src/ap-field/select/index.vue.js +1 -1
  61. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  62. package/lib/src/ap-field/text/index.vue.d.ts +1 -13
  63. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  64. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  65. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  66. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  67. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  68. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  69. package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
  70. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  71. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  72. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  73. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  74. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  75. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  76. package/lib/src/ap-list/index.vue.d.ts +1 -1
  77. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  78. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  79. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  80. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  81. package/lib/src/ap-table/constants.d.ts +2260 -26
  82. package/lib/src/ap-table/context.d.ts +1 -0
  83. package/lib/src/ap-table/context.js +1 -1
  84. package/lib/src/ap-table/utils.d.ts +1168 -8
  85. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  86. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  87. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  88. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  89. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  90. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  91. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  92. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  93. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  94. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  95. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  96. package/lib/src/business/ap-group-search/index.d.ts +444 -4
  97. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  98. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
  99. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  100. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  101. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  102. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  103. package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
  104. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  105. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  106. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  107. package/lib/src/editable-table/index.vue.d.ts +1 -1
  108. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  109. package/package.json +5 -5
  110. package/theme/ap-form/index.css +3 -4
  111. package/theme/ap-form/modal-form.css +3 -4
  112. package/theme/ap-form/modal-form.less +3 -4
  113. package/theme/ap-table/ap-table.css +3 -4
  114. package/theme/ap-table-modal/index.css +3 -4
  115. package/theme/editable-table/index.css +3 -4
  116. package/theme/index.css +3 -4
@@ -1,6 +1,11 @@
1
1
  import { BatchInputGroupProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { FieldMode } from '../../ap-field';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
+ import { FieldMode, ApFieldTextProps } from '../../ap-field';
4
+ import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
+ import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
+ import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
7
+ import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
8
+ import { OnCleanup } from '@vue/reactivity';
4
9
  declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
10
  "update:value": (...args: any[]) => void;
6
11
  }, string, PublicProps, Readonly<BatchInputGroupProps> & Readonly<{
@@ -13,5 +18,131 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
13
18
  allowClear: boolean;
14
19
  emptyText: string;
15
20
  hasAll: boolean;
16
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
+ containerRef: HTMLDivElement;
23
+ inputRef: ({
24
+ $: ComponentInternalInstance;
25
+ $data: {};
26
+ $props: {
27
+ readonly mode?: FieldMode | undefined;
28
+ readonly class?: unknown;
29
+ readonly style?: unknown;
30
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
31
+ readonly lazy?: boolean | undefined;
32
+ readonly size?: ButtonSize;
33
+ readonly hidden?: boolean | undefined;
34
+ readonly onBlur?: FocusEventHandler | undefined;
35
+ readonly onChange?: ChangeEventHandler | undefined;
36
+ readonly onCompositionend?: CompositionEventHandler | undefined;
37
+ readonly onCompositionstart?: CompositionEventHandler | undefined;
38
+ readonly onFocus?: FocusEventHandler | undefined;
39
+ readonly onInput?: ChangeEventHandler | undefined;
40
+ readonly onKeydown?: KeyboardEventHandler | undefined;
41
+ readonly onKeyup?: KeyboardEventHandler | undefined;
42
+ readonly onMousedown?: MouseEventHandler | undefined;
43
+ readonly value?: string | number | undefined;
44
+ readonly disabled?: boolean | undefined;
45
+ readonly bordered?: boolean | undefined;
46
+ readonly prefixCls?: string | undefined;
47
+ readonly name?: string | undefined;
48
+ readonly autocomplete?: string | undefined;
49
+ readonly status?: "" | "error" | "warning" | undefined;
50
+ readonly id?: string | undefined;
51
+ readonly placeholder?: string | number | undefined;
52
+ readonly prefix?: any;
53
+ readonly loading?: boolean | undefined;
54
+ readonly autofocus?: boolean | undefined;
55
+ readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
56
+ readonly suffix?: any;
57
+ readonly focused?: boolean | undefined;
58
+ readonly defaultValue?: string | number | undefined;
59
+ readonly maxlength?: number | undefined;
60
+ readonly showCount?: boolean | ShowCountProps | undefined;
61
+ readonly htmlSize?: number | undefined;
62
+ readonly onPressEnter?: KeyboardEventHandler | undefined;
63
+ readonly onMouseUp?: MouseEventHandler | undefined;
64
+ readonly onRawInput?: ChangeEventHandler | undefined;
65
+ readonly valueModifiers?: Record<string, any> | undefined;
66
+ readonly inputElement?: any;
67
+ readonly triggerFocus?: (() => void) | undefined;
68
+ readonly readonly?: boolean | undefined;
69
+ readonly handleReset?: MouseEventHandler | undefined;
70
+ readonly addonBefore?: any;
71
+ readonly addonAfter?: any;
72
+ readonly clearIcon?: any;
73
+ readonly allowClear?: boolean | undefined;
74
+ readonly emptyText?: string | undefined;
75
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
76
+ $attrs: {
77
+ [x: string]: unknown;
78
+ };
79
+ $refs: {
80
+ [x: string]: unknown;
81
+ };
82
+ $slots: Readonly<{
83
+ [name: string]: Slot<any> | undefined;
84
+ }>;
85
+ $root: ComponentPublicInstance | null;
86
+ $parent: ComponentPublicInstance | null;
87
+ $host: Element | null;
88
+ $emit: (event: "update:value", ...args: any[]) => void;
89
+ $el: any;
90
+ $options: ComponentOptionsBase<Readonly< ApFieldTextProps> & Readonly<{
91
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
92
+ }>, {
93
+ focus: (options?: InputFocusOptions) => void;
94
+ blur: () => void;
95
+ input: any;
96
+ setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
97
+ select: () => void;
98
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
99
+ "update:value": (...args: any[]) => void;
100
+ }, string, {
101
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
102
+ mode: FieldMode;
103
+ disabled: boolean;
104
+ bordered: boolean;
105
+ lazy: boolean;
106
+ allowClear: boolean;
107
+ emptyText: string;
108
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
109
+ beforeCreate?: (() => void) | (() => void)[];
110
+ created?: (() => void) | (() => void)[];
111
+ beforeMount?: (() => void) | (() => void)[];
112
+ mounted?: (() => void) | (() => void)[];
113
+ beforeUpdate?: (() => void) | (() => void)[];
114
+ updated?: (() => void) | (() => void)[];
115
+ activated?: (() => void) | (() => void)[];
116
+ deactivated?: (() => void) | (() => void)[];
117
+ beforeDestroy?: (() => void) | (() => void)[];
118
+ beforeUnmount?: (() => void) | (() => void)[];
119
+ destroyed?: (() => void) | (() => void)[];
120
+ unmounted?: (() => void) | (() => void)[];
121
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
122
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
123
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
124
+ };
125
+ $forceUpdate: () => void;
126
+ $nextTick: nextTick;
127
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
128
+ } & Readonly<{
129
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
130
+ mode: FieldMode;
131
+ disabled: boolean;
132
+ bordered: boolean;
133
+ lazy: boolean;
134
+ allowClear: boolean;
135
+ emptyText: string;
136
+ }> & Omit<Readonly< ApFieldTextProps> & Readonly<{
137
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
138
+ }>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "lazy" | "allowClear" | "emptyText") | "setSelectionRange"> & ShallowUnwrapRef<{
139
+ focus: (options?: InputFocusOptions) => void;
140
+ blur: () => void;
141
+ input: any;
142
+ setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
143
+ select: () => void;
144
+ }> & {} & ComponentCustomProperties & {} & {
145
+ $slots: any;
146
+ }) | null;
147
+ }, HTMLDivElement>;
17
148
  export default _default;
@@ -1,8 +1,273 @@
1
1
  import { BatchInputGroupPopoverInputProps } from '../interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
+ import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
4
+ import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
5
+ import { SizeType } from '@aplus-frontend/antdv/es/button';
6
+ import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
7
+ import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
8
+ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
3
9
  declare const _default: DefineComponent<BatchInputGroupPopoverInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
10
  "update:value": (...args: any[]) => void;
5
11
  }, string, PublicProps, Readonly<BatchInputGroupPopoverInputProps> & Readonly<{
6
12
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
14
+ textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
15
+ rows: NumberConstructor;
16
+ autosize: {
17
+ type: PropType<boolean | AutoSizeType>;
18
+ default: any;
19
+ };
20
+ autoSize: {
21
+ type: PropType<boolean | AutoSizeType>;
22
+ default: any;
23
+ };
24
+ onResize: {
25
+ type: PropType<(size: {
26
+ width: number;
27
+ height: number;
28
+ }) => void>;
29
+ };
30
+ onCompositionstart: {
31
+ type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
32
+ };
33
+ onCompositionend: {
34
+ type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
35
+ };
36
+ valueModifiers: ObjectConstructor;
37
+ size: {
38
+ type: PropType<SizeType>;
39
+ };
40
+ value: {
41
+ type: PropType<string | number>;
42
+ default: any;
43
+ };
44
+ name: StringConstructor;
45
+ type: {
46
+ type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
47
+ default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
48
+ };
49
+ onFocus: PropType<FocusEventHandler>;
50
+ onBlur: PropType<FocusEventHandler>;
51
+ onChange: PropType<ChangeEventHandler>;
52
+ onInput: PropType<ChangeEventHandler>;
53
+ onKeydown: PropType<KeyboardEventHandler>;
54
+ onKeyup: PropType<KeyboardEventHandler>;
55
+ onMousedown: {
56
+ type: PropType<MouseEventHandler>;
57
+ default: any;
58
+ };
59
+ focused: {
60
+ type: BooleanConstructor;
61
+ default: any;
62
+ };
63
+ hidden: {
64
+ type: BooleanConstructor;
65
+ default: any;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ default: any;
70
+ };
71
+ prefixCls: StringConstructor;
72
+ id: StringConstructor;
73
+ autofocus: {
74
+ type: BooleanConstructor;
75
+ default: any;
76
+ };
77
+ autocomplete: StringConstructor;
78
+ readonly: {
79
+ type: BooleanConstructor;
80
+ default: any;
81
+ };
82
+ status: PropType<"" | "error" | "warning">;
83
+ defaultValue: {
84
+ type: PropType<string | number>;
85
+ default: any;
86
+ };
87
+ 'onUpdate:value': PropType<(val: string) => void>;
88
+ loading: {
89
+ type: BooleanConstructor;
90
+ default: any;
91
+ };
92
+ placeholder: {
93
+ type: PropType<string | number>;
94
+ };
95
+ lazy: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ maxlength: NumberConstructor;
100
+ bordered: {
101
+ type: BooleanConstructor;
102
+ default: any;
103
+ };
104
+ showCount: {
105
+ type: PropType<boolean | ShowCountProps>;
106
+ };
107
+ htmlSize: NumberConstructor;
108
+ onPressEnter: PropType<KeyboardEventHandler>;
109
+ onMouseUp: {
110
+ type: PropType<MouseEventHandler>;
111
+ default: any;
112
+ };
113
+ onRawInput: PropType<ChangeEventHandler>;
114
+ inputElement: VueTypeValidableDef<any>;
115
+ triggerFocus: PropType<() => void>;
116
+ handleReset: PropType<MouseEventHandler>;
117
+ clearIcon: VueTypeValidableDef<any>;
118
+ allowClear: {
119
+ type: BooleanConstructor;
120
+ default: any;
121
+ };
122
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
123
+ value: string | number;
124
+ type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
125
+ onMousedown: MouseEventHandler;
126
+ focused: boolean;
127
+ hidden: boolean;
128
+ disabled: boolean;
129
+ autofocus: boolean;
130
+ readonly: boolean;
131
+ defaultValue: string | number;
132
+ loading: boolean;
133
+ lazy: boolean;
134
+ bordered: boolean;
135
+ onMouseUp: MouseEventHandler;
136
+ allowClear: boolean;
137
+ autosize: any;
138
+ autoSize: any;
139
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
140
+ P: {};
141
+ B: {};
142
+ D: {};
143
+ C: {};
144
+ M: {};
145
+ Defaults: {};
146
+ }, Readonly< ExtractPropTypes<{
147
+ rows: NumberConstructor;
148
+ autosize: {
149
+ type: PropType<boolean | AutoSizeType>;
150
+ default: any;
151
+ };
152
+ autoSize: {
153
+ type: PropType<boolean | AutoSizeType>;
154
+ default: any;
155
+ };
156
+ onResize: {
157
+ type: PropType<(size: {
158
+ width: number;
159
+ height: number;
160
+ }) => void>;
161
+ };
162
+ onCompositionstart: {
163
+ type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
164
+ };
165
+ onCompositionend: {
166
+ type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
167
+ };
168
+ valueModifiers: ObjectConstructor;
169
+ size: {
170
+ type: PropType<SizeType>;
171
+ };
172
+ value: {
173
+ type: PropType<string | number>;
174
+ default: any;
175
+ };
176
+ name: StringConstructor;
177
+ type: {
178
+ type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
179
+ default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
180
+ };
181
+ onFocus: PropType<FocusEventHandler>;
182
+ onBlur: PropType<FocusEventHandler>;
183
+ onChange: PropType<ChangeEventHandler>;
184
+ onInput: PropType<ChangeEventHandler>;
185
+ onKeydown: PropType<KeyboardEventHandler>;
186
+ onKeyup: PropType<KeyboardEventHandler>;
187
+ onMousedown: {
188
+ type: PropType<MouseEventHandler>;
189
+ default: any;
190
+ };
191
+ focused: {
192
+ type: BooleanConstructor;
193
+ default: any;
194
+ };
195
+ hidden: {
196
+ type: BooleanConstructor;
197
+ default: any;
198
+ };
199
+ disabled: {
200
+ type: BooleanConstructor;
201
+ default: any;
202
+ };
203
+ prefixCls: StringConstructor;
204
+ id: StringConstructor;
205
+ autofocus: {
206
+ type: BooleanConstructor;
207
+ default: any;
208
+ };
209
+ autocomplete: StringConstructor;
210
+ readonly: {
211
+ type: BooleanConstructor;
212
+ default: any;
213
+ };
214
+ status: PropType<"" | "error" | "warning">;
215
+ defaultValue: {
216
+ type: PropType<string | number>;
217
+ default: any;
218
+ };
219
+ 'onUpdate:value': PropType<(val: string) => void>;
220
+ loading: {
221
+ type: BooleanConstructor;
222
+ default: any;
223
+ };
224
+ placeholder: {
225
+ type: PropType<string | number>;
226
+ };
227
+ lazy: {
228
+ type: BooleanConstructor;
229
+ default: boolean;
230
+ };
231
+ maxlength: NumberConstructor;
232
+ bordered: {
233
+ type: BooleanConstructor;
234
+ default: any;
235
+ };
236
+ showCount: {
237
+ type: PropType<boolean | ShowCountProps>;
238
+ };
239
+ htmlSize: NumberConstructor;
240
+ onPressEnter: PropType<KeyboardEventHandler>;
241
+ onMouseUp: {
242
+ type: PropType<MouseEventHandler>;
243
+ default: any;
244
+ };
245
+ onRawInput: PropType<ChangeEventHandler>;
246
+ inputElement: VueTypeValidableDef<any>;
247
+ triggerFocus: PropType<() => void>;
248
+ handleReset: PropType<MouseEventHandler>;
249
+ clearIcon: VueTypeValidableDef<any>;
250
+ allowClear: {
251
+ type: BooleanConstructor;
252
+ default: any;
253
+ };
254
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
255
+ value: string | number;
256
+ type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
257
+ onMousedown: MouseEventHandler;
258
+ focused: boolean;
259
+ hidden: boolean;
260
+ disabled: boolean;
261
+ autofocus: boolean;
262
+ readonly: boolean;
263
+ defaultValue: string | number;
264
+ loading: boolean;
265
+ lazy: boolean;
266
+ bordered: boolean;
267
+ onMouseUp: MouseEventHandler;
268
+ allowClear: boolean;
269
+ autosize: any;
270
+ autoSize: any;
271
+ }> | null;
272
+ }, HTMLDivElement>;
8
273
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("lodash-unified"),S=require("vue"),m=require("./useTableRefresh.js");function g(o){return o===!0?{}:o===!1?{refreshBefore:()=>!1}:o}function v(o){const a=S.ref(null),{isShowRowSelection:i=!0,clearSelectionOnRequest:f=!0,transformSearchFormValues:s,api:l,tableRefresh:d=!1,...h}=o||{};let n=null;const c=()=>{var e,r;(r=(e=a.value)==null?void 0:e.rowSelection)==null||r.clearAll()};m.useTableRefresh({...g(d),apTableRef:a});const b=async e=>{n=e.sort;const r=s?s(e):e;try{if(!l)throw new Error("api is not defined");const{records:t,total:p}=await l(r);return f&&c(),{data:t,total:p}}catch(t){return console.error(t),{data:[],total:0}}};return[u.merge({scroll:{x:"100%",y:"100%"},tableLayout:"fixed",columnResizable:!0,class:"ap-table--sticky",request:l?b:void 0,rowSelection:i?{mode:"internal",fixed:"left",columnWidth:50}:void 0,ref(e){a.value=e}},h),{reload:()=>{var e;(e=a.value)==null||e.submit()},reset:()=>{var e;(e=a.value)==null||e.reset()},getSearchFormValues:e=>{var t;const r=((t=a.value)==null?void 0:t.getSearchFormValues(e))||{};return s?s(r):r},getApTableInstance:()=>a.value,getSearchFormValuesAndSorted:e=>{var t;const r=((t=a.value)==null?void 0:t.getSearchFormValues(e))||{};return r.sort=n&&u.cloneDeep(n),s?s(r):r},clearSelection:c}]}exports.usePageListApTable=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("lodash-unified"),S=require("vue"),m=require("./useTableRefresh.js");function g(o){return o===!0?{}:o===!1?{refreshBefore:()=>!1}:o}function v(o){const a=S.ref(null),{isShowRowSelection:i=!0,clearSelectionOnRequest:f=!0,transformSearchFormValues:s,api:l,tableRefresh:d=!1,...h}=o||{};let n=null;const c=()=>{var e,r;(r=(e=a.value)==null?void 0:e.rowSelection)==null||r.clearAll()};m.useTableRefresh({...g(d),apTableRef:a});const b=async e=>{n=e.sort;const r=s?s(e):e;try{if(!l)throw new Error("api is not defined");const{records:t,total:p}=await l(r);return f&&c(),{data:t,total:p}}catch(t){return console.error(t),{data:[],total:0}}};return[u.merge({scroll:{x:"100%",y:"100%"},tableLayout:"fixed",columnResizable:!0,class:"ap-table--sticky",request:l?b:void 0,rowSelection:i?{mode:"internal",fixed:"left",columnWidth:50}:void 0,ref(e){a.value=e},card:!0},h),{reload:()=>{var e;(e=a.value)==null||e.submit()},reset:()=>{var e;(e=a.value)==null||e.reset()},getSearchFormValues:e=>{var t;const r=((t=a.value)==null?void 0:t.getSearchFormValues(e))||{};return s?s(r):r},getApTableInstance:()=>a.value,getSearchFormValuesAndSorted:e=>{var t;const r=((t=a.value)==null?void 0:t.getSearchFormValues(e))||{};return r.sort=n&&u.cloneDeep(n),s?s(r):r},clearSelection:c}]}exports.usePageListApTable=v;
@@ -3,7 +3,7 @@ import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-
3
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  import { UnwrapRefSimple } from '@vue/reactivity';
5
5
  declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & EditableTableFormItemProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  add: (defaultValue?: any, insertIndex?: number) => void;
9
9
  remove: (index: number | number[]) => void;
@@ -6,7 +6,7 @@ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, S
6
6
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
8
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & Partial<{}> & EditableTableProps<RecordType>> & PublicProps;
9
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType> & Partial<{}>> & PublicProps;
10
10
  expose(exposed: ShallowUnwrapRef<{
11
11
  resetFields: () => void;
12
12
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;