@aloudata/aloudata-design 2.0.0-beta.5 → 2.0.0-beta.7
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/Button/style/variables.less +7 -4
- package/dist/Dropdown/style/index.less +1 -0
- package/dist/MemberPicker/index.js +2 -0
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +7 -1
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Select/style/index.less +1 -0
- package/dist/Spin/style/index.less +8 -0
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/style/index.less +2 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.js +5 -2
- package/dist/Tabs/style/index.less +8 -0
- package/dist/TextLink/index.js +1 -1
- package/dist/TextLink/style/index.less +5 -0
- package/dist/TextLink/style/type.less +2 -2
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/style/index.less +13 -3
- package/dist/ald.min.css +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
var(--alias-padding-150-minus-1, 12px);
|
|
11
11
|
@button-line-height-large: 24px;
|
|
12
12
|
@button-gap-large: 8px;
|
|
13
|
-
@button-text-min-width-large:
|
|
13
|
+
@button-text-min-width-large: 56px;
|
|
14
14
|
|
|
15
15
|
@button-height-middle: 32px;
|
|
16
16
|
@button-text-size-middle: 14px;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
var(--alias-padding-150-minus-1, 12px);
|
|
20
20
|
@button-line-height-middle: 20px;
|
|
21
21
|
@button-gap-middle: 4px;
|
|
22
|
-
@button-text-min-width-middle:
|
|
22
|
+
@button-text-min-width-middle: 52px;
|
|
23
23
|
|
|
24
24
|
@button-height-small: 28px;
|
|
25
25
|
@button-text-size-small: 12px;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
var(--alias-padding-150-minus-1, 12px);
|
|
29
29
|
@button-line-height-small: 16px;
|
|
30
30
|
@button-gap-small: var(--alias-radius-50, 4px);
|
|
31
|
-
@button-text-min-width-small:
|
|
31
|
+
@button-text-min-width-small: 48px;
|
|
32
32
|
|
|
33
33
|
// @button-height-mini: 24px;
|
|
34
34
|
// @button-text-size-mini: 12px;
|
|
@@ -38,7 +38,10 @@
|
|
|
38
38
|
|
|
39
39
|
/**** primary按钮 ****/
|
|
40
40
|
// bg color
|
|
41
|
-
@button-primary-bg-color:var(
|
|
41
|
+
@button-primary-bg-color: var(
|
|
42
|
+
--alias-colors-bg-accent-blue-stronger-default,
|
|
43
|
+
#126fdd
|
|
44
|
+
);
|
|
42
45
|
@button-primary-bg-color-hover: var(
|
|
43
46
|
--alias-colors-bg-accent-blue-stronger-hover,
|
|
44
47
|
#0f59b1
|
|
@@ -35,6 +35,7 @@ var Component = function Component(_ref) {
|
|
|
35
35
|
disabled = _ref.disabled,
|
|
36
36
|
_onClear = _ref.onClear,
|
|
37
37
|
size = _ref.size,
|
|
38
|
+
selectType = _ref.selectType,
|
|
38
39
|
_ref$lockedIds = _ref.lockedIds,
|
|
39
40
|
lockedIds = _ref$lockedIds === void 0 ? [] : _ref$lockedIds;
|
|
40
41
|
var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
|
|
@@ -185,6 +186,7 @@ var Component = function Component(_ref) {
|
|
|
185
186
|
return /*#__PURE__*/React.createElement(Select, {
|
|
186
187
|
prefix: prefix,
|
|
187
188
|
size: size,
|
|
189
|
+
type: selectType,
|
|
188
190
|
className: classNames('ald-member-picker-select', className),
|
|
189
191
|
value: selectedUserList.map(function (item) {
|
|
190
192
|
if (item.type === EUserType.USER_GROUP) {
|
|
@@ -15,6 +15,7 @@ export interface IBaseMemberSelectorProps extends Pick<ISelectProps, 'allowClear
|
|
|
15
15
|
open?: boolean;
|
|
16
16
|
onOpenChange?: (open: boolean) => void;
|
|
17
17
|
type?: EMemberPicker;
|
|
18
|
+
selectType?: ISelectProps['type'];
|
|
18
19
|
lockedIds?: Array<TUserValue | TUserGroupValue>;
|
|
19
20
|
}
|
|
20
21
|
export interface IMultipleMemberSelectorProps extends IBaseMemberSelectorProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IPaginationProps } from './types';
|
|
3
|
-
declare function Pagination(props: IPaginationProps): React.JSX.Element;
|
|
3
|
+
declare function Pagination(props: IPaginationProps): React.JSX.Element | null;
|
|
4
4
|
export default Pagination;
|
|
5
5
|
/**
|
|
6
6
|
* 获取在安全范围内的当前页数
|
package/dist/Pagination/index.js
CHANGED
|
@@ -18,7 +18,8 @@ function Pagination(props) {
|
|
|
18
18
|
currPage = _props$current === void 0 ? 1 : _props$current,
|
|
19
19
|
pageSize = props.pageSize,
|
|
20
20
|
total = props.total,
|
|
21
|
-
onChange = props.onChange
|
|
21
|
+
onChange = props.onChange,
|
|
22
|
+
hideOnSinglePage = props.hideOnSinglePage;
|
|
22
23
|
var totalPage = getTotalPage(total, pageSize);
|
|
23
24
|
var _useState = useState(getSafeCurrent(totalPage, currPage)),
|
|
24
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -41,6 +42,11 @@ function Pagination(props) {
|
|
|
41
42
|
};
|
|
42
43
|
}, [onChange, current]);
|
|
43
44
|
var pageRange = getPaginationRange(totalPage, current);
|
|
45
|
+
if (hideOnSinglePage) {
|
|
46
|
+
if (totalPage <= 1) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
44
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
45
51
|
className: prefixCls('container')
|
|
46
52
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -20,7 +20,9 @@ export default function TablePagination(props) {
|
|
|
20
20
|
}, [scrollToFirstRow, scroll, pagination]);
|
|
21
21
|
return pagination && /*#__PURE__*/React.createElement("div", {
|
|
22
22
|
className: prefixCls('pagination')
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Pagination, _extends({
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Pagination, _extends({
|
|
24
|
+
hideOnSinglePage: true
|
|
25
|
+
}, pagination, {
|
|
24
26
|
onChange: onChangePage
|
|
25
27
|
})));
|
|
26
28
|
}
|
package/dist/Table/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import Pagination from "./components/Pagination";
|
|
|
18
18
|
import { getTableColumns, prefixCls } from "./helper";
|
|
19
19
|
import useScrollX from "./hooks/useScroll";
|
|
20
20
|
// 32 行高 + 1 底线高度
|
|
21
|
-
var HEADER_HEIGHT =
|
|
21
|
+
var HEADER_HEIGHT = 41;
|
|
22
22
|
function Table(props, ref) {
|
|
23
23
|
var _classnames;
|
|
24
24
|
var columns = props.columns,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import '../../Pagination/style/index.less';
|
|
3
3
|
@import '../../Spin/style/index.less';
|
|
4
4
|
@import '../../ScrollArea/style/index.less';
|
|
5
|
+
@import '../../Empty/style/index.less';
|
|
5
6
|
|
|
6
7
|
.ald-table-container {
|
|
7
8
|
position: relative;
|
|
@@ -160,4 +161,5 @@
|
|
|
160
161
|
|
|
161
162
|
.ald-table-empty {
|
|
162
163
|
margin-top: 80px;
|
|
164
|
+
overflow: hidden;
|
|
163
165
|
}
|
package/dist/Tabs/index.d.ts
CHANGED
|
@@ -59,6 +59,11 @@ export interface ITabsProps extends Omit<TabsProps, 'size'> {
|
|
|
59
59
|
* @default false
|
|
60
60
|
*/
|
|
61
61
|
compact?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @description tabs和content之间是否包含分割线
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
hasDividing?: boolean;
|
|
62
67
|
}
|
|
63
68
|
declare function Tabs(props: ITabsProps): React.JSX.Element;
|
|
64
69
|
declare namespace Tabs {
|
package/dist/Tabs/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 = ["size", "className", "popupClassName", "adaptHeight", "style", "monospace", "tabPosition", "padding", "compact"];
|
|
2
|
+
var _excluded = ["size", "className", "popupClassName", "adaptHeight", "style", "monospace", "tabPosition", "padding", "compact", "hasDividing"];
|
|
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 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; }
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -27,6 +27,8 @@ export default function Tabs(props) {
|
|
|
27
27
|
_props$padding = props.padding,
|
|
28
28
|
padding = _props$padding === void 0 ? false : _props$padding,
|
|
29
29
|
compact = props.compact,
|
|
30
|
+
_props$hasDividing = props.hasDividing,
|
|
31
|
+
hasDividing = _props$hasDividing === void 0 ? true : _props$hasDividing,
|
|
30
32
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
31
33
|
var headerBackgroundColor = props.headerBackgroundColor;
|
|
32
34
|
var tabsProps = _objectSpread({}, otherProps);
|
|
@@ -66,7 +68,8 @@ export default function Tabs(props) {
|
|
|
66
68
|
'ald-tabs-default': size !== 'small',
|
|
67
69
|
'ald-tabs-monospace': _monospace,
|
|
68
70
|
'ald-tabs-padding': !!padding,
|
|
69
|
-
'ald-tabs-compact': !!compact
|
|
71
|
+
'ald-tabs-compact': !!compact,
|
|
72
|
+
'ald-tabs-no-dividing': !hasDividing
|
|
70
73
|
})
|
|
71
74
|
}, tabsProps));
|
|
72
75
|
}
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
.ant-tabs-tab {
|
|
63
63
|
font-size: @tabs-font-size-small;
|
|
64
64
|
line-height: @tabs-line-height-small;
|
|
65
|
+
height: 40px;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.ant-tabs-ink-bar {
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
.ant-tabs-tab {
|
|
80
81
|
font-size: @tabs-font-size;
|
|
81
82
|
line-height: @tabs-line-height;
|
|
83
|
+
height: 44px;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
.ald-tabs-more-icon {
|
|
@@ -217,3 +219,9 @@
|
|
|
217
219
|
padding: 0 var(--tabs-padding) var(--tabs-padding);
|
|
218
220
|
}
|
|
219
221
|
}
|
|
222
|
+
|
|
223
|
+
.ald-tabs-no-dividing {
|
|
224
|
+
&.ant-tabs-top > .ant-tabs-nav::before {
|
|
225
|
+
border-bottom: 0;
|
|
226
|
+
}
|
|
227
|
+
}
|
package/dist/TextLink/index.js
CHANGED
|
@@ -19,7 +19,7 @@ function TextLink(props) {
|
|
|
19
19
|
var size = propsSize || 'middle';
|
|
20
20
|
var icon = underline ? null : propsIcon;
|
|
21
21
|
return /*#__PURE__*/React.createElement("span", {
|
|
22
|
-
className: classNames('ald-text-link', className, (_classNames = {}, _defineProperty(_classNames, "ald-text-link-".concat(size), size), _defineProperty(_classNames, "ald-text-link-".concat(type), type), _defineProperty(_classNames, "ald-text-link-
|
|
22
|
+
className: classNames('ald-text-link', className, (_classNames = {}, _defineProperty(_classNames, "ald-text-link-".concat(size), size), _defineProperty(_classNames, "ald-text-link-".concat(type), type), _defineProperty(_classNames, "ald-text-link-disabled", disabled), _defineProperty(_classNames, "ald-text-link-show-underline", underline), _classNames)),
|
|
23
23
|
onClick: onClick
|
|
24
24
|
}, icon, children);
|
|
25
25
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
color: var(--alias-colors-link-hover, #0f59b1);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
&.ald-text-link-disabled {
|
|
13
13
|
color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
color: var(--alias-colors-text-selected, #126fdd);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
&.ald-text-link-disabled {
|
|
29
29
|
color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
|
|
30
30
|
}
|
|
31
31
|
}
|
package/dist/Tree/Tree.js
CHANGED
|
@@ -25,7 +25,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25
25
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
26
26
|
direction = _React$useContext.direction,
|
|
27
27
|
virtual = _React$useContext.virtual;
|
|
28
|
-
var size = props.size || '
|
|
28
|
+
var size = props.size || 'large';
|
|
29
29
|
var className = props.className,
|
|
30
30
|
_props$showIcon = props.showIcon,
|
|
31
31
|
showIcon = _props$showIcon === void 0 ? false : _props$showIcon,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@import './checkbox.less';
|
|
8
8
|
|
|
9
9
|
@tree-font-size-large: 14px;
|
|
10
|
-
@tree-padding-large: 6px
|
|
10
|
+
@tree-padding-large: 6px;
|
|
11
11
|
@tree-line-height-large: 20px;
|
|
12
12
|
|
|
13
13
|
@tree-font-size-default: 12px;
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
flex: 1;
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: center;
|
|
65
|
+
border-radius: 4px;
|
|
65
66
|
// stylelint-disable-next-line
|
|
66
67
|
.ald-tree-iconEle {
|
|
67
68
|
display: inline-flex;
|
|
@@ -77,7 +78,6 @@
|
|
|
77
78
|
display: inline-flex;
|
|
78
79
|
align-items: center;
|
|
79
80
|
justify-content: space-between;
|
|
80
|
-
color: var(--alias-colors-text-default, #1f2937);
|
|
81
81
|
flex: 1;
|
|
82
82
|
|
|
83
83
|
.ald-tree-tab-leader {
|
|
@@ -94,8 +94,11 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&.ald-tree-node-selected {
|
|
97
|
-
border-radius: var(--alias-radius-75, 6px);
|
|
98
97
|
background: var(--alias-colors-bg-selected-default, #e8f2fe);
|
|
98
|
+
color: var(--alias-colors-text-selected, #126fdd);
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
line-height: 16px;
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
|
|
@@ -119,10 +122,17 @@
|
|
|
119
122
|
|
|
120
123
|
.ald-tree-node-content-wrapper {
|
|
121
124
|
padding: @tree-padding-large;
|
|
125
|
+
border-radius: var(--alias-radius-75, 6px);
|
|
122
126
|
|
|
123
127
|
.ald-tree-title {
|
|
124
128
|
line-height: @tree-line-height-large;
|
|
125
129
|
}
|
|
130
|
+
|
|
131
|
+
&.ald-tree-node-selected {
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
line-height: 20px;
|
|
135
|
+
}
|
|
126
136
|
}
|
|
127
137
|
}
|
|
128
138
|
}
|