orion-design 0.1.30 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/hooks/index.js +14 -11
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +492 -0
- package/dist/components/LovTable/index.d.ts +246 -0
- package/dist/components/LovTable/index.js +2 -1
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +1 -1
- package/dist/components/Modal/types.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +92 -1
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
- package/dist/components/Pagetable/hooks/useColumns.js +20 -15
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +155 -0
- package/dist/components/Pagetable/index.js +509 -451
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
@@ -23,17 +23,20 @@ const u = () => C(M), S = () => {
|
|
23
23
|
const e = u(), { props: r } = s();
|
24
24
|
return n(() => e.disabled || r.disabled);
|
25
25
|
}, k = () => {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
26
|
+
const { props: e } = s();
|
27
|
+
return n(() => {
|
28
|
+
let r;
|
29
|
+
const { code: o } = e;
|
30
|
+
if (o)
|
31
|
+
if (x(o))
|
32
|
+
r = V.getCode(o).value;
|
33
|
+
else if (I(o))
|
34
|
+
r = o;
|
35
|
+
else
|
36
|
+
throw new f("code类型错误");
|
37
|
+
else throw new f("code为空");
|
38
|
+
return r;
|
39
|
+
});
|
37
40
|
}, w = () => {
|
38
41
|
const e = u(), { props: r } = s(), { name: o } = r;
|
39
42
|
return n({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Form/hooks/index.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\nimport { formContextKey, FormItemRule } from '../Form'\r\nimport Throne from '../../../Throne'\r\nimport { CodeItem } from '../../types'\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\nimport OrionError from '../../../error/OrionError'\r\nimport formItemValidateTrigger from './FormItemValidateTrigger'\r\n\r\nconst useFormContext = () => {\r\n return inject(formContextKey)\r\n}\r\n\r\nconst useFormItemSpan = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n\r\n return computed(() => (props.span ? (props.span as number) : formContext.itemSpan))\r\n}\r\n\r\nconst useFormItemRules = () => {\r\n const formContext = useFormContext()!\r\n const { props, type } = getCurrentInstance()!\r\n const { name, label, required } = props\r\n let trigger = formItemValidateTrigger[type.name!]\r\n if (!trigger) {\r\n trigger = 'change'\r\n }\r\n\r\n return computed(() => {\r\n const rules: FormItemRule[] = []\r\n let flag = true\r\n\r\n if (required) {\r\n if (props.rules) {\r\n rules.push(...castArray(props.rules))\r\n flag = !rules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n if (formContext.rules && formContext.rules[name as string]) {\r\n const formRules = castArray(formContext.rules[name as string])\r\n flag = !formRules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n }\r\n\r\n if (flag) {\r\n rules.push({\r\n required: true,\r\n message: `必填项[${label ? label : name}]不能为空`,\r\n trigger: trigger,\r\n })\r\n }\r\n\r\n return rules\r\n })\r\n}\r\n\r\nconst useFormItemDisabled = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n return computed(() => formContext.disabled || (props.disabled as boolean))\r\n}\r\n\r\nconst useFormItemCode = () => {\r\n
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Form/hooks/index.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\nimport { formContextKey, FormItemRule } from '../Form'\r\nimport Throne from '../../../Throne'\r\nimport { CodeItem } from '../../types'\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\nimport OrionError from '../../../error/OrionError'\r\nimport formItemValidateTrigger from './FormItemValidateTrigger'\r\n\r\nconst useFormContext = () => {\r\n return inject(formContextKey)\r\n}\r\n\r\nconst useFormItemSpan = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n\r\n return computed(() => (props.span ? (props.span as number) : formContext.itemSpan))\r\n}\r\n\r\nconst useFormItemRules = () => {\r\n const formContext = useFormContext()!\r\n const { props, type } = getCurrentInstance()!\r\n const { name, label, required } = props\r\n let trigger = formItemValidateTrigger[type.name!]\r\n if (!trigger) {\r\n trigger = 'change'\r\n }\r\n\r\n return computed(() => {\r\n const rules: FormItemRule[] = []\r\n let flag = true\r\n\r\n if (required) {\r\n if (props.rules) {\r\n rules.push(...castArray(props.rules))\r\n flag = !rules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n if (formContext.rules && formContext.rules[name as string]) {\r\n const formRules = castArray(formContext.rules[name as string])\r\n flag = !formRules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n }\r\n\r\n if (flag) {\r\n rules.push({\r\n required: true,\r\n message: `必填项[${label ? label : name}]不能为空`,\r\n trigger: trigger,\r\n })\r\n }\r\n\r\n return rules\r\n })\r\n}\r\n\r\nconst useFormItemDisabled = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n return computed(() => formContext.disabled || (props.disabled as boolean))\r\n}\r\n\r\nconst useFormItemCode = () => {\r\n const { props } = getCurrentInstance()!\r\n\r\n return computed(() => {\r\n let codeData: Array<CodeItem>\r\n const { code } = props\r\n if (!code) {\r\n throw new OrionError('code为空')\r\n } else if (isString(code)) {\r\n codeData = Throne.getCode(code).value\r\n } else if (isArray<CodeItem>(code)) {\r\n codeData = code\r\n } else {\r\n throw new OrionError('code类型错误')\r\n }\r\n\r\n return codeData\r\n })\r\n}\r\n\r\nconst useFormItemStringModel = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n const { name } = props\r\n\r\n return computed<string>({\r\n get: () => {\r\n const value = formContext.modelValue[name as string]\r\n if (!value) {\r\n return ''\r\n }\r\n return value as string\r\n },\r\n set: (newValue) => {\r\n if (!newValue) {\r\n formContext.updateModelValue(name as string, '')\r\n } else {\r\n formContext.updateModelValue(name as string, newValue)\r\n }\r\n },\r\n })\r\n}\r\n\r\nconst useFormItemMultiModel = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n const { name } = props\r\n\r\n return computed<string[] | undefined>({\r\n get: () => {\r\n const value = formContext.modelValue[name as string]\r\n if (!value) {\r\n return undefined\r\n }\r\n return (value as string).split(',')\r\n },\r\n set: (newValue) => {\r\n if (!newValue) {\r\n formContext.updateModelValue(name as string, '')\r\n } else {\r\n formContext.updateModelValue(name as string, newValue.join(','))\r\n }\r\n },\r\n })\r\n}\r\n\r\nconst useFormItemBooleanModel = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n const { name } = props\r\n\r\n return computed<boolean>({\r\n get: () => {\r\n const value = formContext.modelValue[name as string]\r\n if (!value) {\r\n return false\r\n }\r\n return (value as string) == '1'\r\n },\r\n set: (_newValue) => {\r\n const oldValue = formContext.modelValue[name as string]\r\n const newValue = _newValue ? '1' : '0'\r\n if (oldValue) {\r\n formContext.updateModelValue(name as string, newValue)\r\n } else {\r\n if (_newValue) {\r\n formContext.updateModelValue(name as string, newValue)\r\n }\r\n }\r\n },\r\n })\r\n}\r\n\r\nexport {\r\n useFormContext,\r\n useFormItemSpan,\r\n useFormItemRules,\r\n useFormItemDisabled,\r\n useFormItemCode,\r\n useFormItemStringModel,\r\n useFormItemMultiModel,\r\n useFormItemBooleanModel,\r\n}\r\n"],"names":["useFormContext","inject","formContextKey","useFormItemSpan","formContext","props","getCurrentInstance","computed","useFormItemRules","type","name","label","required","trigger","formItemValidateTrigger","rules","flag","castArray","rule","useFormItemDisabled","useFormItemCode","codeData","code","isString","Throne","isArray","OrionError","useFormItemStringModel","value","newValue","useFormItemMultiModel","useFormItemBooleanModel","_newValue","oldValue"],"mappings":"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"}
|
@@ -26,6 +26,10 @@ declare function __VLS_template(): {
|
|
26
26
|
total?: number;
|
27
27
|
};
|
28
28
|
};
|
29
|
+
paginationTeleported: {
|
30
|
+
type: BooleanConstructor;
|
31
|
+
default: boolean;
|
32
|
+
};
|
29
33
|
showRowNumber: {
|
30
34
|
type: BooleanConstructor;
|
31
35
|
default: boolean;
|
@@ -42,6 +46,66 @@ declare function __VLS_template(): {
|
|
42
46
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
43
47
|
default: "" | "small" | "default" | "large";
|
44
48
|
};
|
49
|
+
rowClassName: {
|
50
|
+
type: import('vue').PropType<string | ((data: {
|
51
|
+
rowData: any;
|
52
|
+
rowIndex: number;
|
53
|
+
}) => string)>;
|
54
|
+
default: string | ((data: {
|
55
|
+
rowData: any;
|
56
|
+
rowIndex: number;
|
57
|
+
}) => string);
|
58
|
+
};
|
59
|
+
rowStyle: {
|
60
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
61
|
+
rowData: any;
|
62
|
+
rowIndex: number;
|
63
|
+
}) => import('vue').CSSProperties)>;
|
64
|
+
default: import('vue').CSSProperties | ((data: {
|
65
|
+
rowData: any;
|
66
|
+
rowIndex: number;
|
67
|
+
}) => import('vue').CSSProperties);
|
68
|
+
};
|
69
|
+
cellClassName: {
|
70
|
+
type: import('vue').PropType<string | ((data: {
|
71
|
+
rowData: any;
|
72
|
+
column: {
|
73
|
+
name: string;
|
74
|
+
head: string;
|
75
|
+
};
|
76
|
+
rowIndex: number;
|
77
|
+
columnIndex: number;
|
78
|
+
}) => string)>;
|
79
|
+
default: string | ((data: {
|
80
|
+
rowData: any;
|
81
|
+
column: {
|
82
|
+
name: string;
|
83
|
+
head: string;
|
84
|
+
};
|
85
|
+
rowIndex: number;
|
86
|
+
columnIndex: number;
|
87
|
+
}) => string);
|
88
|
+
};
|
89
|
+
cellStyle: {
|
90
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
91
|
+
rowData: any;
|
92
|
+
column: {
|
93
|
+
name: string;
|
94
|
+
head: string;
|
95
|
+
};
|
96
|
+
rowIndex: number;
|
97
|
+
columnIndex: number;
|
98
|
+
}) => import('vue').CSSProperties)>;
|
99
|
+
default: import('vue').CSSProperties | ((data: {
|
100
|
+
rowData: any;
|
101
|
+
column: {
|
102
|
+
name: string;
|
103
|
+
head: string;
|
104
|
+
};
|
105
|
+
rowIndex: number;
|
106
|
+
columnIndex: number;
|
107
|
+
}) => import('vue').CSSProperties);
|
108
|
+
};
|
45
109
|
}>> & Readonly<{
|
46
110
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
47
111
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -73,6 +137,10 @@ declare function __VLS_template(): {
|
|
73
137
|
total?: number;
|
74
138
|
};
|
75
139
|
};
|
140
|
+
paginationTeleported: {
|
141
|
+
type: BooleanConstructor;
|
142
|
+
default: boolean;
|
143
|
+
};
|
76
144
|
showRowNumber: {
|
77
145
|
type: BooleanConstructor;
|
78
146
|
default: boolean;
|
@@ -89,6 +157,66 @@ declare function __VLS_template(): {
|
|
89
157
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
90
158
|
default: "" | "small" | "default" | "large";
|
91
159
|
};
|
160
|
+
rowClassName: {
|
161
|
+
type: import('vue').PropType<string | ((data: {
|
162
|
+
rowData: any;
|
163
|
+
rowIndex: number;
|
164
|
+
}) => string)>;
|
165
|
+
default: string | ((data: {
|
166
|
+
rowData: any;
|
167
|
+
rowIndex: number;
|
168
|
+
}) => string);
|
169
|
+
};
|
170
|
+
rowStyle: {
|
171
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
172
|
+
rowData: any;
|
173
|
+
rowIndex: number;
|
174
|
+
}) => import('vue').CSSProperties)>;
|
175
|
+
default: import('vue').CSSProperties | ((data: {
|
176
|
+
rowData: any;
|
177
|
+
rowIndex: number;
|
178
|
+
}) => import('vue').CSSProperties);
|
179
|
+
};
|
180
|
+
cellClassName: {
|
181
|
+
type: import('vue').PropType<string | ((data: {
|
182
|
+
rowData: any;
|
183
|
+
column: {
|
184
|
+
name: string;
|
185
|
+
head: string;
|
186
|
+
};
|
187
|
+
rowIndex: number;
|
188
|
+
columnIndex: number;
|
189
|
+
}) => string)>;
|
190
|
+
default: string | ((data: {
|
191
|
+
rowData: any;
|
192
|
+
column: {
|
193
|
+
name: string;
|
194
|
+
head: string;
|
195
|
+
};
|
196
|
+
rowIndex: number;
|
197
|
+
columnIndex: number;
|
198
|
+
}) => string);
|
199
|
+
};
|
200
|
+
cellStyle: {
|
201
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
202
|
+
rowData: any;
|
203
|
+
column: {
|
204
|
+
name: string;
|
205
|
+
head: string;
|
206
|
+
};
|
207
|
+
rowIndex: number;
|
208
|
+
columnIndex: number;
|
209
|
+
}) => import('vue').CSSProperties)>;
|
210
|
+
default: import('vue').CSSProperties | ((data: {
|
211
|
+
rowData: any;
|
212
|
+
column: {
|
213
|
+
name: string;
|
214
|
+
head: string;
|
215
|
+
};
|
216
|
+
rowIndex: number;
|
217
|
+
columnIndex: number;
|
218
|
+
}) => import('vue').CSSProperties);
|
219
|
+
};
|
92
220
|
}>> & Readonly<{
|
93
221
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
94
222
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -107,9 +235,36 @@ declare function __VLS_template(): {
|
|
107
235
|
total?: number;
|
108
236
|
};
|
109
237
|
tailData: Record<string, any>;
|
238
|
+
paginationTeleported: boolean;
|
110
239
|
showRowNumber: boolean;
|
111
240
|
selectionMode: boolean;
|
112
241
|
currentRowMode: boolean;
|
242
|
+
rowClassName: string | ((data: {
|
243
|
+
rowData: any;
|
244
|
+
rowIndex: number;
|
245
|
+
}) => string);
|
246
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
247
|
+
rowData: any;
|
248
|
+
rowIndex: number;
|
249
|
+
}) => import('vue').CSSProperties);
|
250
|
+
cellClassName: string | ((data: {
|
251
|
+
rowData: any;
|
252
|
+
column: {
|
253
|
+
name: string;
|
254
|
+
head: string;
|
255
|
+
};
|
256
|
+
rowIndex: number;
|
257
|
+
columnIndex: number;
|
258
|
+
}) => string);
|
259
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
260
|
+
rowData: any;
|
261
|
+
column: {
|
262
|
+
name: string;
|
263
|
+
head: string;
|
264
|
+
};
|
265
|
+
rowIndex: number;
|
266
|
+
columnIndex: number;
|
267
|
+
}) => import('vue').CSSProperties);
|
113
268
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
114
269
|
P: {};
|
115
270
|
B: {};
|
@@ -140,6 +295,10 @@ declare function __VLS_template(): {
|
|
140
295
|
total?: number;
|
141
296
|
};
|
142
297
|
};
|
298
|
+
paginationTeleported: {
|
299
|
+
type: BooleanConstructor;
|
300
|
+
default: boolean;
|
301
|
+
};
|
143
302
|
showRowNumber: {
|
144
303
|
type: BooleanConstructor;
|
145
304
|
default: boolean;
|
@@ -156,6 +315,66 @@ declare function __VLS_template(): {
|
|
156
315
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
157
316
|
default: "" | "small" | "default" | "large";
|
158
317
|
};
|
318
|
+
rowClassName: {
|
319
|
+
type: import('vue').PropType<string | ((data: {
|
320
|
+
rowData: any;
|
321
|
+
rowIndex: number;
|
322
|
+
}) => string)>;
|
323
|
+
default: string | ((data: {
|
324
|
+
rowData: any;
|
325
|
+
rowIndex: number;
|
326
|
+
}) => string);
|
327
|
+
};
|
328
|
+
rowStyle: {
|
329
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
330
|
+
rowData: any;
|
331
|
+
rowIndex: number;
|
332
|
+
}) => import('vue').CSSProperties)>;
|
333
|
+
default: import('vue').CSSProperties | ((data: {
|
334
|
+
rowData: any;
|
335
|
+
rowIndex: number;
|
336
|
+
}) => import('vue').CSSProperties);
|
337
|
+
};
|
338
|
+
cellClassName: {
|
339
|
+
type: import('vue').PropType<string | ((data: {
|
340
|
+
rowData: any;
|
341
|
+
column: {
|
342
|
+
name: string;
|
343
|
+
head: string;
|
344
|
+
};
|
345
|
+
rowIndex: number;
|
346
|
+
columnIndex: number;
|
347
|
+
}) => string)>;
|
348
|
+
default: string | ((data: {
|
349
|
+
rowData: any;
|
350
|
+
column: {
|
351
|
+
name: string;
|
352
|
+
head: string;
|
353
|
+
};
|
354
|
+
rowIndex: number;
|
355
|
+
columnIndex: number;
|
356
|
+
}) => string);
|
357
|
+
};
|
358
|
+
cellStyle: {
|
359
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
360
|
+
rowData: any;
|
361
|
+
column: {
|
362
|
+
name: string;
|
363
|
+
head: string;
|
364
|
+
};
|
365
|
+
rowIndex: number;
|
366
|
+
columnIndex: number;
|
367
|
+
}) => import('vue').CSSProperties)>;
|
368
|
+
default: import('vue').CSSProperties | ((data: {
|
369
|
+
rowData: any;
|
370
|
+
column: {
|
371
|
+
name: string;
|
372
|
+
head: string;
|
373
|
+
};
|
374
|
+
rowIndex: number;
|
375
|
+
columnIndex: number;
|
376
|
+
}) => import('vue').CSSProperties);
|
377
|
+
};
|
159
378
|
}>> & Readonly<{
|
160
379
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
161
380
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -174,9 +393,36 @@ declare function __VLS_template(): {
|
|
174
393
|
total?: number;
|
175
394
|
};
|
176
395
|
tailData: Record<string, any>;
|
396
|
+
paginationTeleported: boolean;
|
177
397
|
showRowNumber: boolean;
|
178
398
|
selectionMode: boolean;
|
179
399
|
currentRowMode: boolean;
|
400
|
+
rowClassName: string | ((data: {
|
401
|
+
rowData: any;
|
402
|
+
rowIndex: number;
|
403
|
+
}) => string);
|
404
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
405
|
+
rowData: any;
|
406
|
+
rowIndex: number;
|
407
|
+
}) => import('vue').CSSProperties);
|
408
|
+
cellClassName: string | ((data: {
|
409
|
+
rowData: any;
|
410
|
+
column: {
|
411
|
+
name: string;
|
412
|
+
head: string;
|
413
|
+
};
|
414
|
+
rowIndex: number;
|
415
|
+
columnIndex: number;
|
416
|
+
}) => string);
|
417
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
418
|
+
rowData: any;
|
419
|
+
column: {
|
420
|
+
name: string;
|
421
|
+
head: string;
|
422
|
+
};
|
423
|
+
rowIndex: number;
|
424
|
+
columnIndex: number;
|
425
|
+
}) => import('vue').CSSProperties);
|
180
426
|
}> | null;
|
181
427
|
};
|
182
428
|
attrs: Partial<{}>;
|
@@ -224,6 +470,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
224
470
|
total?: number;
|
225
471
|
};
|
226
472
|
};
|
473
|
+
paginationTeleported: {
|
474
|
+
type: BooleanConstructor;
|
475
|
+
default: boolean;
|
476
|
+
};
|
227
477
|
showRowNumber: {
|
228
478
|
type: BooleanConstructor;
|
229
479
|
default: boolean;
|
@@ -240,6 +490,66 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
240
490
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
241
491
|
default: "" | "small" | "default" | "large";
|
242
492
|
};
|
493
|
+
rowClassName: {
|
494
|
+
type: import('vue').PropType<string | ((data: {
|
495
|
+
rowData: any;
|
496
|
+
rowIndex: number;
|
497
|
+
}) => string)>;
|
498
|
+
default: string | ((data: {
|
499
|
+
rowData: any;
|
500
|
+
rowIndex: number;
|
501
|
+
}) => string);
|
502
|
+
};
|
503
|
+
rowStyle: {
|
504
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
505
|
+
rowData: any;
|
506
|
+
rowIndex: number;
|
507
|
+
}) => import('vue').CSSProperties)>;
|
508
|
+
default: import('vue').CSSProperties | ((data: {
|
509
|
+
rowData: any;
|
510
|
+
rowIndex: number;
|
511
|
+
}) => import('vue').CSSProperties);
|
512
|
+
};
|
513
|
+
cellClassName: {
|
514
|
+
type: import('vue').PropType<string | ((data: {
|
515
|
+
rowData: any;
|
516
|
+
column: {
|
517
|
+
name: string;
|
518
|
+
head: string;
|
519
|
+
};
|
520
|
+
rowIndex: number;
|
521
|
+
columnIndex: number;
|
522
|
+
}) => string)>;
|
523
|
+
default: string | ((data: {
|
524
|
+
rowData: any;
|
525
|
+
column: {
|
526
|
+
name: string;
|
527
|
+
head: string;
|
528
|
+
};
|
529
|
+
rowIndex: number;
|
530
|
+
columnIndex: number;
|
531
|
+
}) => string);
|
532
|
+
};
|
533
|
+
cellStyle: {
|
534
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
535
|
+
rowData: any;
|
536
|
+
column: {
|
537
|
+
name: string;
|
538
|
+
head: string;
|
539
|
+
};
|
540
|
+
rowIndex: number;
|
541
|
+
columnIndex: number;
|
542
|
+
}) => import('vue').CSSProperties)>;
|
543
|
+
default: import('vue').CSSProperties | ((data: {
|
544
|
+
rowData: any;
|
545
|
+
column: {
|
546
|
+
name: string;
|
547
|
+
head: string;
|
548
|
+
};
|
549
|
+
rowIndex: number;
|
550
|
+
columnIndex: number;
|
551
|
+
}) => import('vue').CSSProperties);
|
552
|
+
};
|
243
553
|
}>> & Readonly<{
|
244
554
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
245
555
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -271,6 +581,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
271
581
|
total?: number;
|
272
582
|
};
|
273
583
|
};
|
584
|
+
paginationTeleported: {
|
585
|
+
type: BooleanConstructor;
|
586
|
+
default: boolean;
|
587
|
+
};
|
274
588
|
showRowNumber: {
|
275
589
|
type: BooleanConstructor;
|
276
590
|
default: boolean;
|
@@ -287,6 +601,66 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
287
601
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
288
602
|
default: "" | "small" | "default" | "large";
|
289
603
|
};
|
604
|
+
rowClassName: {
|
605
|
+
type: import('vue').PropType<string | ((data: {
|
606
|
+
rowData: any;
|
607
|
+
rowIndex: number;
|
608
|
+
}) => string)>;
|
609
|
+
default: string | ((data: {
|
610
|
+
rowData: any;
|
611
|
+
rowIndex: number;
|
612
|
+
}) => string);
|
613
|
+
};
|
614
|
+
rowStyle: {
|
615
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
616
|
+
rowData: any;
|
617
|
+
rowIndex: number;
|
618
|
+
}) => import('vue').CSSProperties)>;
|
619
|
+
default: import('vue').CSSProperties | ((data: {
|
620
|
+
rowData: any;
|
621
|
+
rowIndex: number;
|
622
|
+
}) => import('vue').CSSProperties);
|
623
|
+
};
|
624
|
+
cellClassName: {
|
625
|
+
type: import('vue').PropType<string | ((data: {
|
626
|
+
rowData: any;
|
627
|
+
column: {
|
628
|
+
name: string;
|
629
|
+
head: string;
|
630
|
+
};
|
631
|
+
rowIndex: number;
|
632
|
+
columnIndex: number;
|
633
|
+
}) => string)>;
|
634
|
+
default: string | ((data: {
|
635
|
+
rowData: any;
|
636
|
+
column: {
|
637
|
+
name: string;
|
638
|
+
head: string;
|
639
|
+
};
|
640
|
+
rowIndex: number;
|
641
|
+
columnIndex: number;
|
642
|
+
}) => string);
|
643
|
+
};
|
644
|
+
cellStyle: {
|
645
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
646
|
+
rowData: any;
|
647
|
+
column: {
|
648
|
+
name: string;
|
649
|
+
head: string;
|
650
|
+
};
|
651
|
+
rowIndex: number;
|
652
|
+
columnIndex: number;
|
653
|
+
}) => import('vue').CSSProperties)>;
|
654
|
+
default: import('vue').CSSProperties | ((data: {
|
655
|
+
rowData: any;
|
656
|
+
column: {
|
657
|
+
name: string;
|
658
|
+
head: string;
|
659
|
+
};
|
660
|
+
rowIndex: number;
|
661
|
+
columnIndex: number;
|
662
|
+
}) => import('vue').CSSProperties);
|
663
|
+
};
|
290
664
|
}>> & Readonly<{
|
291
665
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
292
666
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -305,9 +679,36 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
305
679
|
total?: number;
|
306
680
|
};
|
307
681
|
tailData: Record<string, any>;
|
682
|
+
paginationTeleported: boolean;
|
308
683
|
showRowNumber: boolean;
|
309
684
|
selectionMode: boolean;
|
310
685
|
currentRowMode: boolean;
|
686
|
+
rowClassName: string | ((data: {
|
687
|
+
rowData: any;
|
688
|
+
rowIndex: number;
|
689
|
+
}) => string);
|
690
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
691
|
+
rowData: any;
|
692
|
+
rowIndex: number;
|
693
|
+
}) => import('vue').CSSProperties);
|
694
|
+
cellClassName: string | ((data: {
|
695
|
+
rowData: any;
|
696
|
+
column: {
|
697
|
+
name: string;
|
698
|
+
head: string;
|
699
|
+
};
|
700
|
+
rowIndex: number;
|
701
|
+
columnIndex: number;
|
702
|
+
}) => string);
|
703
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
704
|
+
rowData: any;
|
705
|
+
column: {
|
706
|
+
name: string;
|
707
|
+
head: string;
|
708
|
+
};
|
709
|
+
rowIndex: number;
|
710
|
+
columnIndex: number;
|
711
|
+
}) => import('vue').CSSProperties);
|
311
712
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
312
713
|
P: {};
|
313
714
|
B: {};
|
@@ -338,6 +739,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
338
739
|
total?: number;
|
339
740
|
};
|
340
741
|
};
|
742
|
+
paginationTeleported: {
|
743
|
+
type: BooleanConstructor;
|
744
|
+
default: boolean;
|
745
|
+
};
|
341
746
|
showRowNumber: {
|
342
747
|
type: BooleanConstructor;
|
343
748
|
default: boolean;
|
@@ -354,6 +759,66 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
354
759
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
355
760
|
default: "" | "small" | "default" | "large";
|
356
761
|
};
|
762
|
+
rowClassName: {
|
763
|
+
type: import('vue').PropType<string | ((data: {
|
764
|
+
rowData: any;
|
765
|
+
rowIndex: number;
|
766
|
+
}) => string)>;
|
767
|
+
default: string | ((data: {
|
768
|
+
rowData: any;
|
769
|
+
rowIndex: number;
|
770
|
+
}) => string);
|
771
|
+
};
|
772
|
+
rowStyle: {
|
773
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
774
|
+
rowData: any;
|
775
|
+
rowIndex: number;
|
776
|
+
}) => import('vue').CSSProperties)>;
|
777
|
+
default: import('vue').CSSProperties | ((data: {
|
778
|
+
rowData: any;
|
779
|
+
rowIndex: number;
|
780
|
+
}) => import('vue').CSSProperties);
|
781
|
+
};
|
782
|
+
cellClassName: {
|
783
|
+
type: import('vue').PropType<string | ((data: {
|
784
|
+
rowData: any;
|
785
|
+
column: {
|
786
|
+
name: string;
|
787
|
+
head: string;
|
788
|
+
};
|
789
|
+
rowIndex: number;
|
790
|
+
columnIndex: number;
|
791
|
+
}) => string)>;
|
792
|
+
default: string | ((data: {
|
793
|
+
rowData: any;
|
794
|
+
column: {
|
795
|
+
name: string;
|
796
|
+
head: string;
|
797
|
+
};
|
798
|
+
rowIndex: number;
|
799
|
+
columnIndex: number;
|
800
|
+
}) => string);
|
801
|
+
};
|
802
|
+
cellStyle: {
|
803
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
804
|
+
rowData: any;
|
805
|
+
column: {
|
806
|
+
name: string;
|
807
|
+
head: string;
|
808
|
+
};
|
809
|
+
rowIndex: number;
|
810
|
+
columnIndex: number;
|
811
|
+
}) => import('vue').CSSProperties)>;
|
812
|
+
default: import('vue').CSSProperties | ((data: {
|
813
|
+
rowData: any;
|
814
|
+
column: {
|
815
|
+
name: string;
|
816
|
+
head: string;
|
817
|
+
};
|
818
|
+
rowIndex: number;
|
819
|
+
columnIndex: number;
|
820
|
+
}) => import('vue').CSSProperties);
|
821
|
+
};
|
357
822
|
}>> & Readonly<{
|
358
823
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
359
824
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -372,9 +837,36 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
372
837
|
total?: number;
|
373
838
|
};
|
374
839
|
tailData: Record<string, any>;
|
840
|
+
paginationTeleported: boolean;
|
375
841
|
showRowNumber: boolean;
|
376
842
|
selectionMode: boolean;
|
377
843
|
currentRowMode: boolean;
|
844
|
+
rowClassName: string | ((data: {
|
845
|
+
rowData: any;
|
846
|
+
rowIndex: number;
|
847
|
+
}) => string);
|
848
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
849
|
+
rowData: any;
|
850
|
+
rowIndex: number;
|
851
|
+
}) => import('vue').CSSProperties);
|
852
|
+
cellClassName: string | ((data: {
|
853
|
+
rowData: any;
|
854
|
+
column: {
|
855
|
+
name: string;
|
856
|
+
head: string;
|
857
|
+
};
|
858
|
+
rowIndex: number;
|
859
|
+
columnIndex: number;
|
860
|
+
}) => string);
|
861
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
862
|
+
rowData: any;
|
863
|
+
column: {
|
864
|
+
name: string;
|
865
|
+
head: string;
|
866
|
+
};
|
867
|
+
rowIndex: number;
|
868
|
+
columnIndex: number;
|
869
|
+
}) => import('vue').CSSProperties);
|
378
870
|
}> | null;
|
379
871
|
}, any>;
|
380
872
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|