@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
@@ -8,7 +8,7 @@ exports.TimePicker = {
8
8
  title: '时间选择框',
9
9
  icon: 'icon-shijianxuanze',
10
10
  type: 'element',
11
- package: '@music163/antd',
11
+ package: '@cuvp1225/antd',
12
12
  hasChildren: false,
13
13
  props: [
14
14
  ...common_1.StylePrototypes,
@@ -189,7 +189,7 @@ exports.TimeRangePicker = {
189
189
  title: '时间选择框 Range',
190
190
  icon: 'icon-time-range',
191
191
  type: 'element',
192
- package: '@music163/antd',
192
+ package: '@cuvp1225/antd',
193
193
  hasChildren: false,
194
194
  props: [
195
195
  ...common_1.StylePrototypes,
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Timeline = {
6
6
  name: 'Timeline',
7
7
  title: '时间轴',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-shijianzhou',
10
10
  type: 'element',
11
11
  help: '垂直展示的时间流信息,用于一系列信息需按时间排列时',
@@ -50,7 +50,7 @@ exports.Timeline = {
50
50
  exports.TimelineItem = {
51
51
  name: 'TimelineItem',
52
52
  title: '时间轴',
53
- package: '@music163/antd',
53
+ package: '@cuvp1225/antd',
54
54
  icon: 'icon-shijianzhouitem',
55
55
  type: 'element',
56
56
  hasChildren: true,
@@ -7,7 +7,7 @@ exports.Toolbar = {
7
7
  title: '工具栏',
8
8
  icon: 'icon-toolbar',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  hasChildren: true,
12
12
  props: [
13
13
  ...common_1.StylePrototypes,
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Tooltip = {
6
6
  name: 'Tooltip',
7
7
  title: '文字提示',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-wenzitishi',
10
10
  help: '简单的文字提示气泡框,气泡浮层不承载复杂文本和操作',
11
11
  type: 'element',
@@ -13,7 +13,7 @@ for (let i = 0; i < 5; i++) {
13
13
  exports.Transfer = {
14
14
  name: 'Transfer',
15
15
  title: '穿梭框',
16
- package: '@music163/antd',
16
+ package: '@cuvp1225/antd',
17
17
  icon: 'icon-chuansuokuang1',
18
18
  type: 'element',
19
19
  help: '双栏穿梭选择框,需要在多个可选项中进行多选时使用的控件',
@@ -142,7 +142,7 @@ exports.Transfer = {
142
142
  // export const Render: ComponentPrototypeType = {
143
143
  // name: 'Render',
144
144
  // title: '穿梭框',
145
- // package: '@music163/antd',
145
+ // package: '@cuvp1225/antd',
146
146
  // icon: '',
147
147
  // type: 'element',
148
148
  // // props: [
@@ -7,7 +7,7 @@ exports.TreeSelect = {
7
7
  title: '树选择',
8
8
  icon: 'icon-shuxingjiegou',
9
9
  type: 'element',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '树型选择控件,类似 Select 的选择控件,可选择的数据结构是一个树形结构时使用',
12
12
  hasChildren: true,
13
13
  childrenName: 'TreeNode',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Tree = {
6
6
  name: 'Tree',
7
7
  title: '树形控件',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-shuxingjiegou',
10
10
  help: '多层次的结构列表,如需要展示文件夹、组织架构、生物分类、国家地区数据等等',
11
11
  type: 'element',
@@ -264,7 +264,7 @@ exports.Tree = {
264
264
  exports.TreeNode = {
265
265
  name: 'TreeNode',
266
266
  title: '树形控件节点',
267
- package: '@music163/antd',
267
+ package: '@cuvp1225/antd',
268
268
  icon: 'icon-shuxingjiegou',
269
269
  type: 'element',
270
270
  props: [
@@ -309,7 +309,7 @@ exports.TreeNode = {
309
309
  exports.DirectoryTree = {
310
310
  name: 'DirectoryTree',
311
311
  title: '树形控件',
312
- package: '@music163/antd',
312
+ package: '@cuvp1225/antd',
313
313
  icon: '',
314
314
  type: 'element',
315
315
  props: [
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Typography = {
6
6
  name: 'Typography',
7
7
  title: '排版容器',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-wenzi',
10
10
  type: 'element',
11
11
  hasChildren: true,
@@ -117,7 +117,7 @@ const commonTypographyProps = [
117
117
  exports.Title = {
118
118
  name: 'Title',
119
119
  title: '标题',
120
- package: '@music163/antd',
120
+ package: '@cuvp1225/antd',
121
121
  icon: 'icon-header',
122
122
  help: '创建一个标题文本,可以展示不同级别的标题。',
123
123
  type: 'element',
@@ -147,7 +147,7 @@ exports.Title = {
147
147
  exports.Paragraph = {
148
148
  name: 'Paragraph',
149
149
  title: '段落',
150
- package: '@music163/antd',
150
+ package: '@cuvp1225/antd',
151
151
  icon: 'icon-paragraph',
152
152
  help: '创建一个文本段落,提供默认的布局和样式设置。',
153
153
  type: 'element',
@@ -5,7 +5,7 @@ const common_1 = require("./common");
5
5
  exports.Upload = {
6
6
  name: 'Upload',
7
7
  title: '上传',
8
- package: '@music163/antd',
8
+ package: '@cuvp1225/antd',
9
9
  icon: 'icon-shangchuan',
10
10
  type: 'element',
11
11
  help: '基础的文件选择上传和拖拽上传控件',
@@ -185,7 +185,7 @@ exports.Upload = {
185
185
  exports.UploadDragger = {
186
186
  name: 'UploadDragger',
187
187
  title: '拖拽上传',
188
- package: '@music163/antd',
188
+ package: '@cuvp1225/antd',
189
189
  icon: '',
190
190
  type: 'element',
191
191
  props: [
@@ -7,7 +7,7 @@ exports.When = {
7
7
  exportType: 'namedExport',
8
8
  icon: 'icon-shitu',
9
9
  type: 'container',
10
- package: '@music163/antd',
10
+ package: '@cuvp1225/antd',
11
11
  help: '创建一个条件执行容器,当条件为真时,渲染子节点。',
12
12
  hasChildren: true,
13
13
  initChildren: '',
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const Box: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@music163/foundation").BoxProps> & import("@music163/foundation").BoxProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@music163/foundation").BoxProps> & {
2
+ export declare const Box: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").BoxProps> & import("@cuvp1225/foundation").BoxProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").BoxProps> & {
3
3
  as?: import("coral-system/dist/esm/types").As<any>;
4
4
  } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { defineComponent } from '@music163/tango-boot';
3
- import { Box as BaseBox } from '@music163/foundation';
3
+ import { Box as BaseBox } from '@cuvp1225/foundation';
4
4
  import { Placeholder } from './placeholder';
5
5
  export const Box = defineComponent(BaseBox, {
6
6
  name: 'Box',
@@ -1,9 +1,9 @@
1
1
  export declare const Button: import("react").ForwardRefExoticComponent<Omit<Partial<{
2
2
  href: string;
3
3
  target?: string;
4
- onClick?: import("react").MouseEventHandler<HTMLElement>;
4
+ onClick?: React.MouseEventHandler<HTMLElement>;
5
5
  } & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "onClick"> & {
6
6
  htmlType?: import("antd/lib/button/button").ButtonHTMLType;
7
- onClick?: import("react").MouseEventHandler<HTMLElement>;
7
+ onClick?: React.MouseEventHandler<HTMLElement>;
8
8
  } & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
9
9
  export declare const ButtonGroup: import("react").ForwardRefExoticComponent<import("antd/lib/button").ButtonGroupProps & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare const Columns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@music163/foundation").ColumnsProps> & import("@music163/foundation").ColumnsProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@music163/foundation").ColumnsProps> & {
2
+ export declare const Columns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColumnsProps> & import("@cuvp1225/foundation").ColumnsProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColumnsProps> & {
3
3
  as?: import("coral-system/dist/esm/types").As<any>;
4
4
  } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
5
- export declare const Column: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@music163/foundation").ColumnProps> & import("@music163/foundation").ColumnProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@music163/foundation").ColumnProps> & {
5
+ export declare const Column: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColumnProps> & import("@cuvp1225/foundation").ColumnProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColumnProps> & {
6
6
  as?: import("coral-system/dist/esm/types").As<any>;
7
7
  } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { defineComponent } from '@music163/tango-boot';
3
- import { Columns as BaseColumns, Column as BaseColumn } from '@music163/foundation';
3
+ import { Columns as BaseColumns, Column as BaseColumn } from '@cuvp1225/foundation';
4
4
  import { Placeholder } from './placeholder';
5
5
  export const Columns = defineComponent(BaseColumns, {
6
6
  name: 'Columns',
@@ -0,0 +1,16 @@
1
+ export declare const Form: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
2
+ children?: React.ReactNode;
3
+ } & {
4
+ ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
5
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
6
+ export declare const Fieldset: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
7
+ children?: React.ReactNode;
8
+ } & {
9
+ ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
10
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
11
+ export declare const FormItem: import("react").ForwardRefExoticComponent<import("antd").FormItemProps<unknown> & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
12
+ export declare const FormFooter: import("react").ForwardRefExoticComponent<Omit<import("antd").FormProps<unknown> & {
13
+ children?: React.ReactNode;
14
+ } & {
15
+ ref?: import("react").Ref<import("antd").FormInstance<unknown>>;
16
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -0,0 +1,14 @@
1
+ import { defineComponent } from '@music163/tango-boot';
2
+ import { Form as AntForm } from 'antd';
3
+ export const Form = defineComponent(AntForm, {
4
+ name: 'Form'
5
+ });
6
+ export const Fieldset = defineComponent(AntForm, {
7
+ name: 'Fieldset',
8
+ });
9
+ export const FormItem = defineComponent(AntForm.Item, {
10
+ name: 'FormItem'
11
+ });
12
+ export const FormFooter = defineComponent(AntForm, {
13
+ name: 'FormFooter'
14
+ });
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  export declare const FormilyFormItem: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
- export declare const FormilyForm: React.ForwardRefExoticComponent<import("@music163/formily/lib/esm/form").FormProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const FormilyForm: React.ForwardRefExoticComponent<import("@cuvp1225/formily/lib/esm/form").FormProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
4
4
  export declare const FormilyFormFooter: React.ForwardRefExoticComponent<Omit<{
5
5
  children?: React.ReactNode | undefined;
6
- }, keyof import("@music163/formily").IFormItemProps | "gutter"> & import("@music163/formily").IFormItemProps & {
6
+ }, "gutter" | keyof import("@cuvp1225/formily").IFormItemProps> & import("@cuvp1225/formily").IFormItemProps & {
7
7
  gutter?: number;
8
8
  } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
9
- export declare const FormilySubmit: React.ForwardRefExoticComponent<import("@music163/formily").ISubmitProps & {
9
+ export declare const FormilySubmit: React.ForwardRefExoticComponent<import("@cuvp1225/formily").ISubmitProps & {
10
10
  children?: React.ReactNode | undefined;
11
11
  } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
12
- export declare const FormilyReset: React.ForwardRefExoticComponent<import("@music163/formily").IResetProps & {
12
+ export declare const FormilyReset: React.ForwardRefExoticComponent<import("@cuvp1225/formily").IResetProps & {
13
13
  children?: React.ReactNode | undefined;
14
14
  } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
15
- export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@music163/formily';
15
+ export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@cuvp1225/formily';
@@ -1,6 +1,6 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
- import { Form, FormItem, FormFooter, Checkbox, DatePicker, Input, NumberPicker, Password, Radio, Select, Switch, TimePicker, TreeSelect, Submit, Reset, } from '@music163/formily';
3
+ import { Form, FormItem, FormFooter, Checkbox, DatePicker, Input, NumberPicker, Password, Radio, Select, Switch, TimePicker, TreeSelect, Submit, Reset, } from '@cuvp1225/formily';
4
4
  import { defineComponent } from '@music163/tango-boot';
5
5
  const componentMap = new Map();
6
6
  const register = (name, component) => {
@@ -54,4 +54,4 @@ export const FormilySubmit = defineComponent(Submit, {
54
54
  export const FormilyReset = defineComponent(Reset, {
55
55
  name: 'FormilyReset',
56
56
  });
57
- export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@music163/formily';
57
+ export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@cuvp1225/formily';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Col: React.ForwardRefExoticComponent<Omit<import("antd").ColProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const Row: React.ForwardRefExoticComponent<Omit<import("antd").RowProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,24 @@
1
+ import { defineComponent } from '@music163/tango-boot';
2
+ //import { Columns as BaseCol, Column as BaseRow } from '@music163/foundation';
3
+ import React from 'react';
4
+ import { Placeholder } from './placeholder';
5
+ import { Col as AntCol, Row as AntRow } from 'antd';
6
+ export const Col = defineComponent(AntCol, {
7
+ name: 'Col',
8
+ designerConfig: {
9
+ // defaultProps: {
10
+ // children: <Placeholder />,
11
+ // span: 24
12
+ // }
13
+ defaultProps: React.createElement(Placeholder, null),
14
+ }
15
+ });
16
+ export const Row = defineComponent(AntRow, {
17
+ name: 'Row',
18
+ designerConfig: {
19
+ // defaultProps: {
20
+ // children: <Placeholder />
21
+ // }
22
+ defaultProps: React.createElement(Placeholder, null),
23
+ }
24
+ });
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const ColCombination: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").ColProps> & import("@cuvp1225/foundation").ColProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").ColProps> & {
3
+ as?: import("coral-system/dist/esm/types").As<any>;
4
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
5
+ export declare const RowCombination: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").RowProps> & import("@cuvp1225/foundation").RowProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").RowProps> & {
6
+ as?: import("coral-system/dist/esm/types").As<any>;
7
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,22 @@
1
+ import { defineComponent } from '@music163/tango-boot';
2
+ //import { Grid as AntGrid,Col as AntCol,Row as AntRow } from 'antd';
3
+ import { AntCol, AntRow } from '@cuvp1225/foundation';
4
+ import React from 'react';
5
+ import { Placeholder } from './placeholder';
6
+ export const ColCombination = defineComponent(AntCol, {
7
+ name: 'ColCombination',
8
+ designerConfig: {
9
+ defaultProps: {
10
+ children: React.createElement(Placeholder, null),
11
+ span: 24
12
+ }
13
+ }
14
+ });
15
+ export const RowCombination = defineComponent(AntRow, {
16
+ name: 'RowCombination',
17
+ designerConfig: {
18
+ defaultProps: {
19
+ children: React.createElement(Placeholder, null)
20
+ }
21
+ }
22
+ });
@@ -1,15 +1 @@
1
- export * from 'antd';
2
- export { Each, Link, Text, When } from '@music163/foundation';
3
- export { Box } from './box';
4
- export { Button, ButtonGroup } from './button';
5
- export * from './formily';
6
- export { InputNumber } from './input-number';
7
- export { Input, TextArea } from './input';
8
- export { Modal } from './modal';
9
- export * from './page';
10
- export * from './placeholder';
11
- export * from './section';
12
- export { Select } from './select';
13
- export { Space } from './space';
14
- export { Typography, Title, Paragraph } from './typography';
15
- export { Columns, Column } from './columns';
1
+ export { Button } from 'antd';
@@ -1,15 +1,19 @@
1
- export * from 'antd';
2
- export { Each, Link, Text, When } from '@music163/foundation';
3
- export { Box } from './box';
4
- export { Button, ButtonGroup } from './button';
5
- export * from './formily';
6
- export { InputNumber } from './input-number';
7
- export { Input, TextArea } from './input';
8
- export { Modal } from './modal';
9
- export * from './page';
10
- export * from './placeholder';
11
- export * from './section';
12
- export { Select } from './select';
13
- export { Space } from './space';
14
- export { Typography, Title, Paragraph } from './typography';
15
- export { Columns, Column } from './columns';
1
+ export { Button } from 'antd';
2
+ // export { Each, Link, Text, When } from '@cuvp1225/foundation';
3
+ // export { Box } from './box';
4
+ // export { Button, ButtonGroup } from './button';
5
+ // export * from './formily';
6
+ // export { InputNumber } from './input-number';
7
+ // export { Input, TextArea } from './input';
8
+ // export { Modal } from './modal';
9
+ // export * from './page';
10
+ // export * from './placeholder';
11
+ // export * from './section';
12
+ // export { Select } from './select';
13
+ // export { Space } from './space';
14
+ // export { Typography, Title, Paragraph } from './typography';
15
+ // export { Columns, Column } from './columns'
16
+ //export { MultiColumns } from './multiColumns'
17
+ //export { Row,Col } from './grid'
18
+ //export { RowCombination,ColCombination } from './gridCombination'
19
+ //export { Form,Fieldset,FormItem,FormFooter } from './form'
@@ -1,6 +1,6 @@
1
1
  import { InputNumberProps } from 'antd';
2
- export declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputNumberProps<string | number> & {
3
- children?: import("react").ReactNode;
2
+ export declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputNumberProps<import("rc-input-number/lib/utils/MiniDecimal").ValueType> & {
3
+ children?: React.ReactNode;
4
4
  } & {
5
- ref?: import("react").Ref<HTMLInputElement> | undefined;
5
+ ref?: React.Ref<HTMLInputElement> | undefined;
6
6
  } & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -7,41 +7,41 @@ import { CloseOutlined } from '@ant-design/icons';
7
7
  import { defineComponent } from '@music163/tango-boot';
8
8
  import { Placeholder } from './placeholder';
9
9
  import { ShadowContainer } from './shadow-container';
10
- const BaseModalWrapper = coral('div', css `
11
- position: relative;
12
- background-color: #fff;
13
- border: 1px solid var(--music-colors-line-normal);
14
- box-shadow: var(--music-shadows-lowDown);
15
-
16
- min-width: 600px;
17
-
18
- .ModalPanelHead {
19
- padding: 12px;
20
- border-bottom: 1px solid var(--music-colors-line-normal);
21
- font-size: 16px;
22
- font-weight: 500;
23
- }
24
-
25
- .ModalPanelClose {
26
- position: absolute;
27
- top: 12px;
28
- right: 12px;
29
- color: var(--music-colors-text-secondary);
30
- }
31
-
32
- .ModalPanelBody {
33
- padding: 12px;
34
- }
35
-
36
- .ModalPanelFooter {
37
- border-top: 1px solid var(--music-colors-line-normal);
38
- padding: 12px;
39
- text-align: right;
40
-
41
- > button:not(:last-child) {
42
- margin-right: 12px;
43
- }
44
- }
10
+ const BaseModalWrapper = coral('div', css `
11
+ position: relative;
12
+ background-color: #fff;
13
+ border: 1px solid var(--music-colors-line-normal);
14
+ box-shadow: var(--music-shadows-lowDown);
15
+
16
+ min-width: 600px;
17
+
18
+ .ModalPanelHead {
19
+ padding: 12px;
20
+ border-bottom: 1px solid var(--music-colors-line-normal);
21
+ font-size: 16px;
22
+ font-weight: 500;
23
+ }
24
+
25
+ .ModalPanelClose {
26
+ position: absolute;
27
+ top: 12px;
28
+ right: 12px;
29
+ color: var(--music-colors-text-secondary);
30
+ }
31
+
32
+ .ModalPanelBody {
33
+ padding: 12px;
34
+ }
35
+
36
+ .ModalPanelFooter {
37
+ border-top: 1px solid var(--music-colors-line-normal);
38
+ padding: 12px;
39
+ text-align: right;
40
+
41
+ > button:not(:last-child) {
42
+ margin-right: 12px;
43
+ }
44
+ }
45
45
  `);
46
46
  function ModalDesigner(_a) {
47
47
  var { title = '弹窗标题', children, onOk, onCancel, footer, cancelText = '取消', okText = '确认', style } = _a, rest = __rest(_a, ["title", "children", "onOk", "onCancel", "footer", "cancelText", "okText", "style"]);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const MultiColumns: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").multiColumnProps> & import("@cuvp1225/foundation").multiColumnProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").multiColumnProps> & {
3
+ as?: import("coral-system/dist/esm/types").As<any>;
4
+ } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { defineComponent } from '@music163/tango-boot';
3
+ import { multicolumns as BaseColumns, } from '@cuvp1225/foundation';
4
+ import { Placeholder } from './placeholder';
5
+ export const MultiColumns = defineComponent(BaseColumns, {
6
+ name: 'MultiColumns',
7
+ designerConfig: {
8
+ defaultProps: {
9
+ children: React.createElement(Placeholder, null),
10
+ columns: 1
11
+ },
12
+ },
13
+ });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BoxProps } from '@music163/foundation';
2
+ import { BoxProps } from '@cuvp1225/foundation';
3
3
  import { PageHeaderProps } from 'antd';
4
4
  export interface PageProps extends Omit<BoxProps, 'title'> {
5
5
  title?: PageHeaderProps['title'];
@@ -1,17 +1,17 @@
1
1
  import { __rest } from "tslib";
2
2
  import React, { useEffect } from 'react';
3
3
  import { css } from 'coral-system';
4
- import { Box } from '@music163/foundation';
4
+ import { Box } from '@cuvp1225/foundation';
5
5
  import { PageHeader } from 'antd';
6
6
  import { defineComponent } from '@music163/tango-boot';
7
- const pageStyle = css `
8
- .td-pageHeader {
9
- background: #fff;
10
- }
11
-
12
- .td-pageContent > .td-section {
13
- margin-bottom: 24px;
14
- }
7
+ const pageStyle = css `
8
+ .td-pageHeader {
9
+ background: #fff;
10
+ }
11
+
12
+ .td-pageContent > .td-section {
13
+ margin-bottom: 24px;
14
+ }
15
15
  `;
16
16
  function View(_a) {
17
17
  var { title, subTitle, headerExtra, headerFooter, children, onMount, onUnmount } = _a, rest = __rest(_a, ["title", "subTitle", "headerExtra", "headerFooter", "children", "onMount", "onUnmount"]);
@@ -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 PlaceholderProps extends BoxProps {
4
4
  /**
5
5
  * 尺寸
@@ -1,26 +1,25 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { css } from 'coral-system';
4
- import { Box } from '@music163/foundation';
4
+ import { Box } from '@cuvp1225/foundation';
5
5
  import { defineComponent } from '@music163/tango-boot';
6
- import { TangoEventButton } from './tango-event-button';
7
- const placeholderStyle = css `
8
- display: flex;
9
- flex-direction: column;
10
- align-items: center;
11
- justify-content: center;
12
- background-color: #efefef;
13
- color: #333;
14
- border: 1px solid #666;
15
- padding-left: 12px;
16
- padding-right: 12px;
17
- user-select: none;
18
- overflow: hidden;
19
- white-space: nowrap;
20
-
21
- & ~ .tango-placeholder {
22
- margin-top: 12px;
23
- }
6
+ const placeholderStyle = css `
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ justify-content: center;
11
+ background-color: #efefef;
12
+ color: #333;
13
+ border: 1px solid #666;
14
+ padding-left: 12px;
15
+ padding-right: 12px;
16
+ user-select: none;
17
+ overflow: hidden;
18
+ white-space: nowrap;
19
+
20
+ & ~ .tango-placeholder {
21
+ margin-top: 12px;
22
+ }
24
23
  `;
25
24
  const sizeMap = {
26
25
  small: '32px',
@@ -28,11 +27,10 @@ const sizeMap = {
28
27
  large: '80px',
29
28
  };
30
29
  function PlaceholderView(_a) {
31
- var { size = 'medium', placeholder = '点击或拖拽组件/区块到这里' } = _a, rest = __rest(_a, ["size", "placeholder"]);
30
+ var { size = 'medium',
31
+ //placeholder = '点击或拖拽组件/区块到这里',
32
+ placeholder = '点击或拖拽组件/区块到这里' } = _a, rest = __rest(_a, ["size", "placeholder"]);
32
33
  const height = sizeMap[size];
33
- return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest),
34
- React.createElement(TangoEventButton, { type: "text", payload: { type: 'addComponent' } },
35
- placeholder,
36
- " ")));
34
+ return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest), placeholder));
37
35
  }
38
36
  export const Placeholder = defineComponent(PlaceholderView);