index.d.ts 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. import type { Ref, PropType, VNode, HTMLAttributes, ExtractPropTypes, Plugin, CSSProperties, InjectionKey } from 'vue';
  2. import type { Breakpoint } from '../_util/responsiveObserve';
  3. import type { CustomSlotsType } from '../_util/type';
  4. export declare const DescriptionsItemProps: {
  5. prefixCls: StringConstructor;
  6. label: import("vue-types").VueTypeValidableDef<any>;
  7. span: NumberConstructor;
  8. };
  9. declare const descriptionsItemProp: () => {
  10. prefixCls: StringConstructor;
  11. label: import("vue-types").VueTypeValidableDef<any>;
  12. labelStyle: {
  13. type: PropType<CSSProperties>;
  14. default: CSSProperties;
  15. };
  16. contentStyle: {
  17. type: PropType<CSSProperties>;
  18. default: CSSProperties;
  19. };
  20. span: {
  21. type: NumberConstructor;
  22. default: number;
  23. };
  24. };
  25. export type DescriptionsItemProp = Partial<ExtractPropTypes<ReturnType<typeof descriptionsItemProp>>>;
  26. export declare const DescriptionsItem: import("vue").DefineComponent<ExtractPropTypes<{
  27. prefixCls: StringConstructor;
  28. label: import("vue-types").VueTypeValidableDef<any>;
  29. labelStyle: {
  30. type: PropType<CSSProperties>;
  31. default: CSSProperties;
  32. };
  33. contentStyle: {
  34. type: PropType<CSSProperties>;
  35. default: CSSProperties;
  36. };
  37. span: {
  38. type: NumberConstructor;
  39. default: number;
  40. };
  41. }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
  42. [key: string]: any;
  43. }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  44. prefixCls: StringConstructor;
  45. label: import("vue-types").VueTypeValidableDef<any>;
  46. labelStyle: {
  47. type: PropType<CSSProperties>;
  48. default: CSSProperties;
  49. };
  50. contentStyle: {
  51. type: PropType<CSSProperties>;
  52. default: CSSProperties;
  53. };
  54. span: {
  55. type: NumberConstructor;
  56. default: number;
  57. };
  58. }>> & Readonly<{}>, {
  59. span: number;
  60. labelStyle: CSSProperties;
  61. contentStyle: CSSProperties;
  62. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
  63. export declare const descriptionsProps: () => {
  64. prefixCls: StringConstructor;
  65. bordered: {
  66. type: BooleanConstructor;
  67. default: any;
  68. };
  69. size: {
  70. type: PropType<"default" | "small" | "middle">;
  71. default: string;
  72. };
  73. title: import("vue-types").VueTypeValidableDef<any>;
  74. extra: import("vue-types").VueTypeValidableDef<any>;
  75. column: {
  76. type: PropType<number | Partial<Record<Breakpoint, number>>>;
  77. default: () => number | Partial<Record<Breakpoint, number>>;
  78. };
  79. layout: PropType<"vertical" | "horizontal">;
  80. colon: {
  81. type: BooleanConstructor;
  82. default: any;
  83. };
  84. labelStyle: {
  85. type: PropType<CSSProperties>;
  86. default: CSSProperties;
  87. };
  88. contentStyle: {
  89. type: PropType<CSSProperties>;
  90. default: CSSProperties;
  91. };
  92. };
  93. export type DescriptionsProps = HTMLAttributes & Partial<ExtractPropTypes<ReturnType<typeof descriptionsProps>>>;
  94. export interface DescriptionsContextProp {
  95. labelStyle?: Ref<CSSProperties>;
  96. contentStyle?: Ref<CSSProperties>;
  97. }
  98. export declare const descriptionsContext: InjectionKey<DescriptionsContextProp>;
  99. declare const _default: {
  100. new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
  101. prefixCls: StringConstructor;
  102. bordered: {
  103. type: BooleanConstructor;
  104. default: any;
  105. };
  106. size: {
  107. type: PropType<"default" | "small" | "middle">;
  108. default: string;
  109. };
  110. title: import("vue-types").VueTypeValidableDef<any>;
  111. extra: import("vue-types").VueTypeValidableDef<any>;
  112. column: {
  113. type: PropType<number | Partial<Record<Breakpoint, number>>>;
  114. default: () => number | Partial<Record<Breakpoint, number>>;
  115. };
  116. layout: PropType<"vertical" | "horizontal">;
  117. colon: {
  118. type: BooleanConstructor;
  119. default: any;
  120. };
  121. labelStyle: {
  122. type: PropType<CSSProperties>;
  123. default: CSSProperties;
  124. };
  125. contentStyle: {
  126. type: PropType<CSSProperties>;
  127. default: CSSProperties;
  128. };
  129. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
  130. size: "default" | "small" | "middle";
  131. column: number | Partial<Record<Breakpoint, number>>;
  132. bordered: boolean;
  133. colon: boolean;
  134. labelStyle: CSSProperties;
  135. contentStyle: CSSProperties;
  136. }, true, {}, CustomSlotsType<{
  137. title?: any;
  138. extra?: any;
  139. default?: any;
  140. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
  141. P: {};
  142. B: {};
  143. D: {};
  144. C: {};
  145. M: {};
  146. Defaults: {};
  147. }, Readonly<ExtractPropTypes<{
  148. prefixCls: StringConstructor;
  149. bordered: {
  150. type: BooleanConstructor;
  151. default: any;
  152. };
  153. size: {
  154. type: PropType<"default" | "small" | "middle">;
  155. default: string;
  156. };
  157. title: import("vue-types").VueTypeValidableDef<any>;
  158. extra: import("vue-types").VueTypeValidableDef<any>;
  159. column: {
  160. type: PropType<number | Partial<Record<Breakpoint, number>>>;
  161. default: () => number | Partial<Record<Breakpoint, number>>;
  162. };
  163. layout: PropType<"vertical" | "horizontal">;
  164. colon: {
  165. type: BooleanConstructor;
  166. default: any;
  167. };
  168. labelStyle: {
  169. type: PropType<CSSProperties>;
  170. default: CSSProperties;
  171. };
  172. contentStyle: {
  173. type: PropType<CSSProperties>;
  174. default: CSSProperties;
  175. };
  176. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, {
  177. size: "default" | "small" | "middle";
  178. column: number | Partial<Record<Breakpoint, number>>;
  179. bordered: boolean;
  180. colon: boolean;
  181. labelStyle: CSSProperties;
  182. contentStyle: CSSProperties;
  183. }>;
  184. __isFragment?: never;
  185. __isTeleport?: never;
  186. __isSuspense?: never;
  187. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  188. prefixCls: StringConstructor;
  189. bordered: {
  190. type: BooleanConstructor;
  191. default: any;
  192. };
  193. size: {
  194. type: PropType<"default" | "small" | "middle">;
  195. default: string;
  196. };
  197. title: import("vue-types").VueTypeValidableDef<any>;
  198. extra: import("vue-types").VueTypeValidableDef<any>;
  199. column: {
  200. type: PropType<number | Partial<Record<Breakpoint, number>>>;
  201. default: () => number | Partial<Record<Breakpoint, number>>;
  202. };
  203. layout: PropType<"vertical" | "horizontal">;
  204. colon: {
  205. type: BooleanConstructor;
  206. default: any;
  207. };
  208. labelStyle: {
  209. type: PropType<CSSProperties>;
  210. default: CSSProperties;
  211. };
  212. contentStyle: {
  213. type: PropType<CSSProperties>;
  214. default: CSSProperties;
  215. };
  216. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  217. size: "default" | "small" | "middle";
  218. column: number | Partial<Record<Breakpoint, number>>;
  219. bordered: boolean;
  220. colon: boolean;
  221. labelStyle: CSSProperties;
  222. contentStyle: CSSProperties;
  223. }, {}, string, CustomSlotsType<{
  224. title?: any;
  225. extra?: any;
  226. default?: any;
  227. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[]> & {
  228. readonly Item: typeof DescriptionsItem;
  229. };
  230. export default _default;