@shaonq/vue 1.1.17 → 1.1.19
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 +95 -94
- package/lib/index.js +2027 -2021
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ComputedOptions } from 'vue';
|
|
|
7
7
|
import { DefineComponent } from 'vue';
|
|
8
8
|
import { ExtractPropTypes } from 'vue';
|
|
9
9
|
import { FormItem } from '@arco-design/web-vue';
|
|
10
|
+
import { hiprint } from '@sv-print/hiprint';
|
|
10
11
|
import { MethodOptions } from 'vue';
|
|
11
12
|
import { Modal } from '@arco-design/web-vue';
|
|
12
13
|
import { ModalConfig } from '@arco-design/web-vue';
|
|
@@ -38,6 +39,8 @@ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
|
38
39
|
|
|
39
40
|
declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
|
|
40
41
|
|
|
42
|
+
declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
|
|
43
|
+
|
|
41
44
|
declare type __VLS_Prettify<T> = {
|
|
42
45
|
[K in keyof T]: T[K];
|
|
43
46
|
} & {};
|
|
@@ -58,6 +61,10 @@ declare type __VLS_Prettify_5<T> = {
|
|
|
58
61
|
[K in keyof T]: T[K];
|
|
59
62
|
} & {};
|
|
60
63
|
|
|
64
|
+
declare type __VLS_Prettify_6<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
67
|
+
|
|
61
68
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
69
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
70
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
@@ -103,6 +110,15 @@ declare type __VLS_TypePropsToRuntimeProps_5<T> = {
|
|
|
103
110
|
};
|
|
104
111
|
};
|
|
105
112
|
|
|
113
|
+
declare type __VLS_TypePropsToRuntimeProps_6<T> = {
|
|
114
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
115
|
+
type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
|
|
116
|
+
} : {
|
|
117
|
+
type: PropType<T[K]>;
|
|
118
|
+
required: true;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
|
|
106
122
|
declare type __VLS_WithDefaults<P, D> = {
|
|
107
123
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
108
124
|
default: D[K];
|
|
@@ -133,6 +149,12 @@ declare type __VLS_WithDefaults_5<P, D> = {
|
|
|
133
149
|
}> : P[K];
|
|
134
150
|
};
|
|
135
151
|
|
|
152
|
+
declare type __VLS_WithDefaults_6<P, D> = {
|
|
153
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_6<P[K] & {
|
|
154
|
+
default: D[K];
|
|
155
|
+
}> : P[K];
|
|
156
|
+
};
|
|
157
|
+
|
|
136
158
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
137
159
|
new (): {
|
|
138
160
|
$slots: S;
|
|
@@ -273,6 +295,8 @@ export declare function getData(object: RecordAny, path: string, defaultValue?:
|
|
|
273
295
|
|
|
274
296
|
export declare const getUniqueId: () => string;
|
|
275
297
|
|
|
298
|
+
export { hiprint }
|
|
299
|
+
|
|
276
300
|
/** isArray */
|
|
277
301
|
export declare function isArray(obj: any): obj is any[];
|
|
278
302
|
|
|
@@ -736,7 +760,7 @@ export declare const OrcDesignPrint: DefineComponent<{}, {
|
|
|
736
760
|
getHtml(): any;
|
|
737
761
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
738
762
|
|
|
739
|
-
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<
|
|
763
|
+
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
740
764
|
config?: OrcFormItem[] | undefined;
|
|
741
765
|
labelWidth?: string | undefined;
|
|
742
766
|
labelAlign?: "left" | "right" | undefined;
|
|
@@ -771,7 +795,7 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
771
795
|
error: (...args: any[]) => void;
|
|
772
796
|
submit: (...args: any[]) => void;
|
|
773
797
|
"update:modelValue": (...args: any[]) => void;
|
|
774
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
798
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
775
799
|
config?: OrcFormItem[] | undefined;
|
|
776
800
|
labelWidth?: string | undefined;
|
|
777
801
|
labelAlign?: "left" | "right" | undefined;
|
|
@@ -804,9 +828,9 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
804
828
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
805
829
|
}>, {
|
|
806
830
|
grid: Record<string, any>;
|
|
831
|
+
modelValue: Record<string, any>;
|
|
807
832
|
loading: boolean;
|
|
808
833
|
disabled: boolean;
|
|
809
|
-
modelValue: Record<string, any>;
|
|
810
834
|
span: number;
|
|
811
835
|
config: OrcFormItem[];
|
|
812
836
|
labelWidth: string;
|
|
@@ -831,7 +855,7 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
831
855
|
}): any;
|
|
832
856
|
}>;
|
|
833
857
|
|
|
834
|
-
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<
|
|
858
|
+
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
835
859
|
title: string;
|
|
836
860
|
modelValue: undefined;
|
|
837
861
|
gutter: number;
|
|
@@ -840,7 +864,7 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
|
|
|
840
864
|
"update:modelValue": (data: RecordAny) => void;
|
|
841
865
|
submit: (data: OrcFormSubmit) => void;
|
|
842
866
|
error: (data: any) => void;
|
|
843
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
867
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
844
868
|
title: string;
|
|
845
869
|
modelValue: undefined;
|
|
846
870
|
gutter: number;
|
|
@@ -851,8 +875,8 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
|
|
|
851
875
|
"onUpdate:modelValue"?: ((data: RecordAny) => any) | undefined;
|
|
852
876
|
}>, {
|
|
853
877
|
title: string;
|
|
854
|
-
size: "medium" | "small" | "mini" | "large";
|
|
855
878
|
modelValue: RecordAny;
|
|
879
|
+
size: "medium" | "small" | "mini" | "large";
|
|
856
880
|
gutter: number;
|
|
857
881
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
858
882
|
icon?(_: {}): any;
|
|
@@ -1019,7 +1043,7 @@ export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<E
|
|
|
1019
1043
|
default?(_: {}): any;
|
|
1020
1044
|
}>;
|
|
1021
1045
|
|
|
1022
|
-
export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<
|
|
1046
|
+
export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
|
|
1023
1047
|
template: undefined;
|
|
1024
1048
|
fields: undefined;
|
|
1025
1049
|
printData: undefined;
|
|
@@ -1106,7 +1130,7 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
|
|
|
1106
1130
|
} | undefined>;
|
|
1107
1131
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1108
1132
|
onSave: (...args: any[]) => void;
|
|
1109
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
1133
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
|
|
1110
1134
|
template: undefined;
|
|
1111
1135
|
fields: undefined;
|
|
1112
1136
|
printData: undefined;
|
|
@@ -1343,9 +1367,9 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<Extra
|
|
|
1343
1367
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
1344
1368
|
onOnSearch?: ((...args: any[]) => any) | undefined;
|
|
1345
1369
|
}>, {
|
|
1370
|
+
modelValue: Record<string, any>;
|
|
1346
1371
|
loading: boolean;
|
|
1347
1372
|
size: string;
|
|
1348
|
-
modelValue: Record<string, any>;
|
|
1349
1373
|
labelWidth: string;
|
|
1350
1374
|
options: OrcSearchItem[];
|
|
1351
1375
|
readonly: boolean;
|
|
@@ -1388,45 +1412,15 @@ export declare interface OrcSearchItem extends RecordAny {
|
|
|
1388
1412
|
rules?: RecordAny | RecordAny[];
|
|
1389
1413
|
}
|
|
1390
1414
|
|
|
1391
|
-
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<{
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
hidePagination: BooleanConstructor;
|
|
1399
|
-
isHover: {
|
|
1400
|
-
type: BooleanConstructor;
|
|
1401
|
-
default: boolean;
|
|
1402
|
-
};
|
|
1403
|
-
size: {
|
|
1404
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
1405
|
-
default: string;
|
|
1406
|
-
};
|
|
1407
|
-
/** 用户选择列表 */
|
|
1408
|
-
selectedKeys: {
|
|
1409
|
-
type: ArrayConstructor;
|
|
1410
|
-
default: () => never[];
|
|
1411
|
-
};
|
|
1412
|
-
/** 与 loadData 行为一致 */
|
|
1413
|
-
data: {
|
|
1414
|
-
type: PropType<RecordAny_2[]>;
|
|
1415
|
-
default: () => never[];
|
|
1416
|
-
};
|
|
1417
|
-
/** 配置文件 */
|
|
1418
|
-
option: {
|
|
1419
|
-
type: PropType<OrcTableOption>;
|
|
1420
|
-
default: () => {
|
|
1421
|
-
columns: never[];
|
|
1422
|
-
};
|
|
1415
|
+
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
1416
|
+
isHover: boolean;
|
|
1417
|
+
size: string;
|
|
1418
|
+
selectedKeys: () => never[];
|
|
1419
|
+
data: () => never[];
|
|
1420
|
+
option: () => {
|
|
1421
|
+
columns: never[];
|
|
1423
1422
|
};
|
|
1424
|
-
|
|
1425
|
-
hook: PropType<{
|
|
1426
|
-
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1427
|
-
setColumn: (list: RecordAny_2[]) => void;
|
|
1428
|
-
}>;
|
|
1429
|
-
}>, {
|
|
1423
|
+
}>>, {
|
|
1430
1424
|
getRowKey(): string;
|
|
1431
1425
|
getTableData(): RecordAny_2[];
|
|
1432
1426
|
getSelection(): RecordAny_2[];
|
|
@@ -1455,45 +1449,15 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1455
1449
|
onReset: (...args: any[]) => void;
|
|
1456
1450
|
confirm: (...args: any[]) => void;
|
|
1457
1451
|
cellDblclick: (...args: any[]) => void;
|
|
1458
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
hidePagination: BooleanConstructor;
|
|
1466
|
-
isHover: {
|
|
1467
|
-
type: BooleanConstructor;
|
|
1468
|
-
default: boolean;
|
|
1469
|
-
};
|
|
1470
|
-
size: {
|
|
1471
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
1472
|
-
default: string;
|
|
1473
|
-
};
|
|
1474
|
-
/** 用户选择列表 */
|
|
1475
|
-
selectedKeys: {
|
|
1476
|
-
type: ArrayConstructor;
|
|
1477
|
-
default: () => never[];
|
|
1478
|
-
};
|
|
1479
|
-
/** 与 loadData 行为一致 */
|
|
1480
|
-
data: {
|
|
1481
|
-
type: PropType<RecordAny_2[]>;
|
|
1482
|
-
default: () => never[];
|
|
1483
|
-
};
|
|
1484
|
-
/** 配置文件 */
|
|
1485
|
-
option: {
|
|
1486
|
-
type: PropType<OrcTableOption>;
|
|
1487
|
-
default: () => {
|
|
1488
|
-
columns: never[];
|
|
1489
|
-
};
|
|
1452
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
1453
|
+
isHover: boolean;
|
|
1454
|
+
size: string;
|
|
1455
|
+
selectedKeys: () => never[];
|
|
1456
|
+
data: () => never[];
|
|
1457
|
+
option: () => {
|
|
1458
|
+
columns: never[];
|
|
1490
1459
|
};
|
|
1491
|
-
|
|
1492
|
-
hook: PropType<{
|
|
1493
|
-
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1494
|
-
setColumn: (list: RecordAny_2[]) => void;
|
|
1495
|
-
}>;
|
|
1496
|
-
}>> & Readonly<{
|
|
1460
|
+
}>>> & Readonly<{
|
|
1497
1461
|
"onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
|
|
1498
1462
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1499
1463
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -1504,11 +1468,8 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1504
1468
|
data: RecordAny_2[];
|
|
1505
1469
|
option: OrcTableOption;
|
|
1506
1470
|
size: "medium" | "small" | "mini";
|
|
1507
|
-
hideToolbar: boolean;
|
|
1508
|
-
hideSetting: boolean;
|
|
1509
|
-
hidePagination: boolean;
|
|
1510
1471
|
isHover: boolean;
|
|
1511
|
-
selectedKeys:
|
|
1472
|
+
selectedKeys: string[];
|
|
1512
1473
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1513
1474
|
default?(_: {}): any;
|
|
1514
1475
|
tools?(_: {}): any;
|
|
@@ -1519,6 +1480,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1519
1480
|
rowIndex: number;
|
|
1520
1481
|
columnIndex: number;
|
|
1521
1482
|
value: any;
|
|
1483
|
+
modelValue: any;
|
|
1522
1484
|
updateValue: (value: any) => void;
|
|
1523
1485
|
formatValue: any;
|
|
1524
1486
|
}): any;
|
|
@@ -1542,8 +1504,16 @@ declare interface OrcTableItem extends RecordAny_2 {
|
|
|
1542
1504
|
width?: number;
|
|
1543
1505
|
sort?: boolean;
|
|
1544
1506
|
/** 开启编辑 */
|
|
1545
|
-
cell?: boolean;
|
|
1546
|
-
/**
|
|
1507
|
+
cell?: boolean | Component;
|
|
1508
|
+
/** @example
|
|
1509
|
+
* <a-badge status="normal" text="Normal" />
|
|
1510
|
+
* status: normal|processing|success|warning|danger
|
|
1511
|
+
*/
|
|
1512
|
+
cellAttr?: {
|
|
1513
|
+
[key: string]: (v1: Record<'record' | 'dataIndex' | 'rowIndex' | 'columnIndex' | 'value' | 'modelValue' | 'updateValue' | 'formatValue', unknown>) => unknown;
|
|
1514
|
+
} | {
|
|
1515
|
+
[key: string]: unknown;
|
|
1516
|
+
};
|
|
1547
1517
|
div?: boolean;
|
|
1548
1518
|
/** 没内容时候得提示 */
|
|
1549
1519
|
placeholder?: string;
|
|
@@ -1556,7 +1526,6 @@ declare interface OrcTableItem extends RecordAny_2 {
|
|
|
1556
1526
|
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1557
1527
|
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1558
1528
|
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1559
|
-
columnProps?: any;
|
|
1560
1529
|
}
|
|
1561
1530
|
|
|
1562
1531
|
/**
|
|
@@ -1655,7 +1624,39 @@ declare interface Props {
|
|
|
1655
1624
|
useErrData?: <T = Record<string, any>>(config: Record<string, any>) => Promise<[boolean, T]>;
|
|
1656
1625
|
}
|
|
1657
1626
|
|
|
1658
|
-
declare
|
|
1627
|
+
declare type Props_2 = {
|
|
1628
|
+
/** 表格标题 */
|
|
1629
|
+
title?: string;
|
|
1630
|
+
/** 高 */
|
|
1631
|
+
height?: number | string;
|
|
1632
|
+
/** 是否隐藏工具栏 */
|
|
1633
|
+
hideToolbar?: boolean;
|
|
1634
|
+
/** 是否隐藏设置按钮 */
|
|
1635
|
+
hideSetting?: boolean;
|
|
1636
|
+
/** 是否隐藏分页 */
|
|
1637
|
+
hidePagination?: boolean;
|
|
1638
|
+
/** 是否启用悬停效果,默认值为 true */
|
|
1639
|
+
isHover?: boolean;
|
|
1640
|
+
/** 表格尺寸,可选值为 'medium' | 'small' | 'mini',默认值为 'mini' */
|
|
1641
|
+
size?: 'medium' | 'small' | 'mini';
|
|
1642
|
+
/** 用户选择的列表,默认值为空数组 */
|
|
1643
|
+
selectedKeys?: string[];
|
|
1644
|
+
/** 数据源,默认值为空数组 */
|
|
1645
|
+
data?: RecordAny_2[];
|
|
1646
|
+
/** 配置文件,默认值为 { columns: [] } */
|
|
1647
|
+
option?: OrcTableOption;
|
|
1648
|
+
/**
|
|
1649
|
+
* 用户保存数据钩子函数
|
|
1650
|
+
* - getColumn: 异步获取列配置,返回一个包含布尔值和列数据的元组
|
|
1651
|
+
* - setColumn: 设置列配置
|
|
1652
|
+
*/
|
|
1653
|
+
hook?: {
|
|
1654
|
+
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1655
|
+
setColumn: (list: RecordAny_2[]) => void;
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
declare interface Props_3 {
|
|
1659
1660
|
isView?: boolean;
|
|
1660
1661
|
disabled?: boolean;
|
|
1661
1662
|
title?: string;
|
|
@@ -1669,7 +1670,7 @@ declare interface Props_2 {
|
|
|
1669
1670
|
modalAttrs?: ModalInstance['$props'];
|
|
1670
1671
|
}
|
|
1671
1672
|
|
|
1672
|
-
declare type
|
|
1673
|
+
declare type Props_4 = {
|
|
1673
1674
|
/** 更新模板 hiprintTemplate.update */
|
|
1674
1675
|
template?: Record<string, any>;
|
|
1675
1676
|
/** 更新数据源 hiprintTemplate.setFields */
|