index.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. import type { SFCWithInstall } from 'element-plus/es/utils';
  2. declare const _CascaderPanel: SFCWithInstall<import("vue").DefineComponent<{
  3. border: {
  4. type: BooleanConstructor;
  5. default: boolean;
  6. };
  7. renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
  8. modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
  9. options: {
  10. type: import("vue").PropType<import("./src/node").CascaderOption[]>;
  11. default: () => import("./src/node").CascaderOption[];
  12. };
  13. props: {
  14. type: import("vue").PropType<import("./src/node").CascaderProps>;
  15. default: () => import("./src/node").CascaderProps;
  16. };
  17. }, {
  18. ns: {
  19. namespace: import("vue").Ref<string>;
  20. b: (blockSuffix?: string) => string;
  21. e: (element?: string | undefined) => string;
  22. m: (modifier?: string | undefined) => string;
  23. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  24. em: (element?: string | undefined, modifier?: string | undefined) => string;
  25. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  26. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  27. is: {
  28. (name: string, state: boolean | undefined): string;
  29. (name: string): string;
  30. };
  31. cssVar: (object: Record<string, string>) => Record<string, string>;
  32. cssVarName: (name: string) => string;
  33. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  34. cssVarBlockName: (name: string) => string;
  35. };
  36. menuList: import("vue").Ref<any[]>;
  37. menus: import("vue").Ref<{
  38. readonly uid: number;
  39. readonly level: number;
  40. readonly value: import("./src/node").CascaderNodeValue;
  41. readonly label: string;
  42. readonly pathNodes: any[];
  43. readonly pathValues: import("./src/node").CascaderNodeValue[];
  44. readonly pathLabels: string[];
  45. childrenData: {
  46. [x: string]: unknown;
  47. label?: string | undefined;
  48. value?: import("./src/node").CascaderNodeValue | undefined;
  49. children?: any[] | undefined;
  50. disabled?: boolean | undefined;
  51. leaf?: boolean | undefined;
  52. }[] | undefined;
  53. children: any[];
  54. text: string;
  55. loaded: boolean;
  56. checked: boolean;
  57. indeterminate: boolean;
  58. loading: boolean;
  59. readonly data: {
  60. [x: string]: unknown;
  61. label?: string | undefined;
  62. value?: import("./src/node").CascaderNodeValue | undefined;
  63. children?: any[] | undefined;
  64. disabled?: boolean | undefined;
  65. leaf?: boolean | undefined;
  66. } | null;
  67. readonly config: {
  68. expandTrigger: import("./src/node").ExpandTrigger;
  69. multiple: boolean;
  70. checkStrictly: boolean;
  71. emitPath: boolean;
  72. lazy: boolean;
  73. lazyLoad: import("./src/node").LazyLoad;
  74. value: string;
  75. label: string;
  76. children: string;
  77. disabled: string | import("./src/node").isDisabled;
  78. leaf: string | import("./src/node").isLeaf;
  79. hoverThreshold: number;
  80. };
  81. readonly parent?: any | undefined;
  82. readonly root: boolean;
  83. readonly isDisabled: boolean;
  84. readonly isLeaf: boolean;
  85. readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
  86. appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
  87. calcText: (allLevels: boolean, separator: string) => string;
  88. broadcast: (event: string, ...args: unknown[]) => void;
  89. emit: (event: string, ...args: unknown[]) => void;
  90. onParentCheck: (checked: boolean) => void;
  91. onChildCheck: () => void;
  92. setCheckState: (checked: boolean) => void;
  93. doCheck: (checked: boolean) => void;
  94. }[][]>;
  95. checkedNodes: import("vue").Ref<{
  96. readonly uid: number;
  97. readonly level: number;
  98. readonly value: import("./src/node").CascaderNodeValue;
  99. readonly label: string;
  100. readonly pathNodes: any[];
  101. readonly pathValues: import("./src/node").CascaderNodeValue[];
  102. readonly pathLabels: string[];
  103. childrenData: {
  104. [x: string]: unknown;
  105. label?: string | undefined;
  106. value?: import("./src/node").CascaderNodeValue | undefined;
  107. children?: any[] | undefined;
  108. disabled?: boolean | undefined;
  109. leaf?: boolean | undefined;
  110. }[] | undefined;
  111. children: any[];
  112. text: string;
  113. loaded: boolean;
  114. checked: boolean;
  115. indeterminate: boolean;
  116. loading: boolean;
  117. readonly data: {
  118. [x: string]: unknown;
  119. label?: string | undefined;
  120. value?: import("./src/node").CascaderNodeValue | undefined;
  121. children?: any[] | undefined;
  122. disabled?: boolean | undefined;
  123. leaf?: boolean | undefined;
  124. } | null;
  125. readonly config: {
  126. expandTrigger: import("./src/node").ExpandTrigger;
  127. multiple: boolean;
  128. checkStrictly: boolean;
  129. emitPath: boolean;
  130. lazy: boolean;
  131. lazyLoad: import("./src/node").LazyLoad;
  132. value: string;
  133. label: string;
  134. children: string;
  135. disabled: string | import("./src/node").isDisabled;
  136. leaf: string | import("./src/node").isLeaf;
  137. hoverThreshold: number;
  138. };
  139. readonly parent?: any | undefined;
  140. readonly root: boolean;
  141. readonly isDisabled: boolean;
  142. readonly isLeaf: boolean;
  143. readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
  144. appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
  145. calcText: (allLevels: boolean, separator: string) => string;
  146. broadcast: (event: string, ...args: unknown[]) => void;
  147. emit: (event: string, ...args: unknown[]) => void;
  148. onParentCheck: (checked: boolean) => void;
  149. onChildCheck: () => void;
  150. setCheckState: (checked: boolean) => void;
  151. doCheck: (checked: boolean) => void;
  152. }[]>;
  153. handleKeyDown: (e: KeyboardEvent) => void;
  154. handleCheckChange: (node: import("./src/node").default, checked: boolean, emitClose?: boolean | undefined) => void;
  155. getFlattedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
  156. getCheckedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
  157. clearCheckedNodes: () => void;
  158. calculateCheckedValue: () => void;
  159. scrollToExpandingNode: () => void;
  160. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "expand-change")[], "update:modelValue" | "change" | "close" | "expand-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  161. border: {
  162. type: BooleanConstructor;
  163. default: boolean;
  164. };
  165. renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
  166. modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
  167. options: {
  168. type: import("vue").PropType<import("./src/node").CascaderOption[]>;
  169. default: () => import("./src/node").CascaderOption[];
  170. };
  171. props: {
  172. type: import("vue").PropType<import("./src/node").CascaderProps>;
  173. default: () => import("./src/node").CascaderProps;
  174. };
  175. }>> & {
  176. onChange?: ((...args: any[]) => any) | undefined;
  177. onClose?: ((...args: any[]) => any) | undefined;
  178. "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
  179. "onExpand-change"?: ((...args: any[]) => any) | undefined;
  180. }, {
  181. props: import("./src/node").CascaderProps;
  182. border: boolean;
  183. options: import("./src/node").CascaderOption[];
  184. }>>;
  185. export default _CascaderPanel;
  186. export declare const ElCascaderPanel: SFCWithInstall<import("vue").DefineComponent<{
  187. border: {
  188. type: BooleanConstructor;
  189. default: boolean;
  190. };
  191. renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
  192. modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
  193. options: {
  194. type: import("vue").PropType<import("./src/node").CascaderOption[]>;
  195. default: () => import("./src/node").CascaderOption[];
  196. };
  197. props: {
  198. type: import("vue").PropType<import("./src/node").CascaderProps>;
  199. default: () => import("./src/node").CascaderProps;
  200. };
  201. }, {
  202. ns: {
  203. namespace: import("vue").Ref<string>;
  204. b: (blockSuffix?: string) => string;
  205. e: (element?: string | undefined) => string;
  206. m: (modifier?: string | undefined) => string;
  207. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  208. em: (element?: string | undefined, modifier?: string | undefined) => string;
  209. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  210. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  211. is: {
  212. (name: string, state: boolean | undefined): string;
  213. (name: string): string;
  214. };
  215. cssVar: (object: Record<string, string>) => Record<string, string>;
  216. cssVarName: (name: string) => string;
  217. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  218. cssVarBlockName: (name: string) => string;
  219. };
  220. menuList: import("vue").Ref<any[]>;
  221. menus: import("vue").Ref<{
  222. readonly uid: number;
  223. readonly level: number;
  224. readonly value: import("./src/node").CascaderNodeValue;
  225. readonly label: string;
  226. readonly pathNodes: any[];
  227. readonly pathValues: import("./src/node").CascaderNodeValue[];
  228. readonly pathLabels: string[];
  229. childrenData: {
  230. [x: string]: unknown;
  231. label?: string | undefined;
  232. value?: import("./src/node").CascaderNodeValue | undefined;
  233. children?: any[] | undefined;
  234. disabled?: boolean | undefined;
  235. leaf?: boolean | undefined;
  236. }[] | undefined;
  237. children: any[];
  238. text: string;
  239. loaded: boolean;
  240. checked: boolean;
  241. indeterminate: boolean;
  242. loading: boolean;
  243. readonly data: {
  244. [x: string]: unknown;
  245. label?: string | undefined;
  246. value?: import("./src/node").CascaderNodeValue | undefined;
  247. children?: any[] | undefined;
  248. disabled?: boolean | undefined;
  249. leaf?: boolean | undefined;
  250. } | null;
  251. readonly config: {
  252. expandTrigger: import("./src/node").ExpandTrigger;
  253. multiple: boolean;
  254. checkStrictly: boolean;
  255. emitPath: boolean;
  256. lazy: boolean;
  257. lazyLoad: import("./src/node").LazyLoad;
  258. value: string;
  259. label: string;
  260. children: string;
  261. disabled: string | import("./src/node").isDisabled;
  262. leaf: string | import("./src/node").isLeaf;
  263. hoverThreshold: number;
  264. };
  265. readonly parent?: any | undefined;
  266. readonly root: boolean;
  267. readonly isDisabled: boolean;
  268. readonly isLeaf: boolean;
  269. readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
  270. appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
  271. calcText: (allLevels: boolean, separator: string) => string;
  272. broadcast: (event: string, ...args: unknown[]) => void;
  273. emit: (event: string, ...args: unknown[]) => void;
  274. onParentCheck: (checked: boolean) => void;
  275. onChildCheck: () => void;
  276. setCheckState: (checked: boolean) => void;
  277. doCheck: (checked: boolean) => void;
  278. }[][]>;
  279. checkedNodes: import("vue").Ref<{
  280. readonly uid: number;
  281. readonly level: number;
  282. readonly value: import("./src/node").CascaderNodeValue;
  283. readonly label: string;
  284. readonly pathNodes: any[];
  285. readonly pathValues: import("./src/node").CascaderNodeValue[];
  286. readonly pathLabels: string[];
  287. childrenData: {
  288. [x: string]: unknown;
  289. label?: string | undefined;
  290. value?: import("./src/node").CascaderNodeValue | undefined;
  291. children?: any[] | undefined;
  292. disabled?: boolean | undefined;
  293. leaf?: boolean | undefined;
  294. }[] | undefined;
  295. children: any[];
  296. text: string;
  297. loaded: boolean;
  298. checked: boolean;
  299. indeterminate: boolean;
  300. loading: boolean;
  301. readonly data: {
  302. [x: string]: unknown;
  303. label?: string | undefined;
  304. value?: import("./src/node").CascaderNodeValue | undefined;
  305. children?: any[] | undefined;
  306. disabled?: boolean | undefined;
  307. leaf?: boolean | undefined;
  308. } | null;
  309. readonly config: {
  310. expandTrigger: import("./src/node").ExpandTrigger;
  311. multiple: boolean;
  312. checkStrictly: boolean;
  313. emitPath: boolean;
  314. lazy: boolean;
  315. lazyLoad: import("./src/node").LazyLoad;
  316. value: string;
  317. label: string;
  318. children: string;
  319. disabled: string | import("./src/node").isDisabled;
  320. leaf: string | import("./src/node").isLeaf;
  321. hoverThreshold: number;
  322. };
  323. readonly parent?: any | undefined;
  324. readonly root: boolean;
  325. readonly isDisabled: boolean;
  326. readonly isLeaf: boolean;
  327. readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
  328. appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
  329. calcText: (allLevels: boolean, separator: string) => string;
  330. broadcast: (event: string, ...args: unknown[]) => void;
  331. emit: (event: string, ...args: unknown[]) => void;
  332. onParentCheck: (checked: boolean) => void;
  333. onChildCheck: () => void;
  334. setCheckState: (checked: boolean) => void;
  335. doCheck: (checked: boolean) => void;
  336. }[]>;
  337. handleKeyDown: (e: KeyboardEvent) => void;
  338. handleCheckChange: (node: import("./src/node").default, checked: boolean, emitClose?: boolean | undefined) => void;
  339. getFlattedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
  340. getCheckedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
  341. clearCheckedNodes: () => void;
  342. calculateCheckedValue: () => void;
  343. scrollToExpandingNode: () => void;
  344. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "expand-change")[], "update:modelValue" | "change" | "close" | "expand-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  345. border: {
  346. type: BooleanConstructor;
  347. default: boolean;
  348. };
  349. renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
  350. modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
  351. options: {
  352. type: import("vue").PropType<import("./src/node").CascaderOption[]>;
  353. default: () => import("./src/node").CascaderOption[];
  354. };
  355. props: {
  356. type: import("vue").PropType<import("./src/node").CascaderProps>;
  357. default: () => import("./src/node").CascaderProps;
  358. };
  359. }>> & {
  360. onChange?: ((...args: any[]) => any) | undefined;
  361. onClose?: ((...args: any[]) => any) | undefined;
  362. "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
  363. "onExpand-change"?: ((...args: any[]) => any) | undefined;
  364. }, {
  365. props: import("./src/node").CascaderProps;
  366. border: boolean;
  367. options: import("./src/node").CascaderOption[];
  368. }>>;
  369. export * from './src/types';
  370. export * from './src/config';