@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
@@ -9,7 +9,7 @@ exports.Image = {
9
9
  icon: 'icon-tupian',
10
10
  type: 'element',
11
11
  help: '展示一种图片,并且可以进入快捷预览态。',
12
- package: '@music163/antd',
12
+ package: '@cuvp1225/antd',
13
13
  hasChildren: false,
14
14
  props: [
15
15
  ...common_1.StylePrototypes,
@@ -61,7 +61,7 @@ exports.ImageList = {
61
61
  icon: 'icon-tupian',
62
62
  type: 'element',
63
63
  help: '当需要展示一组图片时,从一张图片点开相册,可在 Table 的单元格或描述列表中使用',
64
- package: '@music163/antd',
64
+ package: '@cuvp1225/antd',
65
65
  hasChildren: false,
66
66
  props: [
67
67
  ...common_1.StylePrototypes,
@@ -65,3 +65,4 @@ export * from './tree-select';
65
65
  export * from './tree';
66
66
  export * from './typography';
67
67
  export * from './upload';
68
+ export * from './grid';
@@ -68,3 +68,4 @@ tslib_1.__exportStar(require("./tree-select"), exports);
68
68
  tslib_1.__exportStar(require("./tree"), exports);
69
69
  tslib_1.__exportStar(require("./typography"), exports);
70
70
  tslib_1.__exportStar(require("./upload"), exports);
71
+ tslib_1.__exportStar(require("./grid"), exports);
@@ -7,7 +7,7 @@ exports.InputNumber = {
7
7
  title: '数字输入框',
8
8
  icon: 'icon-jishuqi',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '通过鼠标或键盘,输入范围内的数值',
12
12
  hasChildren: false,
13
13
  props: [
@@ -7,7 +7,7 @@ exports.Input = {
7
7
  title: '输入框',
8
8
  icon: 'icon-shurukuang',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '通过鼠标或键盘输入内容,是最基础的表单域的包装',
12
12
  hasChildren: false,
13
13
  props: [
@@ -122,7 +122,7 @@ exports.TextArea = {
122
122
  title: '文本框',
123
123
  icon: 'icon-wenbenyu',
124
124
  type: 'element',
125
- package: '@music163/antd',
125
+ package: '@cuvp1225/antd',
126
126
  help: '用于多行文本输入',
127
127
  hasChildren: false,
128
128
  props: [
@@ -205,7 +205,7 @@ exports.Search = {
205
205
  title: '搜索框',
206
206
  icon: 'icon-sousuokuang',
207
207
  type: 'element',
208
- package: '@music163/antd',
208
+ package: '@cuvp1225/antd',
209
209
  help: '带有搜索按钮的输入框',
210
210
  hasChildren: false,
211
211
  props: [
@@ -236,7 +236,7 @@ exports.Password = {
236
236
  title: '密码输入',
237
237
  icon: 'icon-password',
238
238
  type: 'element',
239
- package: '@music163/antd',
239
+ package: '@cuvp1225/antd',
240
240
  help: '需要输入密码的控件',
241
241
  hasChildren: false,
242
242
  props: [
@@ -258,7 +258,7 @@ exports.InputGroup = {
258
258
  title: '输入框组合',
259
259
  icon: 'icon-shurukuang',
260
260
  type: 'element',
261
- package: '@music163/antd',
261
+ package: '@cuvp1225/antd',
262
262
  help: '输入框的组合展现',
263
263
  hasChildren: true,
264
264
  props: [
@@ -8,7 +8,7 @@ exports.Interval = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-time-range',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '用于周期性的执行某一个动作。',
13
13
  hasChildren: false,
14
14
  props: [
@@ -8,7 +8,7 @@ exports.Link = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-link-button',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '创建一个链接文本,支持跳转到指定的锚点地址。',
13
13
  hasChildren: true,
14
14
  props: [
@@ -6,7 +6,7 @@ const pagination_1 = require("./pagination");
6
6
  exports.List = {
7
7
  name: 'List',
8
8
  title: '列表',
9
- package: '@music163/antd',
9
+ package: '@cuvp1225/antd',
10
10
  icon: 'icon-liebiao',
11
11
  help: '最基础的列表展示,可承载文字、列表、图片、段落,常用于后台数据展示页面',
12
12
  type: 'element',
@@ -92,7 +92,7 @@ exports.List = {
92
92
  exports.ListItem = {
93
93
  name: 'ListItem',
94
94
  title: '列表Item',
95
- package: '@music163/antd',
95
+ package: '@cuvp1225/antd',
96
96
  icon: 'icon-shujuzhanshiitem',
97
97
  type: 'element',
98
98
  hasChildren: true,
@@ -116,7 +116,7 @@ exports.ListItem = {
116
116
  exports.ListItemMeta = {
117
117
  name: 'ListItemMeta',
118
118
  title: '列表Item',
119
- package: '@music163/antd',
119
+ package: '@cuvp1225/antd',
120
120
  icon: '',
121
121
  type: 'element',
122
122
  relatedImports: ['Avatar'],
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Mentions = {
6
6
  name: 'Mentions',
7
7
  title: '提及',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-tiji',
10
10
  type: 'element',
11
11
  help: '提及组件,用于在输入中提及某人或某事,常用于发布、聊天或评论功能',
@@ -90,7 +90,7 @@ exports.Mentions = {
90
90
  exports.MentionsOption = {
91
91
  name: 'MentionsOption',
92
92
  title: '提及',
93
- package: '@music163/antd',
93
+ package: '@cuvp1225/antd',
94
94
  icon: 'icon-tijioption',
95
95
  type: 'element',
96
96
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Menu = {
6
6
  name: 'Menu',
7
7
  title: '导航菜单',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-daohangcaidan',
10
10
  type: 'element',
11
11
  help: '为页面和功能提供导航的菜单列表,一般分为顶部导航和侧边导航',
@@ -143,7 +143,7 @@ exports.Menu = {
143
143
  exports.MenuItem = {
144
144
  name: 'MenuItem',
145
145
  title: '导航菜单',
146
- package: '@music163/antd',
146
+ package: '@cuvp1225/antd',
147
147
  icon: '',
148
148
  type: 'element',
149
149
  props: [
@@ -170,7 +170,7 @@ exports.MenuItem = {
170
170
  exports.MenuSubMenu = {
171
171
  name: 'MenuSubMenu',
172
172
  title: '导航菜单',
173
- package: '@music163/antd',
173
+ package: '@cuvp1225/antd',
174
174
  icon: '',
175
175
  type: 'element',
176
176
  props: [
@@ -211,7 +211,7 @@ exports.MenuSubMenu = {
211
211
  exports.MenuItemGroup = {
212
212
  name: 'MenuItemGroup',
213
213
  title: '导航菜单',
214
- package: '@music163/antd',
214
+ package: '@cuvp1225/antd',
215
215
  icon: '',
216
216
  type: 'element',
217
217
  props: [
@@ -223,7 +223,7 @@ exports.MenuItemGroup = {
223
223
  exports.MenuDivider = {
224
224
  name: 'MenuDivider',
225
225
  title: '导航菜单',
226
- package: '@music163/antd',
226
+ package: '@cuvp1225/antd',
227
227
  icon: '',
228
228
  type: 'element',
229
229
  props: [
@@ -8,7 +8,7 @@ exports.Modal = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-tanchuang',
10
10
  type: 'container',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 Modal 在当前页面正中打开一个浮层,承载相应的操作。',
13
13
  hasChildren: true,
14
14
  initChildren: '',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.PageHeader = {
6
6
  name: 'PageHeader',
7
7
  title: '页头',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-yetou',
10
10
  type: 'element',
11
11
  props: [
@@ -6,7 +6,7 @@ exports.Page = {
6
6
  title: '页面容器',
7
7
  icon: 'icon-page',
8
8
  type: 'page',
9
- package: '@music163/antd',
9
+ package: '@cuvp1225/antd',
10
10
  hasChildren: true,
11
11
  props: [
12
12
  {
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Pagination = {
6
6
  name: 'Pagination',
7
7
  title: '分页',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-fenyeqi',
10
10
  help: '采用分页的形式分隔长列表,每次只加载一个页面',
11
11
  type: 'element',
@@ -57,6 +57,7 @@ exports.Pagination = {
57
57
  name: 'showTotal',
58
58
  title: '总量和当前数量展示',
59
59
  setter: 'expressionSetter',
60
+ autoCompleteOptions: ['(total) => `共 ${total} 条`'],
60
61
  },
61
62
  { name: 'total', title: '数据总数', setter: 'numberSetter', initValue: 20 },
62
63
  { name: 'current', title: '当前页数', setter: 'numberSetter' },
@@ -6,7 +6,7 @@ const button_1 = require("./button");
6
6
  exports.Popconfirm = {
7
7
  name: 'Popconfirm',
8
8
  title: '气泡确认框',
9
- package: '@music163/antd',
9
+ package: '@cuvp1225/antd',
10
10
  icon: 'icon-qipaoqueren',
11
11
  help: '点击元素,弹出气泡式的确认框',
12
12
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Popover = {
6
6
  name: 'Popover',
7
7
  title: '气泡卡片',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-qipao',
10
10
  help: '点击/鼠标移入元素,弹出气泡式的卡片浮层',
11
11
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Progress = {
6
6
  name: 'Progress',
7
7
  title: '进度条',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-jindutiao',
10
10
  help: '展示操作的当前进度控件,在操作需要较长时间才能完成时,为用户显示该操作的当前进度和状态',
11
11
  type: 'element',
@@ -7,7 +7,7 @@ exports.Radio = {
7
7
  title: '单选框',
8
8
  icon: 'icon-danxuankuang',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '单选框,用于在多个备选项中选中单个状态',
12
12
  hasChildren: true,
13
13
  initChildren: '单项1',
@@ -56,7 +56,7 @@ exports.RadioGroup = {
56
56
  title: '单选框组',
57
57
  icon: 'icon-danxuankuang',
58
58
  type: 'element',
59
- package: '@music163/antd',
59
+ package: '@cuvp1225/antd',
60
60
  hasChildren: true,
61
61
  help: '单选框组,一组互斥的 Radio 配合使用',
62
62
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Rate = {
6
6
  name: 'Rate',
7
7
  title: '评分',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  help: '评分组件,用于对评价进行展示或对事物进行快速的评级操作',
10
10
  icon: 'icon-pingfen',
11
11
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Result = {
6
6
  name: 'Result',
7
7
  title: '结果',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-jieguo',
10
10
  help: '用于反馈一系列操作任务的处理结果',
11
11
  type: 'element',
@@ -7,7 +7,7 @@ exports.Section = {
7
7
  title: '布局区块',
8
8
  icon: 'icon-mianban',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '区域容器,可以用来将页面划分成多个区域,每个区域放置具体的内容模块。',
12
12
  hasChildren: true,
13
13
  initChildren: '',
@@ -77,7 +77,7 @@ exports.Select = {
77
77
  title: '下拉选择',
78
78
  icon: 'icon-xuanzeqi',
79
79
  type: 'element',
80
- package: '@music163/antd',
80
+ package: '@cuvp1225/antd',
81
81
  help: '下拉选择器,弹出一个下拉菜单给用户选择操作',
82
82
  hasChildren: true,
83
83
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.SkeletonAvatar = {
6
6
  name: 'SkeletonAvatar',
7
7
  title: '骨架屏(头像)',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-placeholder',
10
10
  type: 'element',
11
11
  hasChildren: true,
@@ -48,7 +48,7 @@ exports.SkeletonAvatar = {
48
48
  exports.SkeletonButton = {
49
49
  name: 'SkeletonButton',
50
50
  title: '骨架屏(按钮)',
51
- package: '@music163/antd',
51
+ package: '@cuvp1225/antd',
52
52
  icon: 'icon-placeholder',
53
53
  type: 'element',
54
54
  hasChildren: true,
@@ -96,7 +96,7 @@ exports.SkeletonButton = {
96
96
  exports.SkeletonInput = {
97
97
  name: 'SkeletonInput',
98
98
  title: '骨架屏(输入框)',
99
- package: '@music163/antd',
99
+ package: '@cuvp1225/antd',
100
100
  icon: 'icon-placeholder',
101
101
  type: 'element',
102
102
  hasChildren: true,
@@ -125,7 +125,7 @@ exports.SkeletonInput = {
125
125
  exports.SkeletonImage = {
126
126
  name: 'SkeletonImage',
127
127
  title: '骨架屏(图片)',
128
- package: '@music163/antd',
128
+ package: '@cuvp1225/antd',
129
129
  icon: 'icon-placeholder',
130
130
  type: 'element',
131
131
  hasChildren: true,
@@ -141,7 +141,7 @@ exports.SkeletonImage = {
141
141
  exports.SkeletonNode = {
142
142
  name: 'SkeletonNode',
143
143
  title: '骨架屏(结点)',
144
- package: '@music163/antd',
144
+ package: '@cuvp1225/antd',
145
145
  icon: 'icon-placeholder',
146
146
  type: 'element',
147
147
  hasChildren: true,
@@ -157,7 +157,7 @@ exports.SkeletonNode = {
157
157
  exports.Skeleton = {
158
158
  name: 'Skeleton',
159
159
  title: '骨架屏',
160
- package: '@music163/antd',
160
+ package: '@cuvp1225/antd',
161
161
  icon: 'icon-placeholder',
162
162
  help: '在需要等待加载内容的位置提供一个占位图形组合',
163
163
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Slider = {
6
6
  name: 'Slider',
7
7
  title: '滑动输入条',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-huadongtiao',
10
10
  help: '滑动型输入器,展示当前值和可选范围',
11
11
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Space = {
6
6
  name: 'Space',
7
7
  title: '间距',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-jianju',
10
10
  type: 'element',
11
11
  help: '设置组件之间的间距',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Spin = {
6
6
  name: 'Spin',
7
7
  title: '加载中',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-jiazaizhong',
10
10
  help: '用于页面和区块的加载中状态',
11
11
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Statistic = {
6
6
  name: 'Statistic',
7
7
  title: '统计数值',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-tongjishuzhi',
10
10
  help: '展示统计数值组件,当需要突出某个或某组数字或展示带描述的统计类数据时使用',
11
11
  type: 'element',
@@ -50,7 +50,7 @@ exports.Statistic = {
50
50
  exports.StatisticCountdown = {
51
51
  name: 'StatisticCountdown',
52
52
  title: '统计数值',
53
- package: '@music163/antd',
53
+ package: '@cuvp1225/antd',
54
54
  icon: '',
55
55
  type: 'element',
56
56
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Steps = {
6
6
  name: 'Steps',
7
7
  title: '步骤条',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-buzhoutiao',
10
10
  type: 'element',
11
11
  help: '引导用户按照流程完成任务的导航条,当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。',
@@ -114,7 +114,7 @@ exports.Steps = {
114
114
  exports.StepsItem = {
115
115
  name: 'StepsItem',
116
116
  title: '步骤条',
117
- package: '@music163/antd',
117
+ package: '@cuvp1225/antd',
118
118
  icon: '',
119
119
  type: 'element',
120
120
  props: [
@@ -7,7 +7,7 @@ exports.Switch = {
7
7
  title: '开关',
8
8
  icon: 'icon-kaiguan',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '开关选择器,需要表示开关状态/两种状态之间的切换控件',
12
12
  hasChildren: false,
13
13
  props: [
@@ -8,7 +8,8 @@ const renderChildrenOptions = [
8
8
  {
9
9
  label: '自定义区域',
10
10
  value: 'Box',
11
- render: '{(record, index, indent, expanded) => <Box></Box>}',
11
+ //render: '{(record, index, indent, expanded) => <Box></Box>}',
12
+ render: '(record, index, indent, expanded) => <Box></Box>',
12
13
  relatedImports: ['Box'],
13
14
  },
14
15
  ];
@@ -18,7 +19,7 @@ exports.Table = {
18
19
  exportType: 'namedExport',
19
20
  icon: 'icon-biaoge',
20
21
  type: 'element',
21
- package: '@music163/antd',
22
+ package: '@cuvp1225/antd',
22
23
  help: '最基本的表格组件,没有过多复杂的功能。',
23
24
  hasChildren: false,
24
25
  props: [
@@ -45,12 +46,6 @@ exports.Table = {
45
46
  },
46
47
  ],
47
48
  },
48
- {
49
- name: 'rowKey',
50
- title: '数据主键',
51
- setter: 'textSetter',
52
- group: 'basic',
53
- },
54
49
  {
55
50
  name: 'dataSource',
56
51
  title: '数据源',
@@ -58,6 +53,18 @@ exports.Table = {
58
53
  setter: 'expressionSetter',
59
54
  group: 'basic',
60
55
  },
56
+ {
57
+ name: 'loading',
58
+ title: '表格加载中',
59
+ setter: 'boolSetter',
60
+ group: 'basic',
61
+ },
62
+ {
63
+ name: 'rowKey',
64
+ title: '数据主键',
65
+ setter: 'textSetter',
66
+ group: 'basic',
67
+ },
61
68
  {
62
69
  name: 'rowSelection',
63
70
  title: '是否开启多选',
@@ -164,7 +171,7 @@ exports.Table = {
164
171
  },
165
172
  {
166
173
  name: 'expandable',
167
- title: '配置展开属性',
174
+ title: '行展开',
168
175
  // tip: '{expandedRowRender:function(record, index, indent, expanded): ReactNode,其它配置项},详细见:',
169
176
  // setter: 'tableExpandableSetter',
170
177
  props: [
@@ -253,7 +260,7 @@ exports.Table = {
253
260
  },
254
261
  {
255
262
  name: 'scroll',
256
- title: '表格滚动设置',
263
+ title: '滚动',
257
264
  tip: '可以指定滚动区域的宽、高,格式:{{x:宽,y:高,scrollToFirstRowOnChange:boolean}},详细参见:',
258
265
  props: [
259
266
  {
@@ -282,13 +289,6 @@ exports.Table = {
282
289
  setter: 'expressionSetter',
283
290
  group: 'basic',
284
291
  },
285
- {
286
- name: 'summary',
287
- title: '总结栏',
288
- tip: '格式:(currentData) => ReactNode',
289
- setter: 'expressionSetter',
290
- group: 'basic',
291
- },
292
292
  {
293
293
  name: 'footer',
294
294
  title: '表格尾部',
@@ -319,12 +319,6 @@ exports.Table = {
319
319
  defaultValue: true,
320
320
  group: 'basic',
321
321
  },
322
- {
323
- name: 'loading',
324
- title: '表格加载中',
325
- setter: 'boolSetter',
326
- group: 'basic',
327
- },
328
322
  {
329
323
  name: 'sticky',
330
324
  title: '粘性头部和滚动条',
@@ -338,6 +332,23 @@ exports.Table = {
338
332
  setter: 'expressionSetter',
339
333
  group: 'event',
340
334
  },
335
+ {
336
+ name: 'summary',
337
+ title: '总结栏',
338
+ tip: '格式:(currentData) => ReactNode',
339
+ setter: 'expressionSetter',
340
+ group: 'event',
341
+ autoCompleteOptions: [`(pageData) => {
342
+ console.log("pageData", pageData);
343
+ let sum = 100;
344
+ return (
345
+ <Table.Summary.Row>
346
+ <Table.Summary.Cell index={0}>合计:</Table.Summary.Cell>
347
+ <Table.Summary.Cell index={1}>{sum}</Table.Summary.Cell>
348
+ </Table.Summary.Row>
349
+ );
350
+ }`],
351
+ },
341
352
  {
342
353
  name: 'onHeaderRow',
343
354
  title: '设置头部行属性',
@@ -372,7 +383,7 @@ exports.TableColumn = {
372
383
  exportType: 'namedExport',
373
384
  icon: 'icon-biaoge',
374
385
  type: 'element',
375
- package: '@music163/antd',
386
+ package: '@cuvp1225/antd',
376
387
  hasChildren: false,
377
388
  props: [
378
389
  {
@@ -516,9 +527,9 @@ exports.TableColumn = {
516
527
  setter: 'expressionSetter',
517
528
  group: 'advanced',
518
529
  autoCompleteOptions: [
519
- `(record1,record2) => {
520
- //示例:按照id降序排列
521
- //return record1.id-record2.id
530
+ `(record1,record2) => {
531
+ //示例:按照id降序排列
532
+ //return record1.id-record2.id
522
533
  }`,
523
534
  ],
524
535
  },
@@ -8,7 +8,7 @@ exports.Tabs = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-xuanxiangka',
10
10
  type: 'container',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '提供平级的区域将大块内容进行收纳和展现,保持界面整洁',
13
13
  hasChildren: true,
14
14
  initChildren: '<TabPane key="1" tab="选项卡1"></TabPane><TabPane key="2" tab="选项卡2"></TabPane>',
@@ -82,7 +82,7 @@ exports.TabPane = {
82
82
  exportType: 'namedExport',
83
83
  icon: 'icon-xuanxiangka',
84
84
  type: 'container',
85
- package: '@music163/antd',
85
+ package: '@cuvp1225/antd',
86
86
  hasChildren: true,
87
87
  props: [
88
88
  ...common_1.StylePrototypes,
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Tag = {
6
6
  name: 'Tag',
7
7
  title: '标签',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-biaoqian',
10
10
  type: 'element',
11
11
  help: '进行标记和分类的小标签,用于标记事物的属性和维度或分类',
@@ -43,6 +43,7 @@ exports.Tag = {
43
43
  title: '是否显示标签',
44
44
  setter: 'boolSetter',
45
45
  defaultValue: true,
46
+ autoCompleteOptions: ['() => text == "1"'],
46
47
  },
47
48
  {
48
49
  name: 'onClose',
@@ -56,7 +57,7 @@ exports.Tag = {
56
57
  exports.CheckableTag = {
57
58
  name: 'CheckableTag',
58
59
  title: '可选择标签',
59
- package: '@music163/antd',
60
+ package: '@cuvp1225/antd',
60
61
  icon: 'icon-kexuanzebiaoqian',
61
62
  help: '可点击选中的 Tag 控件',
62
63
  type: 'element',
@@ -8,7 +8,7 @@ exports.Text = {
8
8
  exportType: 'namedExport',
9
9
  icon: 'icon-wenzi',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  help: '原子布局组件,创建一个行内的文本内容。',
13
13
  hasChildren: false,
14
14
  initChildren: '文本',