@teamix/pro 1.5.23 → 1.5.24

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 (106) hide show
  1. package/dist/pro.all.min.css +1 -1
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +13072 -8392
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/dist/pro.min.js.LICENSE.txt +9 -0
  7. package/dist/pro.xconsole.min.css +1 -1
  8. package/es/actions/index.js +5 -3
  9. package/es/actions/index.scss +4 -0
  10. package/es/form/Components/FormItem2/animation.scss +72 -0
  11. package/es/form/Components/FormItem2/grid.scss +173 -0
  12. package/es/form/Components/FormItem2/index.d.ts +41 -0
  13. package/es/form/Components/FormItem2/index.js +286 -0
  14. package/es/form/Components/FormItem2/main.scss +413 -0
  15. package/es/form/Components/FormItem2/scss/variable.scss +118 -0
  16. package/es/form/Components/FormItem2/style.d.ts +1 -0
  17. package/es/form/Components/FormItem2/style.js +1 -0
  18. package/es/form/Components/LightFilter/index.scss +4 -0
  19. package/es/form/Components/__builtins__/empty.d.ts +1 -0
  20. package/es/form/Components/__builtins__/empty.js +51 -0
  21. package/es/form/Components/__builtins__/hooks/index.d.ts +2 -0
  22. package/es/form/Components/__builtins__/hooks/index.js +2 -0
  23. package/es/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
  24. package/es/form/Components/__builtins__/hooks/useClickAway.js +37 -0
  25. package/es/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
  26. package/es/form/Components/__builtins__/hooks/usePrefixCls.js +8 -0
  27. package/es/form/Components/__builtins__/icons.d.ts +20 -0
  28. package/es/form/Components/__builtins__/icons.js +153 -0
  29. package/es/form/Components/__builtins__/index.d.ts +8 -0
  30. package/es/form/Components/__builtins__/index.js +8 -0
  31. package/es/form/Components/__builtins__/loading.d.ts +1 -0
  32. package/es/form/Components/__builtins__/loading.js +41 -0
  33. package/es/form/Components/__builtins__/mapSize.d.ts +1 -0
  34. package/es/form/Components/__builtins__/mapSize.js +13 -0
  35. package/es/form/Components/__builtins__/mapStatus.d.ts +2 -0
  36. package/es/form/Components/__builtins__/mapStatus.js +20 -0
  37. package/es/form/Components/__builtins__/moment.d.ts +2 -0
  38. package/es/form/Components/__builtins__/moment.js +47 -0
  39. package/es/form/Components/__builtins__/pickDataProps.d.ts +1 -0
  40. package/es/form/Components/__builtins__/pickDataProps.js +9 -0
  41. package/es/form/Components/form-layout/index.d.ts +74 -0
  42. package/es/form/Components/form-layout/index.js +71 -0
  43. package/es/form/Components/form-layout/main.scss +0 -0
  44. package/es/form/Components/form-layout/style.d.ts +1 -0
  45. package/es/form/Components/form-layout/style.js +3 -0
  46. package/es/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
  47. package/es/form/Components/form-layout/useResponsiveFormLayout.js +87 -0
  48. package/es/form/Filter/AdvancedFilter.js +1 -1
  49. package/es/form/Filter/index2.js +1 -1
  50. package/es/form/ProForm/index.js +3 -1
  51. package/es/image/index.d.ts +2 -1
  52. package/es/image/index.js +3 -2
  53. package/es/index.d.ts +1 -1
  54. package/es/index.js +1 -1
  55. package/es/table/index.js +4 -4
  56. package/es/xconsole.scss +1 -0
  57. package/lib/actions/index.js +5 -3
  58. package/lib/actions/index.scss +4 -0
  59. package/lib/form/Components/FormItem2/animation.scss +72 -0
  60. package/lib/form/Components/FormItem2/grid.scss +173 -0
  61. package/lib/form/Components/FormItem2/index.d.ts +41 -0
  62. package/lib/form/Components/FormItem2/index.js +299 -0
  63. package/lib/form/Components/FormItem2/main.scss +413 -0
  64. package/lib/form/Components/FormItem2/scss/variable.scss +118 -0
  65. package/lib/form/Components/FormItem2/style.d.ts +1 -0
  66. package/lib/form/Components/FormItem2/style.js +3 -0
  67. package/lib/form/Components/LightFilter/index.scss +4 -0
  68. package/lib/form/Components/__builtins__/empty.d.ts +1 -0
  69. package/lib/form/Components/__builtins__/empty.js +59 -0
  70. package/lib/form/Components/__builtins__/hooks/index.d.ts +2 -0
  71. package/lib/form/Components/__builtins__/hooks/index.js +27 -0
  72. package/lib/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
  73. package/lib/form/Components/__builtins__/hooks/useClickAway.js +44 -0
  74. package/lib/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
  75. package/lib/form/Components/__builtins__/hooks/usePrefixCls.js +15 -0
  76. package/lib/form/Components/__builtins__/icons.d.ts +20 -0
  77. package/lib/form/Components/__builtins__/icons.js +174 -0
  78. package/lib/form/Components/__builtins__/index.d.ts +8 -0
  79. package/lib/form/Components/__builtins__/index.js +93 -0
  80. package/lib/form/Components/__builtins__/loading.d.ts +1 -0
  81. package/lib/form/Components/__builtins__/loading.js +48 -0
  82. package/lib/form/Components/__builtins__/mapSize.d.ts +1 -0
  83. package/lib/form/Components/__builtins__/mapSize.js +20 -0
  84. package/lib/form/Components/__builtins__/mapStatus.d.ts +2 -0
  85. package/lib/form/Components/__builtins__/mapStatus.js +27 -0
  86. package/lib/form/Components/__builtins__/moment.d.ts +2 -0
  87. package/lib/form/Components/__builtins__/moment.js +56 -0
  88. package/lib/form/Components/__builtins__/pickDataProps.d.ts +1 -0
  89. package/lib/form/Components/__builtins__/pickDataProps.js +16 -0
  90. package/lib/form/Components/form-layout/index.d.ts +74 -0
  91. package/lib/form/Components/form-layout/index.js +88 -0
  92. package/lib/form/Components/form-layout/main.scss +0 -0
  93. package/lib/form/Components/form-layout/style.d.ts +1 -0
  94. package/lib/form/Components/form-layout/style.js +3 -0
  95. package/lib/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
  96. package/lib/form/Components/form-layout/useResponsiveFormLayout.js +94 -0
  97. package/lib/form/Filter/AdvancedFilter.js +1 -1
  98. package/lib/form/Filter/index2.js +1 -1
  99. package/lib/form/ProForm/index.js +3 -1
  100. package/lib/image/index.d.ts +2 -1
  101. package/lib/image/index.js +3 -2
  102. package/lib/index.d.ts +1 -1
  103. package/lib/index.js +1 -1
  104. package/lib/table/index.js +4 -4
  105. package/lib/xconsole.scss +1 -0
  106. package/package.json +1 -1
