-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.d.ts
158 lines (128 loc) · 3.72 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
declare module 'gm-x-printer' {
import { CSSProperties } from 'react'
interface EditorProps {
config: any
mockData: any
onSave: (config: any, isSaveAs?: boolean) => void
showEditor: boolean
addFields: any
}
interface PrinterProps {
data: any
config: any
className?: string
style?: CSSProperties
selected?: string
selectedRegion?: string
onReady?: () => void
}
interface BatchPrinterProps {
list: any[]
onReady?: () => void
}
interface EditorStatementProps extends EditorProps {
/** 分组,用于控制切换数据展示时显隐 */
tableFieldsGrouped?: Record<string, any>
}
// function Editor<P extends EditorProps>(props: P): React.ComponentType<P>
class Editor<T extends EditorProps> extends React.Component<T, any> {}
class EditorStockIn<T extends EditorProps> extends React.Component<T, any> {}
class EditorStockOut<T extends EditorProps> extends React.Component<T, any> {}
class EditorPurchase<T extends EditorProps> extends React.Component<T, any> {}
class EditorSettle<T extends EditorProps> extends React.Component<T, any> {}
class EditorSaleMenus<
T extends EditorProps & {
/** 是否隐藏组合商品设置 */
hideCombineSkuSetting?: boolean
}
> extends React.Component<T, any> {}
class EditorAfterSales<T extends EditorProps> extends React.Component<
T,
any
> {}
class EditorCannibalize<T extends EditorProps> extends React.Component<
T,
any
> {}
class EditorMaterialRequisition<
T extends EditorProps
> extends React.Component<T, any> {}
class EditorProduction<T extends EditorProps> extends React.Component<
T,
any
> {}
class EditorStatement<T extends EditorStatementProps> extends React.Component<
T,
any
> {}
class EditorAccoutStatement<T extends EditorProps> extends React.Component<
T,
any
> {}
class EditorAccount<T extends EditorProps> extends React.Component<T, any> {}
class EditorManage<T extends EditorProps> extends React.Component<T, any> {}
class EditorSupplierSettleSheet<T extends EditorProps> extends React.Component<T, any> {}
class EditorBoxLabel<T extends EditorProps> extends React.Component<T, any> {}
class EditEshopOrder<T extends EditorProps> extends React.Component<T, any> {}
class EditorPurchaseDemand<T extends EditorProps> extends React.Component<
T,
any
> {}
class Printer<T extends PrinterProps> extends React.Component<T, any> {}
class BatchPrinter<T extends BatchPrinterProps> extends React.Component<
T,
any
> {}
const MULTI_SUFFIX: string
function getCSS(): string
function insertCSS(cssString: string, target?: HTMLElement | ShadowRoot): void
function doPrint(
obj: { data: any; config: any },
isTest?: boolean,
extraConfig?: {
isPreview: boolean
isTipZoom: boolean
isPrint: boolean
isElectronPrint?: boolean
},
onReady?: () => void
): (obj: { data: any; config: any }) => Promise<any>
function doBatchPrint(
list: any[],
isTest?: boolean,
extraConfig?: {
isPreview: boolean
isTipZoom: boolean
isPrint: boolean
isElectronPrint?: boolean
},
onReady?: () => void
): (list: []) => Promise<any>
export {
Editor,
EditorStockIn,
EditorStockOut,
EditorPurchase,
EditorSettle,
EditorCannibalize,
EditorProduction,
EditorStatement,
EditorSaleMenus,
EditorAccoutStatement,
EditorAccount,
EditorBoxLabel,
EditorManage,
EditEshopOrder,
EditorPurchaseDemand,
Printer,
BatchPrinter,
EditorMaterialRequisition,
EditorAfterSales,
MULTI_SUFFIX,
insertCSS,
getCSS,
doPrint,
doBatchPrint,
EditorSupplierSettleSheet
}
}