@cuvp1225/antd 0.3.1 → 0.3.3

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.
Files changed (212) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +11 -11
  3. package/dist/designer.js +886 -14079
  4. package/dist/index.js +530 -13820
  5. package/dist/index.less +1 -1
  6. package/lib/cjs/components/box.d.ts +1 -1
  7. package/lib/cjs/components/box.js +1 -1
  8. package/lib/cjs/components/button.d.ts +2 -2
  9. package/lib/cjs/components/columns.d.ts +2 -2
  10. package/lib/cjs/components/columns.js +1 -1
  11. package/lib/cjs/components/form.d.ts +16 -0
  12. package/lib/cjs/components/form.js +17 -0
  13. package/lib/cjs/components/formily.d.ts +5 -5
  14. package/lib/cjs/components/formily.js +2 -2
  15. package/lib/cjs/components/grid.d.ts +3 -0
  16. package/lib/cjs/components/grid.js +28 -0
  17. package/lib/cjs/components/gridCombination.d.ts +7 -0
  18. package/lib/cjs/components/gridCombination.js +26 -0
  19. package/lib/cjs/components/index.d.ts +1 -15
  20. package/lib/cjs/components/index.js +21 -35
  21. package/lib/cjs/components/input-number.d.ts +3 -3
  22. package/lib/cjs/components/modal.js +35 -35
  23. package/lib/cjs/components/multiColumns.d.ts +4 -0
  24. package/lib/cjs/components/multiColumns.js +17 -0
  25. package/lib/cjs/components/page.d.ts +1 -1
  26. package/lib/cjs/components/page.js +9 -9
  27. package/lib/cjs/components/placeholder.d.ts +1 -1
  28. package/lib/cjs/components/placeholder.js +22 -24
  29. package/lib/cjs/components/section.d.ts +1 -1
  30. package/lib/cjs/components/section.js +1 -1
  31. package/lib/cjs/components/select.d.ts +2 -2
  32. package/lib/cjs/components/shadow-container.js +9 -9
  33. package/lib/cjs/components/typography.d.ts +2 -2
  34. package/lib/cjs/designer.js +4 -4
  35. package/lib/cjs/index.less +1 -1
  36. package/lib/cjs/prototypes/affix.js +1 -1
  37. package/lib/cjs/prototypes/alert.js +2 -2
  38. package/lib/cjs/prototypes/anchor.js +2 -2
  39. package/lib/cjs/prototypes/auto-complete.js +1 -1
  40. package/lib/cjs/prototypes/avatar.js +2 -2
  41. package/lib/cjs/prototypes/back-top.js +1 -1
  42. package/lib/cjs/prototypes/badge.js +2 -2
  43. package/lib/cjs/prototypes/box.js +1 -1
  44. package/lib/cjs/prototypes/breadcrumb.js +3 -3
  45. package/lib/cjs/prototypes/button.js +1 -1
  46. package/lib/cjs/prototypes/calendar.js +1 -1
  47. package/lib/cjs/prototypes/card.js +3 -3
  48. package/lib/cjs/prototypes/carousel.js +1 -1
  49. package/lib/cjs/prototypes/cascader.js +1 -1
  50. package/lib/cjs/prototypes/checkbox.js +2 -2
  51. package/lib/cjs/prototypes/collapse.js +2 -2
  52. package/lib/cjs/prototypes/columns.js +2 -2
  53. package/lib/cjs/prototypes/comment.js +1 -1
  54. package/lib/cjs/prototypes/date-picker.js +33 -33
  55. package/lib/cjs/prototypes/descriptions.js +2 -2
  56. package/lib/cjs/prototypes/divider.js +1 -1
  57. package/lib/cjs/prototypes/drawer.js +1 -1
  58. package/lib/cjs/prototypes/dropdown.js +2 -2
  59. package/lib/cjs/prototypes/each.js +1 -1
  60. package/lib/cjs/prototypes/empty.js +1 -1
  61. package/lib/cjs/prototypes/form.js +19 -5
  62. package/lib/cjs/prototypes/formily.js +5 -5
  63. package/lib/cjs/prototypes/grid.d.ts +3 -0
  64. package/lib/cjs/prototypes/grid.js +56 -0
  65. package/lib/cjs/prototypes/iframe.js +1 -1
  66. package/lib/cjs/prototypes/image.js +2 -2
  67. package/lib/cjs/prototypes/index.d.ts +1 -0
  68. package/lib/cjs/prototypes/index.js +1 -0
  69. package/lib/cjs/prototypes/input-number.js +1 -1
  70. package/lib/cjs/prototypes/input.js +5 -5
  71. package/lib/cjs/prototypes/interval.js +1 -1
  72. package/lib/cjs/prototypes/link.js +1 -1
  73. package/lib/cjs/prototypes/list.js +3 -3
  74. package/lib/cjs/prototypes/mentions.js +2 -2
  75. package/lib/cjs/prototypes/menu.js +5 -5
  76. package/lib/cjs/prototypes/modal.js +1 -1
  77. package/lib/cjs/prototypes/page-header.js +1 -1
  78. package/lib/cjs/prototypes/page.js +1 -1
  79. package/lib/cjs/prototypes/pagination.js +2 -1
  80. package/lib/cjs/prototypes/popconfirm.js +1 -1
  81. package/lib/cjs/prototypes/popover.js +1 -1
  82. package/lib/cjs/prototypes/progress.js +1 -1
  83. package/lib/cjs/prototypes/radio.js +2 -2
  84. package/lib/cjs/prototypes/rate.js +1 -1
  85. package/lib/cjs/prototypes/result.js +1 -1
  86. package/lib/cjs/prototypes/section.js +1 -1
  87. package/lib/cjs/prototypes/select.js +1 -1
  88. package/lib/cjs/prototypes/skeleton.js +6 -6
  89. package/lib/cjs/prototypes/slider.js +1 -1
  90. package/lib/cjs/prototypes/space.js +1 -1
  91. package/lib/cjs/prototypes/spin.js +1 -1
  92. package/lib/cjs/prototypes/statistic.js +2 -2
  93. package/lib/cjs/prototypes/steps.js +2 -2
  94. package/lib/cjs/prototypes/switch.js +1 -1
  95. package/lib/cjs/prototypes/table.js +38 -27
  96. package/lib/cjs/prototypes/tabs.js +2 -2
  97. package/lib/cjs/prototypes/tag.js +3 -2
  98. package/lib/cjs/prototypes/text.js +1 -1
  99. package/lib/cjs/prototypes/time-picker.js +2 -2
  100. package/lib/cjs/prototypes/timeline.js +2 -2
  101. package/lib/cjs/prototypes/toolbar.js +1 -1
  102. package/lib/cjs/prototypes/tooltip.js +1 -1
  103. package/lib/cjs/prototypes/transfer.js +2 -2
  104. package/lib/cjs/prototypes/tree-select.js +1 -1
  105. package/lib/cjs/prototypes/tree.js +3 -3
  106. package/lib/cjs/prototypes/typography.js +3 -3
  107. package/lib/cjs/prototypes/upload.js +2 -2
  108. package/lib/cjs/prototypes/when.js +1 -1
  109. package/lib/esm/components/box.d.ts +1 -1
  110. package/lib/esm/components/box.js +1 -1
  111. package/lib/esm/components/button.d.ts +2 -2
  112. package/lib/esm/components/columns.d.ts +2 -2
  113. package/lib/esm/components/columns.js +1 -1
  114. package/lib/esm/components/form.d.ts +16 -0
  115. package/lib/esm/components/form.js +14 -0
  116. package/lib/esm/components/formily.d.ts +5 -5
  117. package/lib/esm/components/formily.js +2 -2
  118. package/lib/esm/components/grid.d.ts +3 -0
  119. package/lib/esm/components/grid.js +24 -0
  120. package/lib/esm/components/gridCombination.d.ts +7 -0
  121. package/lib/esm/components/gridCombination.js +22 -0
  122. package/lib/esm/components/index.d.ts +1 -15
  123. package/lib/esm/components/index.js +19 -15
  124. package/lib/esm/components/input-number.d.ts +3 -3
  125. package/lib/esm/components/modal.js +35 -35
  126. package/lib/esm/components/multiColumns.d.ts +4 -0
  127. package/lib/esm/components/multiColumns.js +13 -0
  128. package/lib/esm/components/page.d.ts +1 -1
  129. package/lib/esm/components/page.js +9 -9
  130. package/lib/esm/components/placeholder.d.ts +1 -1
  131. package/lib/esm/components/placeholder.js +22 -24
  132. package/lib/esm/components/section.d.ts +1 -1
  133. package/lib/esm/components/section.js +1 -1
  134. package/lib/esm/components/select.d.ts +2 -2
  135. package/lib/esm/components/shadow-container.js +9 -9
  136. package/lib/esm/components/typography.d.ts +2 -2
  137. package/lib/esm/designer.js +4 -4
  138. package/lib/esm/index.less +1 -1
  139. package/lib/esm/prototypes/affix.js +1 -1
  140. package/lib/esm/prototypes/alert.js +2 -2
  141. package/lib/esm/prototypes/anchor.js +2 -2
  142. package/lib/esm/prototypes/auto-complete.js +1 -1
  143. package/lib/esm/prototypes/avatar.js +2 -2
  144. package/lib/esm/prototypes/back-top.js +1 -1
  145. package/lib/esm/prototypes/badge.js +2 -2
  146. package/lib/esm/prototypes/box.js +1 -1
  147. package/lib/esm/prototypes/breadcrumb.js +3 -3
  148. package/lib/esm/prototypes/button.js +1 -1
  149. package/lib/esm/prototypes/calendar.js +1 -1
  150. package/lib/esm/prototypes/card.js +3 -3
  151. package/lib/esm/prototypes/carousel.js +1 -1
  152. package/lib/esm/prototypes/cascader.js +1 -1
  153. package/lib/esm/prototypes/checkbox.js +2 -2
  154. package/lib/esm/prototypes/collapse.js +2 -2
  155. package/lib/esm/prototypes/columns.js +2 -2
  156. package/lib/esm/prototypes/comment.js +1 -1
  157. package/lib/esm/prototypes/date-picker.js +33 -33
  158. package/lib/esm/prototypes/descriptions.js +2 -2
  159. package/lib/esm/prototypes/divider.js +1 -1
  160. package/lib/esm/prototypes/drawer.js +1 -1
  161. package/lib/esm/prototypes/dropdown.js +2 -2
  162. package/lib/esm/prototypes/each.js +1 -1
  163. package/lib/esm/prototypes/empty.js +1 -1
  164. package/lib/esm/prototypes/form.js +19 -5
  165. package/lib/esm/prototypes/formily.js +5 -5
  166. package/lib/esm/prototypes/grid.d.ts +3 -0
  167. package/lib/esm/prototypes/grid.js +53 -0
  168. package/lib/esm/prototypes/iframe.js +1 -1
  169. package/lib/esm/prototypes/image.js +2 -2
  170. package/lib/esm/prototypes/index.d.ts +1 -0
  171. package/lib/esm/prototypes/index.js +1 -0
  172. package/lib/esm/prototypes/input-number.js +1 -1
  173. package/lib/esm/prototypes/input.js +5 -5
  174. package/lib/esm/prototypes/interval.js +1 -1
  175. package/lib/esm/prototypes/link.js +1 -1
  176. package/lib/esm/prototypes/list.js +3 -3
  177. package/lib/esm/prototypes/mentions.js +2 -2
  178. package/lib/esm/prototypes/menu.js +5 -5
  179. package/lib/esm/prototypes/modal.js +1 -1
  180. package/lib/esm/prototypes/page-header.js +1 -1
  181. package/lib/esm/prototypes/page.js +1 -1
  182. package/lib/esm/prototypes/pagination.js +2 -1
  183. package/lib/esm/prototypes/popconfirm.js +1 -1
  184. package/lib/esm/prototypes/popover.js +1 -1
  185. package/lib/esm/prototypes/progress.js +1 -1
  186. package/lib/esm/prototypes/radio.js +2 -2
  187. package/lib/esm/prototypes/rate.js +1 -1
  188. package/lib/esm/prototypes/result.js +1 -1
  189. package/lib/esm/prototypes/section.js +1 -1
  190. package/lib/esm/prototypes/select.js +1 -1
  191. package/lib/esm/prototypes/skeleton.js +6 -6
  192. package/lib/esm/prototypes/slider.js +1 -1
  193. package/lib/esm/prototypes/space.js +1 -1
  194. package/lib/esm/prototypes/spin.js +1 -1
  195. package/lib/esm/prototypes/statistic.js +2 -2
  196. package/lib/esm/prototypes/steps.js +2 -2
  197. package/lib/esm/prototypes/switch.js +1 -1
  198. package/lib/esm/prototypes/table.js +38 -27
  199. package/lib/esm/prototypes/tabs.js +2 -2
  200. package/lib/esm/prototypes/tag.js +3 -2
  201. package/lib/esm/prototypes/text.js +1 -1
  202. package/lib/esm/prototypes/time-picker.js +2 -2
  203. package/lib/esm/prototypes/timeline.js +2 -2
  204. package/lib/esm/prototypes/toolbar.js +1 -1
  205. package/lib/esm/prototypes/tooltip.js +1 -1
  206. package/lib/esm/prototypes/transfer.js +2 -2
  207. package/lib/esm/prototypes/tree-select.js +1 -1
  208. package/lib/esm/prototypes/tree.js +3 -3
  209. package/lib/esm/prototypes/typography.js +3 -3
  210. package/lib/esm/prototypes/upload.js +2 -2
  211. package/lib/esm/prototypes/when.js +1 -1
  212. package/package.json +7 -4
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BoxProps } from '@music163/foundation';
2
+ import { BoxProps } from '@cuvp1225/foundation';
3
3
  export interface SectionProps extends Omit<BoxProps, 'title'> {
4
4
  title?: React.ReactNode;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import cx from 'classnames';
4
- import { Box } from '@music163/foundation';
4
+ import { Box } from '@cuvp1225/foundation';
5
5
  import { defineComponent } from '@music163/tango-boot';
6
6
  import { Placeholder } from './placeholder';
7
7
  function SectionView(_a) {
@@ -1,6 +1,6 @@
1
1
  import { SelectProps } from 'antd';
2
2
  export declare const Select: import("react").ForwardRefExoticComponent<Omit<SelectProps<unknown, import("rc-select/lib/Select").BaseOptionType | import("rc-select/lib/Select").DefaultOptionType> & {
3
- children?: import("react").ReactNode;
3
+ children?: React.ReactNode;
4
4
  } & {
5
- ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
5
+ ref?: React.Ref<import("antd").RefSelectProps> | undefined;
6
6
  } & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -1,15 +1,15 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { css, Box } from 'coral-system';
4
- const badgeStyle = css `
5
- position: absolute;
6
- right: 0;
7
- top: 0;
8
- font-size: 12px;
9
- line-height: 14px;
10
- outline: none;
11
- border: 0;
12
- z-index: 1;
4
+ const badgeStyle = css `
5
+ position: absolute;
6
+ right: 0;
7
+ top: 0;
8
+ font-size: 12px;
9
+ line-height: 14px;
10
+ outline: none;
11
+ border: 0;
12
+ z-index: 1;
13
13
  `;
14
14
  const colorPallet = {
15
15
  effect: ['#531dab', '#d3adf7', '#f9f0ff'],
@@ -1,7 +1,7 @@
1
1
  import { Typography as AntTypography } from 'antd';
2
2
  import React from 'react';
3
- export declare const Title: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Title").TitleProps & React.RefAttributes<HTMLHeadingElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
4
- export declare const Paragraph: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Paragraph").ParagraphProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const Title: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Title").TitleProps & React.RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
4
+ export declare const Paragraph: React.ForwardRefExoticComponent<Omit<import("antd/lib/typography/Paragraph").ParagraphProps & React.RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
5
5
  type TypographyComponent = React.ForwardRefExoticComponent<any & React.RefAttributes<React.ReactElement>> & {
6
6
  Title: typeof Title;
7
7
  Paragraph: typeof Paragraph;
@@ -10,9 +10,9 @@ export const menuData = {
10
10
  title: '输入',
11
11
  items: ['Input', 'InputNumber', 'Select'],
12
12
  },
13
- {
14
- title: 'Formily表单',
15
- items: ['FormilyForm', 'FormilyFormItem', 'FormilySubmit', 'FormilyReset'],
16
- }
13
+ // {
14
+ // title: 'Formily表单',
15
+ // items: ['FormilyForm', 'FormilyFormItem', 'FormilySubmit', 'FormilyReset'],
16
+ // }
17
17
  ],
18
18
  };
@@ -1 +1 @@
1
- @import '~antd/dist/antd.less';
1
+ @import '~antd/dist/antd.less';
@@ -1,7 +1,7 @@
1
1
  export const Affix = {
2
2
  name: 'Affix',
3
3
  title: '固钉',
4
- package: '@music163/antd',
4
+ package: '@cuvp1225/antd',
5
5
  icon: 'icon-guding',
6
6
  type: 'element',
7
7
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Alert = {
3
3
  name: 'Alert',
4
4
  title: '警告提示',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-xinxitishi',
7
7
  help: '警告提示,展现需要关注的信息',
8
8
  type: 'element',
@@ -77,7 +77,7 @@ export const Alert = {
77
77
  export const AlertErrorBoundary = {
78
78
  name: 'AlertErrorBoundary',
79
79
  title: '警告提示',
80
- package: '@music163/antd',
80
+ package: '@cuvp1225/antd',
81
81
  icon: '',
82
82
  type: 'element',
83
83
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Anchor = {
3
3
  name: 'Anchor',
4
4
  title: '锚点',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-maodian',
7
7
  type: 'element',
8
8
  props: [
@@ -62,7 +62,7 @@ export const Anchor = {
62
62
  export const AnchorLink = {
63
63
  name: 'Link',
64
64
  title: '锚点',
65
- package: '@music163/antd',
65
+ package: '@cuvp1225/antd',
66
66
  icon: 'icon-maodianlink',
67
67
  type: 'element',
68
68
  props: [
@@ -2,7 +2,7 @@ import { InstancePrototypes, StylePrototypes } from './common';
2
2
  export const AutoComplete = {
3
3
  name: 'AutoComplete',
4
4
  title: '自动完成',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-zidongwancheng',
7
7
  help: '输入框自动完成功能,可提供输入建议/辅助提示能力',
8
8
  type: 'element',
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Avatar = {
3
3
  name: 'Avatar',
4
4
  title: '头像',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-touxiang',
7
7
  help: '用来代表用户或事物,支持图片、图标或字符展示',
8
8
  type: 'element',
@@ -84,7 +84,7 @@ export const Avatar = {
84
84
  export const AvatarGroup = {
85
85
  name: 'AvatarGroup',
86
86
  title: '头像',
87
- package: '@music163/antd',
87
+ package: '@cuvp1225/antd',
88
88
  icon: '',
89
89
  type: 'element',
90
90
  props: [
@@ -1,7 +1,7 @@
1
1
  export const BackTop = {
2
2
  name: 'BackTop',
3
3
  title: '回到顶部',
4
- package: '@music163/antd',
4
+ package: '@cuvp1225/antd',
5
5
  icon: 'icon-huidaodingbu',
6
6
  type: 'element',
7
7
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Badge = {
3
3
  name: 'Badge',
4
4
  title: '徽标数',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-huibiaoshu',
7
7
  help: '图标右上角的圆形徽标数字,用于显示需要处理的消息条数',
8
8
  type: 'element',
@@ -83,7 +83,7 @@ export const Badge = {
83
83
  export const RibbonBadge = {
84
84
  name: 'RibbonBadge',
85
85
  title: '缎带徽标',
86
- package: '@music163/antd',
86
+ package: '@cuvp1225/antd',
87
87
  icon: 'icon-duandaihuibiao',
88
88
  type: 'element',
89
89
  help: '使用缎带型的徽标',
@@ -4,7 +4,7 @@ export const Box = {
4
4
  title: '盒子',
5
5
  icon: 'icon-mianban',
6
6
  type: 'container',
7
- package: '@music163/antd',
7
+ package: '@cuvp1225/antd',
8
8
  hasChildren: true,
9
9
  siblingNames: ['Box'],
10
10
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Breadcrumb = {
3
3
  name: 'Breadcrumb',
4
4
  title: '面包屑',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-mianbaoxie',
7
7
  type: 'element',
8
8
  help: '显示当前页面在系统层级结构中的位置,并能向上返回',
@@ -30,7 +30,7 @@ export const Breadcrumb = {
30
30
  export const BreadcrumbItem = {
31
31
  name: 'BreadcrumbItem',
32
32
  title: '单个面包屑',
33
- package: '@music163/antd',
33
+ package: '@cuvp1225/antd',
34
34
  icon: '',
35
35
  type: 'element',
36
36
  hasChildren: false,
@@ -56,7 +56,7 @@ export const BreadcrumbItem = {
56
56
  export const BreadcrumbSeparator = {
57
57
  name: 'BreadcrumbSeparator',
58
58
  title: '面包屑',
59
- package: '@music163/antd',
59
+ package: '@cuvp1225/antd',
60
60
  icon: '',
61
61
  type: 'element',
62
62
  props: [
@@ -5,7 +5,7 @@ export const Button = {
5
5
  exportType: 'namedExport',
6
6
  icon: 'icon-anniu',
7
7
  type: 'element',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  help: '按钮用于开始一个即时操作。',
10
10
  hasChildren: false,
11
11
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Calendar = {
3
3
  name: 'Calendar',
4
4
  title: '日历',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-riqixuanze',
7
7
  help: '按照日历形式展示数据的容器控件',
8
8
  type: 'element',
@@ -4,7 +4,7 @@ import { omitProps } from '../helpers';
4
4
  export const Card = {
5
5
  name: 'Card',
6
6
  title: '卡片',
7
- package: '@music163/antd',
7
+ package: '@cuvp1225/antd',
8
8
  icon: 'icon-card',
9
9
  help: '最基础的卡片容器,可承载文字、列表、图片、段落,常用于后台概览页面',
10
10
  type: 'element',
@@ -120,7 +120,7 @@ export const Card = {
120
120
  export const CardGrid = {
121
121
  name: 'CardGrid',
122
122
  title: '卡片Grid',
123
- package: '@music163/antd',
123
+ package: '@cuvp1225/antd',
124
124
  icon: 'icon-kapiangrid',
125
125
  type: 'element',
126
126
  props: [
@@ -135,7 +135,7 @@ export const CardGrid = {
135
135
  export const CardMeta = {
136
136
  name: 'CardMeta',
137
137
  title: '卡片',
138
- package: '@music163/antd',
138
+ package: '@cuvp1225/antd',
139
139
  icon: '',
140
140
  type: 'element',
141
141
  props: [
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Carousel = {
3
3
  name: 'Carousel',
4
4
  title: '走马灯',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-zoumadeng',
7
7
  type: 'element',
8
8
  help: '旋转木马,一组轮播的区域',
@@ -5,7 +5,7 @@ export const Cascader = {
5
5
  exportType: 'namedExport',
6
6
  icon: 'icon-jilianxuanze',
7
7
  type: 'element',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  help: '级联选择框,从一组相关联的数据集合进行选择,如省市区,公司层级,事物分类等',
10
10
  hasChildren: false,
11
11
  props: [
@@ -4,7 +4,7 @@ export const Checkbox = {
4
4
  title: '多选框',
5
5
  icon: 'icon-duoxuankuang',
6
6
  type: 'element',
7
- package: '@music163/antd',
7
+ package: '@cuvp1225/antd',
8
8
  help: '多选框,单独使用可以表示两种状态之间的切换,和 Switch 类似',
9
9
  hasChildren: true,
10
10
  initChildren: '选项1',
@@ -62,7 +62,7 @@ export const CheckboxGroup = {
62
62
  title: '多选框组',
63
63
  icon: 'icon-duoxuankuang',
64
64
  type: 'element',
65
- package: '@music163/antd',
65
+ package: '@cuvp1225/antd',
66
66
  help: '多选框,在一组可选项中进行多项选择时',
67
67
  props: [
68
68
  ...StylePrototypes,
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Collapse = {
3
3
  name: 'Collapse',
4
4
  title: '折叠面板',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-zhediemianban',
7
7
  help: '可以折叠/展开的内容区域,对复杂区域进行分组和隐藏,保持页面的整洁',
8
8
  type: 'element',
@@ -84,7 +84,7 @@ export const Collapse = {
84
84
  export const CollapsePanel = {
85
85
  name: 'CollapsePanel',
86
86
  title: '折叠面板Panel',
87
- package: '@music163/antd',
87
+ package: '@cuvp1225/antd',
88
88
  icon: 'icon-zhediemianban',
89
89
  type: 'element',
90
90
  props: [
@@ -3,7 +3,7 @@ export const Columns = {
3
3
  name: 'Columns',
4
4
  type: 'container',
5
5
  icon: 'icon-column-4',
6
- package: '@music163/antd',
6
+ package: '@cuvp1225/antd',
7
7
  hasChildren: true,
8
8
  childrenName: ['Column'],
9
9
  props: [...StylePrototypes],
@@ -12,7 +12,7 @@ export const Column = {
12
12
  name: 'Column',
13
13
  type: 'container',
14
14
  icon: 'icon-column-4',
15
- package: '@music163/antd',
15
+ package: '@cuvp1225/antd',
16
16
  hasChildren: true,
17
17
  props: [...StylePrototypes],
18
18
  };
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Comment = {
3
3
  name: 'Comment',
4
4
  title: '评论',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-pinglun',
7
7
  type: 'element',
8
8
  help: '对网站内容的反馈、评价和讨论,可用于对事物的讨论,例如页面、博客文章、问题等等',
@@ -122,10 +122,10 @@ export const PickerCommonProps = [
122
122
  setter: 'expressionSetter',
123
123
  group: 'advanced',
124
124
  autoCompleteOptions: [
125
- `current => {
126
- // // 示例:不可选择今日(包含)之前的日期
127
- return current && current < moment().endOf('day');
128
- }
125
+ `current => {
126
+ // // 示例:不可选择今日(包含)之前的日期
127
+ return current && current < moment().endOf('day');
128
+ }
129
129
  `,
130
130
  ],
131
131
  },
