rayyy-vue-table-components 1.2.19 → 1.2.21
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/dist/index.es.js +5225 -5256
- package/dist/index.umd.js +11 -15
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/index.d.ts +4 -1
- package/dist/src/components/layout/FunctionHeader.vue.d.ts +12 -2
- package/dist/src/types/components.d.ts +506 -29
- package/package.json +1 -1
- package/src/components/form/BaseForm.vue +5 -1
- package/src/components/form/BaseInput.vue +5 -1
- package/src/components/form/BaseMultipleInput.vue +5 -2
- package/src/components/form/BaseSelector.vue +5 -0
- package/src/components/index.ts +30 -0
- package/src/components/items/BaseBtn.vue +5 -1
- package/src/components/items/FilterBtn.vue +5 -2
- package/src/components/items/SearchBar.vue +5 -2
- package/src/components/layout/FunctionHeader.vue +11 -8
- package/src/types/components.d.ts +506 -29
|
@@ -12,15 +12,18 @@ export { default as TransferItem } from './transfer/transferItem.vue';
|
|
|
12
12
|
export { default as FunctionHeader } from './layout/FunctionHeader.vue';
|
|
13
13
|
export { default as MainPanel } from './layout/MainPanel.vue';
|
|
14
14
|
export { default as SearchableListPanel } from './layout/SearchableListPanel.vue';
|
|
15
|
-
export type { BaseTableProps, BaseTableEmits, BaseTableInstance, BaseBtnProps, BaseBtnEmits, BaseBtnInstance, BaseDialogProps, BaseDialogEmits, BaseDialogInstance, PluginOptions, VueTableComponentsPlugin, } from '../types/components';
|
|
15
|
+
export type { BaseTableProps, BaseTableEmits, BaseTableInstance, BaseBtnProps, BaseBtnEmits, BaseBtnInstance, BaseDialogProps, BaseDialogEmits, BaseDialogInstance, BaseInputProps, BaseInputEmits, BaseInputInstance, FilterBtnProps, FilterBtnEmits, FilterBtnInstance, BaseFormProps, BaseFormEmits, BaseFormInstance, SortTableProps, SortTableEmits, SortTableInstance, SearchBarProps, SearchBarEmits, SearchBarInstance, TransferDialogProps, TransferDialogEmits, TransferDialogInstance, TransferItemProps, TransferItemEmits, TransferItemInstance, MainPanelProps, MainPanelEmits, MainPanelInstance, FunctionHeaderProps, FunctionHeaderEmits, FunctionHeaderInstance, PluginOptions, VueTableComponentsPlugin, } from '../types/components';
|
|
16
16
|
export type { default as BaseTableType } from './tables/BaseTable.vue';
|
|
17
17
|
export type { default as BaseBtnType } from './items/BaseBtn.vue';
|
|
18
18
|
export type { default as BaseInputType } from './form/BaseInput.vue';
|
|
19
19
|
export type { default as FilterBtnType } from './items/FilterBtn.vue';
|
|
20
20
|
export type { default as BaseDialogType } from './items/BaseDialog.vue';
|
|
21
|
+
export type { default as BaseFormType } from './form/BaseForm.vue';
|
|
21
22
|
export type { default as SortTableType } from './tables/SortTable.vue';
|
|
22
23
|
export type { default as SearchBarType } from './items/SearchBar.vue';
|
|
23
24
|
export type { default as TransferDialogType } from './transfer/TransferDialog.vue';
|
|
24
25
|
export type { default as TransferItemType } from './transfer/transferItem.vue';
|
|
25
26
|
export type { default as SearchableListPanelType } from './layout/SearchableListPanel.vue';
|
|
26
27
|
export type { default as BaseMultipleInputType } from './form/BaseMultipleInput.vue';
|
|
28
|
+
export type { default as FunctionHeaderType } from './layout/FunctionHeader.vue';
|
|
29
|
+
export type { default as MainPanelType } from './layout/MainPanel.vue';
|
|
@@ -23,7 +23,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
23
23
|
required: false;
|
|
24
24
|
default: number;
|
|
25
25
|
};
|
|
26
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
back: (payload: {
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
path?: string;
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
32
|
title: {
|
|
28
33
|
type: StringConstructor;
|
|
29
34
|
required: false;
|
|
@@ -39,7 +44,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
39
44
|
required: false;
|
|
40
45
|
default: number;
|
|
41
46
|
};
|
|
42
|
-
}>> & Readonly<{
|
|
47
|
+
}>> & Readonly<{
|
|
48
|
+
onBack?: ((payload: {
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
path?: string;
|
|
51
|
+
}) => any) | undefined;
|
|
52
|
+
}>, {
|
|
43
53
|
title: string;
|
|
44
54
|
showBack: string | boolean | Record<string, any>;
|
|
45
55
|
depth: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { App, DefineComponent, VNode } from 'vue';
|
|
2
2
|
import { TableColumnCtx } from 'element-plus';
|
|
3
3
|
import { SortChangValue, TableColumn } from './index';
|
|
4
|
+
// ==================== 表格相關組件類型 ====================
|
|
5
|
+
|
|
4
6
|
// ==================== BaseTable 組件類型 ====================
|
|
5
7
|
|
|
6
8
|
/** BaseTable 組件 Props 類型 */
|
|
@@ -46,6 +48,52 @@ export interface BaseTableInstance<T extends Record<string, unknown> = Record<st
|
|
|
46
48
|
$emit: BaseTableEmits<T>
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
// ==================== SortTable 組件類型 ====================
|
|
52
|
+
|
|
53
|
+
/** SortTable 組件 Props 類型 */
|
|
54
|
+
export interface SortTableProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
55
|
+
/** 表格數據 */
|
|
56
|
+
data: T[]
|
|
57
|
+
/** 表格列配置 */
|
|
58
|
+
columns: import('./index').TableColumn<T>[]
|
|
59
|
+
/** 表格標題 */
|
|
60
|
+
tableTitle?: string
|
|
61
|
+
/** 是否顯示選擇列 */
|
|
62
|
+
showSelection?: boolean
|
|
63
|
+
/** 是否顯示加載狀態 */
|
|
64
|
+
loading?: boolean
|
|
65
|
+
/** 是否顯示匯總行 */
|
|
66
|
+
showSummary?: boolean
|
|
67
|
+
/** 是否顯示溢出提示 */
|
|
68
|
+
showOverFlowTooltip?: boolean
|
|
69
|
+
/** 匯總方法 */
|
|
70
|
+
summaryMethod?: (param: { columns: import('element-plus').TableColumnCtx<Record<string, unknown>>[]; data: T[] }) => (string | import('vue').VNode)[]
|
|
71
|
+
/** 行樣式類名 */
|
|
72
|
+
sortTableRowClassName?: (data: { row: T; rowIndex: number }) => string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** SortTable 組件 Emits 類型 */
|
|
76
|
+
export interface SortTableEmits<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
77
|
+
/** 打開轉移對話框事件 */
|
|
78
|
+
(e: 'open:transfer'): void
|
|
79
|
+
/** 更新選擇行事件 */
|
|
80
|
+
(e: 'update:selectRow', value: T[]): void
|
|
81
|
+
/** 單元格點擊事件 */
|
|
82
|
+
(e: 'click:cell', column: import('./index').TableColumn<T>, row: T): void
|
|
83
|
+
/** 列排序點擊事件 */
|
|
84
|
+
(e: 'click:columnSort', data: import('./index').SortChangValue<T>): void
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** SortTable 組件實例類型 */
|
|
88
|
+
export interface SortTableInstance<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
89
|
+
/** 組件 Props */
|
|
90
|
+
$props: SortTableProps<T>
|
|
91
|
+
/** 組件 Emits */
|
|
92
|
+
$emit: SortTableEmits<T>
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ==================== 按鈕相關組件類型 ====================
|
|
96
|
+
|
|
49
97
|
// ==================== BaseBtn 組件類型 ====================
|
|
50
98
|
|
|
51
99
|
/** BaseBtn 組件 Props 類型 */
|
|
@@ -90,6 +138,32 @@ export interface BaseBtnInstance {
|
|
|
90
138
|
$emit: BaseBtnEmits
|
|
91
139
|
}
|
|
92
140
|
|
|
141
|
+
// ==================== FilterBtn 組件類型 ====================
|
|
142
|
+
|
|
143
|
+
/** FilterBtn 組件 Props 類型 */
|
|
144
|
+
export interface FilterBtnProps {
|
|
145
|
+
/** 徽章數值 */
|
|
146
|
+
badgeValue?: number
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** FilterBtn 組件 Emits 類型 */
|
|
150
|
+
export interface FilterBtnEmits {
|
|
151
|
+
/** 重置事件 */
|
|
152
|
+
(e: 'update:reset'): void
|
|
153
|
+
/** 提交事件 */
|
|
154
|
+
(e: 'update:submit'): void
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** FilterBtn 組件實例類型 */
|
|
158
|
+
export interface FilterBtnInstance {
|
|
159
|
+
/** 組件 Props */
|
|
160
|
+
$props: FilterBtnProps
|
|
161
|
+
/** 組件 Emits */
|
|
162
|
+
$emit: FilterBtnEmits
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ==================== 對話框相關組件類型 ====================
|
|
166
|
+
|
|
93
167
|
// ==================== BaseDialog 組件類型 ====================
|
|
94
168
|
|
|
95
169
|
/** BaseDialog 組件 Props 類型 */
|
|
@@ -130,6 +204,174 @@ export interface BaseDialogInstance {
|
|
|
130
204
|
$emit: BaseDialogEmits
|
|
131
205
|
}
|
|
132
206
|
|
|
207
|
+
// ==================== TransferDialog 組件類型 ====================
|
|
208
|
+
|
|
209
|
+
/** TransferDialog 組件 Props 類型 */
|
|
210
|
+
export interface TransferDialogProps<T = Record<string, unknown>> {
|
|
211
|
+
/** 是否顯示對話框 */
|
|
212
|
+
modelValue: boolean
|
|
213
|
+
/** 列配置值 */
|
|
214
|
+
columnsValue: import('./index').TableColumn<T>[]
|
|
215
|
+
/** 轉移對話框標題 */
|
|
216
|
+
transferTitle: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** TransferDialog 組件 Emits 類型 */
|
|
220
|
+
export interface TransferDialogEmits<T = Record<string, unknown>> {
|
|
221
|
+
/** 更新 modelValue */
|
|
222
|
+
(e: 'update:modelValue', value: boolean): void
|
|
223
|
+
/** 提交事件 */
|
|
224
|
+
(e: 'update:submit', data: import('./index').TableColumn<T>[]): void
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** TransferDialog 組件實例類型 */
|
|
228
|
+
export interface TransferDialogInstance<T = Record<string, unknown>> {
|
|
229
|
+
/** 組件 Props */
|
|
230
|
+
$props: TransferDialogProps<T>
|
|
231
|
+
/** 組件 Emits */
|
|
232
|
+
$emit: TransferDialogEmits<T>
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// ==================== 表單相關組件類型 ====================
|
|
236
|
+
|
|
237
|
+
// ==================== BaseInput 組件類型 ====================
|
|
238
|
+
|
|
239
|
+
/** BaseInput 組件 Props 類型 */
|
|
240
|
+
export interface BaseInputProps {
|
|
241
|
+
/** 模型值 */
|
|
242
|
+
modelValue?: string | number | null
|
|
243
|
+
/** 佔位符 */
|
|
244
|
+
placeholder?: string
|
|
245
|
+
/** 輸入框類型 */
|
|
246
|
+
type?: string
|
|
247
|
+
/** 自定義 CSS 類名 */
|
|
248
|
+
class?: string | { [key: string]: boolean }
|
|
249
|
+
/** 是否顯示密碼切換 */
|
|
250
|
+
showPassword?: boolean
|
|
251
|
+
/** 是否禁用 */
|
|
252
|
+
disabled?: boolean
|
|
253
|
+
/** 是否只讀 */
|
|
254
|
+
readonly?: boolean
|
|
255
|
+
/** 最大長度 */
|
|
256
|
+
maxlength?: string | number
|
|
257
|
+
/** 自動完成 */
|
|
258
|
+
autocomplete?: string
|
|
259
|
+
/** 測試屬性 */
|
|
260
|
+
dataCy?: string
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** BaseInput 組件 Emits 類型 */
|
|
264
|
+
export interface BaseInputEmits {
|
|
265
|
+
/** 更新模型值事件 */
|
|
266
|
+
(e: 'update:modelValue', data: string | number | undefined | null): void
|
|
267
|
+
/** 清除值事件 */
|
|
268
|
+
(e: 'update:clearValue'): void
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/** BaseInput 組件實例類型 */
|
|
272
|
+
export interface BaseInputInstance {
|
|
273
|
+
/** 組件 Props */
|
|
274
|
+
$props: BaseInputProps
|
|
275
|
+
/** 組件 Emits */
|
|
276
|
+
$emit: BaseInputEmits
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// ==================== BaseForm 組件類型 ====================
|
|
280
|
+
|
|
281
|
+
/** BaseForm 組件 Props 類型 */
|
|
282
|
+
export interface BaseFormProps<T extends object = object> {
|
|
283
|
+
/** 模型值 */
|
|
284
|
+
modelValue?: T
|
|
285
|
+
/** 表單驗證規則 */
|
|
286
|
+
rules?: import('element-plus').FormRules
|
|
287
|
+
/** 標籤寬度 */
|
|
288
|
+
labelWidth?: string
|
|
289
|
+
/** 測試屬性 */
|
|
290
|
+
dataCy?: string
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** BaseForm 組件 Emits 類型 */
|
|
294
|
+
export interface BaseFormEmits {
|
|
295
|
+
/** 更新模型值事件 */
|
|
296
|
+
(e: 'update:modelValue', value: Record<string, unknown>): void
|
|
297
|
+
/** 提交事件 */
|
|
298
|
+
(e: 'submit'): void
|
|
299
|
+
/** 驗證事件 */
|
|
300
|
+
(e: 'validate', valid: boolean): void
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** BaseForm 組件實例類型 */
|
|
304
|
+
export interface BaseFormInstance {
|
|
305
|
+
/** 組件 Props */
|
|
306
|
+
$props: BaseFormProps
|
|
307
|
+
/** 組件 Emits */
|
|
308
|
+
$emit: BaseFormEmits
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// ==================== BaseMultipleInput 組件類型 ====================
|
|
312
|
+
|
|
313
|
+
/** BaseMultipleInput 組件 Props 類型 */
|
|
314
|
+
export interface BaseMultipleInputProps {
|
|
315
|
+
/** 模型值(字符串數組) */
|
|
316
|
+
modelValue: string[]
|
|
317
|
+
/** 輸入框類型 */
|
|
318
|
+
type?: string
|
|
319
|
+
/** 驗證規則函數 */
|
|
320
|
+
validateRule?: (inputString: string) => boolean
|
|
321
|
+
/** 測試屬性 */
|
|
322
|
+
dataCy?: string
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** BaseMultipleInput 組件 Emits 類型 */
|
|
326
|
+
export interface BaseMultipleInputEmits {
|
|
327
|
+
/** 更新模型值事件 */
|
|
328
|
+
(e: 'update:modelValue', val: string[]): void
|
|
329
|
+
/** 輸入錯誤事件 */
|
|
330
|
+
(e: 'inputError'): void
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** BaseMultipleInput 組件實例類型 */
|
|
334
|
+
export interface BaseMultipleInputInstance {
|
|
335
|
+
/** 組件 Props */
|
|
336
|
+
$props: BaseMultipleInputProps
|
|
337
|
+
/** 組件 Emits */
|
|
338
|
+
$emit: BaseMultipleInputEmits
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// ==================== 搜尋相關組件類型 ====================
|
|
342
|
+
|
|
343
|
+
// ==================== SearchBar 組件類型 ====================
|
|
344
|
+
|
|
345
|
+
/** SearchBar 組件 Props 類型 */
|
|
346
|
+
export interface SearchBarProps {
|
|
347
|
+
/** 是否顯示篩選功能 */
|
|
348
|
+
showFilter?: boolean
|
|
349
|
+
/** 是否顯示搜尋功能 */
|
|
350
|
+
showSearch?: boolean
|
|
351
|
+
/** 是否為完整輸入框 */
|
|
352
|
+
fullInput?: boolean
|
|
353
|
+
/** 徽章數值 */
|
|
354
|
+
badgeValue?: number
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/** SearchBar 組件 Emits 類型 */
|
|
358
|
+
export interface SearchBarEmits {
|
|
359
|
+
/** 按下 Enter 鍵事件 */
|
|
360
|
+
(e: 'keydown:enter', data: string): void
|
|
361
|
+
/** 清除事件 */
|
|
362
|
+
(e: 'update:clear'): void
|
|
363
|
+
/** 重置篩選事件 */
|
|
364
|
+
(e: 'update:resetFilter'): void
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/** SearchBar 組件實例類型 */
|
|
368
|
+
export interface SearchBarInstance {
|
|
369
|
+
/** 組件 Props */
|
|
370
|
+
$props: SearchBarProps
|
|
371
|
+
/** 組件 Emits */
|
|
372
|
+
$emit: SearchBarEmits
|
|
373
|
+
}
|
|
374
|
+
|
|
133
375
|
// ==================== SearchableListPanel 組件類型 ====================
|
|
134
376
|
|
|
135
377
|
/** SearchableListPanel 組件 Props 類型 */
|
|
@@ -186,34 +428,94 @@ export interface SearchableListPanelSlots {
|
|
|
186
428
|
main: () => VNode[]
|
|
187
429
|
}
|
|
188
430
|
|
|
189
|
-
// ====================
|
|
431
|
+
// ==================== 佈局相關組件類型 ====================
|
|
190
432
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
|
|
433
|
+
// ==================== FunctionHeader 組件類型 ====================
|
|
434
|
+
|
|
435
|
+
/** FunctionHeader 組件 Props 類型 */
|
|
436
|
+
export interface FunctionHeaderProps {
|
|
437
|
+
/** 標題 */
|
|
438
|
+
title?: string
|
|
439
|
+
/** 是否顯示返回按鈕 */
|
|
440
|
+
showBack?: boolean | string | object
|
|
441
|
+
/** 返回深度 */
|
|
442
|
+
depth?: number
|
|
201
443
|
}
|
|
202
444
|
|
|
203
|
-
/**
|
|
204
|
-
export interface
|
|
205
|
-
/**
|
|
206
|
-
(e: '
|
|
207
|
-
/** 輸入錯誤事件 */
|
|
208
|
-
(e: 'inputError'): void
|
|
445
|
+
/** FunctionHeader 組件 Emits 類型 */
|
|
446
|
+
export interface FunctionHeaderEmits {
|
|
447
|
+
/** 返回按鈕點擊事件 */
|
|
448
|
+
(e: 'back', payload: { path?: string; [key: string]: unknown }): void
|
|
209
449
|
}
|
|
210
450
|
|
|
211
|
-
/**
|
|
212
|
-
export interface
|
|
451
|
+
/** FunctionHeader 組件實例類型 */
|
|
452
|
+
export interface FunctionHeaderInstance {
|
|
213
453
|
/** 組件 Props */
|
|
214
|
-
$props:
|
|
454
|
+
$props: FunctionHeaderProps
|
|
215
455
|
/** 組件 Emits */
|
|
216
|
-
$emit:
|
|
456
|
+
$emit: FunctionHeaderEmits
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// ==================== MainPanel 組件類型 ====================
|
|
460
|
+
|
|
461
|
+
/** MainPanel 組件 Props 類型 */
|
|
462
|
+
export interface MainPanelProps {
|
|
463
|
+
/** 標題 */
|
|
464
|
+
title?: string
|
|
465
|
+
/** 是否顯示返回按鈕 */
|
|
466
|
+
showBack?: boolean | string | object
|
|
467
|
+
/** 返回深度 */
|
|
468
|
+
depth?: number
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** MainPanel 組件 Emits 類型 */
|
|
472
|
+
export interface MainPanelEmits {
|
|
473
|
+
/** 返回按鈕點擊事件 */
|
|
474
|
+
(e: 'back', payload: { path?: string; [key: string]: unknown }): void
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** MainPanel 組件實例類型 */
|
|
478
|
+
export interface MainPanelInstance {
|
|
479
|
+
/** 組件 Props */
|
|
480
|
+
$props: MainPanelProps
|
|
481
|
+
/** 組件 Emits */
|
|
482
|
+
$emit: MainPanelEmits
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// ==================== 轉移相關組件類型 ====================
|
|
486
|
+
|
|
487
|
+
// ==================== TransferItem 組件類型 ====================
|
|
488
|
+
|
|
489
|
+
/** TransferItem 組件 Props 類型 */
|
|
490
|
+
export interface TransferItemProps<T = Record<string, unknown>> {
|
|
491
|
+
/** 對話框模態可見性 */
|
|
492
|
+
dialogModalVisible: boolean
|
|
493
|
+
/** 列配置值 */
|
|
494
|
+
columnsValue: import('./index').TableColumn<T>
|
|
495
|
+
/** 列索引 */
|
|
496
|
+
columnsIndex: number
|
|
497
|
+
/** 列長度 */
|
|
498
|
+
columnsLen: number
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** TransferItem 組件 Emits 類型 */
|
|
502
|
+
export interface TransferItemEmits {
|
|
503
|
+
/** 移到頂部事件 */
|
|
504
|
+
(e: 'update:toTop'): void
|
|
505
|
+
/** 移到上一個事件 */
|
|
506
|
+
(e: 'update:toPre'): void
|
|
507
|
+
/** 移到下一個事件 */
|
|
508
|
+
(e: 'update:toNext'): void
|
|
509
|
+
/** 移到底部事件 */
|
|
510
|
+
(e: 'update:toBottom'): void
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/** TransferItem 組件實例類型 */
|
|
514
|
+
export interface TransferItemInstance {
|
|
515
|
+
/** 組件 Props */
|
|
516
|
+
$props: TransferItemProps
|
|
517
|
+
/** 組件 Emits */
|
|
518
|
+
$emit: TransferItemEmits
|
|
217
519
|
}
|
|
218
520
|
|
|
219
521
|
// ==================== 組件定義類型 ====================
|
|
@@ -227,12 +529,29 @@ export declare const BaseTable: DefineComponent<
|
|
|
227
529
|
{},
|
|
228
530
|
{},
|
|
229
531
|
{},
|
|
532
|
+
{},
|
|
230
533
|
BaseTableEmits<any>
|
|
231
534
|
> & {
|
|
232
535
|
/** 安裝方法 */
|
|
233
536
|
install: (app: App) => void
|
|
234
537
|
}
|
|
235
538
|
|
|
539
|
+
/** SortTable 組件定義 */
|
|
540
|
+
export declare const SortTable: DefineComponent<
|
|
541
|
+
SortTableProps<any>,
|
|
542
|
+
{},
|
|
543
|
+
{},
|
|
544
|
+
{},
|
|
545
|
+
{},
|
|
546
|
+
{},
|
|
547
|
+
{},
|
|
548
|
+
{},
|
|
549
|
+
SortTableEmits<any>
|
|
550
|
+
> & {
|
|
551
|
+
/** 安裝方法 */
|
|
552
|
+
install: (app: App) => void
|
|
553
|
+
}
|
|
554
|
+
|
|
236
555
|
/** BaseBtn 組件定義 */
|
|
237
556
|
export declare const BaseBtn: DefineComponent<
|
|
238
557
|
BaseBtnProps,
|
|
@@ -242,12 +561,29 @@ export declare const BaseBtn: DefineComponent<
|
|
|
242
561
|
{},
|
|
243
562
|
{},
|
|
244
563
|
{},
|
|
564
|
+
{},
|
|
245
565
|
BaseBtnEmits
|
|
246
566
|
> & {
|
|
247
567
|
/** 安裝方法 */
|
|
248
568
|
install: (app: App) => void
|
|
249
569
|
}
|
|
250
570
|
|
|
571
|
+
/** FilterBtn 組件定義 */
|
|
572
|
+
export declare const FilterBtn: DefineComponent<
|
|
573
|
+
FilterBtnProps,
|
|
574
|
+
{},
|
|
575
|
+
{},
|
|
576
|
+
{},
|
|
577
|
+
{},
|
|
578
|
+
{},
|
|
579
|
+
{},
|
|
580
|
+
{},
|
|
581
|
+
FilterBtnEmits
|
|
582
|
+
> & {
|
|
583
|
+
/** 安裝方法 */
|
|
584
|
+
install: (app: App) => void
|
|
585
|
+
}
|
|
586
|
+
|
|
251
587
|
/** BaseDialog 組件定義 */
|
|
252
588
|
export declare const BaseDialog: DefineComponent<
|
|
253
589
|
BaseDialogProps,
|
|
@@ -257,12 +593,93 @@ export declare const BaseDialog: DefineComponent<
|
|
|
257
593
|
{},
|
|
258
594
|
{},
|
|
259
595
|
{},
|
|
596
|
+
{},
|
|
260
597
|
BaseDialogEmits
|
|
261
598
|
> & {
|
|
262
599
|
/** 安裝方法 */
|
|
263
600
|
install: (app: App) => void
|
|
264
601
|
}
|
|
265
602
|
|
|
603
|
+
/** TransferDialog 組件定義 */
|
|
604
|
+
export declare const TransferDialog: DefineComponent<
|
|
605
|
+
TransferDialogProps<any>,
|
|
606
|
+
{},
|
|
607
|
+
{},
|
|
608
|
+
{},
|
|
609
|
+
{},
|
|
610
|
+
{},
|
|
611
|
+
{},
|
|
612
|
+
{},
|
|
613
|
+
TransferDialogEmits<any>
|
|
614
|
+
> & {
|
|
615
|
+
/** 安裝方法 */
|
|
616
|
+
install: (app: App) => void
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** BaseInput 組件定義 */
|
|
620
|
+
export declare const BaseInput: DefineComponent<
|
|
621
|
+
BaseInputProps,
|
|
622
|
+
{},
|
|
623
|
+
{},
|
|
624
|
+
{},
|
|
625
|
+
{},
|
|
626
|
+
{},
|
|
627
|
+
{},
|
|
628
|
+
{},
|
|
629
|
+
BaseInputEmits
|
|
630
|
+
> & {
|
|
631
|
+
/** 安裝方法 */
|
|
632
|
+
install: (app: App) => void
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/** BaseForm 組件定義 */
|
|
636
|
+
export declare const BaseForm: DefineComponent<
|
|
637
|
+
BaseFormProps,
|
|
638
|
+
{},
|
|
639
|
+
{},
|
|
640
|
+
{},
|
|
641
|
+
{},
|
|
642
|
+
{},
|
|
643
|
+
{},
|
|
644
|
+
{},
|
|
645
|
+
BaseFormEmits
|
|
646
|
+
> & {
|
|
647
|
+
/** 安裝方法 */
|
|
648
|
+
install: (app: App) => void
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/** BaseMultipleInput 組件定義 */
|
|
652
|
+
export declare const BaseMultipleInput: DefineComponent<
|
|
653
|
+
BaseMultipleInputProps,
|
|
654
|
+
{},
|
|
655
|
+
{},
|
|
656
|
+
{},
|
|
657
|
+
{},
|
|
658
|
+
{},
|
|
659
|
+
{},
|
|
660
|
+
{},
|
|
661
|
+
BaseMultipleInputEmits
|
|
662
|
+
> & {
|
|
663
|
+
/** 安裝方法 */
|
|
664
|
+
install: (app: App) => void
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/** SearchBar 組件定義 */
|
|
668
|
+
export declare const SearchBar: DefineComponent<
|
|
669
|
+
SearchBarProps,
|
|
670
|
+
{},
|
|
671
|
+
{},
|
|
672
|
+
{},
|
|
673
|
+
{},
|
|
674
|
+
{},
|
|
675
|
+
{},
|
|
676
|
+
{},
|
|
677
|
+
SearchBarEmits
|
|
678
|
+
> & {
|
|
679
|
+
/** 安裝方法 */
|
|
680
|
+
install: (app: App) => void
|
|
681
|
+
}
|
|
682
|
+
|
|
266
683
|
/** SearchableListPanel 組件定義 */
|
|
267
684
|
export declare const SearchableListPanel: DefineComponent<
|
|
268
685
|
SearchableListPanelProps,
|
|
@@ -272,22 +689,56 @@ export declare const SearchableListPanel: DefineComponent<
|
|
|
272
689
|
{},
|
|
273
690
|
{},
|
|
274
691
|
SearchableListPanelSlots,
|
|
692
|
+
{},
|
|
275
693
|
SearchableListPanelEmits
|
|
276
694
|
> & {
|
|
277
695
|
/** 安裝方法 */
|
|
278
696
|
install: (app: App) => void
|
|
279
697
|
}
|
|
280
698
|
|
|
281
|
-
/**
|
|
282
|
-
export declare const
|
|
283
|
-
|
|
699
|
+
/** FunctionHeader 組件定義 */
|
|
700
|
+
export declare const FunctionHeader: DefineComponent<
|
|
701
|
+
FunctionHeaderProps,
|
|
284
702
|
{},
|
|
285
703
|
{},
|
|
286
704
|
{},
|
|
287
705
|
{},
|
|
288
706
|
{},
|
|
289
707
|
{},
|
|
290
|
-
|
|
708
|
+
{},
|
|
709
|
+
FunctionHeaderEmits
|
|
710
|
+
> & {
|
|
711
|
+
/** 安裝方法 */
|
|
712
|
+
install: (app: App) => void
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/** MainPanel 組件定義 */
|
|
716
|
+
export declare const MainPanel: DefineComponent<
|
|
717
|
+
MainPanelProps,
|
|
718
|
+
{},
|
|
719
|
+
{},
|
|
720
|
+
{},
|
|
721
|
+
{},
|
|
722
|
+
{},
|
|
723
|
+
{},
|
|
724
|
+
{},
|
|
725
|
+
MainPanelEmits
|
|
726
|
+
> & {
|
|
727
|
+
/** 安裝方法 */
|
|
728
|
+
install: (app: App) => void
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/** TransferItem 組件定義 */
|
|
732
|
+
export declare const TransferItem: DefineComponent<
|
|
733
|
+
TransferItemProps<any>,
|
|
734
|
+
{},
|
|
735
|
+
{},
|
|
736
|
+
{},
|
|
737
|
+
{},
|
|
738
|
+
{},
|
|
739
|
+
{},
|
|
740
|
+
{},
|
|
741
|
+
TransferItemEmits
|
|
291
742
|
> & {
|
|
292
743
|
/** 安裝方法 */
|
|
293
744
|
install: (app: App) => void
|
|
@@ -309,14 +760,32 @@ export interface VueTableComponentsPlugin {
|
|
|
309
760
|
install: (app: App, options?: PluginOptions) => void
|
|
310
761
|
/** BaseTable 組件 */
|
|
311
762
|
BaseTable: typeof BaseTable
|
|
763
|
+
/** SortTable 組件 */
|
|
764
|
+
SortTable: typeof SortTable
|
|
312
765
|
/** BaseBtn 組件 */
|
|
313
766
|
BaseBtn: typeof BaseBtn
|
|
767
|
+
/** FilterBtn 組件 */
|
|
768
|
+
FilterBtn: typeof FilterBtn
|
|
314
769
|
/** BaseDialog 組件 */
|
|
315
770
|
BaseDialog: typeof BaseDialog
|
|
316
|
-
/**
|
|
317
|
-
|
|
771
|
+
/** TransferDialog 組件 */
|
|
772
|
+
TransferDialog: typeof TransferDialog
|
|
773
|
+
/** BaseInput 組件 */
|
|
774
|
+
BaseInput: typeof BaseInput
|
|
775
|
+
/** BaseForm 組件 */
|
|
776
|
+
BaseForm: typeof BaseForm
|
|
318
777
|
/** BaseMultipleInput 組件 */
|
|
319
778
|
BaseMultipleInput: typeof BaseMultipleInput
|
|
779
|
+
/** SearchBar 組件 */
|
|
780
|
+
SearchBar: typeof SearchBar
|
|
781
|
+
/** SearchableListPanel 組件 */
|
|
782
|
+
SearchableListPanel: typeof SearchableListPanel
|
|
783
|
+
/** FunctionHeader 組件 */
|
|
784
|
+
FunctionHeader: typeof FunctionHeader
|
|
785
|
+
/** MainPanel 組件 */
|
|
786
|
+
MainPanel: typeof MainPanel
|
|
787
|
+
/** TransferItem 組件 */
|
|
788
|
+
TransferItem: typeof TransferItem
|
|
320
789
|
}
|
|
321
790
|
|
|
322
791
|
// ==================== 全局類型擴展 ====================
|
|
@@ -324,10 +793,18 @@ export interface VueTableComponentsPlugin {
|
|
|
324
793
|
declare module '@vue/runtime-core' {
|
|
325
794
|
export interface GlobalComponents {
|
|
326
795
|
BaseTable: typeof BaseTable
|
|
796
|
+
SortTable: typeof SortTable
|
|
327
797
|
BaseBtn: typeof BaseBtn
|
|
328
|
-
BaseDialog: typeof BaseDialog
|
|
329
798
|
FilterBtn: typeof FilterBtn
|
|
330
|
-
|
|
799
|
+
BaseDialog: typeof BaseDialog
|
|
800
|
+
TransferDialog: typeof TransferDialog
|
|
801
|
+
BaseInput: typeof BaseInput
|
|
802
|
+
BaseForm: typeof BaseForm
|
|
331
803
|
BaseMultipleInput: typeof BaseMultipleInput
|
|
804
|
+
SearchBar: typeof SearchBar
|
|
805
|
+
SearchableListPanel: typeof SearchableListPanel
|
|
806
|
+
FunctionHeader: typeof FunctionHeader
|
|
807
|
+
MainPanel: typeof MainPanel
|
|
808
|
+
TransferItem: typeof TransferItem
|
|
332
809
|
}
|
|
333
810
|
}
|