@teamix/pro 1.6.0-beta.5 → 1.6.0-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.all.min.css +1 -1
- package/dist/pro.css +1 -1
- package/dist/pro.js +15860 -11211
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +9 -0
- package/dist/pro.xconsole.min.css +1 -1
- package/es/actions/index.d.ts +6 -6
- package/es/actions/index.js +18 -16
- package/es/actions/index.scss +4 -0
- package/es/form/Components/FormItem2/animation.scss +72 -0
- package/es/form/Components/FormItem2/grid.scss +173 -0
- package/es/form/Components/FormItem2/index.d.ts +41 -0
- package/es/form/Components/FormItem2/index.js +286 -0
- package/es/form/Components/FormItem2/main.scss +413 -0
- package/es/form/Components/FormItem2/scss/variable.scss +118 -0
- package/es/form/Components/FormItem2/style.d.ts +1 -0
- package/es/form/Components/FormItem2/style.js +1 -0
- package/es/form/Components/LightFilter/index.scss +4 -0
- package/es/form/Components/__builtins__/empty.d.ts +1 -0
- package/es/form/Components/__builtins__/empty.js +51 -0
- package/es/form/Components/__builtins__/hooks/index.d.ts +2 -0
- package/es/form/Components/__builtins__/hooks/index.js +2 -0
- package/es/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
- package/es/form/Components/__builtins__/hooks/useClickAway.js +37 -0
- package/es/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
- package/es/form/Components/__builtins__/hooks/usePrefixCls.js +8 -0
- package/es/form/Components/__builtins__/icons.d.ts +20 -0
- package/es/form/Components/__builtins__/icons.js +153 -0
- package/es/form/Components/__builtins__/index.d.ts +8 -0
- package/es/form/Components/__builtins__/index.js +8 -0
- package/es/form/Components/__builtins__/loading.d.ts +1 -0
- package/es/form/Components/__builtins__/loading.js +41 -0
- package/es/form/Components/__builtins__/mapSize.d.ts +1 -0
- package/es/form/Components/__builtins__/mapSize.js +13 -0
- package/es/form/Components/__builtins__/mapStatus.d.ts +2 -0
- package/es/form/Components/__builtins__/mapStatus.js +20 -0
- package/es/form/Components/__builtins__/moment.d.ts +2 -0
- package/es/form/Components/__builtins__/moment.js +47 -0
- package/es/form/Components/__builtins__/pickDataProps.d.ts +1 -0
- package/es/form/Components/__builtins__/pickDataProps.js +9 -0
- package/es/form/Components/form-layout/index.d.ts +74 -0
- package/es/form/Components/form-layout/index.js +71 -0
- package/es/form/Components/form-layout/main.scss +0 -0
- package/es/form/Components/form-layout/style.d.ts +1 -0
- package/es/form/Components/form-layout/style.js +3 -0
- package/es/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
- package/es/form/Components/form-layout/useResponsiveFormLayout.js +87 -0
- package/es/form/Filter/AdvancedFilter.js +2 -2
- package/es/form/Filter/index2.js +3 -3
- package/es/form/ProForm/index.js +14 -12
- package/es/info/utils/utils.d.ts +1 -1
- package/es/sidebar/utils/index.d.ts +2 -2
- package/es/table/index.d.ts +1 -1
- package/es/table/index.js +17 -17
- package/es/utils/aspect.js +5 -2
- package/es/xconsole.scss +1 -0
- package/lib/actions/index.d.ts +6 -6
- package/lib/actions/index.js +16 -14
- package/lib/actions/index.scss +4 -0
- package/lib/form/Components/FormItem2/animation.scss +72 -0
- package/lib/form/Components/FormItem2/grid.scss +173 -0
- package/lib/form/Components/FormItem2/index.d.ts +41 -0
- package/lib/form/Components/FormItem2/index.js +299 -0
- package/lib/form/Components/FormItem2/main.scss +413 -0
- package/lib/form/Components/FormItem2/scss/variable.scss +118 -0
- package/lib/form/Components/FormItem2/style.d.ts +1 -0
- package/lib/form/Components/FormItem2/style.js +3 -0
- package/lib/form/Components/LightFilter/index.scss +4 -0
- package/lib/form/Components/__builtins__/empty.d.ts +1 -0
- package/lib/form/Components/__builtins__/empty.js +59 -0
- package/lib/form/Components/__builtins__/hooks/index.d.ts +2 -0
- package/lib/form/Components/__builtins__/hooks/index.js +27 -0
- package/lib/form/Components/__builtins__/hooks/useClickAway.d.ts +5 -0
- package/lib/form/Components/__builtins__/hooks/useClickAway.js +44 -0
- package/lib/form/Components/__builtins__/hooks/usePrefixCls.d.ts +3 -0
- package/lib/form/Components/__builtins__/hooks/usePrefixCls.js +15 -0
- package/lib/form/Components/__builtins__/icons.d.ts +20 -0
- package/lib/form/Components/__builtins__/icons.js +174 -0
- package/lib/form/Components/__builtins__/index.d.ts +8 -0
- package/lib/form/Components/__builtins__/index.js +93 -0
- package/lib/form/Components/__builtins__/loading.d.ts +1 -0
- package/lib/form/Components/__builtins__/loading.js +48 -0
- package/lib/form/Components/__builtins__/mapSize.d.ts +1 -0
- package/lib/form/Components/__builtins__/mapSize.js +20 -0
- package/lib/form/Components/__builtins__/mapStatus.d.ts +2 -0
- package/lib/form/Components/__builtins__/mapStatus.js +27 -0
- package/lib/form/Components/__builtins__/moment.d.ts +2 -0
- package/lib/form/Components/__builtins__/moment.js +56 -0
- package/lib/form/Components/__builtins__/pickDataProps.d.ts +1 -0
- package/lib/form/Components/__builtins__/pickDataProps.js +16 -0
- package/lib/form/Components/form-layout/index.d.ts +74 -0
- package/lib/form/Components/form-layout/index.js +88 -0
- package/lib/form/Components/form-layout/main.scss +0 -0
- package/lib/form/Components/form-layout/style.d.ts +1 -0
- package/lib/form/Components/form-layout/style.js +3 -0
- package/lib/form/Components/form-layout/useResponsiveFormLayout.d.ts +18 -0
- package/lib/form/Components/form-layout/useResponsiveFormLayout.js +94 -0
- package/lib/form/Filter/AdvancedFilter.js +2 -2
- package/lib/form/Filter/index2.js +3 -3
- package/lib/form/ProForm/index.js +13 -11
- package/lib/info/utils/utils.d.ts +1 -1
- package/lib/sidebar/utils/index.d.ts +2 -2
- package/lib/table/index.d.ts +1 -1
- package/lib/table/index.js +16 -16
- package/lib/utils/aspect.js +5 -2
- package/lib/xconsole.scss +1 -0
- package/package.json +1 -1
package/es/actions/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import
|
1
|
+
import { TooltipProps } from '@alicloudfe/components/types/balloon';
|
2
2
|
import { ButtonProps } from '@alicloudfe/components/types/button';
|
3
3
|
import { MenuButtonProps } from '@alicloudfe/components/types/menu-button';
|
4
|
-
import {
|
5
|
-
import { LinkAction } from './link';
|
6
|
-
import { RequestAction } from './request';
|
4
|
+
import React, { ReactNode } from 'react';
|
7
5
|
import { DialogAction } from './dialog';
|
8
6
|
import { DialogFormAction } from './dialog-form';
|
9
|
-
import { DialogTableAction } from './dialog-table';
|
10
7
|
import { DialogInfoAction } from './dialog-info';
|
11
|
-
import {
|
8
|
+
import { DialogTableAction } from './dialog-table';
|
12
9
|
import './index.scss';
|
10
|
+
import { LinkAction } from './link';
|
11
|
+
import { PopConfirmAction } from './pop-confirm';
|
12
|
+
import { RequestAction } from './request';
|
13
13
|
export declare type ProActionConfig = ({
|
14
14
|
type: 'dialog-form' | 'drawer-form';
|
15
15
|
} & DialogFormAction) | ({
|
package/es/actions/index.js
CHANGED
@@ -17,28 +17,28 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
17
17
|
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; }
|
18
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
19
19
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
20
|
-
import
|
21
|
-
import cls from 'classnames';
|
22
|
-
import { Button, MenuButton, Menu, Divider, Balloon } from '@alicloudfe/components';
|
20
|
+
import { Balloon, Button, Divider, Menu, MenuButton } from '@alicloudfe/components';
|
23
21
|
import Icon from '@teamix/icon';
|
24
|
-
import {
|
25
|
-
import
|
26
|
-
import
|
27
|
-
import { useDialogAction } from './dialog';
|
22
|
+
import { getMessage, getTargetValue, usePrefixCls } from '@teamix/utils';
|
23
|
+
import cls from 'classnames';
|
24
|
+
import React from 'react';
|
28
25
|
import { useConfirmAction } from './confirm';
|
29
26
|
import { useDangerConfirmAction } from './danger-confirm';
|
30
|
-
import {
|
31
|
-
import {
|
27
|
+
import { useDangerPopConfirmAction } from './danger-pop-confirm';
|
28
|
+
import { useDialogAction } from './dialog';
|
32
29
|
import { useDialogFormAction } from './dialog-form';
|
33
|
-
import { useDialogTableAction } from './dialog-table';
|
34
30
|
import { useDialogInfoAction } from './dialog-info';
|
31
|
+
import { useDialogTableAction } from './dialog-table';
|
35
32
|
import { useDrawerAction } from './drawer';
|
36
33
|
import { useDrawerFormAction } from './drawer-form';
|
37
|
-
import { useDrawerTableAction } from './drawer-table';
|
38
34
|
import { useDrawerInfoAction } from './drawer-info';
|
39
|
-
import {
|
40
|
-
import {
|
35
|
+
import { useDrawerTableAction } from './drawer-table';
|
36
|
+
import { useErrorAction } from './error';
|
41
37
|
import './index.scss';
|
38
|
+
import { useLinkAction } from './link';
|
39
|
+
import { useNoticeAction } from './notice';
|
40
|
+
import { usePopConfirmAction } from './pop-confirm';
|
41
|
+
import { useRequestAction } from './request';
|
42
42
|
var RegistedActions = new Map();
|
43
43
|
export function registerActionHandler(id, extendActionId, defaultConfig) {
|
44
44
|
RegistedActions.set(id, {
|
@@ -114,6 +114,7 @@ var buttonContent = function buttonContent(content, iconType, iconSize, context)
|
|
114
114
|
return renderedContent;
|
115
115
|
}
|
116
116
|
return [/*#__PURE__*/React.createElement(Icon, {
|
117
|
+
className: 'teamix-pro-action-prefix-icon',
|
117
118
|
type: iconType,
|
118
119
|
size: iconSize,
|
119
120
|
key: "teamix-button-icon"
|
@@ -123,7 +124,7 @@ export var ProActionButton = function ProActionButton(props) {
|
|
123
124
|
var config = props.config,
|
124
125
|
icon = props.icon,
|
125
126
|
_props$iconSize = props.iconSize,
|
126
|
-
iconSize = _props$iconSize === void 0 ? '
|
127
|
+
iconSize = _props$iconSize === void 0 ? 'small' : _props$iconSize,
|
127
128
|
_props$type = props.type,
|
128
129
|
type = _props$type === void 0 ? 'primary' : _props$type,
|
129
130
|
context = props.context,
|
@@ -204,7 +205,7 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
204
205
|
if (dataTeamixSpm) {
|
205
206
|
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
206
207
|
}
|
207
|
-
var content = buttonContent(children, icon,
|
208
|
+
var content = buttonContent(children, icon, 'small', context);
|
208
209
|
var baseToolTipProps = _objectSpread({
|
209
210
|
triggerType: 'hover',
|
210
211
|
align: 't',
|
@@ -252,7 +253,8 @@ function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
|
|
252
253
|
}
|
253
254
|
export var ProActionMenuButton = function ProActionMenuButton(props) {
|
254
255
|
var icon = props.icon,
|
255
|
-
|
256
|
+
_props$iconSize2 = props.iconSize,
|
257
|
+
iconSize = _props$iconSize2 === void 0 ? 'small' : _props$iconSize2,
|
256
258
|
label = props.label,
|
257
259
|
actions = props.actions,
|
258
260
|
children = props.children,
|
package/es/actions/index.scss
CHANGED
@@ -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;
|