@shaonq/vue 1.1.12 → 1.1.15
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/lib/index.d.ts +692 -235
- package/lib/index.js +3091 -1806
- package/lib/style.css +1 -1
- package/package.json +5 -2
package/lib/index.d.ts
CHANGED
|
@@ -2,12 +2,21 @@ import { App } from 'vue';
|
|
|
2
2
|
import { Button } from '@arco-design/web-vue';
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
|
+
import { ComponentProvideOptions } from 'vue';
|
|
6
|
+
import { ComputedOptions } from 'vue';
|
|
5
7
|
import { DefineComponent } from 'vue';
|
|
6
8
|
import { ExtractPropTypes } from 'vue';
|
|
9
|
+
import { FormItem } from '@arco-design/web-vue';
|
|
10
|
+
import { MethodOptions } from 'vue';
|
|
7
11
|
import { Modal } from '@arco-design/web-vue';
|
|
12
|
+
import { ModalConfig } from '@arco-design/web-vue';
|
|
13
|
+
import { ModalMethod } from '@arco-design/web-vue';
|
|
14
|
+
import { PrintTemplate } from '@sv-print/hiprint';
|
|
8
15
|
import { PropType } from 'vue';
|
|
9
16
|
import { PublicProps } from 'vue';
|
|
10
17
|
import { Ref } from 'vue';
|
|
18
|
+
import { SelectOptionData } from '@arco-design/web-vue';
|
|
19
|
+
import { Size } from '@arco-design/web-vue';
|
|
11
20
|
import { TablePublicMethods } from 'vxe-table';
|
|
12
21
|
import { VxeColumnPropTypes } from 'vxe-table';
|
|
13
22
|
import { VxeTable } from 'vxe-table';
|
|
@@ -25,6 +34,10 @@ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
|
|
|
25
34
|
|
|
26
35
|
declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
|
|
27
36
|
|
|
37
|
+
declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
38
|
+
|
|
39
|
+
declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
|
|
40
|
+
|
|
28
41
|
declare type __VLS_Prettify<T> = {
|
|
29
42
|
[K in keyof T]: T[K];
|
|
30
43
|
} & {};
|
|
@@ -37,6 +50,14 @@ declare type __VLS_Prettify_3<T> = {
|
|
|
37
50
|
[K in keyof T]: T[K];
|
|
38
51
|
} & {};
|
|
39
52
|
|
|
53
|
+
declare type __VLS_Prettify_4<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
56
|
+
|
|
57
|
+
declare type __VLS_Prettify_5<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
|
|
40
61
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
62
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
63
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
@@ -64,6 +85,24 @@ declare type __VLS_TypePropsToRuntimeProps_3<T> = {
|
|
|
64
85
|
};
|
|
65
86
|
};
|
|
66
87
|
|
|
88
|
+
declare type __VLS_TypePropsToRuntimeProps_4<T> = {
|
|
89
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
90
|
+
type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
|
|
91
|
+
} : {
|
|
92
|
+
type: PropType<T[K]>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
declare type __VLS_TypePropsToRuntimeProps_5<T> = {
|
|
98
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
99
|
+
type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
|
|
100
|
+
} : {
|
|
101
|
+
type: PropType<T[K]>;
|
|
102
|
+
required: true;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
67
106
|
declare type __VLS_WithDefaults<P, D> = {
|
|
68
107
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
108
|
default: D[K];
|
|
@@ -82,6 +121,18 @@ declare type __VLS_WithDefaults_3<P, D> = {
|
|
|
82
121
|
}> : P[K];
|
|
83
122
|
};
|
|
84
123
|
|
|
124
|
+
declare type __VLS_WithDefaults_4<P, D> = {
|
|
125
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
126
|
+
default: D[K];
|
|
127
|
+
}> : P[K];
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
declare type __VLS_WithDefaults_5<P, D> = {
|
|
131
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
|
|
132
|
+
default: D[K];
|
|
133
|
+
}> : P[K];
|
|
134
|
+
};
|
|
135
|
+
|
|
85
136
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
86
137
|
new (): {
|
|
87
138
|
$slots: S;
|
|
@@ -118,16 +169,38 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
118
169
|
};
|
|
119
170
|
};
|
|
120
171
|
|
|
172
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
173
|
+
new (): {
|
|
174
|
+
$slots: S;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
179
|
+
new (): {
|
|
180
|
+
$slots: S;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
|
|
121
184
|
declare type ButtonInstance = InstanceType<typeof Button>;
|
|
122
185
|
|
|
186
|
+
/** 组件属性处理函数签名 */
|
|
187
|
+
declare type ComponentAttrHandler = (record: RecordAny_3, util: OrcFormUtil) => unknown;
|
|
188
|
+
|
|
189
|
+
/** 组件属性允许的值类型 */
|
|
190
|
+
declare type ComponentAttrValue = null | boolean | number | string | RecordAny_3 | RecordAny_3[] | ComponentAttrHandler;
|
|
191
|
+
|
|
123
192
|
declare interface CssType extends Partial<CSSStyleDeclaration>, RecordAny_2 {
|
|
124
193
|
}
|
|
125
194
|
|
|
195
|
+
export declare const deepClone: <T = RecordAny | RecordAny[]>(origin: T) => T;
|
|
196
|
+
|
|
126
197
|
declare const _default: {
|
|
127
198
|
install(Vue: App): void;
|
|
128
199
|
};
|
|
129
200
|
export default _default;
|
|
130
201
|
|
|
202
|
+
export declare const download: (url: string, fileName?: string) => boolean;
|
|
203
|
+
|
|
131
204
|
/**
|
|
132
205
|
* @param name 下载名称
|
|
133
206
|
* @param element HTMLElement
|
|
@@ -136,7 +209,7 @@ export default _default;
|
|
|
136
209
|
* @param {string} option.className 例 class = 'one-page-pdf' ,大量打印必填
|
|
137
210
|
* @param {string} option.success successCallback worker:any => void
|
|
138
211
|
*/
|
|
139
|
-
declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
212
|
+
export declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
140
213
|
/** `pdf page margin`: `[top, left, bottom, right]` */
|
|
141
214
|
margin?: number[];
|
|
142
215
|
/** 启用 `worker` */
|
|
@@ -155,19 +228,65 @@ declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
|
155
228
|
jsPDF?: any;
|
|
156
229
|
} & RecordAny): Promise<void>;
|
|
157
230
|
|
|
158
|
-
|
|
231
|
+
/**
|
|
232
|
+
* 参考文档 1: http://hiprint.io/docs/text
|
|
233
|
+
* 参考文档 2: https://ccsimple.github.io/sv-print-docs/config/provider.html#%E7%A4%BA%E4%BE%8B
|
|
234
|
+
*/
|
|
235
|
+
/** 设计纸张对象 */
|
|
236
|
+
/** 数据对象 */
|
|
237
|
+
declare interface FieldOption {
|
|
238
|
+
/** 元素字段则显示为下拉框显示 */
|
|
239
|
+
field: string;
|
|
240
|
+
/** 元素字段则为输入框显示 */
|
|
241
|
+
text: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export declare function findObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
159
245
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
246
|
+
/** 行数据格式化 千分位|日期 */
|
|
247
|
+
export declare const formatTable: {
|
|
248
|
+
/** 千分位|保留小数 */
|
|
249
|
+
tf: (val: any, digits?: any) => any;
|
|
250
|
+
/** 快捷格式化日期 */
|
|
251
|
+
t: (val: any) => string;
|
|
252
|
+
/** 完整格式化日期 yyyy-MM-dd HH:mm:ss */
|
|
253
|
+
time: (val: any, f?: string) => string;
|
|
254
|
+
/** percent 格式化百分比 */
|
|
255
|
+
p: (val: any, digits?: any, percent?: string) => string;
|
|
167
256
|
};
|
|
168
257
|
|
|
258
|
+
/** 表单组件实例类型 (基于 Arco Design 的 FormItem 组件) */
|
|
259
|
+
declare type FormItemInstance = InstanceType<typeof FormItem>;
|
|
260
|
+
|
|
169
261
|
/** 生成二维码 base64 */
|
|
170
|
-
declare function generateQRcodeBase64(options: RecordAny): string;
|
|
262
|
+
export declare function generateQRcodeBase64(options: RecordAny): string;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* get path object
|
|
266
|
+
* @example
|
|
267
|
+
* ```
|
|
268
|
+
* getData({a:{b:1}},'a.b')
|
|
269
|
+
* // 1
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
export declare function getData(object: RecordAny, path: string, defaultValue?: any): any;
|
|
273
|
+
|
|
274
|
+
export declare const getUniqueId: () => string;
|
|
275
|
+
|
|
276
|
+
/** isArray */
|
|
277
|
+
export declare function isArray(obj: any): obj is any[];
|
|
278
|
+
|
|
279
|
+
/** 是否是空数组 */
|
|
280
|
+
export declare function isEmptyArray(obj: any): boolean;
|
|
281
|
+
|
|
282
|
+
/** 是否是空对象 */
|
|
283
|
+
export declare function isEmptyObject(obj: any): boolean;
|
|
284
|
+
|
|
285
|
+
/** isNumber */
|
|
286
|
+
export declare function isNumber(obj: any): obj is number;
|
|
287
|
+
|
|
288
|
+
/** isObject */
|
|
289
|
+
export declare function isObject(value: unknown): value is Record<string, any>;
|
|
171
290
|
|
|
172
291
|
export declare const locale: {
|
|
173
292
|
enUS: {
|
|
@@ -555,14 +674,16 @@ export declare const locale: {
|
|
|
555
674
|
};
|
|
556
675
|
|
|
557
676
|
/** 日志 */
|
|
558
|
-
declare function log(...args: any[]): void;
|
|
677
|
+
export declare function log(...args: any[]): void;
|
|
559
678
|
|
|
560
|
-
declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, isRoot?: boolean): RecordAny;
|
|
679
|
+
export declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, isRoot?: boolean): RecordAny;
|
|
561
680
|
|
|
562
681
|
declare type ModalInstance = InstanceType<typeof Modal>;
|
|
563
682
|
|
|
564
683
|
/** omit object */
|
|
565
|
-
declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
684
|
+
export declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
685
|
+
|
|
686
|
+
export declare function onConfirm(callback: () => void, options?: ModalConfig, type?: keyof ModalMethod): void;
|
|
566
687
|
|
|
567
688
|
declare function onShow(): void;
|
|
568
689
|
|
|
@@ -570,7 +691,7 @@ declare function onSubmit(): Promise<[boolean, any]>;
|
|
|
570
691
|
|
|
571
692
|
declare function onSubmit_2(): Promise<void>;
|
|
572
693
|
|
|
573
|
-
export declare const OrcDesign: DefineComponent<{
|
|
694
|
+
export declare const OrcDesign: DefineComponent<ExtractPropTypes<{
|
|
574
695
|
readonly: BooleanConstructor;
|
|
575
696
|
data: {
|
|
576
697
|
type: ObjectConstructor;
|
|
@@ -585,7 +706,7 @@ export declare const OrcDesign: DefineComponent<{
|
|
|
585
706
|
default(): {};
|
|
586
707
|
};
|
|
587
708
|
moduleConfig: ArrayConstructor;
|
|
588
|
-
}
|
|
709
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
589
710
|
save: (...args: any[]) => void;
|
|
590
711
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
591
712
|
readonly: BooleanConstructor;
|
|
@@ -602,234 +723,539 @@ export declare const OrcDesign: DefineComponent<{
|
|
|
602
723
|
default(): {};
|
|
603
724
|
};
|
|
604
725
|
moduleConfig: ArrayConstructor;
|
|
605
|
-
}>> & {
|
|
726
|
+
}>> & Readonly<{
|
|
606
727
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
607
|
-
}
|
|
728
|
+
}>, {
|
|
608
729
|
data: Record<string, any>;
|
|
609
730
|
readonly: boolean;
|
|
610
731
|
models: Record<string, any>;
|
|
611
732
|
remoteFuncs: Record<string, any>;
|
|
612
|
-
}, {}>;
|
|
733
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
613
734
|
|
|
614
735
|
export declare const OrcDesignPrint: DefineComponent<{}, {
|
|
615
736
|
getHtml(): any;
|
|
616
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
737
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
617
738
|
|
|
618
|
-
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<{
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
default: string;
|
|
627
|
-
};
|
|
628
|
-
labelAlign: {
|
|
629
|
-
type: PropType<"left" | "right">;
|
|
630
|
-
default: string;
|
|
631
|
-
};
|
|
632
|
-
loading: BooleanConstructor;
|
|
633
|
-
disabled: BooleanConstructor;
|
|
634
|
-
hideSubmit: BooleanConstructor;
|
|
635
|
-
modelValue: {
|
|
636
|
-
type: ObjectConstructor;
|
|
637
|
-
default(): {};
|
|
638
|
-
};
|
|
739
|
+
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
|
|
740
|
+
config?: OrcFormItem[] | undefined;
|
|
741
|
+
labelWidth?: string | undefined;
|
|
742
|
+
labelAlign?: "left" | "right" | undefined;
|
|
743
|
+
loading?: boolean | undefined;
|
|
744
|
+
disabled?: boolean | undefined;
|
|
745
|
+
hideSubmit?: boolean | undefined;
|
|
746
|
+
modelValue?: Record<string, any> | undefined;
|
|
639
747
|
/** 栅格间距 */
|
|
640
|
-
gutter
|
|
641
|
-
type: NumberConstructor;
|
|
642
|
-
default: number;
|
|
643
|
-
};
|
|
748
|
+
gutter?: number | undefined;
|
|
644
749
|
/** 栅格 24 */
|
|
645
|
-
span
|
|
646
|
-
|
|
647
|
-
default: number;
|
|
648
|
-
};
|
|
649
|
-
formProps: {
|
|
650
|
-
type: ObjectConstructor;
|
|
651
|
-
default(): {};
|
|
652
|
-
};
|
|
750
|
+
span?: number | undefined;
|
|
751
|
+
formAttr?: Record<string, any> | undefined;
|
|
653
752
|
/** 栅格grid 优先级低于行 span */
|
|
654
|
-
grid
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
753
|
+
grid?: Record<string, any> | undefined;
|
|
754
|
+
}>, {
|
|
755
|
+
config: () => never[];
|
|
756
|
+
labelWidth: string;
|
|
757
|
+
labelAlign: string;
|
|
758
|
+
loading: boolean;
|
|
759
|
+
disabled: boolean;
|
|
760
|
+
hideSubmit: boolean;
|
|
761
|
+
modelValue: undefined;
|
|
762
|
+
gutter: number;
|
|
763
|
+
span: number;
|
|
764
|
+
formAttr: undefined;
|
|
765
|
+
grid: undefined;
|
|
766
|
+
}>>, {
|
|
659
767
|
onSubmit: typeof onSubmit;
|
|
660
|
-
onReset: (defValue?: Partial<
|
|
661
|
-
[x: string]: any;
|
|
662
|
-
}> | undefined) => void;
|
|
768
|
+
onReset: (defValue?: Partial<any> | undefined) => void;
|
|
663
769
|
resetFields(): void;
|
|
664
|
-
},
|
|
770
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
665
771
|
error: (...args: any[]) => void;
|
|
666
|
-
"update:modelValue": (...args: any[]) => void;
|
|
667
772
|
submit: (...args: any[]) => void;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
config
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
};
|
|
678
|
-
labelAlign: {
|
|
679
|
-
type: PropType<"left" | "right">;
|
|
680
|
-
default: string;
|
|
681
|
-
};
|
|
682
|
-
loading: BooleanConstructor;
|
|
683
|
-
disabled: BooleanConstructor;
|
|
684
|
-
hideSubmit: BooleanConstructor;
|
|
685
|
-
modelValue: {
|
|
686
|
-
type: ObjectConstructor;
|
|
687
|
-
default(): {};
|
|
688
|
-
};
|
|
773
|
+
"update:modelValue": (...args: any[]) => void;
|
|
774
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
|
|
775
|
+
config?: OrcFormItem[] | undefined;
|
|
776
|
+
labelWidth?: string | undefined;
|
|
777
|
+
labelAlign?: "left" | "right" | undefined;
|
|
778
|
+
loading?: boolean | undefined;
|
|
779
|
+
disabled?: boolean | undefined;
|
|
780
|
+
hideSubmit?: boolean | undefined;
|
|
781
|
+
modelValue?: Record<string, any> | undefined;
|
|
689
782
|
/** 栅格间距 */
|
|
690
|
-
gutter
|
|
691
|
-
type: NumberConstructor;
|
|
692
|
-
default: number;
|
|
693
|
-
};
|
|
783
|
+
gutter?: number | undefined;
|
|
694
784
|
/** 栅格 24 */
|
|
695
|
-
span
|
|
696
|
-
|
|
697
|
-
default: number;
|
|
698
|
-
};
|
|
699
|
-
formProps: {
|
|
700
|
-
type: ObjectConstructor;
|
|
701
|
-
default(): {};
|
|
702
|
-
};
|
|
785
|
+
span?: number | undefined;
|
|
786
|
+
formAttr?: Record<string, any> | undefined;
|
|
703
787
|
/** 栅格grid 优先级低于行 span */
|
|
704
|
-
grid
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
788
|
+
grid?: Record<string, any> | undefined;
|
|
789
|
+
}>, {
|
|
790
|
+
config: () => never[];
|
|
791
|
+
labelWidth: string;
|
|
792
|
+
labelAlign: string;
|
|
793
|
+
loading: boolean;
|
|
794
|
+
disabled: boolean;
|
|
795
|
+
hideSubmit: boolean;
|
|
796
|
+
modelValue: undefined;
|
|
797
|
+
gutter: number;
|
|
798
|
+
span: number;
|
|
799
|
+
formAttr: undefined;
|
|
800
|
+
grid: undefined;
|
|
801
|
+
}>>> & Readonly<{
|
|
710
802
|
onError?: ((...args: any[]) => any) | undefined;
|
|
803
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
711
804
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
712
|
-
}
|
|
805
|
+
}>, {
|
|
713
806
|
grid: Record<string, any>;
|
|
714
807
|
loading: boolean;
|
|
715
808
|
disabled: boolean;
|
|
716
809
|
modelValue: Record<string, any>;
|
|
717
810
|
span: number;
|
|
718
|
-
formProps: Record<string, any>;
|
|
719
811
|
config: OrcFormItem[];
|
|
720
812
|
labelWidth: string;
|
|
721
813
|
labelAlign: "left" | "right";
|
|
722
814
|
hideSubmit: boolean;
|
|
723
815
|
gutter: number;
|
|
724
|
-
|
|
816
|
+
formAttr: Record<string, any>;
|
|
817
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
|
|
818
|
+
disabled: boolean;
|
|
819
|
+
value?: any;
|
|
820
|
+
setValue?: ((v: any) => void) | undefined;
|
|
821
|
+
options?: any;
|
|
822
|
+
utils: OrcFormUtil;
|
|
823
|
+
componentAttr: Record<string, any>;
|
|
824
|
+
}) => any>> & {
|
|
725
825
|
row?(_: {}): any;
|
|
726
826
|
default?(_: {
|
|
727
827
|
onSubmit: typeof onSubmit;
|
|
728
828
|
}): any;
|
|
729
829
|
}>;
|
|
730
830
|
|
|
731
|
-
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<
|
|
831
|
+
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<Props_2>, {
|
|
732
832
|
title: string;
|
|
733
833
|
modelValue: undefined;
|
|
734
|
-
|
|
834
|
+
gutter: number;
|
|
835
|
+
size: string;
|
|
836
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
735
837
|
"update:modelValue": (data: RecordAny) => void;
|
|
736
838
|
submit: (data: OrcFormSubmit) => void;
|
|
737
839
|
error: (data: any) => void;
|
|
738
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
840
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<Props_2>, {
|
|
739
841
|
title: string;
|
|
740
842
|
modelValue: undefined;
|
|
741
|
-
|
|
742
|
-
|
|
843
|
+
gutter: number;
|
|
844
|
+
size: string;
|
|
845
|
+
}>>> & Readonly<{
|
|
743
846
|
onError?: ((data: any) => any) | undefined;
|
|
847
|
+
onSubmit?: ((data: OrcFormSubmit) => any) | undefined;
|
|
744
848
|
"onUpdate:modelValue"?: ((data: RecordAny) => any) | undefined;
|
|
745
|
-
}
|
|
849
|
+
}>, {
|
|
746
850
|
title: string;
|
|
851
|
+
size: "medium" | "small" | "mini" | "large";
|
|
747
852
|
modelValue: RecordAny;
|
|
748
|
-
|
|
853
|
+
gutter: number;
|
|
854
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
749
855
|
icon?(_: {}): any;
|
|
750
856
|
default?(_: {
|
|
751
857
|
onSubmit: typeof onSubmit_2;
|
|
752
858
|
onShow: typeof onShow;
|
|
753
859
|
}): any;
|
|
860
|
+
row?(_: {}): any;
|
|
754
861
|
}>;
|
|
755
862
|
|
|
756
|
-
/**
|
|
863
|
+
/**
|
|
864
|
+
* 表单配置项类型定义
|
|
865
|
+
* @description 描述表单字段的元数据和行为规则
|
|
866
|
+
*/
|
|
757
867
|
export declare type OrcFormItem = {
|
|
758
868
|
/**
|
|
759
|
-
*
|
|
760
|
-
* @
|
|
869
|
+
* 组件类型标识
|
|
870
|
+
* @description 支持 Arco 内置组件或自定义 Vue 组件
|
|
871
|
+
* @example
|
|
872
|
+
* - 内置组件: 'a-input'
|
|
873
|
+
* - 自定义组件: defineAsyncComponent(() => import('./custom-component.vue'))
|
|
761
874
|
*/
|
|
762
875
|
type?: string | Component;
|
|
763
|
-
/**
|
|
764
|
-
name
|
|
765
|
-
/**
|
|
766
|
-
model
|
|
767
|
-
/**
|
|
876
|
+
/** 表单项标签文本 */
|
|
877
|
+
name?: string;
|
|
878
|
+
/** 关联数据模型键名 */
|
|
879
|
+
model?: OrcFormUtil['model'];
|
|
880
|
+
/** 是否渲染该表单项 */
|
|
768
881
|
show?: boolean;
|
|
769
|
-
/**
|
|
770
|
-
|
|
771
|
-
|
|
882
|
+
/**
|
|
883
|
+
* 字段默认值
|
|
884
|
+
* @description 根据组件类型自动进行类型推断
|
|
885
|
+
*/
|
|
886
|
+
defaultValue?: Exclude<ComponentAttrValue, ComponentAttrHandler>;
|
|
887
|
+
/** 验证触发时机 */
|
|
772
888
|
validateTrigger?: 'change' | 'input' | 'focus' | 'blur';
|
|
773
|
-
/**
|
|
774
|
-
componentAttr?: Record<string,
|
|
775
|
-
/**
|
|
776
|
-
|
|
777
|
-
|
|
889
|
+
/** 组件原生属性配置 */
|
|
890
|
+
componentAttr?: Record<string, ComponentAttrValue>;
|
|
891
|
+
/**
|
|
892
|
+
* 表单项容器属性
|
|
893
|
+
* @see FormItemInstance 查看可用属性
|
|
894
|
+
*/
|
|
895
|
+
itemAttr?: FormItemInstance['$props'];
|
|
896
|
+
/**
|
|
897
|
+
* 自定义类名配置
|
|
898
|
+
* @description 支持响应式配置函数
|
|
899
|
+
* @param itemConfig - 当前表单项配置
|
|
900
|
+
* @param models - 表单数据模型
|
|
901
|
+
*/
|
|
902
|
+
customClass?: string | ((itemConfig: OrcFormItem, models: RecordAny_3) => string);
|
|
903
|
+
/**
|
|
904
|
+
* 多值序列化配置
|
|
905
|
+
* @description 开启后自动将数组转换为逗号分隔字符串
|
|
906
|
+
* @note 需要组件原生支持多选模式 (需同时配置 componentAttr.multiple)
|
|
907
|
+
*/
|
|
778
908
|
dotNotation?: boolean;
|
|
779
|
-
/**
|
|
909
|
+
/** 数据字典系统编码 */
|
|
780
910
|
datadict?: string;
|
|
781
|
-
/**
|
|
911
|
+
/** 字段级配置选项 */
|
|
782
912
|
options?: {
|
|
783
|
-
/**
|
|
913
|
+
/** 必填标识 */
|
|
784
914
|
required?: boolean;
|
|
785
|
-
/**
|
|
915
|
+
/** 栅格布局宽度 (基于24栅格系统) */
|
|
786
916
|
span?: number;
|
|
787
|
-
/**
|
|
917
|
+
/** 栅格偏移量 */
|
|
918
|
+
offset?: number;
|
|
919
|
+
/** 禁用状态 */
|
|
788
920
|
disabled?: boolean;
|
|
789
|
-
/**
|
|
921
|
+
/** 输入占位符 */
|
|
790
922
|
placeholder?: string;
|
|
791
|
-
/**
|
|
923
|
+
/** 帮助说明文案 */
|
|
792
924
|
help?: string;
|
|
793
|
-
/**
|
|
925
|
+
/** 悬浮提示内容 */
|
|
794
926
|
tooltip?: string;
|
|
927
|
+
/** 选择器选项列表 */
|
|
928
|
+
options?: SelectOptionData[];
|
|
795
929
|
};
|
|
796
|
-
/**
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
/** watch 更新时触发 */
|
|
805
|
-
onUpdate?: (val: any, oldVal: any, util: FormUtilType & OrcFormItem['events']) => void | Promise<void>;
|
|
806
|
-
};
|
|
807
|
-
/** 扩展字符 */
|
|
930
|
+
/**
|
|
931
|
+
* 验证规则配置
|
|
932
|
+
* @description 支持静态配置或动态规则生成函数
|
|
933
|
+
*/
|
|
934
|
+
rules?: RecordAny_3[] | ((val: OrcFormItem, util: OrcFormUtil) => RecordAny_3[]);
|
|
935
|
+
/** 表单事件处理器 */
|
|
936
|
+
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange' | 'onUpdate'>;
|
|
937
|
+
/** 扩展说明字段 */
|
|
808
938
|
note?: string;
|
|
809
939
|
};
|
|
810
940
|
|
|
811
|
-
export declare
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
941
|
+
export declare const OrcFormLayer: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
|
|
942
|
+
|
|
943
|
+
export declare const OrcFormSpace: __VLS_WithTemplateSlots_7< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
944
|
+
default?(_: {}): any;
|
|
945
|
+
}>;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* 表单提交数据结构
|
|
949
|
+
*/
|
|
950
|
+
export declare type OrcFormSubmit = {
|
|
951
|
+
/** 表单数据集合 */
|
|
952
|
+
data: RecordAny_3;
|
|
953
|
+
/** 表单工具方法 */
|
|
954
|
+
utils: {
|
|
955
|
+
/** 控制提交弹窗可见性 */
|
|
956
|
+
setVisible: (a: boolean) => void;
|
|
957
|
+
/** 控制加载状态 */
|
|
958
|
+
setLoading: (a: boolean) => void;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
export declare const OrcFormTable: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
|
|
963
|
+
|
|
964
|
+
declare type OrcFormUtil = {
|
|
965
|
+
/**
|
|
966
|
+
* 获取/查询选项数据
|
|
967
|
+
* @overload@overload 获取指定模型的选项列表
|
|
968
|
+
* @param model - 模型标识符
|
|
969
|
+
*/
|
|
970
|
+
getModelOption(model: string): SelectOptionData[];
|
|
971
|
+
/**
|
|
972
|
+
* @overload@overload 根据值查找特定选项
|
|
973
|
+
* @param model - 模型标识符
|
|
974
|
+
* @param val - 要查找的选项值
|
|
975
|
+
* @returns 匹配的选项对象
|
|
976
|
+
*/
|
|
977
|
+
getModelOption(model: string, val: string): SelectOptionData;
|
|
978
|
+
/** 获取指定模型的值 */
|
|
979
|
+
getModel: (model: string) => any;
|
|
980
|
+
/** 检查指定模型是否可见 */
|
|
981
|
+
getShow: (model: string) => boolean;
|
|
982
|
+
/** 设置指定模型的选项数据 */
|
|
983
|
+
setModelOption: (model: string, val: any) => void;
|
|
984
|
+
/**
|
|
985
|
+
* 设置模型值
|
|
986
|
+
* @param c - 模型键名或键值对对象
|
|
987
|
+
* @param v - 当第一个参数为键名时使用的值
|
|
988
|
+
*/
|
|
989
|
+
setModel: (c: string | RecordAny_3, v?: any) => void;
|
|
990
|
+
/** 控制模型可见性 */
|
|
991
|
+
setShow: (model: string | string[], val: boolean) => void;
|
|
992
|
+
/** 用于双向数据绑定的模型属性 */
|
|
993
|
+
model?: string;
|
|
994
|
+
/** 组件挂载后执行 */
|
|
995
|
+
onMounted?: (util: OrcFormUtil) => any | Promise<any>;
|
|
996
|
+
/** 值改变时触发 */
|
|
997
|
+
onChange?: (val: any, util: OrcFormUtil) => void | Promise<void>;
|
|
998
|
+
/** 响应式更新时触发 */
|
|
999
|
+
onUpdate?: (val: any, oldVal: any, util: OrcFormUtil) => void | Promise<void>;
|
|
1000
|
+
};
|
|
815
1001
|
|
|
816
|
-
export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
1002
|
+
export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
817
1003
|
isShow?: boolean | undefined;
|
|
818
1004
|
isDirection?: boolean | undefined;
|
|
819
1005
|
formProps?: Record<string, any> | undefined;
|
|
820
|
-
}>, {}
|
|
1006
|
+
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
821
1007
|
isShow?: boolean | undefined;
|
|
822
1008
|
isDirection?: boolean | undefined;
|
|
823
1009
|
formProps?: Record<string, any> | undefined;
|
|
824
|
-
}>, {}
|
|
1010
|
+
}>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
825
1011
|
default?(_: {}): any;
|
|
826
1012
|
}>;
|
|
827
1013
|
|
|
828
|
-
export declare const
|
|
1014
|
+
export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
1015
|
+
template: undefined;
|
|
1016
|
+
fields: undefined;
|
|
1017
|
+
printData: undefined;
|
|
1018
|
+
}>>, {
|
|
1019
|
+
hiprintTemplate: Ref<PrintTemplate | undefined, PrintTemplate | undefined>;
|
|
1020
|
+
selectedOptions: Ref<{
|
|
1021
|
+
left?: number | undefined;
|
|
1022
|
+
top?: number | undefined;
|
|
1023
|
+
height?: number | undefined;
|
|
1024
|
+
width?: number | undefined;
|
|
1025
|
+
field?: string | undefined;
|
|
1026
|
+
tableFooterRepeat?: string | undefined;
|
|
1027
|
+
tableBorder?: string | undefined;
|
|
1028
|
+
tableHeaderBorder?: string | undefined;
|
|
1029
|
+
tableHeaderCellBorder?: string | undefined;
|
|
1030
|
+
tableBodyRowBorder?: string | undefined;
|
|
1031
|
+
tableFooterBorder?: string | undefined;
|
|
1032
|
+
fields?: FieldOption[] | undefined;
|
|
1033
|
+
columns?: {
|
|
1034
|
+
width?: number | undefined;
|
|
1035
|
+
checked?: boolean | undefined;
|
|
1036
|
+
fixed?: boolean | undefined;
|
|
1037
|
+
rowspan?: number | undefined;
|
|
1038
|
+
colspan?: number | undefined;
|
|
1039
|
+
title?: string | undefined;
|
|
1040
|
+
field?: string | undefined;
|
|
1041
|
+
halign?: string | undefined;
|
|
1042
|
+
align?: string | undefined;
|
|
1043
|
+
formatter2?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1044
|
+
renderFormatter?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1045
|
+
styler2?: ((value: any, row: any, index: number, options: any) => Record<string, any>) | undefined;
|
|
1046
|
+
stylerHeader?: ((options: any) => Record<string, any>) | undefined;
|
|
1047
|
+
tableTextType?: string | undefined;
|
|
1048
|
+
tableColumnHeight?: string | undefined;
|
|
1049
|
+
tableSummary?: string | undefined;
|
|
1050
|
+
tableSummaryTitle?: string | undefined;
|
|
1051
|
+
tableSummaryText?: string | undefined;
|
|
1052
|
+
tableSummaryAlign?: string | undefined;
|
|
1053
|
+
tableSummaryNumFormat?: number | undefined;
|
|
1054
|
+
upperCase?: string | undefined;
|
|
1055
|
+
}[] | undefined;
|
|
1056
|
+
fontFamily?: string | undefined;
|
|
1057
|
+
fontSize?: string | undefined;
|
|
1058
|
+
fontWeight?: string | undefined;
|
|
1059
|
+
} | undefined, {
|
|
1060
|
+
left?: number | undefined;
|
|
1061
|
+
top?: number | undefined;
|
|
1062
|
+
height?: number | undefined;
|
|
1063
|
+
width?: number | undefined;
|
|
1064
|
+
field?: string | undefined;
|
|
1065
|
+
tableFooterRepeat?: string | undefined;
|
|
1066
|
+
tableBorder?: string | undefined;
|
|
1067
|
+
tableHeaderBorder?: string | undefined;
|
|
1068
|
+
tableHeaderCellBorder?: string | undefined;
|
|
1069
|
+
tableBodyRowBorder?: string | undefined;
|
|
1070
|
+
tableFooterBorder?: string | undefined;
|
|
1071
|
+
fields?: FieldOption[] | undefined;
|
|
1072
|
+
columns?: {
|
|
1073
|
+
width?: number | undefined;
|
|
1074
|
+
checked?: boolean | undefined;
|
|
1075
|
+
fixed?: boolean | undefined;
|
|
1076
|
+
rowspan?: number | undefined;
|
|
1077
|
+
colspan?: number | undefined;
|
|
1078
|
+
title?: string | undefined;
|
|
1079
|
+
field?: string | undefined;
|
|
1080
|
+
halign?: string | undefined;
|
|
1081
|
+
align?: string | undefined;
|
|
1082
|
+
formatter2?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1083
|
+
renderFormatter?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1084
|
+
styler2?: ((value: any, row: any, index: number, options: any) => Record<string, any>) | undefined;
|
|
1085
|
+
stylerHeader?: ((options: any) => Record<string, any>) | undefined;
|
|
1086
|
+
tableTextType?: string | undefined;
|
|
1087
|
+
tableColumnHeight?: string | undefined;
|
|
1088
|
+
tableSummary?: string | undefined;
|
|
1089
|
+
tableSummaryTitle?: string | undefined;
|
|
1090
|
+
tableSummaryText?: string | undefined;
|
|
1091
|
+
tableSummaryAlign?: string | undefined;
|
|
1092
|
+
tableSummaryNumFormat?: number | undefined;
|
|
1093
|
+
upperCase?: string | undefined;
|
|
1094
|
+
}[] | undefined;
|
|
1095
|
+
fontFamily?: string | undefined;
|
|
1096
|
+
fontSize?: string | undefined;
|
|
1097
|
+
fontWeight?: string | undefined;
|
|
1098
|
+
} | undefined>;
|
|
1099
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1100
|
+
onSave: (...args: any[]) => void;
|
|
1101
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
1102
|
+
template: undefined;
|
|
1103
|
+
fields: undefined;
|
|
1104
|
+
printData: undefined;
|
|
1105
|
+
}>>> & Readonly<{
|
|
1106
|
+
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
1107
|
+
}>, {
|
|
1108
|
+
template: Record<string, any>;
|
|
1109
|
+
printData: Record<string, any>;
|
|
1110
|
+
fields: FieldOption[];
|
|
1111
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1112
|
+
"toolbar-left"?(_: {
|
|
1113
|
+
tools: {
|
|
1114
|
+
clearPaper(): void;
|
|
1115
|
+
toPdf(printData: any, pdfName?: string): void;
|
|
1116
|
+
toPrint(printData: any): void;
|
|
1117
|
+
updateJson(str: string): void;
|
|
1118
|
+
exportJson(): string;
|
|
1119
|
+
setElsAlign(type?: "bottom" | "left" | "right" | "top" | "horizontal" | "vertical" | "distributeHor" | "distributeVer" | undefined): void;
|
|
1120
|
+
setElsSpace(h?: boolean): void;
|
|
1121
|
+
setEleSelectByField(): void;
|
|
1122
|
+
getSelectEls(): any[];
|
|
1123
|
+
updateOption<T>(key: string, value: T): void;
|
|
1124
|
+
};
|
|
1125
|
+
}): any;
|
|
1126
|
+
"toolbar-right"?(_: {
|
|
1127
|
+
tools: {
|
|
1128
|
+
clearPaper(): void;
|
|
1129
|
+
toPdf(printData: any, pdfName?: string): void;
|
|
1130
|
+
toPrint(printData: any): void;
|
|
1131
|
+
updateJson(str: string): void;
|
|
1132
|
+
exportJson(): string;
|
|
1133
|
+
setElsAlign(type?: "bottom" | "left" | "right" | "top" | "horizontal" | "vertical" | "distributeHor" | "distributeVer" | undefined): void;
|
|
1134
|
+
setElsSpace(h?: boolean): void;
|
|
1135
|
+
setEleSelectByField(): void;
|
|
1136
|
+
getSelectEls(): any[];
|
|
1137
|
+
updateOption<T>(key: string, value: T): void;
|
|
1138
|
+
};
|
|
1139
|
+
}): any;
|
|
1140
|
+
}>;
|
|
1141
|
+
|
|
1142
|
+
export declare interface OrcHiPrintData extends Record<string, any> {
|
|
1143
|
+
options: {
|
|
1144
|
+
/** 列左偏移量 */
|
|
1145
|
+
left?: number;
|
|
1146
|
+
/** 列顶部偏移量 */
|
|
1147
|
+
top?: number;
|
|
1148
|
+
/** 表格高度 */
|
|
1149
|
+
height?: number;
|
|
1150
|
+
/** 表格宽度 */
|
|
1151
|
+
width?: number;
|
|
1152
|
+
/** 字段名称 */
|
|
1153
|
+
field?: string;
|
|
1154
|
+
/** 表尾重复内容 */
|
|
1155
|
+
tableFooterRepeat?: string;
|
|
1156
|
+
/** 表格边框样式 */
|
|
1157
|
+
tableBorder?: string;
|
|
1158
|
+
/** 表头边框样式 */
|
|
1159
|
+
tableHeaderBorder?: string;
|
|
1160
|
+
/** 表头单元格边框样式 */
|
|
1161
|
+
tableHeaderCellBorder?: string;
|
|
1162
|
+
/** 表体行边框样式 */
|
|
1163
|
+
tableBodyRowBorder?: string;
|
|
1164
|
+
/** 表尾边框样式 */
|
|
1165
|
+
tableFooterBorder?: string;
|
|
1166
|
+
/** 字段选项数组 */
|
|
1167
|
+
fields?: FieldOption[];
|
|
1168
|
+
/** 列配置数组 */
|
|
1169
|
+
columns?: {
|
|
1170
|
+
/** 列宽 可拖拽调整 */
|
|
1171
|
+
width?: number;
|
|
1172
|
+
/** 是否选中 */
|
|
1173
|
+
checked?: boolean;
|
|
1174
|
+
/** 列宽度锁定 */
|
|
1175
|
+
fixed?: boolean;
|
|
1176
|
+
/** 行合并 */
|
|
1177
|
+
rowspan?: number;
|
|
1178
|
+
/** 列合并 */
|
|
1179
|
+
colspan?: number;
|
|
1180
|
+
/** 列标题 姓名#name ==#后面是字段名 field == */
|
|
1181
|
+
title?: string;
|
|
1182
|
+
/** 列字段名 */
|
|
1183
|
+
field?: string;
|
|
1184
|
+
/** 表头左右对齐方式 left、right、center */
|
|
1185
|
+
halign?: string;
|
|
1186
|
+
/** 左右对齐方式 left、right、center */
|
|
1187
|
+
align?: string;
|
|
1188
|
+
/** 单元格格式化函数 */
|
|
1189
|
+
formatter2?: (value: any, row: any, index: number, options: any) => string | HTMLElement;
|
|
1190
|
+
/** 单元格渲染函数 */
|
|
1191
|
+
renderFormatter?: (value: any, row: any, index: number, options: any) => string | HTMLElement;
|
|
1192
|
+
/** 单元格样式函数 */
|
|
1193
|
+
styler2?: (value: any, row: any, index: number, options: any) => Record<string, any>;
|
|
1194
|
+
/** 表头样式函数 */
|
|
1195
|
+
stylerHeader?: (options: any) => Record<string, any>;
|
|
1196
|
+
/** 单元格字段类型 text、barcode、image、qrcode、sequence */
|
|
1197
|
+
tableTextType?: string;
|
|
1198
|
+
/** 特定单元格高度 二维码、条形码、图片才有效 */
|
|
1199
|
+
tableColumnHeight?: string;
|
|
1200
|
+
/** 底部聚合函数 count:计数 sum:合计 avg:平均值 max:最大值 min:最小值 */
|
|
1201
|
+
tableSummary?: string;
|
|
1202
|
+
/** 底部聚合函数标题 'true','false' 显示或隐藏 */
|
|
1203
|
+
tableSummaryTitle?: string;
|
|
1204
|
+
/** 底部聚合函数标题自定义聚合函数前面的文本 */
|
|
1205
|
+
tableSummaryText?: string;
|
|
1206
|
+
/** 底部聚合函数对齐方式 left、right、center */
|
|
1207
|
+
tableSummaryAlign?: string;
|
|
1208
|
+
/** 底部聚合函数保留小数位 默认 2 */
|
|
1209
|
+
tableSummaryNumFormat?: number;
|
|
1210
|
+
/** 转大写 如:7 就会把 10.8 转换成 壹拾元捌角零分 */
|
|
1211
|
+
upperCase?: string;
|
|
1212
|
+
}[];
|
|
1213
|
+
/** 字体 默认可继承面板设置的字体 默认宋体 */
|
|
1214
|
+
fontFamily?: string;
|
|
1215
|
+
/** 字体大小 默认9pt */
|
|
1216
|
+
fontSize?: string;
|
|
1217
|
+
/** 字体粗细 */
|
|
1218
|
+
fontWeight?: string;
|
|
1219
|
+
};
|
|
1220
|
+
printElementType: {
|
|
1221
|
+
/** 元素标题 */
|
|
1222
|
+
title: string;
|
|
1223
|
+
/** 元素类型 */
|
|
1224
|
+
type: string;
|
|
1225
|
+
/** 是否可编辑 */
|
|
1226
|
+
editable?: boolean;
|
|
1227
|
+
/** 列显示是否可编辑 */
|
|
1228
|
+
columnDisplayEditable?: boolean;
|
|
1229
|
+
/** 列索引显示是否可编辑 */
|
|
1230
|
+
columnDisplayIndexEditable?: boolean;
|
|
1231
|
+
/** 列标题是否可编辑 */
|
|
1232
|
+
columnTitleEditable?: boolean;
|
|
1233
|
+
/** 列是否可调整大小 */
|
|
1234
|
+
columnResizable?: boolean;
|
|
1235
|
+
/** 列对齐方式是否可编辑 */
|
|
1236
|
+
columnAlignEditable?: boolean;
|
|
1237
|
+
/** 是否启用字段编辑 */
|
|
1238
|
+
isEnableEditFieldv?: boolean;
|
|
1239
|
+
/** 是否启用上下文菜单 */
|
|
1240
|
+
isEnableContextMenu?: boolean;
|
|
1241
|
+
/** 是否启用插入行 */
|
|
1242
|
+
isEnableInsertRow?: boolean;
|
|
1243
|
+
/** 是否启用删除行 */
|
|
1244
|
+
isEnableDeleteRow?: boolean;
|
|
1245
|
+
/** 是否启用插入列 */
|
|
1246
|
+
isEnableInsertColumn?: boolean;
|
|
1247
|
+
/** 是否启用删除列 */
|
|
1248
|
+
isEnableDeleteColumn?: boolean;
|
|
1249
|
+
/** 是否启用合并单元格 */
|
|
1250
|
+
isEnableMergeCell?: boolean;
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export declare const OrcProvider: __VLS_WithTemplateSlots< DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
829
1255
|
default?(_: {}): any;
|
|
830
1256
|
}>;
|
|
831
1257
|
|
|
832
|
-
export declare const OrcQuill: DefineComponent<{
|
|
1258
|
+
export declare const OrcQuill: DefineComponent<ExtractPropTypes<{
|
|
833
1259
|
modelValue: {
|
|
834
1260
|
type: StringConstructor;
|
|
835
1261
|
default: string;
|
|
@@ -838,7 +1264,7 @@ export declare const OrcQuill: DefineComponent<{
|
|
|
838
1264
|
type: (StringConstructor | ArrayConstructor)[];
|
|
839
1265
|
default: string;
|
|
840
1266
|
};
|
|
841
|
-
}
|
|
1267
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
842
1268
|
"update:modelValue": (...args: any[]) => void;
|
|
843
1269
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
844
1270
|
modelValue: {
|
|
@@ -849,14 +1275,14 @@ export declare const OrcQuill: DefineComponent<{
|
|
|
849
1275
|
type: (StringConstructor | ArrayConstructor)[];
|
|
850
1276
|
default: string;
|
|
851
1277
|
};
|
|
852
|
-
}>> & {
|
|
1278
|
+
}>> & Readonly<{
|
|
853
1279
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
854
|
-
}
|
|
1280
|
+
}>, {
|
|
855
1281
|
modelValue: string;
|
|
856
1282
|
toolbar: string | unknown[];
|
|
857
|
-
}, {}>;
|
|
1283
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
858
1284
|
|
|
859
|
-
export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<{
|
|
1285
|
+
export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<ExtractPropTypes<{
|
|
860
1286
|
loading: BooleanConstructor;
|
|
861
1287
|
readonly: BooleanConstructor;
|
|
862
1288
|
options: {
|
|
@@ -879,9 +1305,9 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<{
|
|
|
879
1305
|
type: StringConstructor;
|
|
880
1306
|
default: string;
|
|
881
1307
|
};
|
|
882
|
-
}
|
|
883
|
-
onSearch: (...args: any[]) => void;
|
|
1308
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
884
1309
|
"update:model-value": (...args: any[]) => void;
|
|
1310
|
+
onSearch: (...args: any[]) => void;
|
|
885
1311
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
886
1312
|
loading: BooleanConstructor;
|
|
887
1313
|
readonly: BooleanConstructor;
|
|
@@ -905,18 +1331,18 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<{
|
|
|
905
1331
|
type: StringConstructor;
|
|
906
1332
|
default: string;
|
|
907
1333
|
};
|
|
908
|
-
}>> & {
|
|
1334
|
+
}>> & Readonly<{
|
|
909
1335
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
910
1336
|
onOnSearch?: ((...args: any[]) => any) | undefined;
|
|
911
|
-
}
|
|
1337
|
+
}>, {
|
|
912
1338
|
loading: boolean;
|
|
913
1339
|
size: string;
|
|
914
1340
|
modelValue: Record<string, any>;
|
|
1341
|
+
labelWidth: string;
|
|
915
1342
|
options: OrcSearchItem[];
|
|
916
1343
|
readonly: boolean;
|
|
917
|
-
labelWidth: string;
|
|
918
1344
|
inputWidth: string;
|
|
919
|
-
}, {}>, {
|
|
1345
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
920
1346
|
head?(_: {}): any;
|
|
921
1347
|
default?(_: {}): any;
|
|
922
1348
|
}>;
|
|
@@ -954,13 +1380,18 @@ export declare interface OrcSearchItem extends RecordAny {
|
|
|
954
1380
|
rules?: RecordAny | RecordAny[];
|
|
955
1381
|
}
|
|
956
1382
|
|
|
957
|
-
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
1383
|
+
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<{
|
|
958
1384
|
title: StringConstructor;
|
|
959
1385
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
960
1386
|
height: (StringConstructor | NumberConstructor)[];
|
|
961
1387
|
/** 隐藏工具栏 */
|
|
962
1388
|
hideToolbar: BooleanConstructor;
|
|
1389
|
+
hideSetting: BooleanConstructor;
|
|
963
1390
|
hidePagination: BooleanConstructor;
|
|
1391
|
+
isHover: {
|
|
1392
|
+
type: BooleanConstructor;
|
|
1393
|
+
default: boolean;
|
|
1394
|
+
};
|
|
964
1395
|
size: {
|
|
965
1396
|
type: PropType<"medium" | "small" | "mini">;
|
|
966
1397
|
default: string;
|
|
@@ -972,7 +1403,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
972
1403
|
};
|
|
973
1404
|
/** 与 loadData 行为一致 */
|
|
974
1405
|
data: {
|
|
975
|
-
type:
|
|
1406
|
+
type: PropType<RecordAny_2[]>;
|
|
976
1407
|
default: () => never[];
|
|
977
1408
|
};
|
|
978
1409
|
/** 配置文件 */
|
|
@@ -987,7 +1418,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
987
1418
|
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
988
1419
|
setColumn: (list: RecordAny_2[]) => void;
|
|
989
1420
|
}>;
|
|
990
|
-
}
|
|
1421
|
+
}>, {
|
|
991
1422
|
getRowKey(): string;
|
|
992
1423
|
getTableData(): RecordAny_2[];
|
|
993
1424
|
getSelection(): RecordAny_2[];
|
|
@@ -1009,19 +1440,25 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
1009
1440
|
dataInit(isFirst?: boolean | undefined): Promise<void>;
|
|
1010
1441
|
/** 加载数据 */
|
|
1011
1442
|
loadData(list: any[]): void;
|
|
1012
|
-
},
|
|
1443
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1013
1444
|
"update:selectedKeys": (...args: any[]) => void;
|
|
1445
|
+
change: (...args: any[]) => void;
|
|
1014
1446
|
cellClick: (...args: any[]) => void;
|
|
1015
1447
|
onReset: (...args: any[]) => void;
|
|
1016
|
-
change: (...args: any[]) => void;
|
|
1017
1448
|
confirm: (...args: any[]) => void;
|
|
1449
|
+
cellDblclick: (...args: any[]) => void;
|
|
1018
1450
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
1019
1451
|
title: StringConstructor;
|
|
1020
1452
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
1021
1453
|
height: (StringConstructor | NumberConstructor)[];
|
|
1022
1454
|
/** 隐藏工具栏 */
|
|
1023
1455
|
hideToolbar: BooleanConstructor;
|
|
1456
|
+
hideSetting: BooleanConstructor;
|
|
1024
1457
|
hidePagination: BooleanConstructor;
|
|
1458
|
+
isHover: {
|
|
1459
|
+
type: BooleanConstructor;
|
|
1460
|
+
default: boolean;
|
|
1461
|
+
};
|
|
1025
1462
|
size: {
|
|
1026
1463
|
type: PropType<"medium" | "small" | "mini">;
|
|
1027
1464
|
default: string;
|
|
@@ -1033,7 +1470,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
1033
1470
|
};
|
|
1034
1471
|
/** 与 loadData 行为一致 */
|
|
1035
1472
|
data: {
|
|
1036
|
-
type:
|
|
1473
|
+
type: PropType<RecordAny_2[]>;
|
|
1037
1474
|
default: () => never[];
|
|
1038
1475
|
};
|
|
1039
1476
|
/** 配置文件 */
|
|
@@ -1048,22 +1485,26 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
1048
1485
|
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1049
1486
|
setColumn: (list: RecordAny_2[]) => void;
|
|
1050
1487
|
}>;
|
|
1051
|
-
}>> & {
|
|
1488
|
+
}>> & Readonly<{
|
|
1052
1489
|
"onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
|
|
1490
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1053
1491
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
|
1054
1492
|
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
1055
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
1056
1493
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
1057
|
-
|
|
1058
|
-
|
|
1494
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
|
1495
|
+
}>, {
|
|
1496
|
+
data: RecordAny_2[];
|
|
1059
1497
|
option: OrcTableOption;
|
|
1060
1498
|
size: "medium" | "small" | "mini";
|
|
1061
1499
|
hideToolbar: boolean;
|
|
1500
|
+
hideSetting: boolean;
|
|
1062
1501
|
hidePagination: boolean;
|
|
1502
|
+
isHover: boolean;
|
|
1063
1503
|
selectedKeys: unknown[];
|
|
1064
|
-
}, {}>, {
|
|
1504
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1065
1505
|
default?(_: {}): any;
|
|
1066
1506
|
tools?(_: {}): any;
|
|
1507
|
+
columns?(_: {}): any;
|
|
1067
1508
|
cell?(_: {
|
|
1068
1509
|
record: any;
|
|
1069
1510
|
dataIndex: string;
|
|
@@ -1076,6 +1517,40 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<{
|
|
|
1076
1517
|
footer?(_: {}): any;
|
|
1077
1518
|
}>;
|
|
1078
1519
|
|
|
1520
|
+
declare interface OrcTableExpose extends TableGridTwoType {
|
|
1521
|
+
loading: boolean;
|
|
1522
|
+
setLoading: (loading?: boolean) => void;
|
|
1523
|
+
/** 请求数据 */
|
|
1524
|
+
dataInit: () => Promise<void>;
|
|
1525
|
+
/** 重置表单数据 */
|
|
1526
|
+
loadData: (list: RecordAny_2[]) => void;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/** column type */
|
|
1530
|
+
declare interface OrcTableItem extends RecordAny_2 {
|
|
1531
|
+
show?: boolean;
|
|
1532
|
+
dataIndex: string;
|
|
1533
|
+
title?: string;
|
|
1534
|
+
width?: number;
|
|
1535
|
+
sort?: boolean;
|
|
1536
|
+
/** 开启编辑 */
|
|
1537
|
+
cell?: boolean;
|
|
1538
|
+
/** 影响性能 cell = true 有效 只显示编辑内容 */
|
|
1539
|
+
div?: boolean;
|
|
1540
|
+
/** 没内容时候得提示 */
|
|
1541
|
+
placeholder?: string;
|
|
1542
|
+
tooltip?: boolean;
|
|
1543
|
+
ellipsis?: boolean;
|
|
1544
|
+
align?: VxeColumnPropTypes.Align;
|
|
1545
|
+
headerAlign?: VxeColumnPropTypes.HeaderAlign;
|
|
1546
|
+
footerAlign?: VxeColumnPropTypes.FooterAlign;
|
|
1547
|
+
format?: (val: any, record?: RecordAny_2) => string;
|
|
1548
|
+
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1549
|
+
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1550
|
+
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1551
|
+
columnProps?: any;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1079
1554
|
/**
|
|
1080
1555
|
* table option type
|
|
1081
1556
|
* @example
|
|
@@ -1105,7 +1580,7 @@ export declare interface OrcTableOption extends RecordAny_2 {
|
|
|
1105
1580
|
/** 多选时 同kay选择 */
|
|
1106
1581
|
checkboxKey?: string;
|
|
1107
1582
|
/** 自定义列 同 resolveColumns() */
|
|
1108
|
-
columns:
|
|
1583
|
+
columns: OrcTableItem[];
|
|
1109
1584
|
/** 默认分页条数 */
|
|
1110
1585
|
pageSize?: number;
|
|
1111
1586
|
/** 默认分页列表 */
|
|
@@ -1137,7 +1612,9 @@ export declare interface OrcTableOption extends RecordAny_2 {
|
|
|
1137
1612
|
/** 同 merge-footer-items 临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构) */
|
|
1138
1613
|
mergeFooter?: VxeTablePropTypes.MergeFooterItems;
|
|
1139
1614
|
/** 自定义列 同 columns */
|
|
1140
|
-
resolveColumns?: (columns?:
|
|
1615
|
+
resolveColumns?: (columns?: OrcTableItem[]) => OrcTableItem[];
|
|
1616
|
+
/** 计算总条目 */
|
|
1617
|
+
resolveTotal?: (e: RecordAny_2) => number;
|
|
1141
1618
|
/** 请求超时时间 */
|
|
1142
1619
|
timeout?: number;
|
|
1143
1620
|
/** 静态参数 */
|
|
@@ -1176,6 +1653,7 @@ declare interface Props_2 {
|
|
|
1176
1653
|
title?: string;
|
|
1177
1654
|
span?: number;
|
|
1178
1655
|
gutter?: number;
|
|
1656
|
+
size?: Size;
|
|
1179
1657
|
config: OrcFormItem[];
|
|
1180
1658
|
modelValue?: RecordAny;
|
|
1181
1659
|
labelWidth?: string;
|
|
@@ -1183,45 +1661,34 @@ declare interface Props_2 {
|
|
|
1183
1661
|
modalAttrs?: ModalInstance['$props'];
|
|
1184
1662
|
}
|
|
1185
1663
|
|
|
1664
|
+
declare type Props_3 = {
|
|
1665
|
+
/** 更新模板 hiprintTemplate.update */
|
|
1666
|
+
template?: Record<string, any>;
|
|
1667
|
+
/** 更新数据源 hiprintTemplate.setFields */
|
|
1668
|
+
fields?: FieldOption[];
|
|
1669
|
+
/** 预览测试数据 */
|
|
1670
|
+
printData?: Record<string, any>;
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1186
1673
|
export declare type RecordAny = Record<string, any>;
|
|
1187
1674
|
|
|
1188
1675
|
declare type RecordAny_2 = Record<string, any>;
|
|
1189
1676
|
|
|
1190
|
-
|
|
1677
|
+
/** 通用对象类型 (键值对形式) */
|
|
1678
|
+
declare type RecordAny_3 = Record<string, any>;
|
|
1191
1679
|
|
|
1192
|
-
/**
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
div?: boolean;
|
|
1203
|
-
/** 没内容时候得提示 */
|
|
1204
|
-
placeholder?: string;
|
|
1205
|
-
tooltip?: boolean;
|
|
1206
|
-
ellipsis?: boolean;
|
|
1207
|
-
align?: VxeColumnPropTypes.Align;
|
|
1208
|
-
headerAlign?: VxeColumnPropTypes.HeaderAlign;
|
|
1209
|
-
footerAlign?: VxeColumnPropTypes.FooterAlign;
|
|
1210
|
-
format?: (val: any, record?: RecordAny_2) => string;
|
|
1211
|
-
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1212
|
-
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1213
|
-
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1214
|
-
columnProps?: any;
|
|
1215
|
-
}
|
|
1680
|
+
/**
|
|
1681
|
+
* set path object
|
|
1682
|
+
* @example
|
|
1683
|
+
* ```
|
|
1684
|
+
* var b = {a:{b:1}}
|
|
1685
|
+
* setData(b,'a.b',2)
|
|
1686
|
+
* // {a:{b:2}}
|
|
1687
|
+
* ```
|
|
1688
|
+
*/
|
|
1689
|
+
export declare function setData(object: RecordAny, path: string, defaultValue?: any): RecordAny;
|
|
1216
1690
|
|
|
1217
|
-
declare
|
|
1218
|
-
loading: boolean;
|
|
1219
|
-
setLoading: (loading?: boolean) => void;
|
|
1220
|
-
/** 请求数据 */
|
|
1221
|
-
dataInit: () => Promise<void>;
|
|
1222
|
-
/** 重置表单数据 */
|
|
1223
|
-
loadData: (list: RecordAny_2[]) => void;
|
|
1224
|
-
}
|
|
1691
|
+
declare function setLoading(val?: boolean): void;
|
|
1225
1692
|
|
|
1226
1693
|
declare interface TableGridTwoType extends RecordAny_2 {
|
|
1227
1694
|
/** 读取配置的rowKey 默认 _X_ROW_KEY */
|
|
@@ -1266,6 +1733,12 @@ declare interface TableGridTwoType extends RecordAny_2 {
|
|
|
1266
1733
|
|
|
1267
1734
|
declare type TableInstance = InstanceType<typeof VxeTable>;
|
|
1268
1735
|
|
|
1736
|
+
/** array */
|
|
1737
|
+
export declare function toArray<T>(target: T | T[]): T[];
|
|
1738
|
+
|
|
1739
|
+
/** 读取数据类型 */
|
|
1740
|
+
export declare function typeName(o: unknown): string;
|
|
1741
|
+
|
|
1269
1742
|
/**
|
|
1270
1743
|
* @example
|
|
1271
1744
|
* ```
|
|
@@ -1347,7 +1820,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1347
1820
|
getRowSeq: (row: any) => string | number;
|
|
1348
1821
|
getRowIndex: (row: any) => number;
|
|
1349
1822
|
removerRowIndex: (rowIndex: number) => void;
|
|
1350
|
-
},
|
|
1823
|
+
}, OrcTableExpose | {
|
|
1351
1824
|
[x: string]: any;
|
|
1352
1825
|
loading: boolean;
|
|
1353
1826
|
setLoading: (loading?: boolean | undefined) => void;
|
|
@@ -1378,7 +1851,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1378
1851
|
checkKey?: string | undefined;
|
|
1379
1852
|
rowKey?: string | undefined;
|
|
1380
1853
|
checkboxKey?: string | undefined;
|
|
1381
|
-
columns:
|
|
1854
|
+
columns: OrcTableItem[];
|
|
1382
1855
|
pageSize?: number | undefined;
|
|
1383
1856
|
pageSizeOptions?: number[] | undefined;
|
|
1384
1857
|
selectedType?: "checkbox" | "radio" | undefined;
|
|
@@ -1398,7 +1871,8 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1398
1871
|
}) => CssType) | undefined;
|
|
1399
1872
|
footerMethod?: VxeTablePropTypes<VxeTableDataRow> | undefined;
|
|
1400
1873
|
mergeFooter?: VxeTablePropTypes<VxeTableDataRow> | undefined;
|
|
1401
|
-
resolveColumns?: ((columns?:
|
|
1874
|
+
resolveColumns?: ((columns?: OrcTableItem[] | undefined) => OrcTableItem[]) | undefined;
|
|
1875
|
+
resolveTotal?: ((e: RecordAny_2) => number) | undefined;
|
|
1402
1876
|
timeout?: number | undefined;
|
|
1403
1877
|
data?: RecordAny_2 | undefined;
|
|
1404
1878
|
resolvePage?: ((page?: RecordAny_2 | undefined) => any) | undefined;
|
|
@@ -1789,25 +2263,8 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1789
2263
|
selectedKeys: Ref<string[], string[]>;
|
|
1790
2264
|
};
|
|
1791
2265
|
|
|
1792
|
-
export declare function useState<T extends
|
|
2266
|
+
export declare function useState<T extends Record<string, any>>(initValue?: T, formsRef?: Ref<{
|
|
1793
2267
|
resetFields?: () => void;
|
|
1794
|
-
}>):
|
|
1795
|
-
|
|
1796
|
-
export declare const utils: {
|
|
1797
|
-
formatTable: {
|
|
1798
|
-
tf: (val: any, digits?: any) => any;
|
|
1799
|
-
t: (val: any) => string;
|
|
1800
|
-
time: (val: any, f?: string) => string;
|
|
1801
|
-
p: (val: any, digits?: any, percent?: string) => string;
|
|
1802
|
-
};
|
|
1803
|
-
mergeConfig: typeof mergeConfig;
|
|
1804
|
-
generateQRcodeBase64: typeof generateQRcodeBase64;
|
|
1805
|
-
downLoadPdf: typeof downLoadPdf;
|
|
1806
|
-
findObject: typeof findObject;
|
|
1807
|
-
omitObject: typeof omitObject;
|
|
1808
|
-
deepClone: <T = RecordAny | RecordAny[]>(origin: T) => T;
|
|
1809
|
-
download: (url: string, fileName?: string) => boolean;
|
|
1810
|
-
log: typeof log;
|
|
1811
|
-
};
|
|
2268
|
+
}>): [Ref<T>, (defValue?: Partial<T>) => void];
|
|
1812
2269
|
|
|
1813
2270
|
export { }
|