@aloudata/aloudata-design 2.7.3 → 2.7.5
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/DataPreviewTable/components/Body/index.d.ts +1 -0
- package/dist/DataPreviewTable/components/Body/index.js +4 -3
- package/dist/DataPreviewTable/components/DragBar/index.d.ts +1 -0
- package/dist/DataPreviewTable/components/DragBar/index.js +4 -2
- package/dist/DataPreviewTable/components/Header/index.d.ts +1 -0
- package/dist/DataPreviewTable/components/Header/index.js +5 -4
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/index.js +12 -7
- package/dist/DataPreviewTable/interface.d.ts +1 -0
- package/dist/DataPreviewTable/style/index.less +1 -2
- package/dist/DatePicker/index.d.ts +8 -8
- package/dist/DoubleCircleIcon/index.d.ts +1 -1
- package/dist/Empty/style/index.less +2 -2
- package/dist/Form/index.d.ts +1 -1
- package/dist/Radio/components/Group/index.d.ts +1 -1
- package/dist/Select/index.js +5 -1
- package/dist/Steps/components/ProcessIcon/index.js +5 -1
- package/dist/Steps/style/index.less +42 -32
- package/dist/Table/helper.d.ts +1 -1
- package/dist/Tag/index.js +2 -1
- package/dist/Tree/style/index.less +5 -0
- package/dist/ald.min.css +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { memo } from 'react';
|
|
8
|
-
import { CELL_HEIGHT
|
|
8
|
+
import { CELL_HEIGHT } from "../../constant";
|
|
9
9
|
import Cell from "./Cell";
|
|
10
10
|
function Body(props) {
|
|
11
11
|
var columns = props.columns,
|
|
@@ -16,7 +16,8 @@ function Body(props) {
|
|
|
16
16
|
endIndex = _props$columnRange[1],
|
|
17
17
|
_props$rowRange = _slicedToArray(props.rowRange, 2),
|
|
18
18
|
startRowIndex = _props$rowRange[0],
|
|
19
|
-
endRowIndex = _props$rowRange[1]
|
|
19
|
+
endRowIndex = _props$rowRange[1],
|
|
20
|
+
headerHeight = props.headerHeight;
|
|
20
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
22
|
className: "ald-data-preview-table-body"
|
|
22
23
|
}, datasource.slice(startRowIndex, endRowIndex).map(function (row, rowIndex) {
|
|
@@ -28,7 +29,7 @@ function Body(props) {
|
|
|
28
29
|
var style = {
|
|
29
30
|
height: CELL_HEIGHT,
|
|
30
31
|
width: columnLayout[columns[columnIndex].id].width,
|
|
31
|
-
top: currentRowIndex * CELL_HEIGHT +
|
|
32
|
+
top: currentRowIndex * CELL_HEIGHT + headerHeight,
|
|
32
33
|
left: columnLayout[columns[columnIndex].id].left,
|
|
33
34
|
position: 'absolute',
|
|
34
35
|
textAlign: columns[columnIndex].align || 'left'
|
|
@@ -3,6 +3,7 @@ declare function DragBar(props: {
|
|
|
3
3
|
wrapWidth: number;
|
|
4
4
|
columnId: string;
|
|
5
5
|
onChange: (columnId: string, width: number) => void;
|
|
6
|
+
headerHeight: number;
|
|
6
7
|
}): React.JSX.Element;
|
|
7
8
|
declare const _default: React.MemoExoticComponent<typeof DragBar>;
|
|
8
9
|
export default _default;
|
|
@@ -16,7 +16,8 @@ import Mask from "./Mask";
|
|
|
16
16
|
function DragBar(props) {
|
|
17
17
|
var wrapWidth = props.wrapWidth,
|
|
18
18
|
columnId = props.columnId,
|
|
19
|
-
onChange = props.onChange
|
|
19
|
+
onChange = props.onChange,
|
|
20
|
+
headerHeight = props.headerHeight;
|
|
20
21
|
var _useState = useState(false),
|
|
21
22
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
23
|
show = _useState2[0],
|
|
@@ -52,7 +53,8 @@ function DragBar(props) {
|
|
|
52
53
|
e.stopPropagation();
|
|
53
54
|
},
|
|
54
55
|
style: {
|
|
55
|
-
right: dragBarLeft
|
|
56
|
+
right: dragBarLeft,
|
|
57
|
+
height: headerHeight
|
|
56
58
|
},
|
|
57
59
|
className: classNames('ald-data-preview-header-drag-bar', _defineProperty({}, 'ald-data-preview-header-drag-bar-active', show))
|
|
58
60
|
}, show ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(Mask, {
|
|
@@ -5,7 +5,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { HEADER_HEIGHT } from "../../constant";
|
|
9
8
|
import DragBar from "../DragBar";
|
|
10
9
|
export default function Header(props) {
|
|
11
10
|
var contentWidth = props.contentWidth,
|
|
@@ -14,7 +13,8 @@ export default function Header(props) {
|
|
|
14
13
|
setWidth = props.setWidth,
|
|
15
14
|
_props$columnRange = _slicedToArray(props.columnRange, 2),
|
|
16
15
|
startIndex = _props$columnRange[0],
|
|
17
|
-
endIndex = _props$columnRange[1]
|
|
16
|
+
endIndex = _props$columnRange[1],
|
|
17
|
+
headerHeight = props.headerHeight;
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
19
|
className: "ald-data-preview-header",
|
|
20
20
|
style: {
|
|
@@ -24,7 +24,7 @@ export default function Header(props) {
|
|
|
24
24
|
var _column$renderHeader;
|
|
25
25
|
var innerCell = (_column$renderHeader = column.renderHeader) === null || _column$renderHeader === void 0 ? void 0 : _column$renderHeader.call(column, column);
|
|
26
26
|
var style = {
|
|
27
|
-
height:
|
|
27
|
+
height: headerHeight,
|
|
28
28
|
width: columnLayout[column.id].width,
|
|
29
29
|
top: 0,
|
|
30
30
|
left: columnLayout[column.id].left,
|
|
@@ -43,7 +43,8 @@ export default function Header(props) {
|
|
|
43
43
|
}, column.name)), /*#__PURE__*/React.createElement(DragBar, {
|
|
44
44
|
columnId: column.id,
|
|
45
45
|
wrapWidth: columnLayout[column.id].width,
|
|
46
|
-
onChange: setWidth
|
|
46
|
+
onChange: setWidth,
|
|
47
|
+
headerHeight: headerHeight
|
|
47
48
|
}));
|
|
48
49
|
}));
|
|
49
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CELL_HEIGHT = 20;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DEFAULT_HEADER_HEIGHT = 32;
|
|
3
3
|
export declare const DEFAULT_COLUMN_WIDTH = 100;
|
|
4
4
|
export declare const PRE_RENDER_RANGE = 100;
|
|
5
5
|
export declare const UNDEFINED_INDEX = -1;
|
|
@@ -6,7 +6,7 @@ import Spin from "../Spin";
|
|
|
6
6
|
import Body from "./components/Body";
|
|
7
7
|
import Error from "./components/Body/Error";
|
|
8
8
|
import Header from "./components/Header";
|
|
9
|
-
import { CELL_HEIGHT,
|
|
9
|
+
import { CELL_HEIGHT, DEFAULT_HEADER_HEIGHT } from "./constant";
|
|
10
10
|
import useDirection from "./hooks/useDirection";
|
|
11
11
|
var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12
12
|
var _wrapRef$current5;
|
|
@@ -16,13 +16,16 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
16
16
|
datasource = _props$datasource === void 0 ? [] : _props$datasource,
|
|
17
17
|
width = props.width,
|
|
18
18
|
height = props.height,
|
|
19
|
+
_props$headerHeight = props.headerHeight,
|
|
20
|
+
headerHeight = _props$headerHeight === void 0 ? 0 : _props$headerHeight,
|
|
19
21
|
loading = props.loading,
|
|
20
22
|
dataStatus = props.dataStatus,
|
|
21
23
|
_props$errorMsg = props.errorMsg,
|
|
22
24
|
errorMsg = _props$errorMsg === void 0 ? '数据加载失败' : _props$errorMsg;
|
|
25
|
+
var realHeaderHeight = Math.max(headerHeight, DEFAULT_HEADER_HEIGHT);
|
|
23
26
|
var contentHeight = useMemo(function () {
|
|
24
|
-
return datasource.length * CELL_HEIGHT +
|
|
25
|
-
}, [datasource]);
|
|
27
|
+
return datasource.length * CELL_HEIGHT + realHeaderHeight;
|
|
28
|
+
}, [datasource, realHeaderHeight]);
|
|
26
29
|
var wrapRef = useRef(null);
|
|
27
30
|
var progressRef = useRef(null);
|
|
28
31
|
var _useDirection = useDirection(columns, wrapRef),
|
|
@@ -71,9 +74,9 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
71
74
|
var skeletonRows = useMemo(function () {
|
|
72
75
|
var _wrapRef$current4;
|
|
73
76
|
if (!wrapRef.current) return 0;
|
|
74
|
-
var rows = Math.ceil(((((_wrapRef$current4 = wrapRef.current) === null || _wrapRef$current4 === void 0 ? void 0 : _wrapRef$current4.clientHeight) || 0) -
|
|
77
|
+
var rows = Math.ceil(((((_wrapRef$current4 = wrapRef.current) === null || _wrapRef$current4 === void 0 ? void 0 : _wrapRef$current4.clientHeight) || 0) - realHeaderHeight) / CELL_HEIGHT);
|
|
75
78
|
return rows - 1 < 0 ? 0 : rows - 1;
|
|
76
|
-
}, []);
|
|
79
|
+
}, [realHeaderHeight]);
|
|
77
80
|
return /*#__PURE__*/React.createElement(ScrollArea, {
|
|
78
81
|
ref: wrapRef,
|
|
79
82
|
style: {
|
|
@@ -90,7 +93,7 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
90
93
|
})
|
|
91
94
|
}, /*#__PURE__*/React.createElement("div", {
|
|
92
95
|
style: {
|
|
93
|
-
height: dataStatus === 'pending' ? skeletonRows * CELL_HEIGHT +
|
|
96
|
+
height: dataStatus === 'pending' ? skeletonRows * CELL_HEIGHT + realHeaderHeight : contentHeight,
|
|
94
97
|
position: 'relative'
|
|
95
98
|
}
|
|
96
99
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -101,6 +104,7 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
101
104
|
ref: progressRef
|
|
102
105
|
}), /*#__PURE__*/React.createElement(Header, {
|
|
103
106
|
contentWidth: contentWidth,
|
|
107
|
+
headerHeight: realHeaderHeight,
|
|
104
108
|
columns: tableColumns,
|
|
105
109
|
columnLayout: columnLayout,
|
|
106
110
|
setWidth: setColumnsWidth,
|
|
@@ -112,7 +116,8 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
112
116
|
columnRange: columnRange,
|
|
113
117
|
columnLayout: columnLayout,
|
|
114
118
|
datasource: datasource,
|
|
115
|
-
rowRange: rowRange
|
|
119
|
+
rowRange: rowRange,
|
|
120
|
+
headerHeight: realHeaderHeight
|
|
116
121
|
}), dataStatus === 'error' && /*#__PURE__*/React.createElement(Error, {
|
|
117
122
|
errorMsg: errorMsg,
|
|
118
123
|
wrapWidth: ((_wrapRef$current5 = wrapRef.current) === null || _wrapRef$current5 === void 0 ? void 0 : _wrapRef$current5.clientWidth) || 0
|
|
@@ -22,13 +22,12 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.ald-data-preview-header {
|
|
25
|
-
height: 32px;
|
|
26
25
|
z-index: 2;
|
|
27
|
-
background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
|
|
28
26
|
width: 100%;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
.ald-data-preview-header-cell {
|
|
30
|
+
background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
|
|
32
31
|
height: 100%;
|
|
33
32
|
position: relative;
|
|
34
33
|
border: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
@@ -2,25 +2,25 @@ import { DatePicker as AntdDatePicker, DatePickerProps as AntdDatePickerProps }
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
export type { RangeValue } from 'rc-picker/lib/interface';
|
|
4
4
|
declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
5
|
-
status?: "" | "
|
|
5
|
+
status?: "" | "error" | "warning" | undefined;
|
|
6
6
|
hashId?: string | undefined;
|
|
7
7
|
popupClassName?: string | undefined;
|
|
8
8
|
rootClassName?: string | undefined;
|
|
9
9
|
}, unknown> & {
|
|
10
10
|
WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
11
|
-
status?: "" | "
|
|
11
|
+
status?: "" | "error" | "warning" | undefined;
|
|
12
12
|
hashId?: string | undefined;
|
|
13
13
|
popupClassName?: string | undefined;
|
|
14
14
|
rootClassName?: string | undefined;
|
|
15
15
|
}, "picker">, unknown>;
|
|
16
16
|
MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
17
|
-
status?: "" | "
|
|
17
|
+
status?: "" | "error" | "warning" | undefined;
|
|
18
18
|
hashId?: string | undefined;
|
|
19
19
|
popupClassName?: string | undefined;
|
|
20
20
|
rootClassName?: string | undefined;
|
|
21
21
|
}, "picker">, unknown>;
|
|
22
22
|
YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
23
|
-
status?: "" | "
|
|
23
|
+
status?: "" | "error" | "warning" | undefined;
|
|
24
24
|
hashId?: string | undefined;
|
|
25
25
|
popupClassName?: string | undefined;
|
|
26
26
|
rootClassName?: string | undefined;
|
|
@@ -34,9 +34,9 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
|
|
|
34
34
|
size?: import("antd/es/button").ButtonSize;
|
|
35
35
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
36
36
|
bordered?: boolean | undefined;
|
|
37
|
-
status?: "" | "
|
|
37
|
+
status?: "" | "error" | "warning" | undefined;
|
|
38
38
|
} & {
|
|
39
|
-
status?: "" | "
|
|
39
|
+
status?: "" | "error" | "warning" | undefined;
|
|
40
40
|
hashId?: string | undefined;
|
|
41
41
|
popupClassName?: string | undefined;
|
|
42
42
|
rootClassName?: string | undefined;
|
|
@@ -46,9 +46,9 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
|
|
|
46
46
|
size?: import("antd/es/button").ButtonSize;
|
|
47
47
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
48
48
|
bordered?: boolean | undefined;
|
|
49
|
-
status?: "" | "
|
|
49
|
+
status?: "" | "error" | "warning" | undefined;
|
|
50
50
|
} & {
|
|
51
|
-
status?: "" | "
|
|
51
|
+
status?: "" | "error" | "warning" | undefined;
|
|
52
52
|
hashId?: string | undefined;
|
|
53
53
|
popupClassName?: string | undefined;
|
|
54
54
|
rootClassName?: string | undefined;
|
|
@@ -5,6 +5,6 @@ declare const DoubleCircleIcon: (props: {
|
|
|
5
5
|
size?: number | undefined;
|
|
6
6
|
innerColor?: string | undefined;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
type?: "
|
|
8
|
+
type?: "success" | "error" | "info" | "warning" | undefined;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default DoubleCircleIcon;
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ald-empty-title-small {
|
|
35
|
-
color: #
|
|
35
|
+
color: #4b5563;
|
|
36
36
|
font-weight: 400;
|
|
37
37
|
font-size: 14px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ald-empty-description {
|
|
41
|
-
color:
|
|
41
|
+
color: #4b5563;
|
|
42
42
|
font-size: 12px;
|
|
43
43
|
line-height: 20px;
|
|
44
44
|
font-weight: 400;
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface IFormItemProps extends FormItemProps {
|
|
|
18
18
|
declare const AldFormItem: {
|
|
19
19
|
(props: IFormItemProps): React.JSX.Element;
|
|
20
20
|
useStatus: () => {
|
|
21
|
-
status?: "" | "
|
|
21
|
+
status?: "" | "success" | "error" | "warning" | "validating" | undefined;
|
|
22
22
|
errors: React.ReactNode[];
|
|
23
23
|
warnings: React.ReactNode[];
|
|
24
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IRadioGroupProps } from '../../interface/radioGroup';
|
|
3
|
-
export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "
|
|
3
|
+
export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "children" | "className">>;
|
|
4
4
|
export default function RadioGroup(props: IRadioGroupProps): React.JSX.Element;
|
package/dist/Select/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "prefixWidth", "className", "popupClassName", "listHeight", "notFoundContent", "value", "type", "tagRender", "style", "autoFocus", "showSearch", "size", "status", "disabled", "prefixCls", "placeholder", "dropdownStyle", "showArrow"];
|
|
2
|
+
var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "prefixWidth", "className", "popupClassName", "listHeight", "notFoundContent", "value", "type", "tagRender", "style", "autoFocus", "showSearch", "size", "status", "disabled", "prefixCls", "placeholder", "dropdownStyle", "virtual", "showArrow"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
@@ -106,6 +106,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
106
106
|
customizePrefixCls = props.prefixCls,
|
|
107
107
|
propsPlaceholder = props.placeholder,
|
|
108
108
|
dropdownStyle = props.dropdownStyle,
|
|
109
|
+
virtual = props.virtual,
|
|
109
110
|
_props$showArrow = props.showArrow,
|
|
110
111
|
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
|
111
112
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
@@ -241,6 +242,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
241
242
|
height: getListHeight(),
|
|
242
243
|
itemHeight: listItemHeight,
|
|
243
244
|
itemKey: "value",
|
|
245
|
+
virtual: virtual,
|
|
244
246
|
fullHeight: false
|
|
245
247
|
}, function (option) {
|
|
246
248
|
var isSelected = false;
|
|
@@ -283,6 +285,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
283
285
|
height: getListHeight(),
|
|
284
286
|
itemHeight: listItemHeight,
|
|
285
287
|
itemKey: "value",
|
|
288
|
+
virtual: virtual,
|
|
286
289
|
fullHeight: false
|
|
287
290
|
}, function (option) {
|
|
288
291
|
var isSelected = selectedOptions.some(function (selectedOption) {
|
|
@@ -411,6 +414,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
411
414
|
placeholder: placeholder,
|
|
412
415
|
showSearch: showSearch,
|
|
413
416
|
options: innerOptions,
|
|
417
|
+
virtual: virtual,
|
|
414
418
|
showArrow: isMultiple && type === 'primary' ? false : showArrow,
|
|
415
419
|
mode: isMultiple ? 'multiple' : undefined,
|
|
416
420
|
bordered: false,
|
|
@@ -11,7 +11,11 @@ export function ProcessIcon(_ref) {
|
|
|
11
11
|
return /*#__PURE__*/React.createElement("span", {
|
|
12
12
|
className: classNames("".concat(type, "-icon-box"), 'icon-box')
|
|
13
13
|
}, /*#__PURE__*/React.createElement("img", {
|
|
14
|
-
|
|
14
|
+
style: {
|
|
15
|
+
width: 16,
|
|
16
|
+
height: 16
|
|
17
|
+
},
|
|
18
|
+
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Il9CYXNlX0luZGljYXRvciI+CjxwYXRoIGlkPSJPdmFsIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTggMTZDMTIuNDE4MyAxNiAxNiAxMi40MTgzIDE2IDhDMTYgMy41ODE3MiAxMi40MTgzIDAgOCAwQzMuNTgxNzIgMCAwIDMuNTgxNzIgMCA4QzAgMTIuNDE4MyAzLjU4MTcyIDE2IDggMTZaIiBmaWxsPSIjRUY0NDQ0Ii8+CjxwYXRoIGlkPSJJY29uIiBkPSJNNy4yODEyNSAzSDguOTY4NzVWOS41SDcuMjgxMjVWM1pNOC4xMjUgMTNDNy45MDI1IDEzIDcuNjg0OTkgMTIuOTM0IDcuNDk5OTggMTIuODEwNEM3LjMxNDk4IDEyLjY4NjggNy4xNzA3OCAxMi41MTExIDcuMDg1NjQgMTIuMzA1NUM3LjAwMDQ5IDEyLjEgNi45NzgyMSAxMS44NzM4IDcuMDIxNjIgMTEuNjU1NUM3LjA2NTAzIDExLjQzNzMgNy4xNzIxNyAxMS4yMzY4IDcuMzI5NTEgMTEuMDc5NUM3LjQ4Njg0IDEwLjkyMjIgNy42ODczIDEwLjgxNSA3LjkwNTUyIDEwLjc3MTZDOC4xMjM3NSAxMC43MjgyIDguMzQ5OTUgMTAuNzUwNSA4LjU1NTUyIDEwLjgzNTZDOC43NjEwOSAxMC45MjA4IDguOTM2NzkgMTEuMDY1IDkuMDYwNCAxMS4yNUM5LjE4NDAyIDExLjQzNSA5LjI1IDExLjY1MjUgOS4yNSAxMS44NzVDOS4yNSAxMi4xNzM0IDkuMTMxNDcgMTIuNDU5NSA4LjkyMDUgMTIuNjcwNUM4LjcwOTUyIDEyLjg4MTUgOC40MjMzNyAxMyA4LjEyNSAxM1oiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg=="
|
|
15
19
|
}));
|
|
16
20
|
}
|
|
17
21
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
padding: 24px;
|
|
6
6
|
|
|
7
7
|
.ant-steps-item .ant-steps-item-container .ant-steps-item-icon {
|
|
8
|
-
margin: 0 8px
|
|
8
|
+
margin: 0 8px 4px 66px;
|
|
9
9
|
font-size: 12px;
|
|
10
|
-
|
|
10
|
+
height: 16px;
|
|
11
11
|
text-align: center;
|
|
12
|
-
border-radius: 24px;
|
|
13
12
|
transition: background-color 0.3s, border-color 0.3s;
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
display: flex;
|
|
22
21
|
flex-direction: column;
|
|
23
22
|
align-items: center;
|
|
24
|
-
margin:
|
|
23
|
+
margin: 0 4px;
|
|
25
24
|
font-size: 13px;
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -50,14 +49,14 @@
|
|
|
50
49
|
|
|
51
50
|
&::after {
|
|
52
51
|
height: 1.5px;
|
|
53
|
-
background-color:
|
|
52
|
+
background-color: #126fdd;
|
|
54
53
|
content: '';
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
.ant-steps-item-title {
|
|
59
58
|
height: 20px;
|
|
60
|
-
font-weight:
|
|
59
|
+
font-weight: 500;
|
|
61
60
|
font-size: 13px;
|
|
62
61
|
font-style: normal;
|
|
63
62
|
line-height: 20px;
|
|
@@ -66,9 +65,9 @@
|
|
|
66
65
|
.ant-steps-item-description {
|
|
67
66
|
max-width: 264px;
|
|
68
67
|
max-height: 32px;
|
|
69
|
-
margin-top:
|
|
68
|
+
margin-top: 4px;
|
|
70
69
|
overflow: hidden;
|
|
71
|
-
color:
|
|
70
|
+
color: #4b5563;
|
|
72
71
|
font-weight: 400;
|
|
73
72
|
font-size: 12px;
|
|
74
73
|
font-style: normal;
|
|
@@ -80,16 +79,19 @@
|
|
|
80
79
|
&.ant-steps-item-finish {
|
|
81
80
|
.ant-steps-item-tail::after {
|
|
82
81
|
height: 1.5px;
|
|
83
|
-
background-color:
|
|
82
|
+
background-color: #126fdd;
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
.ant-steps-item-container {
|
|
87
86
|
.ant-steps-item-content {
|
|
88
87
|
.ant-steps-item-title {
|
|
89
|
-
color:
|
|
90
|
-
font-weight:
|
|
88
|
+
color: #9ca3af;
|
|
89
|
+
font-weight: 500;
|
|
91
90
|
font-size: 13px;
|
|
92
|
-
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ant-steps-item-description {
|
|
94
|
+
color: #9ca3af;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
}
|
|
@@ -98,14 +100,14 @@
|
|
|
98
100
|
&.ant-steps-item-active {
|
|
99
101
|
.ant-steps-item-container {
|
|
100
102
|
.ant-steps-item-tail::after {
|
|
101
|
-
background-color:
|
|
103
|
+
background-color: #e5e7eb !important;
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
.ant-steps-item-content {
|
|
105
107
|
.ant-steps-item-title {
|
|
106
|
-
color:
|
|
107
|
-
font-weight:
|
|
108
|
-
font-size:
|
|
108
|
+
color: #126fdd;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
font-size: 14px;
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
}
|
|
@@ -114,14 +116,12 @@
|
|
|
114
116
|
&.ant-steps-item-wait {
|
|
115
117
|
.ant-steps-item-container {
|
|
116
118
|
.ant-steps-item-tail::after {
|
|
117
|
-
background-color:
|
|
119
|
+
background-color: #9ca3af;
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
.ant-steps-item-content {
|
|
121
123
|
.ant-steps-item-title {
|
|
122
|
-
color:
|
|
123
|
-
font-weight: 400;
|
|
124
|
-
font-size: 13px;
|
|
124
|
+
color: #1f2937;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
.ant-steps-item-container {
|
|
132
132
|
.ant-steps-item-content {
|
|
133
133
|
.ant-steps-item-title {
|
|
134
|
-
color:
|
|
135
|
-
font-size:
|
|
134
|
+
color: #b91c1c;
|
|
135
|
+
font-size: 14px;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.ant-steps-item-description {
|
|
139
|
-
color:
|
|
139
|
+
color: #9ca3af;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -170,7 +170,6 @@
|
|
|
170
170
|
|
|
171
171
|
.ant-steps-item-title {
|
|
172
172
|
height: 20px;
|
|
173
|
-
margin-top: 1px;
|
|
174
173
|
font-size: 14px;
|
|
175
174
|
line-height: 20px;
|
|
176
175
|
}
|
|
@@ -179,13 +178,14 @@
|
|
|
179
178
|
max-width: 264px;
|
|
180
179
|
height: 16px;
|
|
181
180
|
max-height: 32px;
|
|
182
|
-
margin-top:
|
|
181
|
+
margin-top: 3px;
|
|
183
182
|
padding: 0;
|
|
184
183
|
overflow: hidden;
|
|
185
184
|
font-size: 12px;
|
|
186
185
|
line-height: 16px;
|
|
187
186
|
text-overflow: ellipsis;
|
|
188
187
|
word-wrap: break-word;
|
|
188
|
+
color: #4b5563;
|
|
189
189
|
-webkit-line-clamp: 2;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
&::after {
|
|
227
227
|
width: 1.5px;
|
|
228
228
|
height: 100%;
|
|
229
|
-
background-color:
|
|
229
|
+
background-color: #126fdd;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -240,7 +240,11 @@
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
&.ant-steps-item-title {
|
|
243
|
-
color:
|
|
243
|
+
color: #9ca3af;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.ant-steps-item-description {
|
|
247
|
+
color: #9ca3af !important;
|
|
244
248
|
}
|
|
245
249
|
}
|
|
246
250
|
}
|
|
@@ -274,12 +278,12 @@
|
|
|
274
278
|
}
|
|
275
279
|
|
|
276
280
|
.check-icon-box {
|
|
277
|
-
color:
|
|
281
|
+
color: #126fdd;
|
|
278
282
|
}
|
|
279
283
|
|
|
280
284
|
.ald-steps.ald-steps .finish-icon-box {
|
|
281
285
|
position: relative;
|
|
282
|
-
background-color:
|
|
286
|
+
background-color: #2986f4;
|
|
283
287
|
display: grid;
|
|
284
288
|
place-items: center;
|
|
285
289
|
|
|
@@ -304,7 +308,7 @@
|
|
|
304
308
|
// 提升该类名的优先级,不然会被.iconBox覆盖掉
|
|
305
309
|
.ald-steps.ald-steps .process-icon-box {
|
|
306
310
|
position: relative;
|
|
307
|
-
background-color:
|
|
311
|
+
background-color: #2986f4;
|
|
308
312
|
|
|
309
313
|
&::after {
|
|
310
314
|
position: absolute;
|
|
@@ -321,7 +325,7 @@
|
|
|
321
325
|
|
|
322
326
|
.ald-steps.ald-steps .wait-icon-box {
|
|
323
327
|
position: relative;
|
|
324
|
-
background-color:
|
|
328
|
+
background-color: #9ca3af;
|
|
325
329
|
|
|
326
330
|
&::after {
|
|
327
331
|
position: absolute;
|
|
@@ -329,9 +333,15 @@
|
|
|
329
333
|
left: 50%;
|
|
330
334
|
width: 6px;
|
|
331
335
|
height: 6px;
|
|
332
|
-
background-color:
|
|
336
|
+
background-color: #fff;
|
|
333
337
|
border-radius: 50%;
|
|
334
338
|
transform: translate(-50%, -50%);
|
|
335
339
|
content: '';
|
|
336
340
|
}
|
|
337
341
|
}
|
|
342
|
+
|
|
343
|
+
.ald-steps > .ant-steps-item:last-child {
|
|
344
|
+
.ant-steps-item-tail::after {
|
|
345
|
+
content: unset !important;
|
|
346
|
+
}
|
|
347
|
+
}
|
package/dist/Table/helper.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare function getTableColumns<TDataItem extends object>({ columns, tot
|
|
|
21
21
|
render?: ((text: any, record: TDataItem, rowIndex: number) => import("react").ReactNode) | undefined;
|
|
22
22
|
ellipsis?: boolean | undefined;
|
|
23
23
|
noPadding?: boolean | undefined;
|
|
24
|
-
align?: "
|
|
24
|
+
align?: "center" | "left" | "right" | undefined;
|
|
25
25
|
fixed?: "left" | "right" | undefined;
|
|
26
26
|
sortOrder?: "ascend" | "descend" | null | undefined;
|
|
27
27
|
};
|
package/dist/Tag/index.js
CHANGED
|
@@ -44,7 +44,8 @@ export default function Tag(props) {
|
|
|
44
44
|
}, icon && /*#__PURE__*/React.createElement("span", {
|
|
45
45
|
className: prefixCls('icon')
|
|
46
46
|
}, icon), /*#__PURE__*/React.createElement("span", {
|
|
47
|
-
className: prefixCls('content')
|
|
47
|
+
className: prefixCls('content'),
|
|
48
|
+
title: typeof children === 'string' ? children : ''
|
|
48
49
|
}, children), closable ? /*#__PURE__*/React.createElement("span", {
|
|
49
50
|
className: prefixCls('close-btn'),
|
|
50
51
|
onClick: onCloseBtnClick
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
88
88
|
border-radius: 4px;
|
|
89
|
+
min-width: 0;
|
|
89
90
|
// stylelint-disable-next-line
|
|
90
91
|
.ald-tree-iconEle {
|
|
91
92
|
display: inline-flex;
|
|
@@ -102,6 +103,10 @@
|
|
|
102
103
|
align-items: center;
|
|
103
104
|
justify-content: space-between;
|
|
104
105
|
flex: 1;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
white-space: nowrap;
|
|
105
110
|
|
|
106
111
|
.ald-tree-tab-leader {
|
|
107
112
|
flex: 1;
|