保誠-保戶業務員媒合平台
Tomas
2024-04-30 f247f8a4ee7edda57d01b184962b3a3ec04316a7
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
import { CreateElement, VNode } from 'vue'
import { ElementUIComponent } from './component'
 
export type TransferPanelPosition = 'left' | 'right'
 
export interface TransferData {
  key: any,
  label: string,
  disabled: boolean
}
 
export interface TransferFormat {
  noChecked: string,
  hasChecked: string,
}
 
export interface TransferProps {
  key: string,
  label: string,
  disabled: string
}
 
export interface TransferRenderContent {
  /**
   * Render function for a specific option
   *
   * @param h The render function
   * @param option The option data object
   */
  (h: CreateElement, option: TransferData): VNode
}
 
/** Transfer Component */
export declare class ElTransfer extends ElementUIComponent {
  /** Data source */
  data: TransferData[]
 
  /** Whether Transfer is filterable */
  filterable: boolean
 
  /** Placeholder for the filter input */
  filterPlaceholder: string
 
  /** Custom filter method */
  filterMethod: (query: string, item: TransferData) => boolean
 
  /** Order strategy for elements in the target list */
  targetOrder: string
 
  /** Custom list titles */
  titles: string[]
 
  /** Custom button texts */
  buttonTexts: string[]
 
  /** Custom render function for data items */
  renderContent: TransferRenderContent
 
  /** Texts for checking status in list header */
  format: TransferFormat
 
  /** Prop aliases for data source */
  props: TransferProps
 
  /** Key array of initially checked data items of the left list */
  leftDefaultChecked: any[]
 
  /** Key array of initially checked data items of the right list */
  rightDefaultChecked: any[]
 
  /** Clear the query text in specified panel */
  clearQuery (which: TransferPanelPosition): void
}