@teamix/pro 1.2.35 → 1.3.0
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/dist/pro.css +1 -1
- package/dist/pro.js +705 -1062
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/form/Filter/AdvancedFilter.js +4 -4
- package/es/form/Filter/LightFilter.js +22 -15
- package/es/form/Filter/index.js +83 -109
- package/es/form/ProForm/index.scss +8 -8
- package/es/form/SchemaForm/initializeRequest.js +1 -2
- package/es/form/SchemaForm/reactions.d.ts +2 -2
- package/es/form/SchemaForm/reactions.js +11 -13
- package/es/form/typing.d.ts +4 -1
- package/es/index.d.ts +4 -4
- package/es/index.js +4 -4
- package/es/nocode/configurators/PageHeader.js +2 -2
- package/es/table/components/Layout/index.js +2 -2
- package/es/table/components/Pagination/index.js +11 -1
- package/es/table/components/ToolBar/Fullscreen.js +6 -6
- package/es/table/index.js +3 -4
- package/es/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/es/{step/ProStepItem/components/VerStepItem → timeline/ProTimeLineItem}/index.js +59 -72
- package/es/{step/ProStepItem/components/VerStepItem → timeline/ProTimeLineItem}/index.scss +34 -86
- package/es/timeline/index.d.ts +10 -0
- package/es/{step → timeline}/index.js +33 -57
- package/es/timeline/index.scss +7 -0
- package/es/timeline/typing.d.ts +101 -0
- package/es/{step → timeline}/typing.js +0 -0
- package/lib/form/Filter/AdvancedFilter.js +4 -4
- package/lib/form/Filter/LightFilter.js +21 -15
- package/lib/form/Filter/index.js +83 -109
- package/lib/form/ProForm/index.scss +8 -8
- package/lib/form/SchemaForm/initializeRequest.js +1 -2
- package/lib/form/SchemaForm/reactions.d.ts +2 -2
- package/lib/form/SchemaForm/reactions.js +10 -12
- package/lib/form/typing.d.ts +4 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +10 -10
- package/lib/nocode/configurators/PageHeader.js +2 -2
- package/lib/table/components/Layout/index.js +2 -2
- package/lib/table/components/Pagination/index.js +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +6 -6
- package/lib/table/index.js +3 -4
- package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/lib/{step/ProStepItem/components/VerStepItem → timeline/ProTimeLineItem}/index.js +58 -72
- package/lib/{step/ProStepItem/components/VerStepItem → timeline/ProTimeLineItem}/index.scss +34 -86
- package/lib/timeline/index.d.ts +10 -0
- package/lib/{step → timeline}/index.js +38 -58
- package/lib/timeline/index.scss +7 -0
- package/lib/timeline/typing.d.ts +101 -0
- package/lib/{step → timeline}/typing.js +0 -0
- package/package.json +1 -1
- package/es/step/ProStepItem/components/HozStepItem/index.d.ts +0 -5
- package/es/step/ProStepItem/components/HozStepItem/index.js +0 -235
- package/es/step/ProStepItem/components/HozStepItem/index.scss +0 -279
- package/es/step/ProStepItem/components/VerStepItem/index.d.ts +0 -5
- package/es/step/ProStepItem/index.d.ts +0 -4
- package/es/step/ProStepItem/index.js +0 -57
- package/es/step/index.d.ts +0 -9
- package/es/step/typing.d.ts +0 -96
- package/lib/step/ProStepItem/components/HozStepItem/index.d.ts +0 -5
- package/lib/step/ProStepItem/components/HozStepItem/index.js +0 -258
- package/lib/step/ProStepItem/components/HozStepItem/index.scss +0 -279
- package/lib/step/ProStepItem/components/VerStepItem/index.d.ts +0 -5
- package/lib/step/ProStepItem/index.d.ts +0 -4
- package/lib/step/ProStepItem/index.js +0 -69
- package/lib/step/index.d.ts +0 -9
- package/lib/step/typing.d.ts +0 -96
@@ -23,7 +23,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
23
23
|
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; }
|
24
24
|
|
25
25
|
// 自适应宽度的翻页器
|
26
|
-
import React, { useState } from 'react';
|
26
|
+
import React, { useState, useEffect } from 'react';
|
27
27
|
import { Pagination, Balloon, Select, Button, Input, Icon } from '@alicloudfe/components';
|
28
28
|
import { getMessage, baseClass } from '@teamix/utils';
|
29
29
|
import { useResponsiveProps } from '@teamix/hooks';
|
@@ -46,6 +46,13 @@ export default (function (props) {
|
|
46
46
|
responsiveProps = _useResponsiveProps.responsiveProps,
|
47
47
|
paginationWrapperRef = _useResponsiveProps.ref;
|
48
48
|
|
49
|
+
useEffect(function () {
|
50
|
+
// size='mini' 模式下 current 受控
|
51
|
+
if (responsiveProps === 'mini') {
|
52
|
+
setCurrentPage(current);
|
53
|
+
}
|
54
|
+
}, [current]);
|
55
|
+
|
49
56
|
var _useState = useState(false),
|
50
57
|
_useState2 = _slicedToArray(_useState, 2),
|
51
58
|
visible = _useState2[0],
|
@@ -82,6 +89,9 @@ export default (function (props) {
|
|
82
89
|
text: true,
|
83
90
|
onMouseEnter: function onMouseEnter() {
|
84
91
|
return setVisible(true);
|
92
|
+
},
|
93
|
+
style: {
|
94
|
+
lineHeight: '18px'
|
85
95
|
}
|
86
96
|
}, getMessage('total', {
|
87
97
|
total: total
|
@@ -30,15 +30,15 @@ var FullScreen = function FullScreen(props) {
|
|
30
30
|
|
31
31
|
var afterClose = function afterClose() {
|
32
32
|
// 判断全屏前后筛选表单值是否有改变
|
33
|
-
var n = JSON.stringify(getValidValues(normalDataFilterForm.values));
|
34
|
-
var f = JSON.stringify(getValidValues(fullscreenDataFilterForm.values));
|
33
|
+
var n = JSON.stringify(getValidValues(normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.values));
|
34
|
+
var f = JSON.stringify(getValidValues(fullscreenDataFilterForm === null || fullscreenDataFilterForm === void 0 ? void 0 : fullscreenDataFilterForm.values));
|
35
35
|
|
36
36
|
if (n === f) {
|
37
37
|
// 关闭全屏后,表单值未变化,开启普通表单onFilter
|
38
38
|
filterEnableRef.current.normal = true;
|
39
39
|
} else {
|
40
40
|
// 关闭全屏后,表单值有变化,修改表单值
|
41
|
-
normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.setValues(fullscreenDataFilterForm.values);
|
41
|
+
normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.setValues(fullscreenDataFilterForm === null || fullscreenDataFilterForm === void 0 ? void 0 : fullscreenDataFilterForm.values);
|
42
42
|
} // 关闭全屏后,关闭全屏表单onFilter
|
43
43
|
|
44
44
|
|
@@ -48,15 +48,15 @@ var FullScreen = function FullScreen(props) {
|
|
48
48
|
|
49
49
|
var afterOpen = function afterOpen() {
|
50
50
|
// 判断全屏前后筛选表单值是否有改变
|
51
|
-
var n = JSON.stringify(getValidValues(normalDataFilterForm.values));
|
52
|
-
var f = JSON.stringify(getValidValues(fullscreenDataFilterForm.values));
|
51
|
+
var n = JSON.stringify(getValidValues(normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.values));
|
52
|
+
var f = JSON.stringify(getValidValues(fullscreenDataFilterForm === null || fullscreenDataFilterForm === void 0 ? void 0 : fullscreenDataFilterForm.values));
|
53
53
|
|
54
54
|
if (n === f) {
|
55
55
|
// 全屏后,表单值未变化,开启全屏表单onFilter
|
56
56
|
filterEnableRef.current.fullscreen = true;
|
57
57
|
} else {
|
58
58
|
// 全屏后,表单值变化,修改表单值
|
59
|
-
fullscreenDataFilterForm === null || fullscreenDataFilterForm === void 0 ? void 0 : fullscreenDataFilterForm.setValues(normalDataFilterForm.values);
|
59
|
+
fullscreenDataFilterForm === null || fullscreenDataFilterForm === void 0 ? void 0 : fullscreenDataFilterForm.setValues(normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.values);
|
60
60
|
} // 全屏后,关闭普通表单onFilter
|
61
61
|
|
62
62
|
|
package/es/table/index.js
CHANGED
@@ -738,11 +738,11 @@ var ProTable = function ProTable(props) {
|
|
738
738
|
|
739
739
|
|
740
740
|
var dataFilter = _objectSpread(_objectSpread({
|
741
|
-
mode: 'inline'
|
741
|
+
mode: 'inline',
|
742
|
+
forceClear: true
|
742
743
|
}, propsDataFilter), {}, {
|
743
744
|
onInit: function onInit(values) {
|
744
745
|
// 表单初始化请求处理
|
745
|
-
console.log('onInit');
|
746
746
|
(propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onInit) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onInit(values));
|
747
747
|
!fullscreenState && _request({}, false, values);
|
748
748
|
return true;
|
@@ -750,8 +750,7 @@ var ProTable = function ProTable(props) {
|
|
750
750
|
onFilter: function onFilter(values) {
|
751
751
|
var _actionRef$current6, _actionRef$current6$c;
|
752
752
|
|
753
|
-
|
754
|
-
|
753
|
+
// 全屏状态,判断全屏表单onFilter是否禁用
|
755
754
|
if (fullscreenState && !filterEnableRef.current.fullscreen) {
|
756
755
|
filterEnableRef.current.fullscreen = true;
|
757
756
|
return;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["
|
1
|
+
var _excluded = ["_comment", "_shape", "status", "image", "icon", "title", "subTitle", "timeLeft", "content", "animation", "discription", "tags", "collapsible", "defaultCollapsed", "collapsed", "onCollapse", "dotRender"];
|
2
2
|
|
3
3
|
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; }
|
4
4
|
|
@@ -24,7 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
24
24
|
|
25
25
|
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; }
|
26
26
|
|
27
|
-
import React, {
|
27
|
+
import React, { useCallback, useState } from 'react';
|
28
28
|
import './index.scss';
|
29
29
|
import { Icon, Timeline } from '@alicloudfe/components';
|
30
30
|
import classnames from 'classnames';
|
@@ -32,10 +32,11 @@ import { baseClass, dateFormat } from '@teamix/utils';
|
|
32
32
|
import { renderTags } from '@teamix/utils';
|
33
33
|
import TeamixIcon from '@teamix/icon';
|
34
34
|
var TimelineItem = Timeline.Item;
|
35
|
-
var cls = baseClass('teamix-pro-
|
35
|
+
var cls = baseClass('teamix-pro-timeline');
|
36
36
|
|
37
|
-
var
|
38
|
-
var
|
37
|
+
var ProTimeLineItem = function ProTimeLineItem(props) {
|
38
|
+
var _props$_comment = props._comment,
|
39
|
+
_comment = _props$_comment === void 0 ? false : _props$_comment,
|
39
40
|
_shape = props._shape,
|
40
41
|
status = props.status,
|
41
42
|
image = props.image,
|
@@ -52,9 +53,6 @@ var VerStepItem = function VerStepItem(props) {
|
|
52
53
|
collapsed = props.collapsed,
|
53
54
|
onCollapse = props.onCollapse,
|
54
55
|
dotRender = props.dotRender,
|
55
|
-
_onClick = props.onClick,
|
56
|
-
percent = props.percent,
|
57
|
-
disabled = props.disabled,
|
58
56
|
others = _objectWithoutProperties(props, _excluded);
|
59
57
|
/** 内容去折叠相关 */
|
60
58
|
|
@@ -81,12 +79,12 @@ var VerStepItem = function VerStepItem(props) {
|
|
81
79
|
|
82
80
|
|
83
81
|
var formatTime = function formatTime(time) {
|
84
|
-
if (typeof time === 'string') return dateFormat(time, '', 'YYYY
|
82
|
+
if (typeof time === 'string') return dateFormat(time, '', 'YYYY-MM-DD hh:mm:ss');
|
85
83
|
return time;
|
86
84
|
};
|
87
85
|
|
88
86
|
var formatShape = function formatShape() {
|
89
|
-
if (['dot', '
|
87
|
+
if (['dot', 'circle'].includes(_shape)) return _shape;
|
90
88
|
return 'dot';
|
91
89
|
};
|
92
90
|
|
@@ -94,8 +92,17 @@ var VerStepItem = function VerStepItem(props) {
|
|
94
92
|
if (['success', 'fail', 'process', 'warning', 'wait'].includes(status)) return status;
|
95
93
|
return 'wait';
|
96
94
|
};
|
97
|
-
|
95
|
+
/**一些复用常数 */
|
96
|
+
|
98
97
|
|
98
|
+
var circle = formatShape() === 'circle';
|
99
|
+
var dot = formatShape() === 'dot';
|
100
|
+
var process = formatStatus() === 'process';
|
101
|
+
var success = formatStatus() === 'success';
|
102
|
+
var error = formatStatus() === 'fail';
|
103
|
+
var warning = formatStatus() === 'warning';
|
104
|
+
var wait = formatStatus() === 'wait';
|
105
|
+
/**对元素进行渲染 */
|
99
106
|
|
100
107
|
var renderImage = function renderImage() {
|
101
108
|
if (typeof image === 'string') {
|
@@ -121,28 +128,18 @@ var VerStepItem = function VerStepItem(props) {
|
|
121
128
|
className: classnames(cls({
|
122
129
|
'time-left': true,
|
123
130
|
'time-left-dot': dot,
|
124
|
-
'time-left-circle':
|
131
|
+
'time-left-circle': circle
|
125
132
|
}))
|
126
133
|
}, formatTime(timeLeft));
|
127
134
|
}, [_shape, timeLeft]);
|
128
|
-
/**一些复用常数 */
|
129
|
-
|
130
|
-
var circle_icon = formatShape() === 'icon';
|
131
|
-
var circle_number = formatShape() === 'number';
|
132
|
-
var dot = formatShape() === 'dot';
|
133
|
-
var process = formatStatus() === 'process' && !disabled;
|
134
|
-
var success = formatStatus() === 'success' && !disabled;
|
135
|
-
var error = formatStatus() === 'fail' && !disabled;
|
136
|
-
var warning = formatStatus() === 'warning' && !disabled;
|
137
|
-
var wait = formatStatus() === 'wait' && !disabled;
|
138
135
|
var renderTitle = useCallback(function () {
|
139
136
|
return /*#__PURE__*/React.createElement("div", {
|
140
137
|
className: classnames(cls({
|
141
138
|
wrapper: true,
|
142
139
|
'wrapper-dot': dot && !timeLeft,
|
143
|
-
'wrapper-circle':
|
140
|
+
'wrapper-circle': circle && !timeLeft,
|
144
141
|
'wrapper-time-left-dot': dot && timeLeft,
|
145
|
-
'wrapper-time-left-circle':
|
142
|
+
'wrapper-time-left-circle': circle && timeLeft
|
146
143
|
}))
|
147
144
|
}, /*#__PURE__*/React.createElement("div", {
|
148
145
|
className: classnames(cls('wrapper-left'))
|
@@ -164,9 +161,7 @@ var VerStepItem = function VerStepItem(props) {
|
|
164
161
|
className: classnames(cls('wrapper-right-top'))
|
165
162
|
}, title && /*#__PURE__*/React.createElement("div", {
|
166
163
|
className: classnames(cls({
|
167
|
-
'wrapper-right-top-title-info
|
168
|
-
'wrapper-right-top-title-info-active': process,
|
169
|
-
'wrapper-right-top-title-info-disabled': disabled
|
164
|
+
'wrapper-right-top-title-info': true
|
170
165
|
}))
|
171
166
|
}, title), tags && /*#__PURE__*/React.createElement("div", {
|
172
167
|
className: classnames(cls('wrapper-right-top-tag-info'))
|
@@ -182,47 +177,45 @@ var VerStepItem = function VerStepItem(props) {
|
|
182
177
|
'wrapper-right-content-info-open': showContent
|
183
178
|
}))
|
184
179
|
}, content))));
|
185
|
-
}, [_shape, timeLeft, image,
|
186
|
-
/**
|
180
|
+
}, [_shape, timeLeft, image, title, tags, subTitle, discription, content, collapsible, collapsed, defaultCollapsed, onCollapseChanged]);
|
181
|
+
/**
|
182
|
+
* 重新渲染 timeline 节点
|
183
|
+
* */
|
187
184
|
|
188
185
|
var renderNode = useCallback(function () {
|
189
|
-
//
|
186
|
+
// shape 取 dot
|
190
187
|
var renderDot = function renderDot() {
|
191
188
|
return !icon ? /*#__PURE__*/React.createElement("div", {
|
192
189
|
className: classnames(cls({
|
193
|
-
'
|
194
|
-
'
|
195
|
-
'
|
196
|
-
'
|
197
|
-
'
|
198
|
-
'
|
199
|
-
'ver-step-item-render-wrapper-dot-wait': wait
|
190
|
+
'item-render-wrapper-dot': true,
|
191
|
+
'item-render-wrapper-dot-process': process,
|
192
|
+
'item-render-wrapper-dot-success': success,
|
193
|
+
'item-render-wrapper-dot-error': error,
|
194
|
+
'item-render-wrapper-dot-warning': warning,
|
195
|
+
'item-render-wrapper-dot-wait': wait
|
200
196
|
}))
|
201
197
|
}) : /*#__PURE__*/React.createElement("div", {
|
202
198
|
className: classnames(cls({
|
203
|
-
'
|
204
|
-
'
|
205
|
-
'
|
206
|
-
'
|
207
|
-
'
|
208
|
-
'ver-step-item-render-wrapper-icon-wait': wait
|
199
|
+
'item-render-wrapper-icon-process': process,
|
200
|
+
'item-render-wrapper-icon-success': success,
|
201
|
+
'item-render-wrapper-icon-error': error,
|
202
|
+
'item-render-wrapper-icon-warning': warning,
|
203
|
+
'item-render-wrapper-icon-wait': wait
|
209
204
|
}))
|
210
205
|
}, /*#__PURE__*/React.createElement(Icon, {
|
211
206
|
type: icon,
|
212
207
|
size: "small"
|
213
208
|
}));
|
214
|
-
}; //
|
209
|
+
}; // shape 取 circle
|
215
210
|
|
216
211
|
|
217
212
|
var renderCircle = function renderCircle() {
|
218
213
|
if (dotRender) return /*#__PURE__*/React.createElement("div", {
|
219
|
-
className: classnames(cls('
|
214
|
+
className: classnames(cls('item-render-wrapper'))
|
220
215
|
}, dotRender());
|
221
216
|
|
222
|
-
var
|
223
|
-
|
224
|
-
className: classnames(cls('ver-step-item-render-wrapper-circle-percent'))
|
225
|
-
}, percent, "%");
|
217
|
+
var renderCircleItem = function renderCircleItem() {
|
218
|
+
// 有传入 icon 渲染 icon
|
226
219
|
if (icon) return /*#__PURE__*/React.createElement(Icon, {
|
227
220
|
type: icon,
|
228
221
|
size: "small"
|
@@ -239,33 +232,30 @@ var VerStepItem = function VerStepItem(props) {
|
|
239
232
|
type: "exclamation-line",
|
240
233
|
size: "small"
|
241
234
|
});
|
242
|
-
if (process &&
|
235
|
+
if (process && circle) return /*#__PURE__*/React.createElement(TeamixIcon, {
|
243
236
|
type: "loading-line",
|
244
237
|
size: "small"
|
245
238
|
});
|
246
|
-
|
239
|
+
return /*#__PURE__*/React.createElement(TeamixIcon, {
|
247
240
|
type: "more-line",
|
248
241
|
size: "small"
|
249
242
|
});
|
250
|
-
return _index + 1;
|
251
243
|
};
|
252
244
|
|
253
245
|
return /*#__PURE__*/React.createElement("div", {
|
254
246
|
className: classnames(cls({
|
255
|
-
'
|
256
|
-
'
|
257
|
-
'
|
258
|
-
'
|
259
|
-
'
|
260
|
-
'
|
261
|
-
'ver-step-item-render-wrapper-circle-wait': wait,
|
262
|
-
'ver-step-item-render-wrapper-percent-color': percent
|
247
|
+
'item-render-wrapper-circle': true,
|
248
|
+
'item-render-wrapper-circle-process': process,
|
249
|
+
'item-render-wrapper-circle-success': success,
|
250
|
+
'item-render-wrapper-circle-error': error,
|
251
|
+
'item-render-wrapper-circle-warning': warning,
|
252
|
+
'item-render-wrapper-circle-wait': wait
|
263
253
|
}))
|
264
|
-
},
|
254
|
+
}, renderCircleItem());
|
265
255
|
};
|
266
256
|
|
267
257
|
var renderStateNode = function renderStateNode() {
|
268
|
-
if (
|
258
|
+
if (circle) {
|
269
259
|
return renderCircle();
|
270
260
|
}
|
271
261
|
|
@@ -273,17 +263,13 @@ var VerStepItem = function VerStepItem(props) {
|
|
273
263
|
};
|
274
264
|
|
275
265
|
return /*#__PURE__*/React.createElement("div", {
|
276
|
-
className: classnames(cls('
|
266
|
+
className: classnames(cls('item'))
|
277
267
|
}, /*#__PURE__*/React.createElement("div", {
|
278
268
|
className: classnames(cls({
|
279
|
-
'
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
return disabled !== null && disabled !== void 0 ? disabled : _onClick === null || _onClick === void 0 ? void 0 : _onClick(_index);
|
284
|
-
}
|
285
|
-
}, renderStateNode()));
|
286
|
-
}, [_index, _shape, icon, disabled, status, percent, dotRender]);
|
269
|
+
'item-render-wrapper': true
|
270
|
+
}))
|
271
|
+
}, !_comment && renderStateNode()));
|
272
|
+
}, [_shape, icon, status, dotRender]);
|
287
273
|
return /*#__PURE__*/React.createElement(TimelineItem, _objectSpread({
|
288
274
|
title: renderTitle(),
|
289
275
|
dot: renderNode(),
|
@@ -292,4 +278,5 @@ var VerStepItem = function VerStepItem(props) {
|
|
292
278
|
}, others));
|
293
279
|
};
|
294
280
|
|
295
|
-
|
281
|
+
ProTimeLineItem.displayName = 'ProTimeLineItem';
|
282
|
+
export default ProTimeLineItem;
|
@@ -1,4 +1,8 @@
|
|
1
|
-
.
|
1
|
+
.theme-hybridcloud-dark {
|
2
|
+
--wait-bg-color: #4d4d4d;
|
3
|
+
}
|
4
|
+
|
5
|
+
.teamix-pro-timeline {
|
2
6
|
/** 修改了一些基础组件样式*/
|
3
7
|
.next-timeline-item-has-left-content > .next-timeline-item-left-content p {
|
4
8
|
font-family: var(--font-size-body-1, 12px);
|
@@ -23,6 +27,9 @@
|
|
23
27
|
margin-left: var(--s-26);
|
24
28
|
}
|
25
29
|
|
30
|
+
/**
|
31
|
+
* title 区域样式
|
32
|
+
*/
|
26
33
|
&-wrapper {
|
27
34
|
overflow: hidden;
|
28
35
|
&-dot {
|
@@ -91,25 +98,12 @@
|
|
91
98
|
justify-content: left;
|
92
99
|
align-items: center;
|
93
100
|
height: var(--s-7);
|
101
|
+
margin-bottom: -4px;
|
94
102
|
|
95
103
|
&-title-info {
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
&-small {
|
102
|
-
font-size: var(--font-size-body-1, 12px);
|
103
|
-
color: var(--color-text1-3, #333333);
|
104
|
-
}
|
105
|
-
|
106
|
-
&-active {
|
107
|
-
font-weight: 500;
|
108
|
-
color: var(--color-text1-4, #1a1a1a);
|
109
|
-
}
|
110
|
-
&-disabled {
|
111
|
-
color: var(--color-text1-1, #ccc);
|
112
|
-
}
|
104
|
+
font-weight: 500;
|
105
|
+
font-size: var(--font-size-body-2, 14px);
|
106
|
+
color: var(--color-text1-3, #333333);
|
113
107
|
}
|
114
108
|
|
115
109
|
&-tag-info {
|
@@ -125,11 +119,10 @@
|
|
125
119
|
&-discribe-info {
|
126
120
|
font-family: var(--font-size-body-1, 12px);
|
127
121
|
color: var(--color-text1-2, #5a5a5a);
|
128
|
-
margin-
|
122
|
+
margin-bottom: var(--s-1);
|
129
123
|
}
|
130
124
|
|
131
125
|
&-content-info {
|
132
|
-
margin-top: var(--s-2);
|
133
126
|
&-close {
|
134
127
|
display: none;
|
135
128
|
}
|
@@ -139,10 +132,10 @@
|
|
139
132
|
}
|
140
133
|
}
|
141
134
|
}
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
&-
|
135
|
+
/**
|
136
|
+
* 节点样式
|
137
|
+
*/
|
138
|
+
&-item {
|
146
139
|
display: flex;
|
147
140
|
justify-content: center;
|
148
141
|
align-items: center;
|
@@ -152,63 +145,43 @@
|
|
152
145
|
display: flex;
|
153
146
|
justify-content: center;
|
154
147
|
align-items: center;
|
155
|
-
cursor: pointer;
|
156
|
-
&-disabled {
|
157
|
-
cursor: not-allowed;
|
158
|
-
}
|
159
148
|
|
160
149
|
&-dot {
|
161
150
|
width: var(--s-2);
|
162
151
|
height: var(--s-2);
|
163
152
|
border-radius: 50%;
|
164
153
|
|
165
|
-
&-disabled {
|
166
|
-
background-color: transparent;
|
167
|
-
background: transparent;
|
168
|
-
color: var(--color-line1-3, #ccc);
|
169
|
-
border: 1px solid var(--color-line1-3, #ccc);
|
170
|
-
}
|
171
|
-
|
172
154
|
&-process {
|
173
|
-
background: var(--color-notice-
|
174
|
-
background-color: var(--color-notice-5, #0064c8);
|
155
|
+
background: var(--color-notice-4, #2a7dd1);
|
175
156
|
}
|
176
157
|
&-success {
|
177
|
-
background: var(--color-
|
178
|
-
background-color: var(--color-notice-7, #589ad8);
|
158
|
+
background: var(--color-success-4, #43bf7d);
|
179
159
|
}
|
180
160
|
&-error {
|
181
|
-
background: var(--color-error-
|
182
|
-
background-color: var(--color-error-5, #e84738);
|
161
|
+
background: var(--color-error-4, #ed675a);
|
183
162
|
}
|
184
163
|
&-warning {
|
185
|
-
background: var(--color-warning-
|
186
|
-
background-color: var(--color-warning-5, #f98e1a);
|
164
|
+
background: var(--color-warning-4, #ffa544);
|
187
165
|
}
|
188
166
|
&-wait {
|
189
|
-
background: var(--color-line1-
|
190
|
-
background-color: var(--color-line1-3, #ccc);
|
167
|
+
background: var(--wait-bg-color, var(--color-line1-5));
|
191
168
|
}
|
192
169
|
}
|
193
170
|
&-icon {
|
194
|
-
&-disabled {
|
195
|
-
color: var(--color-line1-3, #ccc);
|
196
|
-
}
|
197
|
-
|
198
171
|
&-process {
|
199
|
-
color: var(--color-notice-
|
172
|
+
color: var(--color-notice-4, #2a7dd1);
|
200
173
|
}
|
201
174
|
&-success {
|
202
|
-
color: var(--color-
|
175
|
+
color: var(--color-success-4, #43bf7d);
|
203
176
|
}
|
204
177
|
&-error {
|
205
|
-
color: var(--color-error-
|
178
|
+
color: var(--color-error-4, #ed675a);
|
206
179
|
}
|
207
180
|
&-warning {
|
208
|
-
color: var(--color-warning-
|
181
|
+
color: var(--color-warning-4, #ffa544);
|
209
182
|
}
|
210
183
|
&-wait {
|
211
|
-
color: var(--color-line1-
|
184
|
+
color: var(--wait-bg-color, var(--color-line1-5));
|
212
185
|
}
|
213
186
|
}
|
214
187
|
|
@@ -219,59 +192,34 @@
|
|
219
192
|
display: flex;
|
220
193
|
justify-content: center;
|
221
194
|
align-items: center;
|
222
|
-
&-disabled {
|
223
|
-
background-color: transparent;
|
224
|
-
background: transparent;
|
225
|
-
color: var(--color-line1-3, #ccc);
|
226
|
-
border: 1px solid var(--color-line1-3, #ccc);
|
227
|
-
}
|
228
195
|
&-process {
|
229
196
|
color: var(--color-white, #fff);
|
230
197
|
background: var(--color-notice-5, #0064c8);
|
231
|
-
background-color: var(--color-notice-5, #0064c8);
|
232
198
|
}
|
233
199
|
&-success {
|
234
|
-
color: var(--color-
|
235
|
-
background: var(--color-
|
236
|
-
background-color: var(--color-brand1-2, #cae3fd);
|
200
|
+
color: var(--color-success-4, #43bf7d);
|
201
|
+
background: var(--color-success-2, #cdf8e1);
|
237
202
|
}
|
238
203
|
&-error {
|
239
204
|
color: var(--color-error-5, #e84738);
|
240
205
|
background: var(--color-error-2, #fcceca);
|
241
|
-
background-color: var(--color-error-2, #fcceca);
|
242
206
|
}
|
243
207
|
&-warning {
|
244
208
|
color: var(--color-warning-5, #f98e1a);
|
245
209
|
background: var(--color-warning-2, #ffe0bf);
|
246
|
-
background-color: var(--color-warning-2, #ffe0bf);
|
247
210
|
}
|
248
211
|
&-wait {
|
249
|
-
color: var(--color
|
212
|
+
color: var(--wait-bg-color, var(--color-line1-5));
|
250
213
|
background: var(--color-fill1-3, #eaeaea);
|
251
|
-
background-color: var(--color-fill1-3, #eaeaea);
|
252
214
|
}
|
253
215
|
}
|
254
|
-
|
255
|
-
&-percent-color {
|
256
|
-
width: var(--s-5);
|
257
|
-
height: var(--s-5);
|
258
|
-
border-radius: 50%;
|
259
|
-
display: flex;
|
260
|
-
justify-content: center;
|
261
|
-
align-items: center;
|
262
|
-
background: transparent;
|
263
|
-
background-color: transparent;
|
264
|
-
color: var(--color-notice-5, #0064c8);
|
265
|
-
font-family: var(--font-size-body-1, 12px);
|
266
|
-
word-break: normal;
|
267
|
-
white-space: nowrap;
|
268
|
-
border: 1px solid var(--color-line1-2, #d9d9d9);
|
269
|
-
}
|
270
216
|
}
|
271
217
|
}
|
272
|
-
}
|
273
218
|
|
274
|
-
|
219
|
+
/**
|
220
|
+
* 左侧时间样式
|
221
|
+
*/
|
222
|
+
|
275
223
|
&-time-left {
|
276
224
|
display: block;
|
277
225
|
margin-top: -2px;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ProTimeLineProps } from './typing';
|
3
|
+
import ProTimeLineItem from './ProTimeLineItem';
|
4
|
+
import './index.scss';
|
5
|
+
interface ProTimelineProperties {
|
6
|
+
/** ProTimeLineItem */
|
7
|
+
Item: typeof ProTimeLineItem;
|
8
|
+
}
|
9
|
+
declare const ProTimeline: React.FC<ProTimeLineProps> & ProTimelineProperties;
|
10
|
+
export { ProTimeline, ProTimeLineItem };
|