@aloudata/aloudata-design 0.2.0-beta.7 → 0.2.1
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 +188 -51
- package/es/Alert/index.d.ts +4 -0
- package/es/Alert/index.js +3 -0
- package/es/Alert/style/index.d.ts +2 -0
- package/es/Alert/style/index.js +2 -0
- package/es/Alert/style/index.less +1 -0
- package/es/Button/style/index.less +113 -63
- package/es/Checkbox/index.d.ts +11 -0
- package/es/Checkbox/index.js +38 -0
- package/es/Checkbox/style/index.d.ts +2 -0
- package/es/Checkbox/style/index.js +2 -0
- package/es/Checkbox/style/index.less +79 -0
- package/es/Col/index.d.ts +4 -0
- package/es/Col/index.js +3 -0
- package/es/Col/style/index.d.ts +2 -0
- package/es/Col/style/index.js +2 -0
- package/es/Col/style/index.less +1 -0
- package/es/ConfigProvider/index.d.ts +3 -0
- package/es/ConfigProvider/index.js +3 -0
- package/es/ConfigProvider/style/index.d.ts +2 -0
- package/es/ConfigProvider/style/index.js +2 -0
- package/es/ConfigProvider/style/index.less +1 -0
- package/es/DatePicker/index.d.ts +4 -0
- package/es/DatePicker/index.js +3 -0
- package/es/DatePicker/style/index.d.ts +2 -0
- package/es/DatePicker/style/index.js +2 -0
- package/es/DatePicker/style/index.less +1 -0
- package/es/Divider/index.d.ts +3 -0
- package/es/Divider/index.js +3 -0
- package/es/Divider/style/index.d.ts +2 -0
- package/es/Divider/style/index.js +2 -0
- package/es/Divider/style/index.less +1 -0
- package/es/Dropdown/Button.d.ts +1 -0
- package/es/Dropdown/Button.js +2 -1
- package/es/Dropdown/index.d.ts +22 -0
- package/es/Dropdown/style/index.d.ts +1 -0
- package/es/Dropdown/style/index.js +1 -0
- package/es/Empty/style/index.less +8 -7
- package/es/Form/index.d.ts +8 -0
- package/es/Form/index.js +3 -0
- package/es/Form/style/index.d.ts +2 -0
- package/es/Form/style/index.js +2 -0
- package/es/Form/style/index.less +1 -0
- package/es/Icon/index.d.ts +3 -0
- package/es/Icon/index.js +5 -2
- package/es/Input/components/Group/index.d.ts +1 -2
- package/es/Input/components/Input/index.d.ts +67 -0
- package/es/Input/components/Input/index.js +38 -0
- package/es/Input/components/Password/index.d.ts +5 -5
- package/es/Input/components/Password/index.js +5 -4
- package/es/Input/components/TextArea/index.d.ts +10 -4
- package/es/Input/components/TextArea/index.js +16 -6
- package/es/Input/index.d.ts +14 -62
- package/es/Input/index.js +4 -40
- package/es/Input/style/index.d.ts +1 -0
- package/es/Input/style/index.js +1 -0
- package/es/Input/style/index.less +44 -12
- package/es/Layout/index.d.ts +4 -0
- package/es/Layout/index.js +3 -0
- package/es/Layout/style/index.d.ts +2 -0
- package/es/Layout/style/index.js +2 -0
- package/es/Layout/style/index.less +1 -0
- package/es/Menu/MenuItem.d.ts +7 -1
- package/es/Menu/style/index.d.ts +1 -0
- package/es/Menu/style/index.js +1 -0
- package/es/Menu/style/index.less +9 -5
- package/es/Message/index.d.ts +4 -0
- package/es/Message/index.js +3 -0
- package/es/Message/style/index.d.ts +2 -0
- package/es/Message/style/index.js +2 -0
- package/es/Message/style/index.less +1 -0
- package/es/Navigator/components/Menu/index.js +2 -2
- package/es/Notification/index.d.ts +3 -0
- package/es/Notification/index.js +3 -0
- package/es/Notification/style/index.d.ts +2 -0
- package/es/Notification/style/index.js +2 -0
- package/es/Notification/style/index.less +1 -0
- package/es/Radio/index.d.ts +4 -0
- package/es/Radio/index.js +3 -0
- package/es/Radio/style/index.d.ts +2 -0
- package/es/Radio/style/index.js +2 -0
- package/es/Radio/style/index.less +1 -0
- package/es/Row/index.d.ts +3 -0
- package/es/Row/index.js +1 -0
- package/es/Row/style/index.d.ts +2 -0
- package/es/Row/style/index.js +2 -0
- package/es/Row/style/index.less +1 -0
- package/es/Select/BaseSelect.js +18 -5
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
- package/es/Select/OptionsList/index.js +13 -20
- package/es/Select/Selector/index.js +13 -9
- package/es/Select/interface.d.ts +10 -2
- package/es/Select/style/index.less +63 -30
- package/es/Skeleton/index.d.ts +3 -0
- package/es/Skeleton/index.js +2 -0
- package/es/Skeleton/style/index.d.ts +2 -0
- package/es/Skeleton/style/index.js +2 -0
- package/es/Skeleton/style/index.less +1 -0
- package/es/Space/index.d.ts +4 -0
- package/es/Space/index.js +3 -0
- package/es/Space/style/index.d.ts +2 -0
- package/es/Space/style/index.js +2 -0
- package/es/Space/style/index.less +1 -0
- package/es/Spin/index.d.ts +4 -0
- package/es/Spin/index.js +2 -0
- package/es/Spin/style/index.d.ts +2 -0
- package/es/Spin/style/index.js +2 -0
- package/es/Spin/style/index.less +1 -0
- package/es/Steps/index.d.ts +3 -0
- package/es/Steps/index.js +2 -0
- package/es/Steps/style/index.d.ts +2 -0
- package/es/Steps/style/index.js +2 -0
- package/es/Steps/style/index.less +1 -0
- package/es/Switch/index.d.ts +4 -0
- package/es/Switch/index.js +2 -0
- package/es/Switch/style/index.d.ts +2 -0
- package/es/Switch/style/index.js +2 -0
- package/es/Switch/style/index.less +1 -0
- package/es/Table/index.d.ts +3 -3
- package/es/Table/index.js +286 -157
- package/es/Table/interface.d.ts +12 -4
- package/es/Table/react-table-config.d.ts +45 -45
- package/es/Table/style/index.less +121 -63
- package/es/Tabs/index.d.ts +5 -0
- package/es/Tabs/index.js +7 -4
- package/es/Tabs/style/index.d.ts +1 -0
- package/es/Tabs/style/index.js +1 -0
- package/es/Tabs/style/index.less +9 -2
- package/es/Tooltip/style/index.less +1 -1
- package/es/Tree/index.d.ts +5 -0
- package/es/Tree/index.js +2 -0
- package/es/Tree/style/index.d.ts +2 -0
- package/es/Tree/style/index.js +2 -0
- package/es/Tree/style/index.less +1 -0
- package/es/Typography/index.d.ts +3 -0
- package/es/Typography/index.js +3 -0
- package/es/Typography/style/index.d.ts +2 -0
- package/es/Typography/style/index.js +2 -0
- package/es/Typography/style/index.less +1 -0
- package/es/Upload/index.d.ts +4 -0
- package/es/Upload/index.js +3 -0
- package/es/Upload/style/index.d.ts +2 -0
- package/es/Upload/style/index.js +2 -0
- package/es/Upload/style/index.less +1 -0
- package/es/_utils/hooks/useControlledState.d.ts +1 -1
- package/es/_utils/hooks/useControlledState.js +11 -11
- package/es/index.d.ts +39 -1
- package/es/index.js +21 -1
- package/es/locale/zh_CN.d.ts +2 -0
- package/es/locale/zh_CN.js +2 -0
- package/es/style/index.d.ts +1 -1
- package/es/style/index.js +1 -1
- package/es/style/themes/default/index.less +1 -1
- package/lib/Alert/index.d.ts +4 -0
- package/lib/Alert/index.js +15 -0
- package/lib/Alert/style/index.d.ts +2 -0
- package/lib/Alert/style/index.js +5 -0
- package/lib/Alert/style/index.less +1 -0
- package/lib/Button/style/index.less +113 -63
- package/lib/Checkbox/index.d.ts +11 -0
- package/lib/Checkbox/index.js +52 -0
- package/lib/Checkbox/style/index.d.ts +2 -0
- package/lib/Checkbox/style/index.js +5 -0
- package/lib/Checkbox/style/index.less +79 -0
- package/lib/Col/index.d.ts +4 -0
- package/lib/Col/index.js +15 -0
- package/lib/Col/style/index.d.ts +2 -0
- package/lib/Col/style/index.js +5 -0
- package/lib/Col/style/index.less +1 -0
- package/lib/ConfigProvider/index.d.ts +3 -0
- package/lib/ConfigProvider/index.js +15 -0
- package/lib/ConfigProvider/style/index.d.ts +2 -0
- package/lib/ConfigProvider/style/index.js +5 -0
- package/lib/ConfigProvider/style/index.less +1 -0
- package/lib/DatePicker/index.d.ts +4 -0
- package/lib/DatePicker/index.js +15 -0
- package/lib/DatePicker/style/index.d.ts +2 -0
- package/lib/DatePicker/style/index.js +5 -0
- package/lib/DatePicker/style/index.less +1 -0
- package/lib/Divider/index.d.ts +3 -0
- package/lib/Divider/index.js +15 -0
- package/lib/Divider/style/index.d.ts +2 -0
- package/lib/Divider/style/index.js +5 -0
- package/lib/Divider/style/index.less +1 -0
- package/lib/Dropdown/Button.d.ts +1 -0
- package/lib/Dropdown/Button.js +2 -0
- package/lib/Dropdown/index.d.ts +22 -0
- package/lib/Dropdown/style/index.d.ts +1 -0
- package/lib/Dropdown/style/index.js +2 -0
- package/lib/Empty/style/index.less +8 -7
- package/lib/Form/index.d.ts +8 -0
- package/lib/Form/index.js +15 -0
- package/lib/Form/style/index.d.ts +2 -0
- package/lib/Form/style/index.js +5 -0
- package/lib/Form/style/index.less +1 -0
- package/lib/Icon/index.d.ts +3 -0
- package/lib/Icon/index.js +11 -3
- package/lib/Input/components/Group/index.d.ts +1 -2
- package/lib/Input/components/Input/index.d.ts +67 -0
- package/lib/Input/components/Input/index.js +51 -0
- package/lib/Input/components/Password/index.d.ts +5 -5
- package/lib/Input/components/Password/index.js +10 -8
- package/lib/Input/components/TextArea/index.d.ts +10 -4
- package/lib/Input/components/TextArea/index.js +18 -7
- package/lib/Input/index.d.ts +14 -62
- package/lib/Input/index.js +4 -42
- package/lib/Input/style/index.d.ts +1 -0
- package/lib/Input/style/index.js +2 -0
- package/lib/Input/style/index.less +44 -12
- package/lib/Layout/index.d.ts +4 -0
- package/lib/Layout/index.js +15 -0
- package/lib/Layout/style/index.d.ts +2 -0
- package/lib/Layout/style/index.js +5 -0
- package/lib/Layout/style/index.less +1 -0
- package/lib/Menu/MenuItem.d.ts +7 -1
- package/lib/Menu/style/index.d.ts +1 -0
- package/lib/Menu/style/index.js +2 -0
- package/lib/Menu/style/index.less +9 -5
- package/lib/Message/index.d.ts +4 -0
- package/lib/Message/index.js +15 -0
- package/lib/Message/style/index.d.ts +2 -0
- package/lib/Message/style/index.js +5 -0
- package/lib/Message/style/index.less +1 -0
- package/lib/Navigator/components/Menu/index.js +2 -2
- package/lib/Notification/index.d.ts +3 -0
- package/lib/Notification/index.js +15 -0
- package/lib/Notification/style/index.d.ts +2 -0
- package/lib/Notification/style/index.js +5 -0
- package/lib/Notification/style/index.less +1 -0
- package/lib/Radio/index.d.ts +4 -0
- package/lib/Radio/index.js +15 -0
- package/lib/Radio/style/index.d.ts +2 -0
- package/lib/Radio/style/index.js +5 -0
- package/lib/Radio/style/index.less +1 -0
- package/lib/Row/index.d.ts +3 -0
- package/lib/Row/index.js +8 -0
- package/lib/Row/style/index.d.ts +2 -0
- package/lib/Row/style/index.js +5 -0
- package/lib/Row/style/index.less +1 -0
- package/lib/Select/BaseSelect.js +18 -5
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
- package/lib/Select/OptionsList/index.js +12 -20
- package/lib/Select/Selector/index.js +13 -9
- package/lib/Select/interface.d.ts +10 -2
- package/lib/Select/style/index.less +63 -30
- package/lib/Skeleton/index.d.ts +3 -0
- package/lib/Skeleton/index.js +13 -0
- package/lib/Skeleton/style/index.d.ts +2 -0
- package/lib/Skeleton/style/index.js +5 -0
- package/lib/Skeleton/style/index.less +1 -0
- package/lib/Space/index.d.ts +4 -0
- package/lib/Space/index.js +23 -0
- package/lib/Space/style/index.d.ts +2 -0
- package/lib/Space/style/index.js +5 -0
- package/lib/Space/style/index.less +1 -0
- package/lib/Spin/index.d.ts +4 -0
- package/lib/Spin/index.js +13 -0
- package/lib/Spin/style/index.d.ts +2 -0
- package/lib/Spin/style/index.js +5 -0
- package/lib/Spin/style/index.less +1 -0
- package/lib/Steps/index.d.ts +3 -0
- package/lib/Steps/index.js +13 -0
- package/lib/Steps/style/index.d.ts +2 -0
- package/lib/Steps/style/index.js +5 -0
- package/lib/Steps/style/index.less +1 -0
- package/lib/Switch/index.d.ts +4 -0
- package/lib/Switch/index.js +13 -0
- package/lib/Switch/style/index.d.ts +2 -0
- package/lib/Switch/style/index.js +5 -0
- package/lib/Switch/style/index.less +1 -0
- package/lib/Table/index.d.ts +3 -3
- package/lib/Table/index.js +295 -165
- package/lib/Table/interface.d.ts +12 -4
- package/lib/Table/react-table-config.d.ts +45 -45
- package/lib/Table/style/index.less +121 -63
- package/lib/Tabs/index.d.ts +5 -0
- package/lib/Tabs/index.js +6 -3
- package/lib/Tabs/style/index.d.ts +1 -0
- package/lib/Tabs/style/index.js +2 -0
- package/lib/Tabs/style/index.less +9 -2
- package/lib/Tooltip/style/index.less +1 -1
- package/lib/Tree/index.d.ts +5 -0
- package/lib/Tree/index.js +13 -0
- package/lib/Tree/style/index.d.ts +2 -0
- package/lib/Tree/style/index.js +5 -0
- package/lib/Tree/style/index.less +1 -0
- package/lib/Typography/index.d.ts +3 -0
- package/lib/Typography/index.js +15 -0
- package/lib/Typography/style/index.d.ts +2 -0
- package/lib/Typography/style/index.js +5 -0
- package/lib/Typography/style/index.less +1 -0
- package/lib/Upload/index.d.ts +4 -0
- package/lib/Upload/index.js +15 -0
- package/lib/Upload/style/index.d.ts +2 -0
- package/lib/Upload/style/index.js +5 -0
- package/lib/Upload/style/index.less +1 -0
- package/lib/_utils/hooks/useControlledState.d.ts +1 -1
- package/lib/_utils/hooks/useControlledState.js +11 -11
- package/lib/index.d.ts +39 -1
- package/lib/index.js +160 -0
- package/lib/locale/zh_CN.d.ts +2 -0
- package/lib/locale/zh_CN.js +13 -0
- package/lib/style/index.d.ts +1 -1
- package/lib/style/index.js +1 -1
- package/lib/style/themes/default/index.less +1 -1
- package/package.json +16 -5
|
@@ -62,6 +62,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
62
62
|
var ZERO = 0;
|
|
63
63
|
var ICON_LARGE_SIZE = 20;
|
|
64
64
|
var ICON_SMALL_SIZE = 16;
|
|
65
|
+
var FIRST_INDEX = 0;
|
|
66
|
+
var REVERSE_INDEX = -1;
|
|
65
67
|
|
|
66
68
|
var defaultArrowComponent = function defaultArrowComponent(prefix, size) {
|
|
67
69
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -185,18 +187,20 @@ var Selector = function Selector(props, ref) {
|
|
|
185
187
|
|
|
186
188
|
var renderMultipleValue = function renderMultipleValue() {
|
|
187
189
|
// @ts-ignore
|
|
188
|
-
var
|
|
190
|
+
var allTooltipTitleNode = value === null || value === void 0 ? void 0 : value.reduce(function (prev, curr) {
|
|
189
191
|
var item = getOptionByValue(curr);
|
|
190
192
|
|
|
191
193
|
if (item) {
|
|
192
|
-
return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || (item === null || item === void 0 ? void 0 : item.label)]);
|
|
194
|
+
return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || optionLabelRenderer(curr, getOptionByValue(curr)) || (item === null || item === void 0 ? void 0 : item.label), ',']);
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
return [].concat(_toConsumableArray(prev), [curr]);
|
|
197
|
+
return [].concat(_toConsumableArray(prev), [curr, ',']);
|
|
196
198
|
}, []);
|
|
197
199
|
|
|
198
|
-
if (Array.isArray(value) && value.length === filteredOptions.length) {
|
|
199
|
-
return /*#__PURE__*/_react.default.createElement("span",
|
|
200
|
+
if (Array.isArray(value) && (value.length === filteredOptions.length || (0, _lodash.isEmpty)(value))) {
|
|
201
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
202
|
+
className: "multipleAll"
|
|
203
|
+
}, "\u5168\u90E8");
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
var renderItem = function renderItem(valueItem) {
|
|
@@ -210,7 +214,7 @@ var Selector = function Selector(props, ref) {
|
|
|
210
214
|
return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(_Tooltip.default // @ts-ignore
|
|
211
215
|
, {
|
|
212
216
|
// @ts-ignore
|
|
213
|
-
title:
|
|
217
|
+
title: allTooltipTitleNode.slice(FIRST_INDEX, REVERSE_INDEX),
|
|
214
218
|
placement: "top",
|
|
215
219
|
getTooltipContainer: function getTooltipContainer() {
|
|
216
220
|
var _selectorRef$current4;
|
|
@@ -237,8 +241,8 @@ var Selector = function Selector(props, ref) {
|
|
|
237
241
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
238
242
|
ref: selectorAllRef,
|
|
239
243
|
className: (0, _classnames3.default)("".concat(prefix, "-item-text"))
|
|
240
|
-
}, text)) // </Text>
|
|
241
|
-
|
|
244
|
+
}, text)) : // </Text>
|
|
245
|
+
null;
|
|
242
246
|
};
|
|
243
247
|
|
|
244
248
|
return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
|
|
@@ -263,7 +267,7 @@ var Selector = function Selector(props, ref) {
|
|
|
263
267
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
264
268
|
className: (0, _classnames3.default)("".concat(prefix, "-values-wrapper")),
|
|
265
269
|
ref: selectValuesRef
|
|
266
|
-
}, multiple ? renderMultipleValue() : renderSingleValue(), renderPlaceHolder())), /*#__PURE__*/_react.default.createElement("div", {
|
|
270
|
+
}, multiple ? renderMultipleValue() : renderSingleValue(), !multiple && renderPlaceHolder())), /*#__PURE__*/_react.default.createElement("div", {
|
|
267
271
|
"aria-hidden": "true",
|
|
268
272
|
className: (0, _classnames3.default)("".concat(prefix, "-arrow"), _defineProperty({}, "".concat(prefix, "-arrow-focused"), visible)),
|
|
269
273
|
onClick: showClose ? onAllClearClick : undefined
|
|
@@ -48,7 +48,7 @@ export interface IOptionProps {
|
|
|
48
48
|
children?: React.ReactNode;
|
|
49
49
|
/**
|
|
50
50
|
* @description 默认根据次属性值进行筛选
|
|
51
|
-
|
|
51
|
+
*/
|
|
52
52
|
value: string | number;
|
|
53
53
|
/**
|
|
54
54
|
* @description 是否禁用
|
|
@@ -59,7 +59,7 @@ export interface IOptionProps {
|
|
|
59
59
|
}
|
|
60
60
|
export interface ISelectProps {
|
|
61
61
|
/**
|
|
62
|
-
|
|
62
|
+
* @description 输入框尺寸
|
|
63
63
|
* @default default
|
|
64
64
|
* @type 'small' | 'default' | 'large';
|
|
65
65
|
*/
|
|
@@ -117,6 +117,9 @@ export interface ISelectProps {
|
|
|
117
117
|
labelRenderer?: (input: string) => (option: IOption, isGroup: boolean) => React.ReactNode;
|
|
118
118
|
searchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
|
|
119
119
|
matchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* @description 渲染选中条目对应的内容
|
|
122
|
+
*/
|
|
120
123
|
optionLabelRenderer?: (value: string | number, option?: IOption) => React.ReactNode;
|
|
121
124
|
/**
|
|
122
125
|
* @description 选中值改变时的回调
|
|
@@ -156,6 +159,11 @@ export interface ISelectProps {
|
|
|
156
159
|
*/
|
|
157
160
|
label?: React.ReactNode;
|
|
158
161
|
children?: React.ReactNode[] | React.ReactNode;
|
|
162
|
+
/**
|
|
163
|
+
* @description 下拉菜单的 z-index层级 属性
|
|
164
|
+
* @default 1050
|
|
165
|
+
*/
|
|
166
|
+
zIndex?: number;
|
|
159
167
|
}
|
|
160
168
|
export interface ISelectorProps {
|
|
161
169
|
input: string;
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
@border-style-base: solid; // style of a components border
|
|
27
27
|
@border-color-disabled: #dfe2ed;
|
|
28
28
|
@select-option-height-lg: @height-lg;
|
|
29
|
-
@select-option-line-height-lg:16px;
|
|
30
|
-
@select-option-height-base
|
|
31
|
-
@select-option-height-sm
|
|
29
|
+
@select-option-line-height-lg: 16px;
|
|
30
|
+
@select-option-height-base: @height-base;
|
|
31
|
+
@select-option-height-sm: @height-sm;
|
|
32
32
|
@line-height-base: 1.5715;
|
|
33
33
|
// @mode: compact;
|
|
34
34
|
|
|
35
35
|
// Base Text
|
|
36
36
|
// @text-color-base: #313e75;
|
|
37
37
|
// @text-color-disabled: #313e75;
|
|
38
|
-
@text-font-size
|
|
38
|
+
@text-font-base-size: 14px;
|
|
39
39
|
// @text-lint-height-base: 22px;
|
|
40
40
|
|
|
41
41
|
//Background Color
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
@ald-prefix: ~'@{component-prefix}';
|
|
46
46
|
@select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
|
|
47
|
-
@select-input-fontSize: @text-font-size
|
|
48
|
-
@select-input-fontSize-sm: @text-font-size
|
|
47
|
+
@select-input-fontSize: @text-font-base-size;
|
|
48
|
+
@select-input-fontSize-sm: @text-font-base-size - 2px;
|
|
49
49
|
// @color-font-list-primary-normal: @palette-black-6; // $color-black-6
|
|
50
50
|
// @color-box-shadow-focused: #c0c4d3;
|
|
51
51
|
// @color-background-matchHeight: #ffcf3c;
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
position: relative;
|
|
54
54
|
display: inline-block;
|
|
55
55
|
min-width: 120px;
|
|
56
|
+
padding: 0 36px 0 11px;
|
|
56
57
|
overflow: hidden;
|
|
57
58
|
border: 1px solid transparent;
|
|
58
59
|
border-radius: @border-radius-base;
|
|
59
|
-
padding: 0 36px 0 12px;
|
|
60
60
|
outline: none;
|
|
61
|
-
transition: all 0.2s;
|
|
62
61
|
cursor: pointer;
|
|
62
|
+
transition: all 0.2s;
|
|
63
63
|
user-select: none;
|
|
64
64
|
|
|
65
65
|
&-selector-wrap {
|
|
@@ -88,23 +88,23 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
&-selector-label {
|
|
91
|
-
height: @height-base;
|
|
92
91
|
display: flex;
|
|
92
|
+
flex-shrink: 0;
|
|
93
93
|
align-items: center;
|
|
94
|
-
line-height: @height-base;
|
|
95
|
-
font-size: @select-input-fontSize;
|
|
96
|
-
color: @NL30;
|
|
97
|
-
margin-right: @select-label-margin-right;
|
|
98
94
|
max-width: 50%;
|
|
95
|
+
height: @height-base;
|
|
96
|
+
margin-right: @select-label-margin-right;
|
|
99
97
|
overflow: hidden;
|
|
100
|
-
|
|
98
|
+
color: @NL30;
|
|
99
|
+
font-size: @select-input-fontSize;
|
|
100
|
+
line-height: @height-base;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&-values-wrapper {
|
|
104
104
|
position: relative;
|
|
105
105
|
width: 100%;
|
|
106
|
-
line-height: @height-base;
|
|
107
106
|
color: @NL0;
|
|
107
|
+
line-height: @height-base;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&-bordered {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
&-close {
|
|
142
142
|
position: absolute;
|
|
143
143
|
top: 0;
|
|
144
|
-
right:
|
|
144
|
+
right: 8px;
|
|
145
145
|
display: flex;
|
|
146
146
|
align-items: center;
|
|
147
147
|
justify-content: center;
|
|
@@ -162,11 +162,11 @@
|
|
|
162
162
|
|
|
163
163
|
&-text {
|
|
164
164
|
overflow: hidden;
|
|
165
|
-
|
|
165
|
+
color: @NL0;
|
|
166
|
+
font-size: @select-input-fontSize-sm;
|
|
166
167
|
line-height: 22px;
|
|
167
168
|
white-space: nowrap;
|
|
168
169
|
text-overflow: ellipsis;
|
|
169
|
-
color: @NL0;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
|
|
198
198
|
&-text {
|
|
199
199
|
overflow: hidden;
|
|
200
|
-
font-size:
|
|
200
|
+
font-size: @select-input-fontSize-sm;
|
|
201
201
|
line-height: 22px;
|
|
202
202
|
white-space: nowrap;
|
|
203
203
|
text-overflow: ellipsis;
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
top: 0;
|
|
210
210
|
left: 0;
|
|
211
211
|
color: @select-placeholder-color;
|
|
212
|
+
font-size: @select-input-fontSize-sm;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
&-input {
|
|
@@ -246,14 +247,14 @@
|
|
|
246
247
|
|
|
247
248
|
&-selector-label {
|
|
248
249
|
height: @height-sm;
|
|
249
|
-
line-height: @height-sm;
|
|
250
|
-
font-size: @select-input-fontSize-sm;
|
|
251
250
|
color: @NL30;
|
|
251
|
+
font-size: @select-input-fontSize-sm;
|
|
252
|
+
line-height: @height-sm;
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
&-values-wrapper {
|
|
255
|
-
line-height: @height-sm;
|
|
256
256
|
font-size: @select-input-fontSize-sm;
|
|
257
|
+
line-height: @height-sm;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
&-item-all {
|
|
@@ -282,7 +283,28 @@
|
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
&-default {
|
|
287
|
+
height: 28px;
|
|
288
|
+
.@{select-prefix-cls-legacy} {
|
|
289
|
+
&-selector {
|
|
290
|
+
height: 26px;
|
|
291
|
+
min-height: 26px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&-values-wrapper {
|
|
295
|
+
font-size: 12px;
|
|
296
|
+
line-height: 26px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&-selector-label {
|
|
300
|
+
height: 26px;
|
|
301
|
+
font-size: 12px;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
285
306
|
&-large {
|
|
307
|
+
height: @height-lg;
|
|
286
308
|
.@{select-prefix-cls-legacy} {
|
|
287
309
|
&-selector {
|
|
288
310
|
min-height: @height-lg;
|
|
@@ -291,8 +313,8 @@
|
|
|
291
313
|
|
|
292
314
|
&-selector-label {
|
|
293
315
|
height: @height-lg;
|
|
294
|
-
line-height: @height-lg;
|
|
295
316
|
font-size: @select-input-fontSize;
|
|
317
|
+
line-height: @height-lg;
|
|
296
318
|
}
|
|
297
319
|
|
|
298
320
|
&-values-wrapper {
|
|
@@ -310,6 +332,14 @@
|
|
|
310
332
|
&-input-tags {
|
|
311
333
|
top: 0;
|
|
312
334
|
}
|
|
335
|
+
|
|
336
|
+
&-placeholder {
|
|
337
|
+
font-size: @select-input-fontSize;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&-item-text {
|
|
341
|
+
font-size: @select-input-fontSize;
|
|
342
|
+
}
|
|
313
343
|
}
|
|
314
344
|
}
|
|
315
345
|
|
|
@@ -356,11 +386,11 @@
|
|
|
356
386
|
// rc-trigger
|
|
357
387
|
&-dropdown {
|
|
358
388
|
position: absolute;
|
|
389
|
+
padding: 4px 0;
|
|
359
390
|
background: @BG100;
|
|
360
391
|
border: 1px solid @NL90;
|
|
361
|
-
box-shadow: @shadow-actionsheet;
|
|
362
392
|
border-radius: @border-radius-base;
|
|
363
|
-
|
|
393
|
+
box-shadow: @shadow-actionsheet;
|
|
364
394
|
&.@{select-prefix-cls-legacy}-hidden {
|
|
365
395
|
display: none;
|
|
366
396
|
}
|
|
@@ -403,6 +433,8 @@
|
|
|
403
433
|
|
|
404
434
|
.@{select-prefix-cls-legacy}-list {
|
|
405
435
|
box-sizing: border-box;
|
|
436
|
+
overflow-y: scroll;
|
|
437
|
+
overflow-y: overlay;
|
|
406
438
|
// min-width: 160px;
|
|
407
439
|
// padding: 16px 0 16px 8px;
|
|
408
440
|
outline: none;
|
|
@@ -414,33 +446,34 @@
|
|
|
414
446
|
align-items: center;
|
|
415
447
|
box-sizing: border-box;
|
|
416
448
|
max-width: 100%;
|
|
417
|
-
|
|
449
|
+
height: @select-option-height-lg;
|
|
418
450
|
// margin-top: 4px;
|
|
419
451
|
padding: 8px 12px 8px 36px;
|
|
420
452
|
overflow: hidden;
|
|
421
453
|
color: @NL0;
|
|
422
454
|
font-size: 12px;
|
|
423
|
-
height: @select-option-height-lg;
|
|
424
455
|
line-height: @select-option-line-height-lg;
|
|
425
456
|
white-space: nowrap;
|
|
426
457
|
text-overflow: ellipsis;
|
|
427
458
|
cursor: pointer;
|
|
428
459
|
transition: background-color 0.3s ease;
|
|
460
|
+
user-select: none;
|
|
429
461
|
|
|
430
462
|
&-icon,
|
|
431
463
|
&-all-icon {
|
|
432
464
|
position: absolute;
|
|
433
465
|
top: 50%;
|
|
434
|
-
transform: translateY(-50%);
|
|
435
466
|
left: 12px;
|
|
467
|
+
margin-top: -2px;
|
|
436
468
|
color: @B40;
|
|
469
|
+
transform: translateY(-50%);
|
|
437
470
|
|
|
438
471
|
&-checkbox {
|
|
439
472
|
.@{component-prefix}-checkbox-inner {
|
|
440
473
|
border-color: @NL90;
|
|
441
474
|
// background-color: @BG100;
|
|
442
475
|
border-radius: 4px;
|
|
443
|
-
|
|
476
|
+
box-shadow: none;
|
|
444
477
|
// &::after {
|
|
445
478
|
// // border-color: @B40;
|
|
446
479
|
// }
|
|
@@ -484,12 +517,12 @@
|
|
|
484
517
|
align-items: center;
|
|
485
518
|
box-sizing: border-box;
|
|
486
519
|
max-width: 100%;
|
|
520
|
+
height: @select-option-height-lg;
|
|
487
521
|
// margin-right: 8px;
|
|
488
522
|
padding: 8px 12px 8px 36px;
|
|
489
523
|
overflow: hidden;
|
|
490
524
|
color: @NL0;
|
|
491
525
|
font-size: 12px;
|
|
492
|
-
height: @select-option-height-lg;
|
|
493
526
|
line-height: @select-option-line-height-lg;
|
|
494
527
|
white-space: nowrap;
|
|
495
528
|
text-overflow: ellipsis;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _Skeleton = _interopRequireDefault(require("antd/es/skeleton/Skeleton"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _Skeleton.default;
|
|
13
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "SpaceContext", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _space.SpaceContext;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
exports.default = void 0;
|
|
15
|
+
|
|
16
|
+
var _space = _interopRequireWildcard(require("antd/es/space"));
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
22
|
+
var _default = _space.default;
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _spin = _interopRequireDefault(require("antd/es/spin"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _spin.default;
|
|
13
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _steps = _interopRequireDefault(require("antd/es/steps"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _steps.default;
|
|
13
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _switch = _interopRequireDefault(require("antd/es/switch"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _switch.default;
|
|
13
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/lib/Table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ITableProps } from './interface';
|
|
3
|
-
declare
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<ITableProps<Record<string, unknown>>, "onChange" | "loading" | "data" | "ellipsis" | "columns" | "total" | "renderHeaderLeft" | "renderHeaderRight" | "onRowSelected" | "loadMore" | "hasNextPage" | "sortable" | "defaultSort" | "resizeColumn" | "sortDirections" | "showHeader" | "innerScroll" | "scrollThreshold" | "rowClassName" | "renderEmpty" | "rowKey"> & React.RefAttributes<unknown>>;
|
|
4
|
+
export default _default;
|