UNPKG

12.6 kBTypeScriptView Raw
1import { VNodeTypes } from 'vue';
2import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty';
3import { Locale } from '../locale-provider';
4import { TransformCellTextProps } from '../table/interface';
5export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
6export interface CSPConfig {
7 nonce?: string;
8}
9export { RenderEmptyHandler };
10export interface ConfigConsumerProps {
11 getTargetContainer?: () => HTMLElement;
12 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
13 rootPrefixCls?: string;
14 getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
15 renderEmpty: RenderEmptyHandler;
16 transformCellText?: (tableProps: TransformCellTextProps) => any;
17 csp?: CSPConfig;
18 autoInsertSpaceInButton?: boolean;
19 input?: {
20 autoComplete?: string;
21 };
22 locale?: Locale;
23 pageHeader?: {
24 ghost: boolean;
25 };
26 direction?: 'ltr' | 'rtl';
27 space?: {
28 size?: SizeType | number;
29 };
30 virtual?: boolean;
31 dropdownMatchSelectWidth?: boolean;
32}
33export declare const configConsumerProps: string[];
34export interface ConfigProviderProps {
35 getTargetContainer?: () => HTMLElement;
36 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
37 prefixCls?: string;
38 children?: VNodeTypes;
39 renderEmpty?: RenderEmptyHandler;
40 transformCellText?: (tableProps: TransformCellTextProps) => any;
41 csp?: CSPConfig;
42 autoInsertSpaceInButton?: boolean;
43 input?: {
44 autoComplete?: string;
45 };
46 locale?: Locale;
47 pageHeader?: {
48 ghost: boolean;
49 };
50 componentSize?: SizeType;
51 direction?: 'ltr' | 'rtl';
52 space?: {
53 size?: SizeType | number;
54 };
55 virtual?: boolean;
56 dropdownMatchSelectWidth?: boolean;
57}
58export declare const defaultConfigProvider: ConfigConsumerProps;
59declare const _default: ({
60 new (...args: any[]): {
61 $: import("vue").ComponentInternalInstance;
62 $data: {};
63 $props: Partial<{}> & Pick<Readonly<{} & {
64 locale?: Locale;
65 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
66 prefixCls?: string;
67 direction?: "ltr" | "rtl";
68 space?: number | "small" | "large" | "middle";
69 virtual?: boolean;
70 dropdownMatchSelectWidth?: boolean;
71 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
72 renderEmpty?: typeof defaultRenderEmpty;
73 transformCellText?: (tableProps: TransformCellTextProps) => any;
74 getTargetContainer?: () => HTMLElement;
75 csp?: unknown;
76 autoInsertSpaceInButton?: boolean;
77 pageHeader?: {
78 ghost: boolean;
79 };
80 componentSize?: import("../select").SizeType;
81 }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "locale" | "getPrefixCls" | "prefixCls" | "direction" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "space" | "virtual" | "dropdownMatchSelectWidth" | "getPopupContainer" | "renderEmpty" | "transformCellText" | "getTargetContainer" | "csp" | "autoInsertSpaceInButton" | "pageHeader" | "componentSize">;
82 $attrs: Record<string, unknown>;
83 $refs: Record<string, unknown>;
84 $slots: Readonly<{
85 [name: string]: import("vue").Slot;
86 }>;
87 $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
88 $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
89 $emit: (event: string, ...args: any[]) => void;
90 $el: any;
91 $options: import("vue").ComponentOptionsBase<Readonly<{} & {
92 locale?: Locale;
93 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
94 prefixCls?: string;
95 direction?: "ltr" | "rtl";
96 space?: number | "small" | "large" | "middle";
97 virtual?: boolean;
98 dropdownMatchSelectWidth?: boolean;
99 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
100 renderEmpty?: typeof defaultRenderEmpty;
101 transformCellText?: (tableProps: TransformCellTextProps) => any;
102 getTargetContainer?: () => HTMLElement;
103 csp?: unknown;
104 autoInsertSpaceInButton?: boolean;
105 pageHeader?: {
106 ghost: boolean;
107 };
108 componentSize?: import("../select").SizeType;
109 }>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}>;
110 $forceUpdate: import("vue").ReactiveEffect<any>;
111 $nextTick: typeof import("vue").nextTick;
112 $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
113 } & Readonly<{} & {
114 locale?: Locale;
115 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
116 prefixCls?: string;
117 direction?: "ltr" | "rtl";
118 space?: number | "small" | "large" | "middle";
119 virtual?: boolean;
120 dropdownMatchSelectWidth?: boolean;
121 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
122 renderEmpty?: typeof defaultRenderEmpty;
123 transformCellText?: (tableProps: TransformCellTextProps) => any;
124 getTargetContainer?: () => HTMLElement;
125 csp?: unknown;
126 autoInsertSpaceInButton?: boolean;
127 pageHeader?: {
128 ghost: boolean;
129 };
130 componentSize?: import("../select").SizeType;
131 }> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties;
132 __isFragment?: never;
133 __isTeleport?: never;
134 __isSuspense?: never;
135} & import("vue").ComponentOptionsBase<Readonly<{} & {
136 locale?: Locale;
137 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
138 prefixCls?: string;
139 direction?: "ltr" | "rtl";
140 space?: number | "small" | "large" | "middle";
141 virtual?: boolean;
142 dropdownMatchSelectWidth?: boolean;
143 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
144 renderEmpty?: typeof defaultRenderEmpty;
145 transformCellText?: (tableProps: TransformCellTextProps) => any;
146 getTargetContainer?: () => HTMLElement;
147 csp?: unknown;
148 autoInsertSpaceInButton?: boolean;
149 pageHeader?: {
150 ghost: boolean;
151 };
152 componentSize?: import("../select").SizeType;
153}>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((app: import("vue").App<any>, ...options: any[]) => any) & {
154 install?: (app: import("vue").App<any>, ...options: any[]) => any;
155}) | ({
156 new (...args: any[]): {
157 $: import("vue").ComponentInternalInstance;
158 $data: {};
159 $props: Partial<{}> & Pick<Readonly<{} & {
160 locale?: Locale;
161 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
162 prefixCls?: string;
163 direction?: "ltr" | "rtl";
164 space?: number | "small" | "large" | "middle";
165 virtual?: boolean;
166 dropdownMatchSelectWidth?: boolean;
167 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
168 renderEmpty?: typeof defaultRenderEmpty;
169 transformCellText?: (tableProps: TransformCellTextProps) => any;
170 getTargetContainer?: () => HTMLElement;
171 csp?: unknown;
172 autoInsertSpaceInButton?: boolean;
173 pageHeader?: {
174 ghost: boolean;
175 };
176 componentSize?: import("../select").SizeType;
177 }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "locale" | "getPrefixCls" | "prefixCls" | "direction" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "space" | "virtual" | "dropdownMatchSelectWidth" | "getPopupContainer" | "renderEmpty" | "transformCellText" | "getTargetContainer" | "csp" | "autoInsertSpaceInButton" | "pageHeader" | "componentSize">;
178 $attrs: Record<string, unknown>;
179 $refs: Record<string, unknown>;
180 $slots: Readonly<{
181 [name: string]: import("vue").Slot;
182 }>;
183 $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
184 $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
185 $emit: (event: string, ...args: any[]) => void;
186 $el: any;
187 $options: import("vue").ComponentOptionsBase<Readonly<{} & {
188 locale?: Locale;
189 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
190 prefixCls?: string;
191 direction?: "ltr" | "rtl";
192 space?: number | "small" | "large" | "middle";
193 virtual?: boolean;
194 dropdownMatchSelectWidth?: boolean;
195 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
196 renderEmpty?: typeof defaultRenderEmpty;
197 transformCellText?: (tableProps: TransformCellTextProps) => any;
198 getTargetContainer?: () => HTMLElement;
199 csp?: unknown;
200 autoInsertSpaceInButton?: boolean;
201 pageHeader?: {
202 ghost: boolean;
203 };
204 componentSize?: import("../select").SizeType;
205 }>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}>;
206 $forceUpdate: import("vue").ReactiveEffect<any>;
207 $nextTick: typeof import("vue").nextTick;
208 $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
209 } & Readonly<{} & {
210 locale?: Locale;
211 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
212 prefixCls?: string;
213 direction?: "ltr" | "rtl";
214 space?: number | "small" | "large" | "middle";
215 virtual?: boolean;
216 dropdownMatchSelectWidth?: boolean;
217 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
218 renderEmpty?: typeof defaultRenderEmpty;
219 transformCellText?: (tableProps: TransformCellTextProps) => any;
220 getTargetContainer?: () => HTMLElement;
221 csp?: unknown;
222 autoInsertSpaceInButton?: boolean;
223 pageHeader?: {
224 ghost: boolean;
225 };
226 componentSize?: import("../select").SizeType;
227 }> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties;
228 __isFragment?: never;
229 __isTeleport?: never;
230 __isSuspense?: never;
231} & import("vue").ComponentOptionsBase<Readonly<{} & {
232 locale?: Locale;
233 getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
234 prefixCls?: string;
235 direction?: "ltr" | "rtl";
236 space?: number | "small" | "large" | "middle";
237 virtual?: boolean;
238 dropdownMatchSelectWidth?: boolean;
239 getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
240 renderEmpty?: typeof defaultRenderEmpty;
241 transformCellText?: (tableProps: TransformCellTextProps) => any;
242 getTargetContainer?: () => HTMLElement;
243 csp?: unknown;
244 autoInsertSpaceInButton?: boolean;
245 pageHeader?: {
246 ghost: boolean;
247 };
248 componentSize?: import("../select").SizeType;
249}>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
250 install: (app: import("vue").App<any>, ...options: any[]) => any;
251});
252export default _default;