@shaonq/vue 1.1.11 → 1.1.14
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 +721 -300
- package/lib/index.js +3095 -1805
- package/lib/style.css +1 -1
- package/package.json +5 -2
package/lib/index.d.ts
CHANGED
|
@@ -2,12 +2,19 @@ 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';
|
|
5
6
|
import { DefineComponent } from 'vue';
|
|
6
7
|
import { ExtractPropTypes } from 'vue';
|
|
8
|
+
import { FormItem } from '@arco-design/web-vue';
|
|
7
9
|
import { Modal } from '@arco-design/web-vue';
|
|
10
|
+
import { ModalConfig } from '@arco-design/web-vue';
|
|
11
|
+
import { ModalMethod } from '@arco-design/web-vue';
|
|
12
|
+
import { PrintTemplate } from '@sv-print/hiprint';
|
|
8
13
|
import { PropType } from 'vue';
|
|
9
14
|
import { PublicProps } from 'vue';
|
|
10
15
|
import { Ref } from 'vue';
|
|
16
|
+
import { SelectOptionData } from '@arco-design/web-vue';
|
|
17
|
+
import { Size } from '@arco-design/web-vue';
|
|
11
18
|
import { TablePublicMethods } from 'vxe-table';
|
|
12
19
|
import { VxeColumnPropTypes } from 'vxe-table';
|
|
13
20
|
import { VxeTable } from 'vxe-table';
|
|
@@ -25,6 +32,10 @@ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
|
|
|
25
32
|
|
|
26
33
|
declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
|
|
27
34
|
|
|
35
|
+
declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
36
|
+
|
|
37
|
+
declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
|
|
38
|
+
|
|
28
39
|
declare type __VLS_Prettify<T> = {
|
|
29
40
|
[K in keyof T]: T[K];
|
|
30
41
|
} & {};
|
|
@@ -37,6 +48,14 @@ declare type __VLS_Prettify_3<T> = {
|
|
|
37
48
|
[K in keyof T]: T[K];
|
|
38
49
|
} & {};
|
|
39
50
|
|
|
51
|
+
declare type __VLS_Prettify_4<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
54
|
+
|
|
55
|
+
declare type __VLS_Prettify_5<T> = {
|
|
56
|
+
[K in keyof T]: T[K];
|
|
57
|
+
} & {};
|
|
58
|
+
|
|
40
59
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
60
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
61
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
@@ -64,6 +83,24 @@ declare type __VLS_TypePropsToRuntimeProps_3<T> = {
|
|
|
64
83
|
};
|
|
65
84
|
};
|
|
66
85
|
|
|
86
|
+
declare type __VLS_TypePropsToRuntimeProps_4<T> = {
|
|
87
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
88
|
+
type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
|
|
89
|
+
} : {
|
|
90
|
+
type: PropType<T[K]>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare type __VLS_TypePropsToRuntimeProps_5<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
67
104
|
declare type __VLS_WithDefaults<P, D> = {
|
|
68
105
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
106
|
default: D[K];
|
|
@@ -82,6 +119,18 @@ declare type __VLS_WithDefaults_3<P, D> = {
|
|
|
82
119
|
}> : P[K];
|
|
83
120
|
};
|
|
84
121
|
|
|
122
|
+
declare type __VLS_WithDefaults_4<P, D> = {
|
|
123
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
124
|
+
default: D[K];
|
|
125
|
+
}> : P[K];
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
declare type __VLS_WithDefaults_5<P, D> = {
|
|
129
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
|
|
130
|
+
default: D[K];
|
|
131
|
+
}> : P[K];
|
|
132
|
+
};
|
|
133
|
+
|
|
85
134
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
86
135
|
new (): {
|
|
87
136
|
$slots: S;
|
|
@@ -118,16 +167,32 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
118
167
|
};
|
|
119
168
|
};
|
|
120
169
|
|
|
170
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
171
|
+
new (): {
|
|
172
|
+
$slots: S;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
|
|
121
176
|
declare type ButtonInstance = InstanceType<typeof Button>;
|
|
122
177
|
|
|
178
|
+
/** 组件属性处理函数签名 */
|
|
179
|
+
declare type ComponentAttrHandler = (record: RecordAny_3, util: OrcFormUtil) => unknown;
|
|
180
|
+
|
|
181
|
+
/** 组件属性允许的值类型 */
|
|
182
|
+
declare type ComponentAttrValue = null | boolean | number | string | RecordAny_3 | RecordAny_3[] | ComponentAttrHandler;
|
|
183
|
+
|
|
123
184
|
declare interface CssType extends Partial<CSSStyleDeclaration>, RecordAny_2 {
|
|
124
185
|
}
|
|
125
186
|
|
|
187
|
+
export declare const deepClone: <T = RecordAny | RecordAny[]>(origin: T) => T;
|
|
188
|
+
|
|
126
189
|
declare const _default: {
|
|
127
190
|
install(Vue: App): void;
|
|
128
191
|
};
|
|
129
192
|
export default _default;
|
|
130
193
|
|
|
194
|
+
export declare const download: (url: string, fileName?: string) => boolean;
|
|
195
|
+
|
|
131
196
|
/**
|
|
132
197
|
* @param name 下载名称
|
|
133
198
|
* @param element HTMLElement
|
|
@@ -136,7 +201,7 @@ export default _default;
|
|
|
136
201
|
* @param {string} option.className 例 class = 'one-page-pdf' ,大量打印必填
|
|
137
202
|
* @param {string} option.success successCallback worker:any => void
|
|
138
203
|
*/
|
|
139
|
-
declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
204
|
+
export declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
140
205
|
/** `pdf page margin`: `[top, left, bottom, right]` */
|
|
141
206
|
margin?: number[];
|
|
142
207
|
/** 启用 `worker` */
|
|
@@ -155,82 +220,65 @@ declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
|
155
220
|
jsPDF?: any;
|
|
156
221
|
} & RecordAny): Promise<void>;
|
|
157
222
|
|
|
158
|
-
|
|
223
|
+
/**
|
|
224
|
+
* 参考文档 1: http://hiprint.io/docs/text
|
|
225
|
+
* 参考文档 2: https://ccsimple.github.io/sv-print-docs/config/provider.html#%E7%A4%BA%E4%BE%8B
|
|
226
|
+
*/
|
|
227
|
+
/** 设计纸张对象 */
|
|
228
|
+
/** 数据对象 */
|
|
229
|
+
declare interface FieldOption {
|
|
230
|
+
/** 元素字段则显示为下拉框显示 */
|
|
231
|
+
field: string;
|
|
232
|
+
/** 元素字段则为输入框显示 */
|
|
233
|
+
text: string;
|
|
234
|
+
}
|
|
159
235
|
|
|
160
|
-
|
|
161
|
-
declare type FormItemType = {
|
|
162
|
-
/**
|
|
163
|
-
* 可以使使用的 Arco 组件类型 也可以使用自定义组件
|
|
164
|
-
* @example 'a-input', 'a-select' 等。
|
|
165
|
-
*/
|
|
166
|
-
type?: string | Component;
|
|
167
|
-
/** 表单项的文本名称或标题 */
|
|
168
|
-
name: string;
|
|
169
|
-
/** 用于双向数据绑定的模型属性 */
|
|
170
|
-
model: string;
|
|
171
|
-
/** 控制表单项是否显示。 */
|
|
172
|
-
show?: boolean;
|
|
173
|
-
/** 表单项的默认值 */
|
|
174
|
-
defaultValue?: any;
|
|
175
|
-
/** 触发验证的时机 */
|
|
176
|
-
validateTrigger?: 'change' | 'input' | 'focus' | 'blur';
|
|
177
|
-
/** 组件属性对象 */
|
|
178
|
-
componentAttr?: Record<string, any>;
|
|
179
|
-
/** 自定义类名,可以是字符串或函数 */
|
|
180
|
-
customClass?: string | ((itemConfig: FormItemType, models: Record<string, any>) => string);
|
|
181
|
-
/** 开启多选 转义[a,b]=>'a,b' ,默认组件支持请开启 componentAttr:{multiple:true} */
|
|
182
|
-
dotNotation?: boolean;
|
|
183
|
-
/** 数据字典键名 */
|
|
184
|
-
datadict?: string;
|
|
185
|
-
/** 配置项 */
|
|
186
|
-
options?: {
|
|
187
|
-
/** 必填 */
|
|
188
|
-
required?: boolean;
|
|
189
|
-
/** 栅格 24 */
|
|
190
|
-
span?: number;
|
|
191
|
-
/** 禁用 */
|
|
192
|
-
disabled?: boolean;
|
|
193
|
-
/** 占位符 */
|
|
194
|
-
placeholder?: string;
|
|
195
|
-
/** 帮助文案 */
|
|
196
|
-
help?: string;
|
|
197
|
-
/** 提示信息 */
|
|
198
|
-
tooltip?: string;
|
|
199
|
-
};
|
|
200
|
-
/** 验证规则 */
|
|
201
|
-
rules?: Record<string, any>[];
|
|
202
|
-
/** 事件处理器 */
|
|
203
|
-
events?: {
|
|
204
|
-
/** 组件挂载后执行 */
|
|
205
|
-
onMounted?: (util: FormUtilType & FormItemType['events']) => any | Promise<any>;
|
|
206
|
-
/** 值改变时触发 */
|
|
207
|
-
onChange?: (val: any, util: FormUtilType & FormItemType['events']) => void | Promise<void>;
|
|
208
|
-
/** watch 更新时触发 */
|
|
209
|
-
onUpdate?: (val: any, oldVal: any, util: FormUtilType & FormItemType['events']) => void | Promise<void>;
|
|
210
|
-
};
|
|
211
|
-
/** 扩展字符 */
|
|
212
|
-
note?: string;
|
|
213
|
-
};
|
|
236
|
+
export declare function findObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
214
237
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
238
|
+
/** 行数据格式化 千分位|日期 */
|
|
239
|
+
export declare const formatTable: {
|
|
240
|
+
/** 千分位|保留小数 */
|
|
241
|
+
tf: (val: any, digits?: any) => any;
|
|
242
|
+
/** 快捷格式化日期 */
|
|
243
|
+
t: (val: any) => string;
|
|
244
|
+
/** 完整格式化日期 yyyy-MM-dd HH:mm:ss */
|
|
245
|
+
time: (val: any, f?: string) => string;
|
|
246
|
+
/** percent 格式化百分比 */
|
|
247
|
+
p: (val: any, digits?: any, percent?: string) => string;
|
|
221
248
|
};
|
|
222
249
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
getModel: (model: string) => any;
|
|
226
|
-
getShow: (model: string) => boolean;
|
|
227
|
-
setModelOption: (model: string, val: any) => void;
|
|
228
|
-
setModel: (c: string | Record<string, any>, v?: any) => void;
|
|
229
|
-
setShow: (model: string, val: boolean) => void;
|
|
230
|
-
};
|
|
250
|
+
/** 表单组件实例类型 (基于 Arco Design 的 FormItem 组件) */
|
|
251
|
+
declare type FormItemInstance = InstanceType<typeof FormItem>;
|
|
231
252
|
|
|
232
253
|
/** 生成二维码 base64 */
|
|
233
|
-
declare function generateQRcodeBase64(options: RecordAny): string;
|
|
254
|
+
export declare function generateQRcodeBase64(options: RecordAny): string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* get path object
|
|
258
|
+
* @example
|
|
259
|
+
* ```
|
|
260
|
+
* getData({a:{b:1}},'a.b')
|
|
261
|
+
* // 1
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
export declare function getData(object: RecordAny, path: string, defaultValue?: any): any;
|
|
265
|
+
|
|
266
|
+
export declare const getUniqueId: () => string;
|
|
267
|
+
|
|
268
|
+
/** isArray */
|
|
269
|
+
export declare function isArray(obj: any): obj is any[];
|
|
270
|
+
|
|
271
|
+
/** 是否是空数组 */
|
|
272
|
+
export declare function isEmptyArray(obj: any): boolean;
|
|
273
|
+
|
|
274
|
+
/** 是否是空对象 */
|
|
275
|
+
export declare function isEmptyObject(obj: any): boolean;
|
|
276
|
+
|
|
277
|
+
/** isNumber */
|
|
278
|
+
export declare function isNumber(obj: any): obj is number;
|
|
279
|
+
|
|
280
|
+
/** isObject */
|
|
281
|
+
export declare function isObject(value: unknown): value is Record<string, any>;
|
|
234
282
|
|
|
235
283
|
export declare const locale: {
|
|
236
284
|
enUS: {
|
|
@@ -618,18 +666,24 @@ export declare const locale: {
|
|
|
618
666
|
};
|
|
619
667
|
|
|
620
668
|
/** 日志 */
|
|
621
|
-
declare function log(...args: any[]): void;
|
|
669
|
+
export declare function log(...args: any[]): void;
|
|
622
670
|
|
|
623
|
-
declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, isRoot?: boolean): RecordAny;
|
|
671
|
+
export declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, isRoot?: boolean): RecordAny;
|
|
624
672
|
|
|
625
673
|
declare type ModalInstance = InstanceType<typeof Modal>;
|
|
626
674
|
|
|
627
675
|
/** omit object */
|
|
628
|
-
declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
676
|
+
export declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
677
|
+
|
|
678
|
+
export declare function onConfirm(callback: () => void, options?: ModalConfig, type?: keyof ModalMethod): void;
|
|
679
|
+
|
|
680
|
+
declare function onShow(): void;
|
|
629
681
|
|
|
630
682
|
declare function onSubmit(): Promise<[boolean, any]>;
|
|
631
683
|
|
|
632
|
-
|
|
684
|
+
declare function onSubmit_2(): Promise<void>;
|
|
685
|
+
|
|
686
|
+
export declare const OrcDesign: DefineComponent<ExtractPropTypes<{
|
|
633
687
|
readonly: BooleanConstructor;
|
|
634
688
|
data: {
|
|
635
689
|
type: ObjectConstructor;
|
|
@@ -644,7 +698,7 @@ export declare const OrcDesign: DefineComponent<{
|
|
|
644
698
|
default(): {};
|
|
645
699
|
};
|
|
646
700
|
moduleConfig: ArrayConstructor;
|
|
647
|
-
}
|
|
701
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
648
702
|
save: (...args: any[]) => void;
|
|
649
703
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
650
704
|
readonly: BooleanConstructor;
|
|
@@ -661,168 +715,504 @@ export declare const OrcDesign: DefineComponent<{
|
|
|
661
715
|
default(): {};
|
|
662
716
|
};
|
|
663
717
|
moduleConfig: ArrayConstructor;
|
|
664
|
-
}>> & {
|
|
718
|
+
}>> & Readonly<{
|
|
665
719
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
666
|
-
}
|
|
720
|
+
}>, {
|
|
667
721
|
data: Record<string, any>;
|
|
668
722
|
readonly: boolean;
|
|
669
723
|
models: Record<string, any>;
|
|
670
724
|
remoteFuncs: Record<string, any>;
|
|
671
|
-
}, {}>;
|
|
725
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
672
726
|
|
|
673
727
|
export declare const OrcDesignPrint: DefineComponent<{}, {
|
|
674
728
|
getHtml(): any;
|
|
675
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
729
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
676
730
|
|
|
677
|
-
export declare const OrcForm:
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
default: string;
|
|
686
|
-
};
|
|
687
|
-
labelAlign: {
|
|
688
|
-
type: PropType<"left" | "right">;
|
|
689
|
-
default: string;
|
|
690
|
-
};
|
|
691
|
-
loading: BooleanConstructor;
|
|
692
|
-
disabled: BooleanConstructor;
|
|
693
|
-
hideSubmit: BooleanConstructor;
|
|
694
|
-
modelValue: {
|
|
695
|
-
type: ObjectConstructor;
|
|
696
|
-
default(): {};
|
|
697
|
-
};
|
|
731
|
+
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
|
|
732
|
+
config?: OrcFormItem[] | undefined;
|
|
733
|
+
labelWidth?: string | undefined;
|
|
734
|
+
labelAlign?: "left" | "right" | undefined;
|
|
735
|
+
loading?: boolean | undefined;
|
|
736
|
+
disabled?: boolean | undefined;
|
|
737
|
+
hideSubmit?: boolean | undefined;
|
|
738
|
+
modelValue?: Record<string, any> | undefined;
|
|
698
739
|
/** 栅格间距 */
|
|
699
|
-
gutter
|
|
700
|
-
type: NumberConstructor;
|
|
701
|
-
default: number;
|
|
702
|
-
};
|
|
740
|
+
gutter?: number | undefined;
|
|
703
741
|
/** 栅格 24 */
|
|
704
|
-
span
|
|
705
|
-
|
|
706
|
-
default: number;
|
|
707
|
-
};
|
|
708
|
-
formProps: {
|
|
709
|
-
type: ObjectConstructor;
|
|
710
|
-
default(): {};
|
|
711
|
-
};
|
|
742
|
+
span?: number | undefined;
|
|
743
|
+
formAttr?: Record<string, any> | undefined;
|
|
712
744
|
/** 栅格grid 优先级低于行 span */
|
|
713
|
-
grid
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
745
|
+
grid?: Record<string, any> | undefined;
|
|
746
|
+
}>, {
|
|
747
|
+
config: () => never[];
|
|
748
|
+
labelWidth: string;
|
|
749
|
+
labelAlign: string;
|
|
750
|
+
loading: boolean;
|
|
751
|
+
disabled: boolean;
|
|
752
|
+
hideSubmit: boolean;
|
|
753
|
+
modelValue: undefined;
|
|
754
|
+
gutter: number;
|
|
755
|
+
span: number;
|
|
756
|
+
formAttr: undefined;
|
|
757
|
+
grid: undefined;
|
|
758
|
+
}>>, {
|
|
718
759
|
onSubmit: typeof onSubmit;
|
|
719
|
-
onReset: (defValue?: Partial<
|
|
720
|
-
[x: string]: any;
|
|
721
|
-
}> | undefined) => void;
|
|
760
|
+
onReset: (defValue?: Partial<any> | undefined) => void;
|
|
722
761
|
resetFields(): void;
|
|
723
|
-
},
|
|
762
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
724
763
|
error: (...args: any[]) => void;
|
|
725
|
-
"update:modelValue": (...args: any[]) => void;
|
|
726
764
|
submit: (...args: any[]) => void;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
config
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
};
|
|
737
|
-
labelAlign: {
|
|
738
|
-
type: PropType<"left" | "right">;
|
|
739
|
-
default: string;
|
|
740
|
-
};
|
|
741
|
-
loading: BooleanConstructor;
|
|
742
|
-
disabled: BooleanConstructor;
|
|
743
|
-
hideSubmit: BooleanConstructor;
|
|
744
|
-
modelValue: {
|
|
745
|
-
type: ObjectConstructor;
|
|
746
|
-
default(): {};
|
|
747
|
-
};
|
|
765
|
+
"update:modelValue": (...args: any[]) => void;
|
|
766
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
|
|
767
|
+
config?: OrcFormItem[] | undefined;
|
|
768
|
+
labelWidth?: string | undefined;
|
|
769
|
+
labelAlign?: "left" | "right" | undefined;
|
|
770
|
+
loading?: boolean | undefined;
|
|
771
|
+
disabled?: boolean | undefined;
|
|
772
|
+
hideSubmit?: boolean | undefined;
|
|
773
|
+
modelValue?: Record<string, any> | undefined;
|
|
748
774
|
/** 栅格间距 */
|
|
749
|
-
gutter
|
|
750
|
-
type: NumberConstructor;
|
|
751
|
-
default: number;
|
|
752
|
-
};
|
|
775
|
+
gutter?: number | undefined;
|
|
753
776
|
/** 栅格 24 */
|
|
754
|
-
span
|
|
755
|
-
|
|
756
|
-
default: number;
|
|
757
|
-
};
|
|
758
|
-
formProps: {
|
|
759
|
-
type: ObjectConstructor;
|
|
760
|
-
default(): {};
|
|
761
|
-
};
|
|
777
|
+
span?: number | undefined;
|
|
778
|
+
formAttr?: Record<string, any> | undefined;
|
|
762
779
|
/** 栅格grid 优先级低于行 span */
|
|
763
|
-
grid
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
780
|
+
grid?: Record<string, any> | undefined;
|
|
781
|
+
}>, {
|
|
782
|
+
config: () => never[];
|
|
783
|
+
labelWidth: string;
|
|
784
|
+
labelAlign: string;
|
|
785
|
+
loading: boolean;
|
|
786
|
+
disabled: boolean;
|
|
787
|
+
hideSubmit: boolean;
|
|
788
|
+
modelValue: undefined;
|
|
789
|
+
gutter: number;
|
|
790
|
+
span: number;
|
|
791
|
+
formAttr: undefined;
|
|
792
|
+
grid: undefined;
|
|
793
|
+
}>>> & Readonly<{
|
|
769
794
|
onError?: ((...args: any[]) => any) | undefined;
|
|
795
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
770
796
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
771
|
-
}
|
|
797
|
+
}>, {
|
|
772
798
|
grid: Record<string, any>;
|
|
773
799
|
loading: boolean;
|
|
774
800
|
disabled: boolean;
|
|
775
801
|
modelValue: Record<string, any>;
|
|
776
802
|
span: number;
|
|
777
|
-
|
|
778
|
-
config: FormItemType[];
|
|
803
|
+
config: OrcFormItem[];
|
|
779
804
|
labelWidth: string;
|
|
780
805
|
labelAlign: "left" | "right";
|
|
781
806
|
hideSubmit: boolean;
|
|
782
807
|
gutter: number;
|
|
783
|
-
|
|
808
|
+
formAttr: Record<string, any>;
|
|
809
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
|
|
810
|
+
disabled: boolean;
|
|
811
|
+
value?: any;
|
|
812
|
+
setValue?: ((v: any) => void) | undefined;
|
|
813
|
+
options?: any;
|
|
814
|
+
utils: OrcFormUtil;
|
|
815
|
+
componentAttr: Record<string, any>;
|
|
816
|
+
}) => any>> & {
|
|
784
817
|
row?(_: {}): any;
|
|
785
818
|
default?(_: {
|
|
786
819
|
onSubmit: typeof onSubmit;
|
|
787
820
|
}): any;
|
|
788
821
|
}>;
|
|
789
822
|
|
|
790
|
-
export declare const OrcFormButton:
|
|
823
|
+
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<Props_2>, {
|
|
791
824
|
title: string;
|
|
792
825
|
modelValue: undefined;
|
|
793
|
-
|
|
794
|
-
|
|
826
|
+
gutter: number;
|
|
827
|
+
size: string;
|
|
828
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
829
|
+
"update:modelValue": (data: RecordAny) => void;
|
|
830
|
+
submit: (data: OrcFormSubmit) => void;
|
|
795
831
|
error: (data: any) => void;
|
|
796
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
832
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<Props_2>, {
|
|
797
833
|
title: string;
|
|
798
834
|
modelValue: undefined;
|
|
799
|
-
|
|
800
|
-
|
|
835
|
+
gutter: number;
|
|
836
|
+
size: string;
|
|
837
|
+
}>>> & Readonly<{
|
|
801
838
|
onError?: ((data: any) => any) | undefined;
|
|
802
|
-
|
|
839
|
+
onSubmit?: ((data: OrcFormSubmit) => any) | undefined;
|
|
840
|
+
"onUpdate:modelValue"?: ((data: RecordAny) => any) | undefined;
|
|
841
|
+
}>, {
|
|
803
842
|
title: string;
|
|
843
|
+
size: "medium" | "small" | "mini" | "large";
|
|
804
844
|
modelValue: RecordAny;
|
|
805
|
-
|
|
806
|
-
|
|
845
|
+
gutter: number;
|
|
846
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
847
|
+
icon?(_: {}): any;
|
|
848
|
+
default?(_: {
|
|
849
|
+
onSubmit: typeof onSubmit_2;
|
|
850
|
+
onShow: typeof onShow;
|
|
851
|
+
}): any;
|
|
852
|
+
row?(_: {}): any;
|
|
807
853
|
}>;
|
|
808
854
|
|
|
809
|
-
|
|
855
|
+
/**
|
|
856
|
+
* 表单配置项类型定义
|
|
857
|
+
* @description 描述表单字段的元数据和行为规则
|
|
858
|
+
*/
|
|
859
|
+
export declare type OrcFormItem = {
|
|
860
|
+
/**
|
|
861
|
+
* 组件类型标识
|
|
862
|
+
* @description 支持 Arco 内置组件或自定义 Vue 组件
|
|
863
|
+
* @example
|
|
864
|
+
* - 内置组件: 'a-input'
|
|
865
|
+
* - 自定义组件: defineAsyncComponent(() => import('./custom-component.vue'))
|
|
866
|
+
*/
|
|
867
|
+
type?: string | Component;
|
|
868
|
+
/** 表单项标签文本 */
|
|
869
|
+
name?: string;
|
|
870
|
+
/** 关联数据模型键名 */
|
|
871
|
+
model?: OrcFormUtil['model'];
|
|
872
|
+
/** 是否渲染该表单项 */
|
|
873
|
+
show?: boolean;
|
|
874
|
+
/**
|
|
875
|
+
* 字段默认值
|
|
876
|
+
* @description 根据组件类型自动进行类型推断
|
|
877
|
+
*/
|
|
878
|
+
defaultValue?: Exclude<ComponentAttrValue, ComponentAttrHandler>;
|
|
879
|
+
/** 验证触发时机 */
|
|
880
|
+
validateTrigger?: 'change' | 'input' | 'focus' | 'blur';
|
|
881
|
+
/** 组件原生属性配置 */
|
|
882
|
+
componentAttr?: Record<string, ComponentAttrValue>;
|
|
883
|
+
/**
|
|
884
|
+
* 表单项容器属性
|
|
885
|
+
* @see FormItemInstance 查看可用属性
|
|
886
|
+
*/
|
|
887
|
+
itemAttr?: FormItemInstance['$props'];
|
|
888
|
+
/**
|
|
889
|
+
* 自定义类名配置
|
|
890
|
+
* @description 支持响应式配置函数
|
|
891
|
+
* @param itemConfig - 当前表单项配置
|
|
892
|
+
* @param models - 表单数据模型
|
|
893
|
+
*/
|
|
894
|
+
customClass?: string | ((itemConfig: OrcFormItem, models: RecordAny_3) => string);
|
|
895
|
+
/**
|
|
896
|
+
* 多值序列化配置
|
|
897
|
+
* @description 开启后自动将数组转换为逗号分隔字符串
|
|
898
|
+
* @note 需要组件原生支持多选模式 (需同时配置 componentAttr.multiple)
|
|
899
|
+
*/
|
|
900
|
+
dotNotation?: boolean;
|
|
901
|
+
/** 数据字典系统编码 */
|
|
902
|
+
datadict?: string;
|
|
903
|
+
/** 字段级配置选项 */
|
|
904
|
+
options?: {
|
|
905
|
+
/** 必填标识 */
|
|
906
|
+
required?: boolean;
|
|
907
|
+
/** 栅格布局宽度 (基于24栅格系统) */
|
|
908
|
+
span?: number;
|
|
909
|
+
/** 栅格偏移量 */
|
|
910
|
+
offset?: number;
|
|
911
|
+
/** 禁用状态 */
|
|
912
|
+
disabled?: boolean;
|
|
913
|
+
/** 输入占位符 */
|
|
914
|
+
placeholder?: string;
|
|
915
|
+
/** 帮助说明文案 */
|
|
916
|
+
help?: string;
|
|
917
|
+
/** 悬浮提示内容 */
|
|
918
|
+
tooltip?: string;
|
|
919
|
+
/** 选择器选项列表 */
|
|
920
|
+
options?: SelectOptionData[];
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* 验证规则配置
|
|
924
|
+
* @description 支持静态配置或动态规则生成函数
|
|
925
|
+
*/
|
|
926
|
+
rules?: RecordAny_3[] | ((val: OrcFormItem, util: OrcFormUtil) => RecordAny_3[]);
|
|
927
|
+
/** 表单事件处理器 */
|
|
928
|
+
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange' | 'onUpdate'>;
|
|
929
|
+
/** 扩展说明字段 */
|
|
930
|
+
note?: string;
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* 表单提交数据结构
|
|
935
|
+
*/
|
|
936
|
+
export declare type OrcFormSubmit = {
|
|
937
|
+
/** 表单数据集合 */
|
|
938
|
+
data: RecordAny_3;
|
|
939
|
+
/** 表单工具方法 */
|
|
940
|
+
utils: {
|
|
941
|
+
/** 控制提交弹窗可见性 */
|
|
942
|
+
setVisible: (a: boolean) => void;
|
|
943
|
+
/** 控制加载状态 */
|
|
944
|
+
setLoading: (a: boolean) => void;
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
declare type OrcFormUtil = {
|
|
949
|
+
/**
|
|
950
|
+
* 获取/查询选项数据
|
|
951
|
+
* @overload@overload 获取指定模型的选项列表
|
|
952
|
+
* @param model - 模型标识符
|
|
953
|
+
*/
|
|
954
|
+
getModelOption(model: string): SelectOptionData[];
|
|
955
|
+
/**
|
|
956
|
+
* @overload@overload 根据值查找特定选项
|
|
957
|
+
* @param model - 模型标识符
|
|
958
|
+
* @param val - 要查找的选项值
|
|
959
|
+
* @returns 匹配的选项对象
|
|
960
|
+
*/
|
|
961
|
+
getModelOption(model: string, val: string): SelectOptionData;
|
|
962
|
+
/** 获取指定模型的值 */
|
|
963
|
+
getModel: (model: string) => any;
|
|
964
|
+
/** 检查指定模型是否可见 */
|
|
965
|
+
getShow: (model: string) => boolean;
|
|
966
|
+
/** 设置指定模型的选项数据 */
|
|
967
|
+
setModelOption: (model: string, val: any) => void;
|
|
968
|
+
/**
|
|
969
|
+
* 设置模型值
|
|
970
|
+
* @param c - 模型键名或键值对对象
|
|
971
|
+
* @param v - 当第一个参数为键名时使用的值
|
|
972
|
+
*/
|
|
973
|
+
setModel: (c: string | RecordAny_3, v?: any) => void;
|
|
974
|
+
/** 控制模型可见性 */
|
|
975
|
+
setShow: (model: string | string[], val: boolean) => void;
|
|
976
|
+
/** 用于双向数据绑定的模型属性 */
|
|
977
|
+
model?: string;
|
|
978
|
+
/** 组件挂载后执行 */
|
|
979
|
+
onMounted?: (util: OrcFormUtil) => any | Promise<any>;
|
|
980
|
+
/** 值改变时触发 */
|
|
981
|
+
onChange?: (val: any, util: OrcFormUtil) => void | Promise<void>;
|
|
982
|
+
/** 响应式更新时触发 */
|
|
983
|
+
onUpdate?: (val: any, oldVal: any, util: OrcFormUtil) => void | Promise<void>;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
810
987
|
isShow?: boolean | undefined;
|
|
811
988
|
isDirection?: boolean | undefined;
|
|
812
989
|
formProps?: Record<string, any> | undefined;
|
|
813
|
-
}>, {}
|
|
990
|
+
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
814
991
|
isShow?: boolean | undefined;
|
|
815
992
|
isDirection?: boolean | undefined;
|
|
816
993
|
formProps?: Record<string, any> | undefined;
|
|
817
|
-
}>, {}
|
|
994
|
+
}>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
818
995
|
default?(_: {}): any;
|
|
819
996
|
}>;
|
|
820
997
|
|
|
821
|
-
export declare const
|
|
998
|
+
export declare const OrcHiPrint: __VLS_WithTemplateSlots_7< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
999
|
+
template: undefined;
|
|
1000
|
+
fields: undefined;
|
|
1001
|
+
printData: undefined;
|
|
1002
|
+
}>>, {
|
|
1003
|
+
hiprintTemplate: Ref<PrintTemplate | undefined, PrintTemplate | undefined>;
|
|
1004
|
+
selectedOptions: Ref<{
|
|
1005
|
+
left?: number | undefined;
|
|
1006
|
+
top?: number | undefined;
|
|
1007
|
+
height?: number | undefined;
|
|
1008
|
+
width?: number | undefined;
|
|
1009
|
+
field?: string | undefined;
|
|
1010
|
+
tableFooterRepeat?: string | undefined;
|
|
1011
|
+
tableBorder?: string | undefined;
|
|
1012
|
+
tableHeaderBorder?: string | undefined;
|
|
1013
|
+
tableHeaderCellBorder?: string | undefined;
|
|
1014
|
+
tableBodyRowBorder?: string | undefined;
|
|
1015
|
+
tableFooterBorder?: string | undefined;
|
|
1016
|
+
fields?: FieldOption[] | undefined;
|
|
1017
|
+
columns?: {
|
|
1018
|
+
width?: number | undefined;
|
|
1019
|
+
checked?: boolean | undefined;
|
|
1020
|
+
fixed?: boolean | undefined;
|
|
1021
|
+
rowspan?: number | undefined;
|
|
1022
|
+
colspan?: number | undefined;
|
|
1023
|
+
title?: string | undefined;
|
|
1024
|
+
field?: string | undefined;
|
|
1025
|
+
halign?: string | undefined;
|
|
1026
|
+
align?: string | undefined;
|
|
1027
|
+
formatter2?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1028
|
+
renderFormatter?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1029
|
+
styler2?: ((value: any, row: any, index: number, options: any) => Record<string, any>) | undefined;
|
|
1030
|
+
stylerHeader?: ((options: any) => Record<string, any>) | undefined;
|
|
1031
|
+
tableTextType?: string | undefined;
|
|
1032
|
+
tableColumnHeight?: string | undefined;
|
|
1033
|
+
tableSummary?: string | undefined;
|
|
1034
|
+
tableSummaryTitle?: string | undefined;
|
|
1035
|
+
tableSummaryText?: string | undefined;
|
|
1036
|
+
tableSummaryAlign?: string | undefined;
|
|
1037
|
+
tableSummaryNumFormat?: number | undefined;
|
|
1038
|
+
upperCase?: string | undefined;
|
|
1039
|
+
}[] | undefined;
|
|
1040
|
+
fontFamily?: string | undefined;
|
|
1041
|
+
fontSize?: string | undefined;
|
|
1042
|
+
fontWeight?: string | undefined;
|
|
1043
|
+
} | undefined, {
|
|
1044
|
+
left?: number | undefined;
|
|
1045
|
+
top?: number | undefined;
|
|
1046
|
+
height?: number | undefined;
|
|
1047
|
+
width?: number | undefined;
|
|
1048
|
+
field?: string | undefined;
|
|
1049
|
+
tableFooterRepeat?: string | undefined;
|
|
1050
|
+
tableBorder?: string | undefined;
|
|
1051
|
+
tableHeaderBorder?: string | undefined;
|
|
1052
|
+
tableHeaderCellBorder?: string | undefined;
|
|
1053
|
+
tableBodyRowBorder?: string | undefined;
|
|
1054
|
+
tableFooterBorder?: string | undefined;
|
|
1055
|
+
fields?: FieldOption[] | undefined;
|
|
1056
|
+
columns?: {
|
|
1057
|
+
width?: number | undefined;
|
|
1058
|
+
checked?: boolean | undefined;
|
|
1059
|
+
fixed?: boolean | undefined;
|
|
1060
|
+
rowspan?: number | undefined;
|
|
1061
|
+
colspan?: number | undefined;
|
|
1062
|
+
title?: string | undefined;
|
|
1063
|
+
field?: string | undefined;
|
|
1064
|
+
halign?: string | undefined;
|
|
1065
|
+
align?: string | undefined;
|
|
1066
|
+
formatter2?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1067
|
+
renderFormatter?: ((value: any, row: any, index: number, options: any) => string | HTMLElement) | undefined;
|
|
1068
|
+
styler2?: ((value: any, row: any, index: number, options: any) => Record<string, any>) | undefined;
|
|
1069
|
+
stylerHeader?: ((options: any) => Record<string, any>) | undefined;
|
|
1070
|
+
tableTextType?: string | undefined;
|
|
1071
|
+
tableColumnHeight?: string | undefined;
|
|
1072
|
+
tableSummary?: string | undefined;
|
|
1073
|
+
tableSummaryTitle?: string | undefined;
|
|
1074
|
+
tableSummaryText?: string | undefined;
|
|
1075
|
+
tableSummaryAlign?: string | undefined;
|
|
1076
|
+
tableSummaryNumFormat?: number | undefined;
|
|
1077
|
+
upperCase?: string | undefined;
|
|
1078
|
+
}[] | undefined;
|
|
1079
|
+
fontFamily?: string | undefined;
|
|
1080
|
+
fontSize?: string | undefined;
|
|
1081
|
+
fontWeight?: string | undefined;
|
|
1082
|
+
} | undefined>;
|
|
1083
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1084
|
+
onSave: (...args: any[]) => void;
|
|
1085
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
1086
|
+
template: undefined;
|
|
1087
|
+
fields: undefined;
|
|
1088
|
+
printData: undefined;
|
|
1089
|
+
}>>> & Readonly<{
|
|
1090
|
+
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
1091
|
+
}>, {
|
|
1092
|
+
template: Record<string, any>;
|
|
1093
|
+
printData: Record<string, any>;
|
|
1094
|
+
fields: FieldOption[];
|
|
1095
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1096
|
+
toolbar?(_: {}): any;
|
|
1097
|
+
}>;
|
|
1098
|
+
|
|
1099
|
+
export declare interface OrcHiPrintData extends Record<string, any> {
|
|
1100
|
+
options: {
|
|
1101
|
+
/** 列左偏移量 */
|
|
1102
|
+
left?: number;
|
|
1103
|
+
/** 列顶部偏移量 */
|
|
1104
|
+
top?: number;
|
|
1105
|
+
/** 表格高度 */
|
|
1106
|
+
height?: number;
|
|
1107
|
+
/** 表格宽度 */
|
|
1108
|
+
width?: number;
|
|
1109
|
+
/** 字段名称 */
|
|
1110
|
+
field?: string;
|
|
1111
|
+
/** 表尾重复内容 */
|
|
1112
|
+
tableFooterRepeat?: string;
|
|
1113
|
+
/** 表格边框样式 */
|
|
1114
|
+
tableBorder?: string;
|
|
1115
|
+
/** 表头边框样式 */
|
|
1116
|
+
tableHeaderBorder?: string;
|
|
1117
|
+
/** 表头单元格边框样式 */
|
|
1118
|
+
tableHeaderCellBorder?: string;
|
|
1119
|
+
/** 表体行边框样式 */
|
|
1120
|
+
tableBodyRowBorder?: string;
|
|
1121
|
+
/** 表尾边框样式 */
|
|
1122
|
+
tableFooterBorder?: string;
|
|
1123
|
+
/** 字段选项数组 */
|
|
1124
|
+
fields?: FieldOption[];
|
|
1125
|
+
/** 列配置数组 */
|
|
1126
|
+
columns?: {
|
|
1127
|
+
/** 列宽 可拖拽调整 */
|
|
1128
|
+
width?: number;
|
|
1129
|
+
/** 是否选中 */
|
|
1130
|
+
checked?: boolean;
|
|
1131
|
+
/** 列宽度锁定 */
|
|
1132
|
+
fixed?: boolean;
|
|
1133
|
+
/** 行合并 */
|
|
1134
|
+
rowspan?: number;
|
|
1135
|
+
/** 列合并 */
|
|
1136
|
+
colspan?: number;
|
|
1137
|
+
/** 列标题 姓名#name ==#后面是字段名 field == */
|
|
1138
|
+
title?: string;
|
|
1139
|
+
/** 列字段名 */
|
|
1140
|
+
field?: string;
|
|
1141
|
+
/** 表头左右对齐方式 left、right、center */
|
|
1142
|
+
halign?: string;
|
|
1143
|
+
/** 左右对齐方式 left、right、center */
|
|
1144
|
+
align?: string;
|
|
1145
|
+
/** 单元格格式化函数 */
|
|
1146
|
+
formatter2?: (value: any, row: any, index: number, options: any) => string | HTMLElement;
|
|
1147
|
+
/** 单元格渲染函数 */
|
|
1148
|
+
renderFormatter?: (value: any, row: any, index: number, options: any) => string | HTMLElement;
|
|
1149
|
+
/** 单元格样式函数 */
|
|
1150
|
+
styler2?: (value: any, row: any, index: number, options: any) => Record<string, any>;
|
|
1151
|
+
/** 表头样式函数 */
|
|
1152
|
+
stylerHeader?: (options: any) => Record<string, any>;
|
|
1153
|
+
/** 单元格字段类型 text、barcode、image、qrcode、sequence */
|
|
1154
|
+
tableTextType?: string;
|
|
1155
|
+
/** 特定单元格高度 二维码、条形码、图片才有效 */
|
|
1156
|
+
tableColumnHeight?: string;
|
|
1157
|
+
/** 底部聚合函数 count:计数 sum:合计 avg:平均值 max:最大值 min:最小值 */
|
|
1158
|
+
tableSummary?: string;
|
|
1159
|
+
/** 底部聚合函数标题 'true','false' 显示或隐藏 */
|
|
1160
|
+
tableSummaryTitle?: string;
|
|
1161
|
+
/** 底部聚合函数标题自定义聚合函数前面的文本 */
|
|
1162
|
+
tableSummaryText?: string;
|
|
1163
|
+
/** 底部聚合函数对齐方式 left、right、center */
|
|
1164
|
+
tableSummaryAlign?: string;
|
|
1165
|
+
/** 底部聚合函数保留小数位 默认 2 */
|
|
1166
|
+
tableSummaryNumFormat?: number;
|
|
1167
|
+
/** 转大写 如:7 就会把 10.8 转换成 壹拾元捌角零分 */
|
|
1168
|
+
upperCase?: string;
|
|
1169
|
+
}[];
|
|
1170
|
+
/** 字体 默认可继承面板设置的字体 默认宋体 */
|
|
1171
|
+
fontFamily?: string;
|
|
1172
|
+
/** 字体大小 默认9pt */
|
|
1173
|
+
fontSize?: string;
|
|
1174
|
+
/** 字体粗细 */
|
|
1175
|
+
fontWeight?: string;
|
|
1176
|
+
};
|
|
1177
|
+
printElementType: {
|
|
1178
|
+
/** 元素标题 */
|
|
1179
|
+
title: string;
|
|
1180
|
+
/** 元素类型 */
|
|
1181
|
+
type: string;
|
|
1182
|
+
/** 是否可编辑 */
|
|
1183
|
+
editable?: boolean;
|
|
1184
|
+
/** 列显示是否可编辑 */
|
|
1185
|
+
columnDisplayEditable?: boolean;
|
|
1186
|
+
/** 列索引显示是否可编辑 */
|
|
1187
|
+
columnDisplayIndexEditable?: boolean;
|
|
1188
|
+
/** 列标题是否可编辑 */
|
|
1189
|
+
columnTitleEditable?: boolean;
|
|
1190
|
+
/** 列是否可调整大小 */
|
|
1191
|
+
columnResizable?: boolean;
|
|
1192
|
+
/** 列对齐方式是否可编辑 */
|
|
1193
|
+
columnAlignEditable?: boolean;
|
|
1194
|
+
/** 是否启用字段编辑 */
|
|
1195
|
+
isEnableEditFieldv?: boolean;
|
|
1196
|
+
/** 是否启用上下文菜单 */
|
|
1197
|
+
isEnableContextMenu?: boolean;
|
|
1198
|
+
/** 是否启用插入行 */
|
|
1199
|
+
isEnableInsertRow?: boolean;
|
|
1200
|
+
/** 是否启用删除行 */
|
|
1201
|
+
isEnableDeleteRow?: boolean;
|
|
1202
|
+
/** 是否启用插入列 */
|
|
1203
|
+
isEnableInsertColumn?: boolean;
|
|
1204
|
+
/** 是否启用删除列 */
|
|
1205
|
+
isEnableDeleteColumn?: boolean;
|
|
1206
|
+
/** 是否启用合并单元格 */
|
|
1207
|
+
isEnableMergeCell?: boolean;
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
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>, {
|
|
822
1212
|
default?(_: {}): any;
|
|
823
1213
|
}>;
|
|
824
1214
|
|
|
825
|
-
export declare const OrcQuill: DefineComponent<{
|
|
1215
|
+
export declare const OrcQuill: DefineComponent<ExtractPropTypes<{
|
|
826
1216
|
modelValue: {
|
|
827
1217
|
type: StringConstructor;
|
|
828
1218
|
default: string;
|
|
@@ -831,7 +1221,7 @@ export declare const OrcQuill: DefineComponent<{
|
|
|
831
1221
|
type: (StringConstructor | ArrayConstructor)[];
|
|
832
1222
|
default: string;
|
|
833
1223
|
};
|
|
834
|
-
}
|
|
1224
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
835
1225
|
"update:modelValue": (...args: any[]) => void;
|
|
836
1226
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
837
1227
|
modelValue: {
|
|
@@ -842,18 +1232,18 @@ export declare const OrcQuill: DefineComponent<{
|
|
|
842
1232
|
type: (StringConstructor | ArrayConstructor)[];
|
|
843
1233
|
default: string;
|
|
844
1234
|
};
|
|
845
|
-
}>> & {
|
|
1235
|
+
}>> & Readonly<{
|
|
846
1236
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
847
|
-
}
|
|
1237
|
+
}>, {
|
|
848
1238
|
modelValue: string;
|
|
849
1239
|
toolbar: string | unknown[];
|
|
850
|
-
}, {}>;
|
|
1240
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
851
1241
|
|
|
852
|
-
export declare const OrcSearch:
|
|
1242
|
+
export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<ExtractPropTypes<{
|
|
853
1243
|
loading: BooleanConstructor;
|
|
854
1244
|
readonly: BooleanConstructor;
|
|
855
1245
|
options: {
|
|
856
|
-
type: PropType<
|
|
1246
|
+
type: PropType<OrcSearchItem[]>;
|
|
857
1247
|
default(): never[];
|
|
858
1248
|
};
|
|
859
1249
|
modelValue: {
|
|
@@ -872,14 +1262,14 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_2< DefineComponent<{
|
|
|
872
1262
|
type: StringConstructor;
|
|
873
1263
|
default: string;
|
|
874
1264
|
};
|
|
875
|
-
}
|
|
876
|
-
onSearch: (...args: any[]) => void;
|
|
1265
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
877
1266
|
"update:model-value": (...args: any[]) => void;
|
|
1267
|
+
onSearch: (...args: any[]) => void;
|
|
878
1268
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
879
1269
|
loading: BooleanConstructor;
|
|
880
1270
|
readonly: BooleanConstructor;
|
|
881
1271
|
options: {
|
|
882
|
-
type: PropType<
|
|
1272
|
+
type: PropType<OrcSearchItem[]>;
|
|
883
1273
|
default(): never[];
|
|
884
1274
|
};
|
|
885
1275
|
modelValue: {
|
|
@@ -898,29 +1288,67 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_2< DefineComponent<{
|
|
|
898
1288
|
type: StringConstructor;
|
|
899
1289
|
default: string;
|
|
900
1290
|
};
|
|
901
|
-
}>> & {
|
|
1291
|
+
}>> & Readonly<{
|
|
902
1292
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
903
1293
|
onOnSearch?: ((...args: any[]) => any) | undefined;
|
|
904
|
-
}
|
|
1294
|
+
}>, {
|
|
905
1295
|
loading: boolean;
|
|
906
1296
|
size: string;
|
|
907
1297
|
modelValue: Record<string, any>;
|
|
908
|
-
options: TypeSearchItem[];
|
|
909
|
-
readonly: boolean;
|
|
910
1298
|
labelWidth: string;
|
|
1299
|
+
options: OrcSearchItem[];
|
|
1300
|
+
readonly: boolean;
|
|
911
1301
|
inputWidth: string;
|
|
912
|
-
}, {}>, {
|
|
1302
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
913
1303
|
head?(_: {}): any;
|
|
914
1304
|
default?(_: {}): any;
|
|
915
1305
|
}>;
|
|
916
1306
|
|
|
917
|
-
export declare
|
|
1307
|
+
export declare interface OrcSearchItem extends RecordAny {
|
|
1308
|
+
/** input 类型 */
|
|
1309
|
+
type?: string;
|
|
1310
|
+
/** 同form [name] */
|
|
1311
|
+
name: string;
|
|
1312
|
+
/** 标签名称 */
|
|
1313
|
+
label: string;
|
|
1314
|
+
/** 初始值 */
|
|
1315
|
+
defaultValue?: string | boolean | number | string[];
|
|
1316
|
+
/** 默认是显示 */
|
|
1317
|
+
show?: boolean;
|
|
1318
|
+
/** type =number 最小值 */
|
|
1319
|
+
min?: number;
|
|
1320
|
+
/** type =number 最大值 */
|
|
1321
|
+
max?: number;
|
|
1322
|
+
/** type=select | type=date */
|
|
1323
|
+
multiple?: boolean;
|
|
1324
|
+
/** type=select */
|
|
1325
|
+
options?: {
|
|
1326
|
+
label: string;
|
|
1327
|
+
value: string;
|
|
1328
|
+
disabled?: boolean;
|
|
1329
|
+
}[];
|
|
1330
|
+
/** type=date */
|
|
1331
|
+
format?: string;
|
|
1332
|
+
/** type=date */
|
|
1333
|
+
showTime?: boolean;
|
|
1334
|
+
/** 必填 */
|
|
1335
|
+
required?: boolean;
|
|
1336
|
+
/** 表单验证 */
|
|
1337
|
+
rules?: RecordAny | RecordAny[];
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<{
|
|
918
1341
|
title: StringConstructor;
|
|
919
1342
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
920
1343
|
height: (StringConstructor | NumberConstructor)[];
|
|
921
1344
|
/** 隐藏工具栏 */
|
|
922
1345
|
hideToolbar: BooleanConstructor;
|
|
1346
|
+
hideSetting: BooleanConstructor;
|
|
923
1347
|
hidePagination: BooleanConstructor;
|
|
1348
|
+
isHover: {
|
|
1349
|
+
type: BooleanConstructor;
|
|
1350
|
+
default: boolean;
|
|
1351
|
+
};
|
|
924
1352
|
size: {
|
|
925
1353
|
type: PropType<"medium" | "small" | "mini">;
|
|
926
1354
|
default: string;
|
|
@@ -932,7 +1360,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
932
1360
|
};
|
|
933
1361
|
/** 与 loadData 行为一致 */
|
|
934
1362
|
data: {
|
|
935
|
-
type:
|
|
1363
|
+
type: PropType<RecordAny_2[]>;
|
|
936
1364
|
default: () => never[];
|
|
937
1365
|
};
|
|
938
1366
|
/** 配置文件 */
|
|
@@ -947,7 +1375,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
947
1375
|
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
948
1376
|
setColumn: (list: RecordAny_2[]) => void;
|
|
949
1377
|
}>;
|
|
950
|
-
}
|
|
1378
|
+
}>, {
|
|
951
1379
|
getRowKey(): string;
|
|
952
1380
|
getTableData(): RecordAny_2[];
|
|
953
1381
|
getSelection(): RecordAny_2[];
|
|
@@ -969,19 +1397,25 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
969
1397
|
dataInit(isFirst?: boolean | undefined): Promise<void>;
|
|
970
1398
|
/** 加载数据 */
|
|
971
1399
|
loadData(list: any[]): void;
|
|
972
|
-
},
|
|
1400
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
973
1401
|
"update:selectedKeys": (...args: any[]) => void;
|
|
1402
|
+
change: (...args: any[]) => void;
|
|
974
1403
|
cellClick: (...args: any[]) => void;
|
|
975
1404
|
onReset: (...args: any[]) => void;
|
|
976
|
-
change: (...args: any[]) => void;
|
|
977
1405
|
confirm: (...args: any[]) => void;
|
|
1406
|
+
cellDblclick: (...args: any[]) => void;
|
|
978
1407
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
979
1408
|
title: StringConstructor;
|
|
980
1409
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
981
1410
|
height: (StringConstructor | NumberConstructor)[];
|
|
982
1411
|
/** 隐藏工具栏 */
|
|
983
1412
|
hideToolbar: BooleanConstructor;
|
|
1413
|
+
hideSetting: BooleanConstructor;
|
|
984
1414
|
hidePagination: BooleanConstructor;
|
|
1415
|
+
isHover: {
|
|
1416
|
+
type: BooleanConstructor;
|
|
1417
|
+
default: boolean;
|
|
1418
|
+
};
|
|
985
1419
|
size: {
|
|
986
1420
|
type: PropType<"medium" | "small" | "mini">;
|
|
987
1421
|
default: string;
|
|
@@ -993,7 +1427,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
993
1427
|
};
|
|
994
1428
|
/** 与 loadData 行为一致 */
|
|
995
1429
|
data: {
|
|
996
|
-
type:
|
|
1430
|
+
type: PropType<RecordAny_2[]>;
|
|
997
1431
|
default: () => never[];
|
|
998
1432
|
};
|
|
999
1433
|
/** 配置文件 */
|
|
@@ -1008,22 +1442,26 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
1008
1442
|
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1009
1443
|
setColumn: (list: RecordAny_2[]) => void;
|
|
1010
1444
|
}>;
|
|
1011
|
-
}>> & {
|
|
1445
|
+
}>> & Readonly<{
|
|
1012
1446
|
"onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
|
|
1447
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1013
1448
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
|
1014
1449
|
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
1015
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
1016
1450
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
1017
|
-
|
|
1018
|
-
|
|
1451
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
|
1452
|
+
}>, {
|
|
1453
|
+
data: RecordAny_2[];
|
|
1019
1454
|
option: OrcTableOption;
|
|
1020
1455
|
size: "medium" | "small" | "mini";
|
|
1021
1456
|
hideToolbar: boolean;
|
|
1457
|
+
hideSetting: boolean;
|
|
1022
1458
|
hidePagination: boolean;
|
|
1459
|
+
isHover: boolean;
|
|
1023
1460
|
selectedKeys: unknown[];
|
|
1024
|
-
}, {}>, {
|
|
1461
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1025
1462
|
default?(_: {}): any;
|
|
1026
1463
|
tools?(_: {}): any;
|
|
1464
|
+
columns?(_: {}): any;
|
|
1027
1465
|
cell?(_: {
|
|
1028
1466
|
record: any;
|
|
1029
1467
|
dataIndex: string;
|
|
@@ -1036,6 +1474,40 @@ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
1036
1474
|
footer?(_: {}): any;
|
|
1037
1475
|
}>;
|
|
1038
1476
|
|
|
1477
|
+
declare interface OrcTableExpose extends TableGridTwoType {
|
|
1478
|
+
loading: boolean;
|
|
1479
|
+
setLoading: (loading?: boolean) => void;
|
|
1480
|
+
/** 请求数据 */
|
|
1481
|
+
dataInit: () => Promise<void>;
|
|
1482
|
+
/** 重置表单数据 */
|
|
1483
|
+
loadData: (list: RecordAny_2[]) => void;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/** column type */
|
|
1487
|
+
declare interface OrcTableItem extends RecordAny_2 {
|
|
1488
|
+
show?: boolean;
|
|
1489
|
+
dataIndex: string;
|
|
1490
|
+
title?: string;
|
|
1491
|
+
width?: number;
|
|
1492
|
+
sort?: boolean;
|
|
1493
|
+
/** 开启编辑 */
|
|
1494
|
+
cell?: boolean;
|
|
1495
|
+
/** 影响性能 cell = true 有效 只显示编辑内容 */
|
|
1496
|
+
div?: boolean;
|
|
1497
|
+
/** 没内容时候得提示 */
|
|
1498
|
+
placeholder?: string;
|
|
1499
|
+
tooltip?: boolean;
|
|
1500
|
+
ellipsis?: boolean;
|
|
1501
|
+
align?: VxeColumnPropTypes.Align;
|
|
1502
|
+
headerAlign?: VxeColumnPropTypes.HeaderAlign;
|
|
1503
|
+
footerAlign?: VxeColumnPropTypes.FooterAlign;
|
|
1504
|
+
format?: (val: any, record?: RecordAny_2) => string;
|
|
1505
|
+
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1506
|
+
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1507
|
+
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1508
|
+
columnProps?: any;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1039
1511
|
/**
|
|
1040
1512
|
* table option type
|
|
1041
1513
|
* @example
|
|
@@ -1065,7 +1537,7 @@ export declare interface OrcTableOption extends RecordAny_2 {
|
|
|
1065
1537
|
/** 多选时 同kay选择 */
|
|
1066
1538
|
checkboxKey?: string;
|
|
1067
1539
|
/** 自定义列 同 resolveColumns() */
|
|
1068
|
-
columns:
|
|
1540
|
+
columns: OrcTableItem[];
|
|
1069
1541
|
/** 默认分页条数 */
|
|
1070
1542
|
pageSize?: number;
|
|
1071
1543
|
/** 默认分页列表 */
|
|
@@ -1097,7 +1569,9 @@ export declare interface OrcTableOption extends RecordAny_2 {
|
|
|
1097
1569
|
/** 同 merge-footer-items 临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构) */
|
|
1098
1570
|
mergeFooter?: VxeTablePropTypes.MergeFooterItems;
|
|
1099
1571
|
/** 自定义列 同 columns */
|
|
1100
|
-
resolveColumns?: (columns?:
|
|
1572
|
+
resolveColumns?: (columns?: OrcTableItem[]) => OrcTableItem[];
|
|
1573
|
+
/** 计算总条目 */
|
|
1574
|
+
resolveTotal?: (e: RecordAny_2) => number;
|
|
1101
1575
|
/** 请求超时时间 */
|
|
1102
1576
|
timeout?: number;
|
|
1103
1577
|
/** 静态参数 */
|
|
@@ -1127,60 +1601,51 @@ export declare interface OrcTableOption extends RecordAny_2 {
|
|
|
1127
1601
|
}
|
|
1128
1602
|
|
|
1129
1603
|
declare interface Props {
|
|
1604
|
+
useErrData?: <T = Record<string, any>>(config: Record<string, any>) => Promise<[boolean, T]>;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
declare interface Props_2 {
|
|
1608
|
+
isView?: boolean;
|
|
1130
1609
|
disabled?: boolean;
|
|
1131
1610
|
title?: string;
|
|
1132
1611
|
span?: number;
|
|
1133
1612
|
gutter?: number;
|
|
1134
|
-
|
|
1613
|
+
size?: Size;
|
|
1614
|
+
config: OrcFormItem[];
|
|
1135
1615
|
modelValue?: RecordAny;
|
|
1136
1616
|
labelWidth?: string;
|
|
1137
1617
|
buttonAttrs?: ButtonInstance['$props'];
|
|
1138
1618
|
modalAttrs?: ModalInstance['$props'];
|
|
1139
1619
|
}
|
|
1140
1620
|
|
|
1141
|
-
declare
|
|
1142
|
-
|
|
1143
|
-
|
|
1621
|
+
declare type Props_3 = {
|
|
1622
|
+
/** 更新模板 hiprintTemplate.update */
|
|
1623
|
+
template?: Record<string, any>;
|
|
1624
|
+
/** 更新数据源 hiprintTemplate.setFields */
|
|
1625
|
+
fields?: FieldOption[];
|
|
1626
|
+
/** 预览测试数据 */
|
|
1627
|
+
printData?: Record<string, any>;
|
|
1628
|
+
};
|
|
1144
1629
|
|
|
1145
1630
|
export declare type RecordAny = Record<string, any>;
|
|
1146
1631
|
|
|
1147
1632
|
declare type RecordAny_2 = Record<string, any>;
|
|
1148
1633
|
|
|
1149
|
-
|
|
1634
|
+
/** 通用对象类型 (键值对形式) */
|
|
1635
|
+
declare type RecordAny_3 = Record<string, any>;
|
|
1150
1636
|
|
|
1151
|
-
/**
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
div?: boolean;
|
|
1162
|
-
/** 没内容时候得提示 */
|
|
1163
|
-
placeholder?: string;
|
|
1164
|
-
tooltip?: boolean;
|
|
1165
|
-
ellipsis?: boolean;
|
|
1166
|
-
align?: VxeColumnPropTypes.Align;
|
|
1167
|
-
headerAlign?: VxeColumnPropTypes.HeaderAlign;
|
|
1168
|
-
footerAlign?: VxeColumnPropTypes.FooterAlign;
|
|
1169
|
-
format?: (val: any, record?: RecordAny_2) => string;
|
|
1170
|
-
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1171
|
-
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1172
|
-
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1173
|
-
columnProps?: any;
|
|
1174
|
-
}
|
|
1637
|
+
/**
|
|
1638
|
+
* set path object
|
|
1639
|
+
* @example
|
|
1640
|
+
* ```
|
|
1641
|
+
* var b = {a:{b:1}}
|
|
1642
|
+
* setData(b,'a.b',2)
|
|
1643
|
+
* // {a:{b:2}}
|
|
1644
|
+
* ```
|
|
1645
|
+
*/
|
|
1646
|
+
export declare function setData(object: RecordAny, path: string, defaultValue?: any): RecordAny;
|
|
1175
1647
|
|
|
1176
|
-
declare
|
|
1177
|
-
loading: boolean;
|
|
1178
|
-
setLoading: (loading?: boolean) => void;
|
|
1179
|
-
/** 请求数据 */
|
|
1180
|
-
dataInit: () => Promise<void>;
|
|
1181
|
-
/** 重置表单数据 */
|
|
1182
|
-
loadData: (list: RecordAny_2[]) => void;
|
|
1183
|
-
}
|
|
1648
|
+
declare function setLoading(val?: boolean): void;
|
|
1184
1649
|
|
|
1185
1650
|
declare interface TableGridTwoType extends RecordAny_2 {
|
|
1186
1651
|
/** 读取配置的rowKey 默认 _X_ROW_KEY */
|
|
@@ -1225,38 +1690,11 @@ declare interface TableGridTwoType extends RecordAny_2 {
|
|
|
1225
1690
|
|
|
1226
1691
|
declare type TableInstance = InstanceType<typeof VxeTable>;
|
|
1227
1692
|
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
/** 标签名称 */
|
|
1234
|
-
label: string;
|
|
1235
|
-
/** 初始值 */
|
|
1236
|
-
defaultValue?: string | boolean | number | string[];
|
|
1237
|
-
/** 默认是显示 */
|
|
1238
|
-
show?: boolean;
|
|
1239
|
-
/** type =number 最小值 */
|
|
1240
|
-
min?: number;
|
|
1241
|
-
/** type =number 最大值 */
|
|
1242
|
-
max?: number;
|
|
1243
|
-
/** type=select | type=date */
|
|
1244
|
-
multiple?: boolean;
|
|
1245
|
-
/** type=select */
|
|
1246
|
-
options?: {
|
|
1247
|
-
label: string;
|
|
1248
|
-
value: string;
|
|
1249
|
-
disabled?: boolean;
|
|
1250
|
-
}[];
|
|
1251
|
-
/** type=date */
|
|
1252
|
-
format?: string;
|
|
1253
|
-
/** type=date */
|
|
1254
|
-
showTime?: boolean;
|
|
1255
|
-
/** 必填 */
|
|
1256
|
-
required?: boolean;
|
|
1257
|
-
/** 表单验证 */
|
|
1258
|
-
rules?: RecordAny | RecordAny[];
|
|
1259
|
-
}
|
|
1693
|
+
/** array */
|
|
1694
|
+
export declare function toArray<T>(target: T | T[]): T[];
|
|
1695
|
+
|
|
1696
|
+
/** 读取数据类型 */
|
|
1697
|
+
export declare function typeName(o: unknown): string;
|
|
1260
1698
|
|
|
1261
1699
|
/**
|
|
1262
1700
|
* @example
|
|
@@ -1277,7 +1715,7 @@ declare interface TypeSearchItem extends RecordAny {
|
|
|
1277
1715
|
* { type: 'date', name: 'd2', label: '日期范围', multiple: true, defaultValue: '2024-07-01,2024-08-07' },
|
|
1278
1716
|
* ```
|
|
1279
1717
|
*/
|
|
1280
|
-
export declare function useOrcSearch(list:
|
|
1718
|
+
export declare function useOrcSearch(list: OrcSearchItem[]): readonly [ Ref<{
|
|
1281
1719
|
[x: string]: any;
|
|
1282
1720
|
type?: string | undefined;
|
|
1283
1721
|
name: string;
|
|
@@ -1339,7 +1777,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1339
1777
|
getRowSeq: (row: any) => string | number;
|
|
1340
1778
|
getRowIndex: (row: any) => number;
|
|
1341
1779
|
removerRowIndex: (rowIndex: number) => void;
|
|
1342
|
-
},
|
|
1780
|
+
}, OrcTableExpose | {
|
|
1343
1781
|
[x: string]: any;
|
|
1344
1782
|
loading: boolean;
|
|
1345
1783
|
setLoading: (loading?: boolean | undefined) => void;
|
|
@@ -1370,7 +1808,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1370
1808
|
checkKey?: string | undefined;
|
|
1371
1809
|
rowKey?: string | undefined;
|
|
1372
1810
|
checkboxKey?: string | undefined;
|
|
1373
|
-
columns:
|
|
1811
|
+
columns: OrcTableItem[];
|
|
1374
1812
|
pageSize?: number | undefined;
|
|
1375
1813
|
pageSizeOptions?: number[] | undefined;
|
|
1376
1814
|
selectedType?: "checkbox" | "radio" | undefined;
|
|
@@ -1390,7 +1828,8 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1390
1828
|
}) => CssType) | undefined;
|
|
1391
1829
|
footerMethod?: VxeTablePropTypes<VxeTableDataRow> | undefined;
|
|
1392
1830
|
mergeFooter?: VxeTablePropTypes<VxeTableDataRow> | undefined;
|
|
1393
|
-
resolveColumns?: ((columns?:
|
|
1831
|
+
resolveColumns?: ((columns?: OrcTableItem[] | undefined) => OrcTableItem[]) | undefined;
|
|
1832
|
+
resolveTotal?: ((e: RecordAny_2) => number) | undefined;
|
|
1394
1833
|
timeout?: number | undefined;
|
|
1395
1834
|
data?: RecordAny_2 | undefined;
|
|
1396
1835
|
resolvePage?: ((page?: RecordAny_2 | undefined) => any) | undefined;
|
|
@@ -1781,26 +2220,8 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1781
2220
|
selectedKeys: Ref<string[], string[]>;
|
|
1782
2221
|
};
|
|
1783
2222
|
|
|
1784
|
-
declare function useState<T extends
|
|
2223
|
+
export declare function useState<T extends Record<string, any>>(initValue?: T, formsRef?: Ref<{
|
|
1785
2224
|
resetFields?: () => void;
|
|
1786
|
-
}>):
|
|
1787
|
-
|
|
1788
|
-
export declare const utils: {
|
|
1789
|
-
formatTable: {
|
|
1790
|
-
tf: (val: any, digits?: any) => any;
|
|
1791
|
-
t: (val: any) => string;
|
|
1792
|
-
time: (val: any, f?: string) => string;
|
|
1793
|
-
p: (val: any, digits?: any, percent?: string) => string;
|
|
1794
|
-
};
|
|
1795
|
-
mergeConfig: typeof mergeConfig;
|
|
1796
|
-
generateQRcodeBase64: typeof generateQRcodeBase64;
|
|
1797
|
-
downLoadPdf: typeof downLoadPdf;
|
|
1798
|
-
useState: typeof useState;
|
|
1799
|
-
findObject: typeof findObject;
|
|
1800
|
-
omitObject: typeof omitObject;
|
|
1801
|
-
deepClone: <T = RecordAny | RecordAny[]>(origin: T) => T;
|
|
1802
|
-
download: (url: string, fileName?: string) => boolean;
|
|
1803
|
-
log: typeof log;
|
|
1804
|
-
};
|
|
2225
|
+
}>): [Ref<T>, (defValue?: Partial<T>) => void];
|
|
1805
2226
|
|
|
1806
2227
|
export { }
|