@teamix/pro 1.1.39 → 1.1.40
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.
- package/README.md +14 -10
- package/dist/pro.css +1 -1
- package/dist/pro.js +2214 -4073
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/dialog-form.d.ts +5 -5
- package/es/actions/dialog-form.js +1 -5
- package/es/actions/dialog.d.ts +6 -3
- package/es/actions/dialog.js +12 -5
- package/es/actions/index.d.ts +54 -47
- package/es/actions/index.js +28 -22
- package/es/actions/index.scss +17 -2
- package/es/card/index.d.ts +17 -5
- package/es/card/index.js +16 -11
- package/es/form/Components/ProField/index.d.ts +1 -78
- package/es/form/Components/ProField/index.js +34 -40
- package/es/form/Filter/index.js +2 -2
- package/es/form/ProForm/index.d.ts +2 -2
- package/es/form/ProForm/index.js +1 -6
- package/es/form/ProForm/index.scss +19 -1
- package/es/form/ProForm/useFieldRequest.d.ts +5 -0
- package/es/form/ProForm/useFieldRequest.js +26 -0
- package/es/form/SchemaForm/adapterDecorator.js +2 -2
- package/es/form/SchemaForm/index.d.ts +2 -2
- package/es/form/SchemaForm/index.js +12 -21
- package/es/form/SchemaForm/initializeArrayCards.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayItems.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayTable.d.ts +2 -2
- package/es/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/es/form/SchemaForm/initializeDataSource.js +2 -2
- package/es/form/SchemaForm/initializeFormButton.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormStep.d.ts +3 -3
- package/es/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/es/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/es/form/SchemaForm/initializeRequest.js +2 -2
- package/es/form/SchemaForm/initializeRules.js +44 -16
- package/es/form/SchemaForm/reactions.d.ts +5 -5
- package/es/form/SchemaForm/reactions.js +20 -18
- package/es/form/fieldTypeMap.d.ts +4 -0
- package/es/form/fieldTypeMap.js +41 -0
- package/es/form/index.d.ts +92 -4
- package/es/form/index.js +18 -5
- package/es/form/schemaNameMap.js +3 -0
- package/es/form/typing.d.ts +44 -21
- package/es/form/utils.d.ts +3 -1
- package/es/form/utils.js +38 -1
- package/es/form/warning.d.ts +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/components/InfoGroup/index.js +73 -15
- package/es/info/components/InfoGroup/index.scss +45 -3
- package/es/info/components/InfoValueItem/index.js +6 -4
- package/es/info/components/InfoValueItem/index.scss +5 -1
- package/es/info/components/ProInfoItem/index.js +3 -3
- package/es/info/components/ProInfoItem/index.scss +1 -0
- package/es/info/components/baseInfo/index.d.ts +2 -3
- package/es/info/components/headerInfo/index.d.ts +2 -3
- package/es/info/components/tableInfo/index.d.ts +2 -3
- package/es/info/components/tableInfo/index.js +2 -2
- package/es/info/index.js +52 -49
- package/es/info/typing.d.ts +52 -36
- package/es/info/utils/index.d.ts +2 -2
- package/es/info/utils/utils.d.ts +1 -1
- package/es/nocode/pages/renderer.js +2 -2
- package/es/page-header/index.d.ts +34 -21
- package/es/page-header/index.js +39 -30
- package/es/page-header/index.scss +2 -1
- package/es/table/components/EmptyContent/index.d.ts +2 -0
- package/es/table/components/EmptyContent/index.js +11 -0
- package/es/table/components/Filter/index.d.ts +2 -2
- package/es/table/components/Filter/index.js +16 -8
- package/es/table/components/Layout/index.js +2 -2
- package/es/table/components/QuickAction/index.d.ts +2 -2
- package/es/table/components/QuickAction/index.js +3 -3
- package/es/table/components/ToolBar/Fullscreen.js +1 -0
- package/es/table/index.js +76 -14
- package/es/table/index.scss +4 -0
- package/es/table/typing.d.ts +27 -14
- package/es/table/utils/columnRender.d.ts +3 -3
- package/es/table/utils/columnRender.js +2 -2
- package/es/table/utils/genProColumnToColumn.d.ts +2 -2
- package/es/table/utils/genProColumnToColumn.js +1 -1
- package/es/table/utils/index.js +33 -11
- package/es/templates/List/index.d.ts +2 -2
- package/es/utils/message.d.ts +3 -0
- package/es/utils/message.js +19 -0
- package/lib/actions/dialog-form.d.ts +5 -5
- package/lib/actions/dialog-form.js +1 -5
- package/lib/actions/dialog.d.ts +6 -3
- package/lib/actions/dialog.js +13 -5
- package/lib/actions/index.d.ts +54 -47
- package/lib/actions/index.js +37 -30
- package/lib/actions/index.scss +17 -2
- package/lib/card/index.d.ts +17 -5
- package/lib/card/index.js +18 -12
- package/lib/form/Components/ProField/index.d.ts +1 -78
- package/lib/form/Components/ProField/index.js +32 -38
- package/lib/form/Filter/index.js +2 -2
- package/lib/form/ProForm/index.d.ts +2 -2
- package/lib/form/ProForm/index.js +1 -7
- package/lib/form/ProForm/index.scss +19 -1
- package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
- package/lib/form/ProForm/useFieldRequest.js +37 -0
- package/lib/form/SchemaForm/adapterDecorator.js +4 -2
- package/lib/form/SchemaForm/index.d.ts +2 -2
- package/lib/form/SchemaForm/index.js +11 -22
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +2 -2
- package/lib/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/lib/form/SchemaForm/initializeDataSource.js +2 -2
- package/lib/form/SchemaForm/initializeFormButton.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -3
- package/lib/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRequest.js +1 -1
- package/lib/form/SchemaForm/initializeRules.js +41 -13
- package/lib/form/SchemaForm/reactions.d.ts +5 -5
- package/lib/form/SchemaForm/reactions.js +22 -20
- package/lib/form/fieldTypeMap.d.ts +4 -0
- package/lib/form/fieldTypeMap.js +48 -0
- package/lib/form/index.d.ts +92 -4
- package/lib/form/index.js +17 -31
- package/lib/form/schemaNameMap.js +3 -0
- package/lib/form/typing.d.ts +44 -21
- package/lib/form/utils.d.ts +3 -1
- package/lib/form/utils.js +43 -1
- package/lib/form/warning.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/components/InfoGroup/index.js +76 -14
- package/lib/info/components/InfoGroup/index.scss +45 -3
- package/lib/info/components/InfoValueItem/index.js +5 -3
- package/lib/info/components/InfoValueItem/index.scss +5 -1
- package/lib/info/components/ProInfoItem/index.js +2 -2
- package/lib/info/components/ProInfoItem/index.scss +1 -0
- package/lib/info/components/baseInfo/index.d.ts +2 -3
- package/lib/info/components/headerInfo/index.d.ts +2 -3
- package/lib/info/components/tableInfo/index.d.ts +2 -3
- package/lib/info/components/tableInfo/index.js +1 -1
- package/lib/info/index.js +51 -48
- package/lib/info/typing.d.ts +52 -36
- package/lib/info/utils/index.d.ts +2 -2
- package/lib/info/utils/utils.d.ts +1 -1
- package/lib/nocode/pages/renderer.js +1 -1
- package/lib/page-header/index.d.ts +34 -21
- package/lib/page-header/index.js +37 -28
- package/lib/page-header/index.scss +2 -1
- package/lib/table/components/EmptyContent/index.d.ts +2 -0
- package/lib/table/components/EmptyContent/index.js +25 -0
- package/lib/table/components/Filter/index.d.ts +2 -2
- package/lib/table/components/Filter/index.js +16 -8
- package/lib/table/components/Layout/index.js +1 -1
- package/lib/table/components/QuickAction/index.d.ts +2 -2
- package/lib/table/components/QuickAction/index.js +1 -1
- package/lib/table/components/ToolBar/Fullscreen.js +1 -0
- package/lib/table/index.js +77 -14
- package/lib/table/index.scss +4 -0
- package/lib/table/typing.d.ts +27 -14
- package/lib/table/utils/columnRender.d.ts +3 -3
- package/lib/table/utils/columnRender.js +1 -1
- package/lib/table/utils/genProColumnToColumn.d.ts +2 -2
- package/lib/table/utils/genProColumnToColumn.js +2 -2
- package/lib/table/utils/index.js +33 -11
- package/lib/templates/List/index.d.ts +2 -2
- package/lib/utils/message.d.ts +3 -0
- package/lib/utils/message.js +32 -0
- package/package.json +4 -4
- package/es/form/Components/Search/index.d.ts +0 -11
- package/es/form/Components/Search/index.js +0 -89
- package/es/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayIcon.js +0 -62
- package/es/form/SchemaForm/initializeProField.d.ts +0 -5
- package/es/form/SchemaForm/initializeProField.js +0 -70
- package/es/info/utils/useInfoRequest.d.ts +0 -14
- package/es/info/utils/useInfoRequest.js +0 -76
- package/lib/form/Components/Search/index.d.ts +0 -11
- package/lib/form/Components/Search/index.js +0 -103
- package/lib/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayIcon.js +0 -73
- package/lib/form/SchemaForm/initializeProField.d.ts +0 -5
- package/lib/form/SchemaForm/initializeProField.js +0 -77
- package/lib/info/utils/useInfoRequest.d.ts +0 -14
- package/lib/info/utils/useInfoRequest.js +0 -85
package/lib/info/index.js
CHANGED
@@ -41,7 +41,7 @@ Object.keys(_typing).forEach(function (key) {
|
|
41
41
|
}
|
42
42
|
});
|
43
43
|
});
|
44
|
-
var _excluded = ["type", "url", "method", "formatResult", "params", "actionRef", "header", "onError", "className", "style", "columns", "layout", "dataSource", "loading", "extra"];
|
44
|
+
var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra"];
|
45
45
|
|
46
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
47
47
|
|
@@ -72,17 +72,23 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
72
72
|
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; }
|
73
73
|
|
74
74
|
var ProInfo = function ProInfo(props) {
|
75
|
+
var _ref;
|
76
|
+
|
75
77
|
var _props$type = props.type,
|
76
78
|
type = _props$type === void 0 ? 'base' : _props$type,
|
77
79
|
url = props.url,
|
78
80
|
_props$method = props.method,
|
79
81
|
method = _props$method === void 0 ? 'post' : _props$method,
|
80
82
|
formatResult = props.formatResult,
|
83
|
+
formatParams = props.formatParams,
|
81
84
|
params = props.params,
|
82
85
|
propsActionRef = props.actionRef,
|
83
86
|
_props$header = props.header,
|
84
87
|
header = _props$header === void 0 ? {} : _props$header,
|
85
|
-
|
88
|
+
onSuccess = props.onSuccess,
|
89
|
+
onError = props.onError,
|
90
|
+
beforeRequest = props.beforeRequest,
|
91
|
+
extendParams = props.extendParams,
|
86
92
|
className = props.className,
|
87
93
|
style = props.style,
|
88
94
|
columns = props.columns,
|
@@ -98,62 +104,59 @@ var ProInfo = function ProInfo(props) {
|
|
98
104
|
contextParams = _useContext.params,
|
99
105
|
contextFormatResult = _useContext.formatResult,
|
100
106
|
contextVisible = _useContext.visible,
|
101
|
-
contextSize = _useContext.size
|
107
|
+
contextSize = _useContext.size,
|
108
|
+
contextOnSuccess = _useContext.onSuccess,
|
109
|
+
contextOnError = _useContext.onError,
|
110
|
+
contextFormatParams = _useContext.formatParams,
|
111
|
+
contextBeforeRequest = _useContext.beforeRequest,
|
112
|
+
contextExtendParams = _useContext.extendParams; // 获取容器宽度
|
102
113
|
|
103
114
|
|
104
115
|
var ref = (0, _react.useRef)();
|
105
|
-
var size = contextVisible ? contextSize : (0, _hooks.useSize)(ref);
|
116
|
+
var size = contextVisible ? contextSize : (0, _hooks.useSize)(ref);
|
106
117
|
|
107
118
|
var _useState = (0, _react.useState)(false),
|
108
119
|
_useState2 = _slicedToArray(_useState, 2),
|
109
120
|
loading = _useState2[0],
|
110
|
-
setLoading = _useState2[1]; //
|
121
|
+
setLoading = _useState2[1]; // 请求数据
|
111
122
|
|
112
123
|
|
113
|
-
var
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
} else if (formatResult) {
|
118
|
-
return (0, _utils2.getDeepValue)(formatResult.data, result);
|
119
|
-
} else {
|
120
|
-
return result;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
return result;
|
125
|
-
};
|
124
|
+
var _useState3 = (0, _react.useState)(),
|
125
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
126
|
+
data = _useState4[0],
|
127
|
+
setData = _useState4[1];
|
126
128
|
|
127
129
|
var requestDataKey = (contextMethod !== null && contextMethod !== void 0 ? contextMethod : method).toLowerCase() === 'get' ? 'params' : 'data';
|
130
|
+
|
131
|
+
var requestConfig = _defineProperty({
|
132
|
+
url: (_ref = contextUrl !== null && contextUrl !== void 0 ? contextUrl : url) !== null && _ref !== void 0 ? _ref : '',
|
133
|
+
method: contextMethod !== null && contextMethod !== void 0 ? contextMethod : method,
|
134
|
+
formatResult: contextFormatResult !== null && contextFormatResult !== void 0 ? contextFormatResult : formatResult,
|
135
|
+
onSuccess: contextOnSuccess !== null && contextOnSuccess !== void 0 ? contextOnSuccess : onSuccess,
|
136
|
+
onError: contextOnError !== null && contextOnError !== void 0 ? contextOnError : onError,
|
137
|
+
formatParams: contextFormatParams !== null && contextFormatParams !== void 0 ? contextFormatParams : formatParams,
|
138
|
+
beforeRequest: contextBeforeRequest !== null && contextBeforeRequest !== void 0 ? contextBeforeRequest : beforeRequest,
|
139
|
+
extendParams: contextExtendParams !== null && contextExtendParams !== void 0 ? contextExtendParams : extendParams
|
140
|
+
}, requestDataKey, contextParams !== null && contextParams !== void 0 ? contextParams : params);
|
141
|
+
|
128
142
|
(0, _react.useEffect)(function () {
|
129
143
|
if (url || contextUrl) {
|
130
144
|
setLoading(false);
|
131
|
-
|
145
|
+
request();
|
132
146
|
} else {
|
133
147
|
setLoading(false);
|
134
148
|
}
|
135
|
-
}, []);
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
}, requestDataKey, contextParams !== null && contextParams !== void 0 ? contextParams : params);
|
143
|
-
}, {
|
144
|
-
// 使用 request 方法代替 fetch
|
145
|
-
requestMethod: function requestMethod(params) {
|
146
|
-
return (0, _utils2.request)(params);
|
147
|
-
},
|
148
|
-
manual: true,
|
149
|
-
onSuccess: function onSuccess(result) {
|
150
|
-
props.onSuccess && props.onSuccess(result);
|
151
|
-
},
|
152
|
-
onError: function onError(error) {
|
149
|
+
}, []); // 获取数据
|
150
|
+
|
151
|
+
var request = function request() {
|
152
|
+
setLoading(true);
|
153
|
+
(0, _utils2.doCommonRequest)(requestConfig).then(function (resp) {
|
154
|
+
setData(resp);
|
155
|
+
}).finally(function () {
|
153
156
|
setLoading(false);
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
+
});
|
158
|
+
};
|
159
|
+
|
157
160
|
var actionRef = (0, _react.useRef)(); // 将 Actions 绑定到传入的 propsActionRef 中
|
158
161
|
|
159
162
|
if (propsActionRef) {
|
@@ -163,7 +166,7 @@ var ProInfo = function ProInfo(props) {
|
|
163
166
|
|
164
167
|
(0, _utils.useActionType)(actionRef, {
|
165
168
|
refresh: function refresh() {
|
166
|
-
|
169
|
+
request();
|
167
170
|
}
|
168
171
|
});
|
169
172
|
|
@@ -178,7 +181,7 @@ var ProInfo = function ProInfo(props) {
|
|
178
181
|
|
179
182
|
return _objectSpread(_objectSpread({}, extra), {}, {
|
180
183
|
context: {
|
181
|
-
record: dataSource !== null && dataSource !== void 0 ? dataSource :
|
184
|
+
record: dataSource !== null && dataSource !== void 0 ? dataSource : data
|
182
185
|
}
|
183
186
|
});
|
184
187
|
};
|
@@ -197,24 +200,24 @@ var ProInfo = function ProInfo(props) {
|
|
197
200
|
}), type === 'table' && /*#__PURE__*/_react.default.createElement(_tableInfo.default, {
|
198
201
|
dataSource: dataSource,
|
199
202
|
columns: columns,
|
200
|
-
loading: userLoading || loading
|
201
|
-
result:
|
203
|
+
loading: userLoading || loading,
|
204
|
+
result: data,
|
202
205
|
actionRef: actionRef,
|
203
206
|
layout: layout
|
204
207
|
}), type === 'header' && /*#__PURE__*/_react.default.createElement(_headerInfo.default, {
|
205
208
|
dataSource: dataSource,
|
206
209
|
columns: columns,
|
207
210
|
header: header,
|
208
|
-
loading: userLoading || loading
|
209
|
-
result:
|
211
|
+
loading: userLoading || loading,
|
212
|
+
result: data,
|
210
213
|
actionRef: actionRef,
|
211
214
|
layout: layout,
|
212
215
|
size: size
|
213
216
|
}), type === 'base' && /*#__PURE__*/_react.default.createElement(_baseInfo.default, {
|
214
217
|
dataSource: dataSource,
|
215
218
|
columns: columns,
|
216
|
-
loading: userLoading || loading
|
217
|
-
result:
|
219
|
+
loading: userLoading || loading,
|
220
|
+
result: data,
|
218
221
|
actionRef: actionRef,
|
219
222
|
layout: layout,
|
220
223
|
size: size
|
package/lib/info/typing.d.ts
CHANGED
@@ -1,18 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import { ActionGroupProps,
|
1
|
+
import { ProFieldRenderProps, ProFieldDataSourceItem, ProFieldProps, ProFieldType } from '../field';
|
2
|
+
import { ActionGroupProps, ProActionButtonProps } from '../actions';
|
3
3
|
import { Method } from 'axios';
|
4
4
|
import React from 'react';
|
5
|
-
import {
|
5
|
+
import { CommonRequestConfig } from '@teamix/utils';
|
6
|
+
import { ProCardProps } from '../card';
|
6
7
|
/** 列record函数 */
|
7
8
|
declare type ProInfoCellFunProp = (value: any, record: any) => any;
|
8
|
-
declare type FieldRenderProps = keyof
|
9
|
+
declare type FieldRenderProps = keyof ProFieldRenderProps;
|
9
10
|
declare type ProInfoCellRender = {
|
10
|
-
[key in FieldRenderProps]?:
|
11
|
+
[key in FieldRenderProps]?: ProFieldRenderProps[key] | ProInfoCellFunProp;
|
11
12
|
} | ((...other: any) => React.ReactNode);
|
12
|
-
|
13
|
-
export declare type ProInfoBaseProps = {
|
14
|
-
/** ProColums 定义,取代 Table 的 columns */
|
15
|
-
columns: ProInfoItemProps[];
|
13
|
+
export declare type PropInfoRequestProps = {
|
16
14
|
/** 请求地址 */
|
17
15
|
url?: string;
|
18
16
|
/** 请求方法 */
|
@@ -31,6 +29,13 @@ export declare type ProInfoBaseProps = {
|
|
31
29
|
onSuccess?: (res: any) => void;
|
32
30
|
/** 内部请求失败时的回调 */
|
33
31
|
onError?: (error: Error) => void;
|
32
|
+
};
|
33
|
+
export interface ProInfoRequestProps extends Partial<CommonRequestConfig> {
|
34
|
+
}
|
35
|
+
/** ProInfoBaseProps info 基础定义 */
|
36
|
+
export declare type ProInfoBaseProps = {
|
37
|
+
/** ProColums 定义,取代 Table 的 columns */
|
38
|
+
columns: ProInfoColumnsProps[];
|
34
39
|
/** ProInfo action 的引用,便于手动触发一些方法 */
|
35
40
|
actionRef?: React.MutableRefObject<ProInfoActionType | undefined>;
|
36
41
|
/** 标题区 推荐将header中的内容平铺到ProCard中。即将不支持此写法 */
|
@@ -40,12 +45,13 @@ export declare type ProInfoBaseProps = {
|
|
40
45
|
[key: string]: any;
|
41
46
|
};
|
42
47
|
/** 布局值 */
|
43
|
-
layout?:
|
48
|
+
layout?: ProBaseInfoLayoutProps;
|
44
49
|
/** 加载动画 */
|
45
50
|
loading?: boolean;
|
46
|
-
} & ProInfoHeaderProps;
|
47
|
-
/**
|
48
|
-
export
|
51
|
+
} & ProInfoHeaderProps & ProInfoRequestProps;
|
52
|
+
/** ProInfoColumnsProps info 单元格 定义 */
|
53
|
+
export declare type ProInfoItemProps = ProInfoColumnsProps;
|
54
|
+
export interface ProInfoColumnsProps {
|
49
55
|
/** 标题 */
|
50
56
|
title: string;
|
51
57
|
/** 列表项展示的Tooltip */
|
@@ -55,11 +61,11 @@ export interface ProInfoItemProps {
|
|
55
61
|
*/
|
56
62
|
tooltipIcon?: React.ReactNode;
|
57
63
|
/** 对应 ProField 里面的 type */
|
58
|
-
valueType?:
|
64
|
+
valueType?: ProFieldType;
|
59
65
|
/** 渲染单元格内容字段 */
|
60
66
|
render?: ProInfoCellRender;
|
61
67
|
/** 枚举值 */
|
62
|
-
dataSource?:
|
68
|
+
dataSource?: ProFieldDataSourceItem[] | ProInfoCellFunProp;
|
63
69
|
/** 表头的筛选菜单项,当值为 true 时,自动使用 dataSource 生成 */
|
64
70
|
filters?: boolean;
|
65
71
|
/** 操作组配置 */
|
@@ -83,7 +89,7 @@ export interface ProInfoItemProps {
|
|
83
89
|
/** 编辑请求成功提示文案 */
|
84
90
|
successMessage?: string;
|
85
91
|
/** 列 actions 配置 */
|
86
|
-
actions?:
|
92
|
+
actions?: ProActionButtonProps[];
|
87
93
|
/** 追加在列后 */
|
88
94
|
extra?: React.ReactNode;
|
89
95
|
}
|
@@ -98,31 +104,33 @@ export declare type IProProInfoItem = {
|
|
98
104
|
/** 值 */
|
99
105
|
value: React.ReactNode;
|
100
106
|
/** 基础详情布局值 */
|
101
|
-
baseInfoLayout?:
|
107
|
+
baseInfoLayout?: ProBaseInfoLayoutProps;
|
102
108
|
/** 头部详情布局值 */
|
103
|
-
headerInfoLayout?:
|
109
|
+
headerInfoLayout?: ProHeaderInfoLayoutProps;
|
104
110
|
/** loading 状态 */
|
105
111
|
loading?: boolean;
|
106
|
-
} & Pick<
|
112
|
+
} & Pick<ProInfoColumnsProps, 'tooltip' | 'tooltipIcon'>;
|
107
113
|
/** header info 定义 */
|
108
114
|
export declare type IProHeaderInfo = {
|
109
115
|
/** 布局值 */
|
110
|
-
layout?:
|
116
|
+
layout?: ProHeaderInfoLayoutProps;
|
111
117
|
} & Omit<ProInfoBaseProps, 'layout'>;
|
112
118
|
/** table info 定义 */
|
113
119
|
export declare type IProTableInfo = {
|
114
120
|
/** 布局值 */
|
115
121
|
layout?: TableInfoLayoutProps;
|
116
122
|
} & Omit<ProInfoBaseProps, 'layout'>;
|
123
|
+
declare type ProInfoBasePropsOmitLayout = Omit<ProInfoBaseProps, 'layout'>;
|
117
124
|
/** ProInfo */
|
118
125
|
export declare type ProInfoProps = {
|
119
126
|
/** 布局值 */
|
120
|
-
layout?: TableInfoLayoutProps |
|
127
|
+
layout?: TableInfoLayoutProps | ProHeaderInfoLayoutProps | ProBaseInfoLayoutProps;
|
121
128
|
/** 类型 */
|
122
129
|
type?: 'base' | 'header' | 'table';
|
123
|
-
} &
|
130
|
+
} & ProInfoBasePropsOmitLayout & ProInfoTransparentBase;
|
124
131
|
export declare type IProHeaderInfoItem = {};
|
125
|
-
export declare type BaseInfoLayoutProps =
|
132
|
+
export declare type BaseInfoLayoutProps = ProBaseInfoLayoutProps;
|
133
|
+
export declare type ProBaseInfoLayoutProps = {
|
126
134
|
span?: number;
|
127
135
|
labelCol?: {
|
128
136
|
span: number;
|
@@ -131,7 +139,8 @@ export declare type BaseInfoLayoutProps = {
|
|
131
139
|
span: number;
|
132
140
|
};
|
133
141
|
};
|
134
|
-
export declare type
|
142
|
+
export declare type headerInfoLayout = ProHeaderInfoLayoutProps;
|
143
|
+
export declare type ProHeaderInfoLayoutProps = {
|
135
144
|
/** label 间隔 */
|
136
145
|
labelGutter?: number | string;
|
137
146
|
/** 列数 宽度 */
|
@@ -139,31 +148,33 @@ export declare type HeaderInfoLayoutProps = {
|
|
139
148
|
};
|
140
149
|
/** infoGroup */
|
141
150
|
export declare type ProInfoGroupProps = {
|
142
|
-
children?: React.ReactNode[] | React.ReactNode;
|
143
|
-
|
144
|
-
|
151
|
+
children?: React.ReactNode[] | React.ReactNode | ProInfoBaseProps[];
|
152
|
+
/** 是否有有分割线 */
|
153
|
+
divider?: boolean;
|
154
|
+
/** 是否是紧凑模式 */
|
155
|
+
compacted?: ProCardProps['compacted'];
|
156
|
+
/** 背景颜色 */
|
157
|
+
backgroundColor?: ProCardProps['backgroundColor'];
|
158
|
+
} & ProInfoRequestProps & React.HTMLAttributes<HTMLElement>;
|
159
|
+
export declare type TableInfoLayoutProps = {} & ProHeaderInfoLayoutProps;
|
145
160
|
export declare type InfoValueItemProps = {
|
146
|
-
infoItem:
|
161
|
+
infoItem: ProInfoColumnsProps;
|
147
162
|
record: any;
|
148
163
|
actionRef?: React.MutableRefObject<ProInfoActionType | undefined>;
|
149
164
|
render?: ProInfoCellRender;
|
150
|
-
dataSource?:
|
151
|
-
} & Omit<
|
152
|
-
export declare type ProInfoHeaderProps = Omit<
|
165
|
+
dataSource?: ProFieldDataSourceItem[] | ProInfoCellFunProp;
|
166
|
+
} & Omit<ProFieldProps, 'render' | 'dataSource'>;
|
167
|
+
export declare type ProInfoHeaderProps = Omit<ProCardProps, 'loading'>;
|
153
168
|
/** ProInfoGroupContextProps */
|
154
169
|
export declare type ProInfoGroupContextProps = {
|
155
170
|
/** 因为其他数据都为异步。visible 只用作标识 */
|
156
171
|
visible?: boolean;
|
157
172
|
layout?: ProInfoBaseProps['layout'];
|
158
|
-
url?: ProInfoBaseProps['url'];
|
159
|
-
params?: ProInfoBaseProps['params'];
|
160
|
-
method?: ProInfoBaseProps['method'];
|
161
|
-
formatResult?: ProInfoBaseProps['formatResult'];
|
162
173
|
size?: {
|
163
174
|
width?: number;
|
164
175
|
height?: number;
|
165
176
|
};
|
166
|
-
};
|
177
|
+
} & ProInfoRequestProps;
|
167
178
|
/** 基本透传类型 */
|
168
179
|
export declare type ProInfoTransparentBase = {
|
169
180
|
/**
|
@@ -183,4 +194,9 @@ export declare type ProInfoTransparentBase = {
|
|
183
194
|
/** style */
|
184
195
|
style?: React.CSSProperties;
|
185
196
|
};
|
197
|
+
export declare type ProInfoTransRequestResult = {
|
198
|
+
loading: boolean;
|
199
|
+
result: any;
|
200
|
+
refresh?: () => void;
|
201
|
+
};
|
186
202
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ProInfoActionType, ProInfoGroupContextProps,
|
2
|
+
import { ProInfoActionType, ProInfoGroupContextProps, ProInfoColumnsProps } from '../typing';
|
3
3
|
export declare function useActionType<T>(ref: React.MutableRefObject<ProInfoActionType | undefined>, action: ProInfoActionType): void;
|
4
4
|
/** ProInfoGroupContext */
|
5
5
|
export declare const ProInfoGroupContext: React.Context<ProInfoGroupContextProps>;
|
@@ -9,4 +9,4 @@ export declare const ProInfoGroupContext: React.Context<ProInfoGroupContextProps
|
|
9
9
|
* @param dataSource
|
10
10
|
* @returns
|
11
11
|
*/
|
12
|
-
export declare function getDataIndexValue(dataIndex:
|
12
|
+
export declare function getDataIndexValue(dataIndex: ProInfoColumnsProps['dataIndex'], dataSource: object): any;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function getLayout(width: number): "
|
1
|
+
export declare function getLayout(width: number): "xs" | "xl" | "l" | "s" | "m";
|
@@ -66,7 +66,7 @@ var Loading = function Loading(props) {
|
|
66
66
|
title: "",
|
67
67
|
breadcrumb: []
|
68
68
|
}),
|
69
|
-
content: /*#__PURE__*/_react.default.createElement(_skeleton.
|
69
|
+
content: /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Content, null)
|
70
70
|
}, props));
|
71
71
|
};
|
72
72
|
|
@@ -1,19 +1,16 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TagProps, CloseableProps } from '@alicloudfe/components/types/tag';
|
3
|
-
import {
|
3
|
+
import { ItemProps } from '@alicloudfe/components/types/breadcrumb';
|
4
|
+
import { ProActionGroupProps } from '../actions';
|
4
5
|
import { ProInfoProps } from '../info';
|
5
6
|
import './index.scss';
|
6
|
-
export interface
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
link?: string;
|
12
|
-
icon?: string;
|
13
|
-
text: string;
|
14
|
-
onClick?: (e?: React.MouseEvent<Element, MouseEvent>) => void;
|
7
|
+
export interface ProPageHeaderBreadcrumbItem extends ItemProps {
|
8
|
+
/**
|
9
|
+
* @deprecated 建议使用 children 代替
|
10
|
+
*/
|
11
|
+
text?: string;
|
15
12
|
}
|
16
|
-
export declare type
|
13
|
+
export declare type ProPageHeaderTagItem = (TagProps | (CloseableProps & {
|
17
14
|
closable: true;
|
18
15
|
})) & {
|
19
16
|
/**
|
@@ -22,12 +19,12 @@ export declare type TagItem = (TagProps | (CloseableProps & {
|
|
22
19
|
text?: string;
|
23
20
|
};
|
24
21
|
declare type Color = 'blue' | 'green' | 'orange' | 'red' | 'yellow' | string;
|
25
|
-
export
|
22
|
+
export declare type ProPageHeaderDataItem = {
|
26
23
|
title: string;
|
27
24
|
num: number;
|
28
25
|
color?: Color;
|
29
|
-
}
|
30
|
-
export declare type
|
26
|
+
} & React.HTMLAttributes<HTMLElement>;
|
27
|
+
export declare type ProPageHeaderProps = {
|
31
28
|
title?: React.ReactNode;
|
32
29
|
description?: React.ReactNode;
|
33
30
|
icon?: string;
|
@@ -37,12 +34,28 @@ export declare type PageHeaderProps = {
|
|
37
34
|
goback?: string | boolean;
|
38
35
|
image?: string;
|
39
36
|
loading?: boolean;
|
40
|
-
breadcrumb?:
|
41
|
-
extra?:
|
42
|
-
operation?:
|
43
|
-
tags?:
|
44
|
-
data?:
|
37
|
+
breadcrumb?: ProPageHeaderBreadcrumbItem[];
|
38
|
+
extra?: ProActionGroupProps | React.ReactNode;
|
39
|
+
operation?: ProActionGroupProps | React.ReactNode;
|
40
|
+
tags?: ProPageHeaderTagItem[];
|
41
|
+
data?: ProPageHeaderDataItem[];
|
45
42
|
info?: ProInfoProps | React.ReactNode;
|
46
43
|
} & Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
|
47
|
-
declare const
|
48
|
-
export default
|
44
|
+
declare const ProPageHeader: React.FC<ProPageHeaderProps>;
|
45
|
+
export default ProPageHeader;
|
46
|
+
/**
|
47
|
+
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
48
|
+
*/
|
49
|
+
export declare type BreadcrumbItem = ProPageHeaderBreadcrumbItem;
|
50
|
+
/**
|
51
|
+
* @deprecated 建议使用 ProPageHeaderTagItem 代替
|
52
|
+
*/
|
53
|
+
export declare type TagItem = ProPageHeaderTagItem;
|
54
|
+
/**
|
55
|
+
* @deprecated 建议使用 ProPageHeaderDataItem 代替
|
56
|
+
*/
|
57
|
+
export declare type DataItem = ProPageHeaderDataItem;
|
58
|
+
/**
|
59
|
+
* @deprecated 建议使用 ProPageHeaderProps 代替
|
60
|
+
*/
|
61
|
+
export declare type PageHeaderProps = ProPageHeaderProps;
|
package/lib/page-header/index.js
CHANGED
@@ -25,30 +25,35 @@ var _info = _interopRequireDefault(require("../info"));
|
|
25
25
|
|
26
26
|
require("./index.scss");
|
27
27
|
|
28
|
-
var _excluded = ["text", "children"
|
29
|
-
_excluded2 = ["
|
28
|
+
var _excluded = ["text", "children"],
|
29
|
+
_excluded2 = ["text", "children", "closable"],
|
30
|
+
_excluded3 = ["color", "title", "num", "className"],
|
31
|
+
_excluded4 = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
|
30
32
|
|
31
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
32
34
|
|
33
|
-
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; }
|
34
|
-
|
35
|
-
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; }
|
36
|
-
|
37
35
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
38
36
|
|
39
37
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
40
38
|
|
41
39
|
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; }
|
42
40
|
|
41
|
+
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; }
|
42
|
+
|
43
|
+
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; }
|
44
|
+
|
43
45
|
var cls = (0, _utils.baseClass)('teamix-pro-page-header');
|
44
46
|
|
45
47
|
var renderNav = function renderNav(breadcrumbs) {
|
46
48
|
if (breadcrumbs && breadcrumbs.length) {
|
47
49
|
return /*#__PURE__*/_react.default.createElement(_components.Breadcrumb, null, breadcrumbs.map(function (b, i) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
50
|
+
var text = b.text,
|
51
|
+
children = b.children,
|
52
|
+
others = _objectWithoutProperties(b, _excluded);
|
53
|
+
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_components.Breadcrumb.Item, _objectSpread({
|
55
|
+
key: i
|
56
|
+
}, others), text || children);
|
52
57
|
}));
|
53
58
|
}
|
54
59
|
|
@@ -70,7 +75,7 @@ var renderActionGroup = function renderActionGroup(group, defaultProps) {
|
|
70
75
|
type: buttonType
|
71
76
|
}, item);
|
72
77
|
});
|
73
|
-
return /*#__PURE__*/_react.default.createElement(_actions.
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_actions.ProActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
|
74
79
|
actions: actions
|
75
80
|
}));
|
76
81
|
}
|
@@ -90,7 +95,7 @@ var renderTags = function renderTags(tags) {
|
|
90
95
|
var text = tag.text,
|
91
96
|
children = tag.children,
|
92
97
|
closable = tag.closable,
|
93
|
-
others = _objectWithoutProperties(tag,
|
98
|
+
others = _objectWithoutProperties(tag, _excluded2);
|
94
99
|
|
95
100
|
if (closable) {
|
96
101
|
return /*#__PURE__*/_react.default.createElement(_components.Tag.Closeable, _objectSpread({
|
@@ -145,26 +150,30 @@ var renderData = function renderData(data) {
|
|
145
150
|
}
|
146
151
|
|
147
152
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, data.map(function (item, i) {
|
148
|
-
var
|
153
|
+
var color = item.color,
|
154
|
+
title = item.title,
|
155
|
+
num = item.num,
|
156
|
+
customClassName = item.className,
|
157
|
+
others = _objectWithoutProperties(item, _excluded3);
|
158
|
+
|
159
|
+
var _getColorAndStyle = getColorAndStyle(color),
|
149
160
|
className = _getColorAndStyle.className,
|
150
161
|
style = _getColorAndStyle.style;
|
151
162
|
|
152
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
163
|
+
return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
|
153
164
|
key: i,
|
154
|
-
className: cls('data-item')
|
155
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
165
|
+
className: (0, _classnames2.default)(cls('data-item'), customClassName)
|
166
|
+
}, others), /*#__PURE__*/_react.default.createElement("div", {
|
156
167
|
className: cls('data-item-title')
|
157
|
-
},
|
168
|
+
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
158
169
|
className: (0, _classnames2.default)(cls('data-item-num'), className),
|
159
170
|
style: style
|
160
|
-
},
|
171
|
+
}, num));
|
161
172
|
}));
|
162
173
|
};
|
163
174
|
|
164
175
|
var renderInfo = function renderInfo(info) {
|
165
|
-
// @ts-ignore
|
166
176
|
if (info === null || info === void 0 ? void 0 : info.columns) {
|
167
|
-
// @ts-ignore
|
168
177
|
return /*#__PURE__*/_react.default.createElement(_info.default, _objectSpread({
|
169
178
|
type: "header"
|
170
179
|
}, info));
|
@@ -173,7 +182,7 @@ var renderInfo = function renderInfo(info) {
|
|
173
182
|
return info;
|
174
183
|
};
|
175
184
|
|
176
|
-
var
|
185
|
+
var ProPageHeader = function ProPageHeader(props) {
|
177
186
|
var title = props.title,
|
178
187
|
description = props.description,
|
179
188
|
icon = props.icon,
|
@@ -193,7 +202,7 @@ var PageHeader = function PageHeader(props) {
|
|
193
202
|
children = props.children,
|
194
203
|
className = props.className,
|
195
204
|
style = props.style,
|
196
|
-
others = _objectWithoutProperties(props,
|
205
|
+
others = _objectWithoutProperties(props, _excluded4);
|
197
206
|
|
198
207
|
var history = (0, _reactRouterDom.useHistory)();
|
199
208
|
var backgroundImage = image ? "url('".concat(image, "')") : undefined;
|
@@ -243,7 +252,7 @@ var PageHeader = function PageHeader(props) {
|
|
243
252
|
className: cls('section')
|
244
253
|
}, /*#__PURE__*/_react.default.createElement("nav", {
|
245
254
|
className: cls('nav')
|
246
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
255
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Nav, null), !loading && renderNav(breadcrumb)), /*#__PURE__*/_react.default.createElement("section", {
|
247
256
|
className: cls('extra')
|
248
257
|
}, !loading && renderActionGroup(extra, {
|
249
258
|
type: 'text',
|
@@ -256,18 +265,18 @@ var PageHeader = function PageHeader(props) {
|
|
256
265
|
className: cls('left')
|
257
266
|
}, /*#__PURE__*/_react.default.createElement("section", {
|
258
267
|
className: cls('title')
|
259
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
268
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Title, null), !loading && renderTitle()), description !== undefined && /*#__PURE__*/_react.default.createElement("section", {
|
260
269
|
className: cls('description')
|
261
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
270
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Description, null), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, description))), /*#__PURE__*/_react.default.createElement("section", {
|
262
271
|
className: cls('right')
|
263
272
|
}, data && !loading && /*#__PURE__*/_react.default.createElement("section", {
|
264
273
|
className: cls('data')
|
265
274
|
}, renderData(data)), /*#__PURE__*/_react.default.createElement("section", {
|
266
275
|
className: cls('operation')
|
267
|
-
}, !loading && renderActionGroup(operation)))), info &&
|
276
|
+
}, !loading && renderActionGroup(operation)))), info && /*#__PURE__*/_react.default.createElement("section", {
|
268
277
|
className: (0, _classnames2.default)(cls('section'), cls('info'))
|
269
|
-
}, renderInfo(info)), children);
|
278
|
+
}, !loading && renderInfo(info), loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Info.Header, null)), children);
|
270
279
|
};
|
271
280
|
|
272
|
-
var _default =
|
281
|
+
var _default = ProPageHeader;
|
273
282
|
exports.default = _default;
|
@@ -32,6 +32,7 @@ $prefix: 'teamix-pro-page-header';
|
|
32
32
|
.#{$prefix}-info {
|
33
33
|
padding-top: var(--s-2, 8px);
|
34
34
|
margin-bottom: 0;
|
35
|
+
flex-direction: column;
|
35
36
|
}
|
36
37
|
|
37
38
|
.#{$prefix}-title {
|
@@ -62,7 +63,7 @@ $prefix: 'teamix-pro-page-header';
|
|
62
63
|
|
63
64
|
.#{$prefix}-description {
|
64
65
|
margin: var(--s-2, 8px) 0;
|
65
|
-
color: var(--color-text1-
|
66
|
+
color: var(--color-text1-2, #5a5a5a);
|
66
67
|
}
|
67
68
|
|
68
69
|
.#{$prefix}-data {
|