@@ -135,10 +135,10 @@ export const PickerCommonProps = [
135
135
  tip: '需要showTime=true',
136
136
  setter: 'expressionSetter',
137
137
  autoCompleteOptions: [
138
- `(date) => ({
139
- disabledHours: () => range(0, 24).splice(4, 20),
140
- disabledMinutes: () => range(30, 60),
141
- disabledSeconds: () => [55, 56],
138
+ `(date) => ({
139
+ disabledHours: () => range(0, 24).splice(4, 20),
140
+ disabledMinutes: () => range(30, 60),
141
+ disabledSeconds: () => [55, 56],
142
142
  })`,
143
143
  ],
144
144
  group: 'advanced',
@@ -150,18 +150,18 @@ export const PickerCommonProps = [
150
150
  group: 'advanced',
151
151
  tip: '自定义日期单元格的内容和样式',
152
152
  autoCompleteOptions: [
153
- `current => {
154
- // 示例:给每个月的第一天增加样式
155
- const style = {};
156
- if (current.date() === 1) {
157
- style.border = '1px solid #1890ff';
158
- style.borderRadius = '50%';
159
- }
160
- return (
161
- <div className="ant-picker-cell-inner" style={style}>
162
- {current.date()}
163
- </div>
164
- );
153
+ `current => {
154
+ // 示例:给每个月的第一天增加样式
155
+ const style = {};
156
+ if (current.date() === 1) {
157
+ style.border = '1px solid #1890ff';
158
+ style.borderRadius = '50%';
159
+ }
160
+ return (
161
+ <div className="ant-picker-cell-inner" style={style}>
162
+ {current.date()}
163
+ </div>
164
+ );
165
165
  }`,
166
166
  ],
167
167
  },
@@ -249,7 +249,7 @@ export const DatePicker = {
249
249
  title: '日期选择框',
250
250
  icon: 'icon-riqishijian',
251
251
  type: 'element',
252
- package: '@music163/antd',
252
+ package: '@cuvp1225/antd',
253
253
  help: '当需要输入或选择具体日期的控件',
254
254
  hasChildren: false,
255
255
  props: [
@@ -271,9 +271,9 @@ export const DatePicker = {
271
271
  setter: 'expressionSetter',
272
272
  group: 'advanced',
273
273
  autoCompleteOptions: [
274
- `{
275
- Today: moment(),
276
- 'This Month': moment().endOf('month'),
274
+ `{
275
+ Today: moment(),
276
+ 'This Month': moment().endOf('month'),
277
277
  }`,
278
278
  ],
279
279
  },
@@ -302,7 +302,7 @@ export const MonthPicker = {
302
302
  title: '月选择器',
303
303
  icon: 'icon-month',
304
304
  type: 'element',
305
- package: '@music163/antd',
305
+ package: '@cuvp1225/antd',
306
306
  help: '当需要输入或选择具体月份的控件',
307
307
  hasChildren: false,
308
308
  props: [
@@ -312,8 +312,8 @@ export const MonthPicker = {
312
312
  title: '自定义渲染月份内容',
313
313
  setter: 'expressionSetter',
314
314
  autoCompleteOptions: [
315
- `(date) => {
316
- return date.format("MM");
315
+ `(date) => {
316
+ return date.format("MM");
317
317
  }`,
318
318
  ],
319
319
  group: 'advanced',
@@ -325,7 +325,7 @@ export const YearPicker = {
325
325
  title: '年选择器',
326
326
  icon: 'icon-year',
327
327
  type: 'element',
328
- package: '@music163/antd',
328
+ package: '@cuvp1225/antd',
329
329
  help: '当需要输入或选择具体年份的控件',
330
330
  hasChildren: false,
331
331
  props: [...PickerCommonProps],
@@ -335,7 +335,7 @@ export const WeekPicker = {
335
335
  title: '周选择框',
336
336
  icon: 'icon-week',
337
337
  type: 'element',
338
- package: '@music163/antd',
338
+ package: '@cuvp1225/antd',
339
339
  help: '当需要输入或选择具体周的控件',
340
340
  hasChildren: false,
341
341
  props: [...PickerCommonProps],
@@ -345,7 +345,7 @@ export const DateRangePicker = {
345
345
  title: '日期选择框 Range',
346
346
  icon: 'icon-date-range',
347
347
  type: 'element',
348
- package: '@music163/antd',
348
+ package: '@cuvp1225/antd',
349
349
  help: '当需要输入或选择具体日期范围的控件',
350
350
  hasChildren: false,
351
351
  props: [
@@ -366,9 +366,9 @@ export const DateRangePicker = {
366
366
  setter: 'expressionSetter',
367
367
  group: 'advanced',
368
368
  autoCompleteOptions: [
369
- `{
370
- Today: [moment(), moment()],
371
- 'This Month': [moment().startOf('month'), moment().endOf('month')],
369
+ `{
370
+ Today: [moment(), moment()],
371
+ 'This Month': [moment().startOf('month'), moment().endOf('month')],
372
372
  }`,
373
373
  ],
374
374
  },
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Descriptions = {
3
3
  name: 'Descriptions',
4
4
  title: '描述列表',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-miaoshu',
7
7
  help: '成组展示多个只读字段,常见于详情页的信息展示',
8
8
  type: 'element',
@@ -97,7 +97,7 @@ export const Descriptions = {
97
97
  export const DescriptionItem = {
98
98
  name: 'DescriptionItem',
99
99
  title: '描述列表子项',
100
- package: '@music163/antd',
100
+ package: '@cuvp1225/antd',
101
101
  icon: 'icon-miaoshuliebiaoitem',
102
102
  type: 'element',
103
103
  hasChildren: false,
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Divider = {
3
3
  name: 'Divider',
4
4
  title: '分割线',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  icon: 'icon-fengexian',
7
7
  type: 'element',
8
8
  props: [
@@ -5,7 +5,7 @@ export const Drawer = {
5
5
  exportType: 'namedExport',
6
6
  icon: 'icon-chouti',
7
7
  type: 'container',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  help: '屏幕边缘滑出的浮层面板。',
10
10
  hasChildren: true,
11
11
  initChildren: '',
@@ -1,7 +1,7 @@
1
1
  export const Dropdown = {
2
2
  name: 'Dropdown',
3
3
  title: '下拉菜单',
4
- package: '@music163/antd',
4
+ package: '@cuvp1225/antd',
5
5
  icon: 'icon-xialacaidan',
6
6
  type: 'element',
7
7
  initChildren: '<a>Hover me <Icon type="DownOutlined" /></a>',
@@ -76,7 +76,7 @@ export const Dropdown = {
76
76
  export const DropdownButton = {
77
77
  name: 'DropdownButton',
78
78
  title: '下拉菜单',
79
- package: '@music163/antd',
79
+ package: '@cuvp1225/antd',
80
80
  icon: '',
81
81
  type: 'element',
82
82
  props: [
@@ -23,7 +23,7 @@ const renderOptions = [
23
23
  export const Each = {
24
24
  name: 'Each',
25
25
  title: '循环渲染',
26
- package: '@music163/antd',
26
+ package: '@cuvp1225/antd',
27
27
  help: '用于快速循环渲染一组数据。',
28
28
  icon: 'icon-xunhuan',
29
29
  type: 'element',
@@ -2,7 +2,7 @@ import { StylePrototypes } from './common';
2
2
  export const Empty = {
3
3
  name: 'Empty',
4
4
  title: '空状态',
5
- package: '@music163/antd',
5
+ package: '@cuvp1225/antd',
6
6
  help: '空状态时的展示占位图',
7
7
  icon: 'icon-kongzhuangtai',
8
8
  type: 'element',
@@ -37,10 +37,24 @@ export const Form = {
37
37
  exportType: 'namedExport',
38
38
  icon: 'icon-biaodan',
39
39
  type: 'element',
40
- package: '@music163/antd',
40
+ package: '@cuvp1225/antd',
41
41
  help: '最基本的表单组件,可以创建一个轻量级表单。',
42
42
  hasChildren: true,
43
- initChildren: '<FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" /><FormFooter><Button type="primary" htmlType="submit">提交</Button></FormFooter>',
43
+ initChildren: `<Form.Item label="Username" name="username" rules={[{ required: true, message: "Please input your username!" }]}>
44
+ <Input />
45
+ </Form.Item>
46
+ <Form.Item
47
+ label="Password"
48
+ name="password"
49
+ rules={[{ required: true, message: 'Please input your password!' }]}
50
+ >
51
+ <Input.Password />
52
+ </Form.Item>
53
+ <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
54
+ <Button type="primary" htmlType="submit">
55
+ Submit
56
+ </Button>
57
+ </Form.Item>`,
44
58
  relatedImports: ['FormItem', 'FormFooter', 'Button'],
45
59
  childrenName: ['FormItem', 'Fieldset', 'FormFooter'],
46
60
  props: [
@@ -140,7 +154,7 @@ export const Fieldset = {
140
154
  exportType: 'namedExport',
141
155
  icon: 'icon-biaodan',
142
156
  type: 'element',
143
- package: '@music163/antd',
157
+ package: '@cuvp1225/antd',
144
158
  hasChildren: true,
145
159
  initChildren: '<FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" />',
146
160
  relatedImports: ['FormItem'],
@@ -164,7 +178,7 @@ export const FormItem = {
164
178
  exportType: 'namedExport',
165
179
  icon: 'icon-biaodan',
166
180
  type: 'element',
167
- package: '@music163/antd',
181
+ package: '@cuvp1225/antd',
168
182
  help: '一个基本的表单项',
169
183
  hasChildren: true,
170
184
  props: [
@@ -282,7 +296,7 @@ export const FormFooter = {
282
296
  exportType: 'namedExport',
283
297
  icon: 'icon-biaodan',
284
298
  type: 'element',
285
- package: '@music163/antd',
299
+ package: '@cuvp1225/antd',
286
300
  hasChildren: true,
287
301
  initChildren: '<Button type="primary" htmlType="submit">提交</Button>',
288
302
  relatedImports: ['Button'],