@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
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Alert = {
6
6
  name: 'Alert',
7
7
  title: '警告提示',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-xinxitishi',
10
10
  help: '警告提示,展现需要关注的信息',
11
11
  type: 'element',
@@ -80,7 +80,7 @@ exports.Alert = {
80
80
  exports.AlertErrorBoundary = {
81
81
  name: 'AlertErrorBoundary',
82
82
  title: '警告提示',
83
- package: '@music163/antd',
83
+ package: '@cuvp1225/antd',
84
84
  icon: '',
85
85
  type: 'element',
86
86
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Anchor = {
6
6
  name: 'Anchor',
7
7
  title: '锚点',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-maodian',
10
10
  type: 'element',
11
11
  props: [
@@ -65,7 +65,7 @@ exports.Anchor = {
65
65
  exports.AnchorLink = {
66
66
  name: 'Link',
67
67
  title: '锚点',
68
- package: '@music163/antd',
68
+ package: '@cuvp1225/antd',
69
69
  icon: 'icon-maodianlink',
70
70
  type: 'element',
71
71
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.AutoComplete = {
6
6
  name: 'AutoComplete',
7
7
  title: '自动完成',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-zidongwancheng',
10
10
  help: '输入框自动完成功能,可提供输入建议/辅助提示能力',
11
11
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Avatar = {
6
6
  name: 'Avatar',
7
7
  title: '头像',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-touxiang',
10
10
  help: '用来代表用户或事物,支持图片、图标或字符展示',
11
11
  type: 'element',
@@ -87,7 +87,7 @@ exports.Avatar = {
87
87
  exports.AvatarGroup = {
88
88
  name: 'AvatarGroup',
89
89
  title: '头像',
90
- package: '@music163/antd',
90
+ package: '@cuvp1225/antd',
91
91
  icon: '',
92
92
  type: 'element',
93
93
  props: [
@@ -4,7 +4,7 @@ exports.BackTop = void 0;
4
4
  exports.BackTop = {
5
5
  name: 'BackTop',
6
6
  title: '回到顶部',
7
- package: '@music163/antd',
7
+ package: '@cuvp1225/antd',
8
8
  icon: 'icon-huidaodingbu',
9
9
  type: 'element',
10
10
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Badge = {
6
6
  name: 'Badge',
7
7
  title: '徽标数',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-huibiaoshu',
10
10
  help: '图标右上角的圆形徽标数字,用于显示需要处理的消息条数',
11
11
  type: 'element',
@@ -86,7 +86,7 @@ exports.Badge = {
86
86
  exports.RibbonBadge = {
87
87
  name: 'RibbonBadge',
88
88
  title: '缎带徽标',
89
- package: '@music163/antd',
89
+ package: '@cuvp1225/antd',
90
90
  icon: 'icon-duandaihuibiao',
91
91
  type: 'element',
92
92
  help: '使用缎带型的徽标',
@@ -7,7 +7,7 @@ exports.Box = {
7
7
  title: '盒子',
8
8
  icon: 'icon-mianban',
9
9
  type: 'container',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  hasChildren: true,
12
12
  siblingNames: ['Box'],
13
13
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Breadcrumb = {
6
6
  name: 'Breadcrumb',
7
7
  title: '面包屑',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-mianbaoxie',
10
10
  type: 'element',
11
11
  help: '显示当前页面在系统层级结构中的位置,并能向上返回',
@@ -33,7 +33,7 @@ exports.Breadcrumb = {
33
33
  exports.BreadcrumbItem = {
34
34
  name: 'BreadcrumbItem',
35
35
  title: '单个面包屑',
36
- package: '@music163/antd',
36
+ package: '@cuvp1225/antd',
37
37
  icon: '',
38
38
  type: 'element',
39
39
  hasChildren: false,
@@ -59,7 +59,7 @@ exports.BreadcrumbItem = {
59
59
  exports.BreadcrumbSeparator = {
60
60
  name: 'BreadcrumbSeparator',
61
61
  title: '面包屑',
62
- package: '@music163/antd',
62
+ package: '@cuvp1225/antd',
63
63
  icon: '',
64
64
  type: 'element',
65
65
  props: [
@@ -8,7 +8,7 @@ exports.Button = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-anniu',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '按钮用于开始一个即时操作。',
13
13
  hasChildren: false,
14
14
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Calendar = {
6
6
  name: 'Calendar',
7
7
  title: '日历',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-riqixuanze',
10
10
  help: '按照日历形式展示数据的容器控件',
11
11
  type: 'element',
@@ -7,7 +7,7 @@ const helpers_1 = require("../helpers");
7
7
  exports.Card = {
8
8
  name: 'Card',
9
9
  title: '卡片',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  icon: 'icon-card',
12
12
  help: '最基础的卡片容器,可承载文字、列表、图片、段落,常用于后台概览页面',
13
13
  type: 'element',
@@ -123,7 +123,7 @@ exports.Card = {
123
123
  exports.CardGrid = {
124
124
  name: 'CardGrid',
125
125
  title: '卡片Grid',
126
- package: '@music163/antd',
126
+ package: '@cuvp1225/antd',
127
127
  icon: 'icon-kapiangrid',
128
128
  type: 'element',
129
129
  props: [
@@ -138,7 +138,7 @@ exports.CardGrid = {
138
138
  exports.CardMeta = {
139
139
  name: 'CardMeta',
140
140
  title: '卡片',
141
- package: '@music163/antd',
141
+ package: '@cuvp1225/antd',
142
142
  icon: '',
143
143
  type: 'element',
144
144
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Carousel = {
6
6
  name: 'Carousel',
7
7
  title: '走马灯',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-zoumadeng',
10
10
  type: 'element',
11
11
  help: '旋转木马,一组轮播的区域',
@@ -8,7 +8,7 @@ exports.Cascader = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-jilianxuanze',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '级联选择框,从一组相关联的数据集合进行选择,如省市区,公司层级,事物分类等',
13
13
  hasChildren: false,
14
14
  props: [
@@ -7,7 +7,7 @@ exports.Checkbox = {
7
7
  title: '多选框',
8
8
  icon: 'icon-duoxuankuang',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '多选框,单独使用可以表示两种状态之间的切换,和 Switch 类似',
12
12
  hasChildren: true,
13
13
  initChildren: '选项1',
@@ -65,7 +65,7 @@ exports.CheckboxGroup = {
65
65
  title: '多选框组',
66
66
  icon: 'icon-duoxuankuang',
67
67
  type: 'element',
68
- package: '@music163/antd',
68
+ package: '@cuvp1225/antd',
69
69
  help: '多选框,在一组可选项中进行多项选择时',
70
70
  props: [
71
71
  ...common_1.StylePrototypes,
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Collapse = {
6
6
  name: 'Collapse',
7
7
  title: '折叠面板',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-zhediemianban',
10
10
  help: '可以折叠/展开的内容区域,对复杂区域进行分组和隐藏,保持页面的整洁',
11
11
  type: 'element',
@@ -87,7 +87,7 @@ exports.Collapse = {
87
87
  exports.CollapsePanel = {
88
88
  name: 'CollapsePanel',
89
89
  title: '折叠面板Panel',
90
- package: '@music163/antd',
90
+ package: '@cuvp1225/antd',
91
91
  icon: 'icon-zhediemianban',
92
92
  type: 'element',
93
93
  props: [
@@ -6,7 +6,7 @@ exports.Columns = {
6
6
  name: 'Columns',
7
7
  type: 'container',
8
8
  icon: 'icon-column-4',
9
- package: '@music163/antd',
9
+ package: '@cuvp1225/antd',
10
10
  hasChildren: true,
11
11
  childrenName: ['Column'],
12
12
  props: [...common_1.StylePrototypes],
@@ -15,7 +15,7 @@ exports.Column = {
15
15
  name: 'Column',
16
16
  type: 'container',
17
17
  icon: 'icon-column-4',
18
- package: '@music163/antd',
18
+ package: '@cuvp1225/antd',
19
19
  hasChildren: true,
20
20
  props: [...common_1.StylePrototypes],
21
21
  };
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Comment = {
6
6
  name: 'Comment',
7
7
  title: '评论',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-pinglun',
10
10
  type: 'element',
11
11
  help: '对网站内容的反馈、评价和讨论,可用于对事物的讨论,例如页面、博客文章、问题等等',
@@ -125,10 +125,10 @@ exports.PickerCommonProps = [
125
125
  setter: 'expressionSetter',
126
126
  group: 'advanced',
127
127
  autoCompleteOptions: [
128
- `current => {
129
- // // 示例:不可选择今日(包含)之前的日期
130
- return current && current < moment().endOf('day');
131
- }
128
+ `current => {
129
+ // // 示例:不可选择今日(包含)之前的日期
130
+ return current && current < moment().endOf('day');
131
+ }
132
132
  `,
133
133
  ],
134
134
  },
@@ -138,10 +138,10 @@ exports.PickerCommonProps = [
138
138
  tip: '需要showTime=true',
139
139
  setter: 'expressionSetter',
140
140
  autoCompleteOptions: [
141
- `(date) => ({
142
- disabledHours: () => range(0, 24).splice(4, 20),
143
- disabledMinutes: () => range(30, 60),
144
- disabledSeconds: () => [55, 56],
141
+ `(date) => ({
142
+ disabledHours: () => range(0, 24).splice(4, 20),
143
+ disabledMinutes: () => range(30, 60),
144
+ disabledSeconds: () => [55, 56],
145
145
  })`,
146
146
  ],
147
147
  group: 'advanced',
@@ -153,18 +153,18 @@ exports.PickerCommonProps = [
153
153
  group: 'advanced',
154
154
  tip: '自定义日期单元格的内容和样式',
155
155
  autoCompleteOptions: [
156
- `current => {
157
- // 示例:给每个月的第一天增加样式
158
- const style = {};
159
- if (current.date() === 1) {
160
- style.border = '1px solid #1890ff';
161
- style.borderRadius = '50%';
162
- }
163
- return (
164
- <div className="ant-picker-cell-inner" style={style}>
165
- {current.date()}
166
- </div>
167
- );
156
+ `current => {
157
+ // 示例:给每个月的第一天增加样式
158
+ const style = {};
159
+ if (current.date() === 1) {
160
+ style.border = '1px solid #1890ff';
161
+ style.borderRadius = '50%';
162
+ }
163
+ return (
164
+ <div className="ant-picker-cell-inner" style={style}>
165
+ {current.date()}
166
+ </div>
167
+ );
168
168
  }`,
169
169
  ],
170
170
  },
@@ -252,7 +252,7 @@ exports.DatePicker = {
252
252
  title: '日期选择框',
253
253
  icon: 'icon-riqishijian',
254
254
  type: 'element',
255
- package: '@music163/antd',
255
+ package: '@cuvp1225/antd',
256
256
  help: '当需要输入或选择具体日期的控件',
257
257
  hasChildren: false,
258
258
  props: [
@@ -274,9 +274,9 @@ exports.DatePicker = {
274
274
  setter: 'expressionSetter',
275
275
  group: 'advanced',
276
276
  autoCompleteOptions: [
277
- `{
278
- Today: moment(),
279
- 'This Month': moment().endOf('month'),
277
+ `{
278
+ Today: moment(),
279
+ 'This Month': moment().endOf('month'),
280
280
  }`,
281
281
  ],
282
282
  },
@@ -305,7 +305,7 @@ exports.MonthPicker = {
305
305
  title: '月选择器',
306
306
  icon: 'icon-month',
307
307
  type: 'element',
308
- package: '@music163/antd',
308
+ package: '@cuvp1225/antd',
309
309
  help: '当需要输入或选择具体月份的控件',
310
310
  hasChildren: false,
311
311
  props: [
@@ -315,8 +315,8 @@ exports.MonthPicker = {
315
315
  title: '自定义渲染月份内容',
316
316
  setter: 'expressionSetter',
317
317
  autoCompleteOptions: [
318
- `(date) => {
319
- return date.format("MM");
318
+ `(date) => {
319
+ return date.format("MM");
320
320
  }`,
321
321
  ],
322
322
  group: 'advanced',
@@ -328,7 +328,7 @@ exports.YearPicker = {
328
328
  title: '年选择器',
329
329
  icon: 'icon-year',
330
330
  type: 'element',
331
- package: '@music163/antd',
331
+ package: '@cuvp1225/antd',
332
332
  help: '当需要输入或选择具体年份的控件',
333
333
  hasChildren: false,
334
334
  props: [...exports.PickerCommonProps],
@@ -338,7 +338,7 @@ exports.WeekPicker = {
338
338
  title: '周选择框',
339
339
  icon: 'icon-week',
340
340
  type: 'element',
341
- package: '@music163/antd',
341
+ package: '@cuvp1225/antd',
342
342
  help: '当需要输入或选择具体周的控件',
343
343
  hasChildren: false,
344
344
  props: [...exports.PickerCommonProps],
@@ -348,7 +348,7 @@ exports.DateRangePicker = {
348
348
  title: '日期选择框 Range',
349
349
  icon: 'icon-date-range',
350
350
  type: 'element',
351
- package: '@music163/antd',
351
+ package: '@cuvp1225/antd',
352
352
  help: '当需要输入或选择具体日期范围的控件',
353
353
  hasChildren: false,
354
354
  props: [
@@ -369,9 +369,9 @@ exports.DateRangePicker = {
369
369
  setter: 'expressionSetter',
370
370
  group: 'advanced',
371
371
  autoCompleteOptions: [
372
- `{
373
- Today: [moment(), moment()],
374
- 'This Month': [moment().startOf('month'), moment().endOf('month')],
372
+ `{
373
+ Today: [moment(), moment()],
374
+ 'This Month': [moment().startOf('month'), moment().endOf('month')],
375
375
  }`,
376
376
  ],
377
377
  },
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Descriptions = {
6
6
  name: 'Descriptions',
7
7
  title: '描述列表',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-miaoshu',
10
10
  help: '成组展示多个只读字段,常见于详情页的信息展示',
11
11
  type: 'element',
@@ -100,7 +100,7 @@ exports.Descriptions = {
100
100
  exports.DescriptionItem = {
101
101
  name: 'DescriptionItem',
102
102
  title: '描述列表子项',
103
- package: '@music163/antd',
103
+ package: '@cuvp1225/antd',
104
104
  icon: 'icon-miaoshuliebiaoitem',
105
105
  type: 'element',
106
106
  hasChildren: false,
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Divider = {
6
6
  name: 'Divider',
7
7
  title: '分割线',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-fengexian',
10
10
  type: 'element',
11
11
  props: [
@@ -8,7 +8,7 @@ exports.Drawer = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-chouti',
10
10
  type: 'container',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '屏幕边缘滑出的浮层面板。',
13
13
  hasChildren: true,
14
14
  initChildren: '',
@@ -4,7 +4,7 @@ exports.DropdownButton = exports.Dropdown = void 0;
4
4
  exports.Dropdown = {
5
5
  name: 'Dropdown',
6
6
  title: '下拉菜单',
7
- package: '@music163/antd',
7
+ package: '@cuvp1225/antd',
8
8
  icon: 'icon-xialacaidan',
9
9
  type: 'element',
10
10
  initChildren: '<a>Hover me <Icon type="DownOutlined" /></a>',
@@ -79,7 +79,7 @@ exports.Dropdown = {
79
79
  exports.DropdownButton = {
80
80
  name: 'DropdownButton',
81
81
  title: '下拉菜单',
82
- package: '@music163/antd',
82
+ package: '@cuvp1225/antd',
83
83
  icon: '',
84
84
  type: 'element',
85
85
  props: [
@@ -26,7 +26,7 @@ const renderOptions = [
26
26
  exports.Each = {
27
27
  name: 'Each',
28
28
  title: '循环渲染',
29
- package: '@music163/antd',
29
+ package: '@cuvp1225/antd',
30
30
  help: '用于快速循环渲染一组数据。',
31
31
  icon: 'icon-xunhuan',
32
32
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Empty = {
6
6
  name: 'Empty',
7
7
  title: '空状态',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  help: '空状态时的展示占位图',
10
10
  icon: 'icon-kongzhuangtai',
11
11
  type: 'element',
@@ -40,10 +40,24 @@ exports.Form = {
40
40
  exportType: 'namedExport',
41
41
  icon: 'icon-biaodan',
42
42
  type: 'element',
43
- package: '@music163/antd',
43
+ package: '@cuvp1225/antd',
44
44
  help: '最基本的表单组件,可以创建一个轻量级表单。',
45
45
  hasChildren: true,
46
- initChildren: '<FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" /><FormFooter><Button type="primary" htmlType="submit">提交</Button></FormFooter>',
46
+ initChildren: `<Form.Item label="Username" name="username" rules={[{ required: true, message: "Please input your username!" }]}>
47
+ <Input />
48
+ </Form.Item>
49
+ <Form.Item
50
+ label="Password"
51
+ name="password"
52
+ rules={[{ required: true, message: 'Please input your password!' }]}
53
+ >
54
+ <Input.Password />
55
+ </Form.Item>
56
+ <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
57
+ <Button type="primary" htmlType="submit">
58
+ Submit
59
+ </Button>
60
+ </Form.Item>`,
47
61
  relatedImports: ['FormItem', 'FormFooter', 'Button'],
48
62
  childrenName: ['FormItem', 'Fieldset', 'FormFooter'],
49
63
  props: [
@@ -143,7 +157,7 @@ exports.Fieldset = {
143
157
  exportType: 'namedExport',
144
158
  icon: 'icon-biaodan',
145
159
  type: 'element',
146
- package: '@music163/antd',
160
+ package: '@cuvp1225/antd',
147
161
  hasChildren: true,
148
162
  initChildren: '<FormItem component="Input" label="表单项" /><FormItem component="Input" label="表单项" />',
149
163
  relatedImports: ['FormItem'],
@@ -167,7 +181,7 @@ exports.FormItem = {
167
181
  exportType: 'namedExport',
168
182
  icon: 'icon-biaodan',
169
183
  type: 'element',
170
- package: '@music163/antd',
184
+ package: '@cuvp1225/antd',
171
185
  help: '一个基本的表单项',
172
186
  hasChildren: true,
173
187
  props: [
@@ -285,7 +299,7 @@ exports.FormFooter = {
285
299
  exportType: 'namedExport',
286
300
  icon: 'icon-biaodan',
287
301
  type: 'element',
288
- package: '@music163/antd',
302
+ package: '@cuvp1225/antd',
289
303
  hasChildren: true,
290
304
  initChildren: '<Button type="primary" htmlType="submit">提交</Button>',
291
305
  relatedImports: ['Button'],
@@ -34,7 +34,7 @@ exports.FormilyForm = {
34
34
  exportType: 'namedExport',
35
35
  icon: 'icon-biaodan',
36
36
  type: 'element',
37
- package: '@music163/antd',
37
+ package: '@cuvp1225/antd',
38
38
  help: 'Formily 表单',
39
39
  hasChildren: true,
40
40
  initChildren: '<FormilyFormItem name="input1" component="Input" label="表单项" /><FormilyFormItem name="select1" component="Select" label="表单项" />',
@@ -73,7 +73,7 @@ exports.FormilyFormItem = {
73
73
  exportType: 'namedExport',
74
74
  icon: 'icon-biaodan',
75
75
  type: 'element',
76
- package: '@music163/antd',
76
+ package: '@cuvp1225/antd',
77
77
  help: 'Formily 表单项',
78
78
  hasChildren: false,
79
79
  props: [
@@ -154,7 +154,7 @@ exports.FormilyFormFooter = {
154
154
  exportType: 'namedExport',
155
155
  icon: 'icon-biaodan',
156
156
  type: 'element',
157
- package: '@music163/antd',
157
+ package: '@cuvp1225/antd',
158
158
  hasChildren: true,
159
159
  initChildren: `<FormilySubmit>提交</FormilySubmit><FormilyReset>重置</FormilyReset>`,
160
160
  relatedImports: ['FormilySubmit', 'FormilyReset'],
@@ -165,7 +165,7 @@ exports.FormilySubmit = {
165
165
  exportType: 'namedExport',
166
166
  icon: 'icon-anniu',
167
167
  type: 'element',
168
- package: '@music163/antd',
168
+ package: '@cuvp1225/antd',
169
169
  help: '提交表单',
170
170
  hasChildren: false,
171
171
  props: [
@@ -202,7 +202,7 @@ exports.FormilyReset = {
202
202
  exportType: 'namedExport',
203
203
  icon: 'icon-anniu',
204
204
  type: 'element',
205
- package: '@music163/antd',
205
+ package: '@cuvp1225/antd',
206
206
  help: '重置表单。',
207
207
  hasChildren: false,
208
208
  props: [
@@ -0,0 +1,3 @@
1
+ import { ComponentPrototypeType } from '@music163/tango-helpers';
2
+ export declare const Col: ComponentPrototypeType;
3
+ export declare const Row: ComponentPrototypeType;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Row = exports.Col = void 0;
4
+ const common_1 = require("./common");
5
+ exports.Col = {
6
+ name: 'Col',
7
+ title: '栅格列',
8
+ package: '@cuvp1225/antd',
9
+ icon: 'icon-column',
10
+ //type: 'element',
11
+ type: 'container',
12
+ help: '栅格行',
13
+ hasChildren: true,
14
+ initChildren: '<Placeholder text="放置替换" />',
15
+ relatedImports: ['Placeholder'],
16
+ props: [
17
+ ...common_1.StylePrototypes,
18
+ {
19
+ name: 'span',
20
+ title: '所占栅格',
21
+ setter: 'numberSetter',
22
+ //defaultValue: 24
23
+ },
24
+ ],
25
+ rules: {
26
+ canMoveIn(incomingName) {
27
+ return !(incomingName === exports.Row.name);
28
+ },
29
+ },
30
+ };
31
+ exports.Row = {
32
+ name: 'Row',
33
+ title: '栅格行',
34
+ package: '@cuvp1225/antd',
35
+ icon: 'icon-column',
36
+ //type: 'element',
37
+ type: 'container',
38
+ help: '栅格行',
39
+ hasChildren: true,
40
+ initChildren: '<Placeholder text="放置替换" />',
41
+ relatedImports: ['Placeholder'],
42
+ props: [
43
+ ...common_1.StylePrototypes,
44
+ {
45
+ name: 'gutter',
46
+ title: '栅格间隔',
47
+ setter: 'textSetter',
48
+ defaultValue: [20, 20]
49
+ },
50
+ ],
51
+ rules: {
52
+ canMoveIn(incomingName) {
53
+ return !(incomingName === exports.Row.name);
54
+ },
55
+ },
56
+ };
@@ -8,7 +8,7 @@ exports.IFrame = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-iframe',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  hasChildren: false,
13
13
  props: [
14
14
  ...common_1.StylePrototypes,