@@ -120,7 +120,7 @@ var AdvancedFilter = /*#__PURE__*/memo(function (props) {
120
120
  component: 'Submit',
121
121
  props: {
122
122
  style: _objectSpread({}, triggerType === 'submit' ? {
123
- marginRight: -8
123
+ marginRight: -4
124
124
  } : {
125
125
  display: 'none'
126
126
  }),
@@ -22,6 +22,7 @@ import useAutoLayout from './useAutoLayout';
22
22
  import useInitialRequest from './useInitialRequest';
23
23
  import validateLocale from '../locales/validate';
24
24
  import './index.scss';
25
+ import FormItem2 from '../Components/FormItem2';
25
26
  registerValidateLocale(validateLocale);
26
27
  var formilyComponents = {
27
28
  FormLayout: FormLayout,
@@ -49,7 +50,8 @@ var formilyComponents = {
49
50
  SelectTable: SelectTable,
50
51
  Affix: Affix,
51
52
  LightFilter: LightFilter,
52
- Text: Text
53
+ Text: Text,
54
+ FormItem2: FormItem2
53
55
  };
54
56
  var ProForm = /*#__PURE__*/memo(function (_ref) {
55
57
  var outerForm = _ref.form,
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare type ProImageProps = {
2
3
  src: {
3
4
  /** 中文亮色图片地址,默认 url */
@@ -16,6 +17,6 @@ export declare type ProImageProps = {
16
17
  theme?: 'dark' | 'light';
17
18
  /** 自定义改造 url 的函数 */
18
19
  transformUrl?: (value: string) => string;
19
- };
20
+ } & React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
20
21
  declare const _default: (props: ProImageProps) => JSX.Element | null;
21
22
  export default _default;
package/es/image/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var _excluded = ["src", "transformUrl"];
1
+ var _excluded = ["src", "transformUrl", "theme"];
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -21,8 +21,9 @@ var localeMap = {
21
21
  export default (function (props) {
22
22
  var src = props.src,
23
23
  transformUrl = props.transformUrl,
24
+ themeProp = props.theme,
24
25
  extra = _objectWithoutProperties(props, _excluded);
25
- var _useState = useState(props.theme || 'light'),
26
+ var _useState = useState(themeProp || 'light'),
26
27
  _useState2 = _slicedToArray(_useState, 2),
27
28
  theme = _useState2[0],
28
29
  setTheme = _useState2[1];
package/es/index.d.ts CHANGED
@@ -30,5 +30,5 @@ export * from './sidebar';
30
30
  export * from './utils';
31
31
  export * from './timeline';
32
32
  export * from './image';
33
- declare const version = "1.5.23";
33
+ declare const version = "1.5.24";
34
34
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
package/es/index.js CHANGED
@@ -37,7 +37,7 @@ export * from './sidebar';
37
37
  export * from './utils';
38
38
  export * from './timeline';
39
39
  export * from './image';
40
- var version = '1.5.23';
40
+ var version = '1.5.24';
41
41
  // By TeamixTest
42
42
  window.postMessage({
43
43
  source: 'teamix-test-devtools',
package/es/table/index.js CHANGED
@@ -191,7 +191,7 @@ var ProTable = function ProTable(props) {
191
191
  _useState10 = _slicedToArray(_useState9, 2),
192
192
  sort = _useState10[0],
193
193
  setSort = _useState10[1];
194
- var _useState11 = useState(!propsDataSource && requestWhenMount && propsShowSkeleton && !!url),
194
+ var _useState11 = useState(!propsDataSource && requestWhenMount && propsShowSkeleton),
195
195
  _useState12 = _slicedToArray(_useState11, 2),
196
196
  showSkeleton = _useState12[0],
197
197
  setShowSkeleton = _useState12[1]; // 首次加载,渲染骨架屏
@@ -677,7 +677,7 @@ var ProTable = function ProTable(props) {
677
677
  // 如果开启了 autoRedirect 当当前页数不为1,并且data为空的时候,重定向到第一页
678
678
  if (autoRedirect) {
679
679
  var _next$data;
680
- if (!(next === null || next === void 0 ? void 0 : (_next$data = next.data) === null || _next$data === void 0 ? void 0 : _next$data.length) && pageSize > 1) {
680
+ if (!(next === null || next === void 0 ? void 0 : (_next$data = next.data) === null || _next$data === void 0 ? void 0 : _next$data.length) && currentPage > 1) {
681
681
  setCurrentPage(1);
682
682
  setShowLoading(true);
683
683
  setTimeout(function () {
@@ -840,7 +840,7 @@ var ProTable = function ProTable(props) {
840
840
  if (success === true) {
841
841
  // 如果开启了 autoRedirect 当当前页数不为1,并且data为空的时候,重定向到第一页
842
842
  if (autoRedirect) {
843
- if (!(dataRes === null || dataRes === void 0 ? void 0 : dataRes.length) && pageSize > 1) {
843
+ if (!(dataRes === null || dataRes === void 0 ? void 0 : dataRes.length) && currentPage > 1) {
844
844
  setCurrentPage(1);
845
845
  setShowLoading(true);
846
846
  setTimeout(function () {
@@ -873,7 +873,7 @@ var ProTable = function ProTable(props) {
873
873
  time = 60 * 1000;
874
874
  }
875
875
  if (autoRefresh && typeof autoRefresh !== 'boolean') {
876
- time = autoRefresh ? autoRefresh(data) : 0;
876
+ time = autoRefresh ? autoRefresh(dataRes) : 0;
877
877
  }
878
878
  if (Number.isInteger(time) && time >= 1000) {
879
879
  autoRefreshTimerRef.current = setTimeout(function () {
package/es/xconsole.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  .theme-xconsole {
2
+ --tab-item-padding-lr-size-m: var(--s-4, 16px);
2
3
  --color-event-p9: rgba(121, 197, 224, 1);
3
4
  --color-event-p10: rgba(175, 222, 240, 1);
4
5
  --color-event-p8: rgba(73, 173, 209, 1);
@@ -147,6 +147,7 @@ var buttonContent = function buttonContent(content, iconType, iconSize, context)
147
147
  return renderedContent;
148
148
  }
149
149
  return [/*#__PURE__*/_react.default.createElement(_icon.default, {
150
+ className: 'teamix-pro-action-prefix-icon',
150
151
  type: iconType,
151
152
  size: iconSize,
152
153
  key: "teamix-button-icon"
@@ -156,7 +157,7 @@ var ProActionButton = function ProActionButton(props) {
156
157
  var config = props.config,
157
158
  icon = props.icon,
158
159
  _props$iconSize = props.iconSize,
159
- iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
160
+ iconSize = _props$iconSize === void 0 ? 'small' : _props$iconSize,
160
161
  _props$type = props.type,
161
162
  type = _props$type === void 0 ? 'primary' : _props$type,
162
163
  context = props.context,
@@ -238,7 +239,7 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
238
239
  if (dataTeamixSpm) {
239
240
  buttonProps['data-teamix-spm'] = dataTeamixSpm;
240
241
  }
241
- var content = buttonContent(children, icon, undefined, context);
242
+ var content = buttonContent(children, icon, 'small', context);
242
243
  var baseToolTipProps = _objectSpread({
243
244
  triggerType: 'hover',
244
245
  align: 't',
@@ -286,7 +287,8 @@ function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
286
287
  }
287
288
  var ProActionMenuButton = function ProActionMenuButton(props) {
288
289
  var icon = props.icon,
289
- iconSize = props.iconSize,
290
+ _props$iconSize2 = props.iconSize,
291
+ iconSize = _props$iconSize2 === void 0 ? 'small' : _props$iconSize2,
290
292
  label = props.label,
291
293
  actions = props.actions,
292
294
  children = props.children,
@@ -139,3 +139,7 @@
139
139
  background: var(--drawer-bg);
140
140
  }
141
141
  }
142
+
143
+ .teamix-pro-action-prefix-icon {
144
+ margin-right: 4px
145
+ }
@@ -0,0 +1,72 @@
1
+ @-webkit-keyframes antShowHelpIn {
2
+ 0% {
3
+ -webkit-transform: translateY(-5px);
4
+ transform: translateY(-5px);
5
+ opacity: 0;
6
+ }
7
+
8
+ to {
9
+ -webkit-transform: translateY(0);
10
+ transform: translateY(0);
11
+ opacity: 1;
12
+ }
13
+ }
14
+
15
+ .#{$form-item-cls}-help-appear,
16
+ .#{$form-item-cls}-help-enter {
17
+ -webkit-animation-duration: 0.3s;
18
+ animation-duration: 0.3s;
19
+ -webkit-animation-fill-mode: both;
20
+ animation-fill-mode: both;
21
+ -webkit-animation-play-state: paused;
22
+ animation-play-state: paused;
23
+ }
24
+
25
+ .#{$form-item-cls}-help-appear.#{$form-item-cls}-help-appear-active,
26
+ .#{$form-item-cls}-help-enter.#{$form-item-cls}-help-enter-active {
27
+ -webkit-animation-name: antShowHelpIn;
28
+ animation-name: antShowHelpIn;
29
+ -webkit-animation-play-state: running;
30
+ animation-play-state: running;
31
+ }
32
+
33
+ .#{$form-item-cls}-help-appear,
34
+ .#{$form-item-cls}-help-enter {
35
+ opacity: 0;
36
+ }
37
+
38
+ .#{$form-item-cls}-help-appear,
39
+ .#{$form-item-cls}-help-enter {
40
+ -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
41
+ animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
42
+ }
43
+
44
+ @keyframes antShowHelpIn {
45
+ 0% {
46
+ -webkit-transform: translateY(-5px);
47
+ transform: translateY(-5px);
48
+ opacity: 0;
49
+ }
50
+
51
+ to {
52
+ -webkit-transform: translateY(0);
53
+ transform: translateY(0);
54
+ opacity: 1;
55
+ }
56
+ }
57
+
58
+ @-webkit-keyframes antShowHelpOut {
59
+ to {
60
+ -webkit-transform: translateY(-5px);
61
+ transform: translateY(-5px);
62
+ opacity: 0;
63
+ }
64
+ }
65
+
66
+ @keyframes antShowHelpOut {
67
+ to {
68
+ -webkit-transform: translateY(-5px);
69
+ transform: translateY(-5px);
70
+ opacity: 0;
71
+ }
72
+ }
@@ -0,0 +1,173 @@
1
+ .#{$form-item-cls} {
2
+ .#{$form-item-cls}-item-col-24 {
3
+ -webkit-box-flex: 0;
4
+ -ms-flex: 0 0 100%;
5
+ flex: 0 0 100%;
6
+ max-width: 100%;
7
+ }
8
+
9
+ .#{$form-item-cls}-item-col-23 {
10
+ -webkit-box-flex: 0;
11
+ -ms-flex: 0 0 95.83333333%;
12
+ flex: 0 0 95.83333333%;
13
+ max-width: 95.83333333%;
14
+ }
15
+
16
+ .#{$form-item-cls}-item-col-22 {
17
+ -webkit-box-flex: 0;
18
+ -ms-flex: 0 0 91.66666667%;
19
+ flex: 0 0 91.66666667%;
20
+ max-width: 91.66666667%;
21
+ }
22
+
23
+ .#{$form-item-cls}-item-col-21 {
24
+ -webkit-box-flex: 0;
25
+ -ms-flex: 0 0 87.5%;
26
+ flex: 0 0 87.5%;
27
+ max-width: 87.5%;
28
+ }
29
+
30
+ .#{$form-item-cls}-item-col-20 {
31
+ -webkit-box-flex: 0;
32
+ -ms-flex: 0 0 83.33333333%;
33
+ flex: 0 0 83.33333333%;
34
+ max-width: 83.33333333%;
35
+ }
36
+
37
+ .#{$form-item-cls}-item-col-19 {
38
+ -webkit-box-flex: 0;
39
+ -ms-flex: 0 0 79.16666667%;
40
+ flex: 0 0 79.16666667%;
41
+ max-width: 79.16666667%;
42
+ }
43
+
44
+ .#{$form-item-cls}-item-col-18 {
45
+ -webkit-box-flex: 0;
46
+ -ms-flex: 0 0 75%;
47
+ flex: 0 0 75%;
48
+ max-width: 75%;
49
+ }
50
+
51
+ .#{$form-item-cls}-item-col-17 {
52
+ -webkit-box-flex: 0;
53
+ -ms-flex: 0 0 70.83333333%;
54
+ flex: 0 0 70.83333333%;
55
+ max-width: 70.83333333%;
56
+ }
57
+
58
+ .#{$form-item-cls}-item-col-16 {
59
+ -webkit-box-flex: 0;
60
+ -ms-flex: 0 0 66.66666667%;
61
+ flex: 0 0 66.66666667%;
62
+ max-width: 66.66666667%;
63
+ }
64
+
65
+ .#{$form-item-cls}-item-col-15 {
66
+ -webkit-box-flex: 0;
67
+ -ms-flex: 0 0 62.5%;
68
+ flex: 0 0 62.5%;
69
+ max-width: 62.5%;
70
+ }
71
+
72
+ .#{$form-item-cls}-item-col-14 {
73
+ -webkit-box-flex: 0;
74
+ -ms-flex: 0 0 58.33333333%;
75
+ flex: 0 0 58.33333333%;
76
+ max-width: 58.33333333%;
77
+ }
78
+
79
+ .#{$form-item-cls}-item-col-13 {
80
+ -webkit-box-flex: 0;
81
+ -ms-flex: 0 0 54.16666667%;
82
+ flex: 0 0 54.16666667%;
83
+ max-width: 54.16666667%;
84
+ }
85
+
86
+ .#{$form-item-cls}-item-col-12 {
87
+ -webkit-box-flex: 0;
88
+ -ms-flex: 0 0 50%;
89
+ flex: 0 0 50%;
90
+ max-width: 50%;
91
+ }
92
+
93
+ .#{$form-item-cls}-item-col-11 {
94
+ -webkit-box-flex: 0;
95
+ -ms-flex: 0 0 45.83333333%;
96
+ flex: 0 0 45.83333333%;
97
+ max-width: 45.83333333%;
98
+ }
99
+
100
+ .#{$form-item-cls}-item-col-10 {
101
+ -webkit-box-flex: 0;
102
+ -ms-flex: 0 0 41.66666667%;
103
+ flex: 0 0 41.66666667%;
104
+ max-width: 41.66666667%;
105
+ }
106
+
107
+ .#{$form-item-cls}-item-col-9 {
108
+ -webkit-box-flex: 0;
109
+ -ms-flex: 0 0 37.5%;
110
+ flex: 0 0 37.5%;
111
+ max-width: 37.5%;
112
+ }
113
+
114
+ .#{$form-item-cls}-item-col-8 {
115
+ -webkit-box-flex: 0;
116
+ -ms-flex: 0 0 33.33333333%;
117
+ flex: 0 0 33.33333333%;
118
+ max-width: 33.33333333%;
119
+ }
120
+
121
+ .#{$form-item-cls}-item-col-7 {
122
+ -webkit-box-flex: 0;
123
+ -ms-flex: 0 0 29.16666667%;
124
+ flex: 0 0 29.16666667%;
125
+ max-width: 29.16666667%;
126
+ }
127
+
128
+ .#{$form-item-cls}-item-col-6 {
129
+ -webkit-box-flex: 0;
130
+ -ms-flex: 0 0 25%;
131
+ flex: 0 0 25%;
132
+ max-width: 25%;
133
+ }
134
+
135
+ .#{$form-item-cls}-item-col-5 {
136
+ -webkit-box-flex: 0;
137
+ -ms-flex: 0 0 20.83333333%;
138
+ flex: 0 0 20.83333333%;
139
+ max-width: 20.83333333%;
140
+ }
141
+
142
+ .#{$form-item-cls}-item-col-4 {
143
+ -webkit-box-flex: 0;
144
+ -ms-flex: 0 0 16.66666667%;
145
+ flex: 0 0 16.66666667%;
146
+ max-width: 16.66666667%;
147
+ }
148
+
149
+ .#{$form-item-cls}-item-col-3 {
150
+ -webkit-box-flex: 0;
151
+ -ms-flex: 0 0 12.5%;
152
+ flex: 0 0 12.5%;
153
+ max-width: 12.5%;
154
+ }
155
+
156
+ .#{$form-item-cls}-item-col-2 {
157
+ -webkit-box-flex: 0;
158
+ -ms-flex: 0 0 8.33333333%;
159
+ flex: 0 0 8.33333333%;
160
+ max-width: 8.33333333%;
161
+ }
162
+
163
+ .#{$form-item-cls}-item-col-1 {
164
+ -webkit-box-flex: 0;
165
+ -ms-flex: 0 0 4.16666667%;
166
+ flex: 0 0 4.16666667%;
167
+ max-width: 4.16666667%;
168
+ }
169
+
170
+ .#{$form-item-cls}-item-col-0 {
171
+ display: none;
172
+ }
173
+ }
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ export interface IFormItemProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ prefix?: string;
6
+ label?: React.ReactNode;
7
+ colon?: boolean;
8
+ layout?: 'vertical' | 'horizontal' | 'inline';
9
+ tooltip?: React.ReactNode;
10
+ tooltipLayout?: 'icon' | 'text';
11
+ tooltipIcon?: React.ReactNode;
12
+ labelStyle?: React.CSSProperties;
13
+ labelAlign?: 'left' | 'right';
14
+ labelWrap?: boolean;
15
+ labelWidth?: number | string;
16
+ wrapperWidth?: number | string;
17
+ labelCol?: number;
18
+ wrapperCol?: number;
19
+ wrapperAlign?: 'left' | 'right';
20
+ wrapperWrap?: boolean;
21
+ wrapperStyle?: React.CSSProperties;
22
+ fullness?: boolean;
23
+ addonBefore?: React.ReactNode;
24
+ addonAfter?: React.ReactNode;
25
+ size?: 'small' | 'default' | 'large';
26
+ inset?: boolean;
27
+ extra?: React.ReactNode;
28
+ feedbackText?: React.ReactNode;
29
+ feedbackLayout?: 'loose' | 'terse' | 'popover' | 'none' | 'hover-popover' | (string & {});
30
+ feedbackStatus?: 'error' | 'warning' | 'success' | 'pending' | (string & {});
31
+ feedbackIcon?: React.ReactNode;
32
+ asterisk?: boolean;
33
+ gridSpan?: number;
34
+ bordered?: boolean;
35
+ }
36
+ declare type ComposeFormItem = React.FC<React.PropsWithChildren<IFormItemProps>> & {
37
+ BaseItem?: React.FC<React.PropsWithChildren<IFormItemProps>>;
38
+ };
39
+ export declare const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>>;
40
+ export declare const FormItem2: ComposeFormItem;
41
+ export default FormItem2;