dtable-ui-component 6.0.103 → 6.0.105-beta.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/lib/ActionSheet/index.js +35 -42
- package/lib/ActivityIndicator/index.js +9 -9
- package/lib/AsyncUserSelect/index.js +3 -3
- package/lib/Badge/index.js +31 -27
- package/lib/CheckboxEditor/index.js +14 -15
- package/lib/CollaboratorEditor/index.js +15 -16
- package/lib/CollaboratorEditor/pc-editor/index.js +1 -1
- package/lib/CollapsibleSettingLayout/index.js +1 -1
- package/lib/Comment/body/comment.js +1 -1
- package/lib/Comment/body/index.js +9 -7
- package/lib/Comment/footer/index.js +1 -1
- package/lib/Comment/footer/input/index.js +5 -5
- package/lib/Comment/footer/input/participant/index.js +1 -1
- package/lib/Comment/footer/participants/participant-select/index.js +2 -2
- package/lib/Comment/utils/utilities.js +1 -1
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +6 -8
- package/lib/DTableColorPicker/index.js +12 -13
- package/lib/DTableColorPicker/utils.js +1 -1
- package/lib/DTableCommonAddTool/index.js +2 -2
- package/lib/DTableFiltersPopover/index.js +1 -1
- package/lib/DTableFiltersPopover/utils/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
- package/lib/DTableFiltersPopover/widgets/filter-item.js +1 -1
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/rate-item.js +5 -5
- package/lib/DTableGroupSelect/select-option-group.js +1 -1
- package/lib/DTableIcon/index.js +4 -4
- package/lib/DTableIcon/svg-icon.js +5 -5
- package/lib/DTableModalHeader/index.js +8 -6
- package/lib/DTableRadioGroup/index.js +3 -3
- package/lib/DTableSelect/dtable-select-label.js +1 -1
- package/lib/DTableSelect/utils.js +36 -55
- package/lib/DateEditor/index.js +10 -13
- package/lib/DateEditor/pc-editor.js +1 -1
- package/lib/DatePicker/utils.js +4 -4
- package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
- package/lib/DepartmentSelectFilter/index.js +2 -5
- package/lib/DepartmentSingleSelectEditor/index.js +14 -15
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +6 -6
- package/lib/DigitalSignEditor/index.js +14 -15
- package/lib/DigitalSignEditor/mb-editor/index.js +4 -4
- package/lib/DigitalSignEditor/pc-editor/index.js +6 -7
- package/lib/DigitalSignEditor/service.js +1 -1
- package/lib/DigitalSignEditor/signature-board/index.js +2 -2
- package/lib/DigitalSignFormatter/utils.js +1 -1
- package/lib/Drawer/index.js +2 -3
- package/lib/FieldDisplaySetting/field-item.js +1 -1
- package/lib/FieldDisplaySetting/index.js +9 -11
- package/lib/FileEditor/files-previewer/index.js +14 -15
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
- package/lib/FileEditor/index.js +14 -15
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
- package/lib/FileEditor/pc-editor/index.js +3 -3
- package/lib/FileFormatter/index.js +2 -1
- package/lib/FileItemFormatter/index.js +1 -1
- package/lib/FileUploader/index.js +1 -1
- package/lib/FormulaFormatter/index.js +9 -15
- package/lib/GeolocationEditor/index.js +19 -23
- package/lib/GeolocationEditor/map-editor-utils.js +6 -10
- package/lib/GeolocationEditor/mb-editor/index.js +24 -27
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +6 -9
- package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/index.js +15 -21
- package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +9 -13
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +6 -9
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +7 -24
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +3 -20
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
- package/lib/GeolocationEditor/pc-editor/province-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
- package/lib/HtmlLongTextFormatter/index.js +1 -1
- package/lib/Icon/index.js +17 -13
- package/lib/Icon/load-sprite.js +2 -13
- package/lib/IconButton/index.js +14 -11
- package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
- package/lib/ImageEditor/index.js +14 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
- package/lib/ImageFormatter/index.js +1 -1
- package/lib/ImageThumbnail/index.js +2 -2
- package/lib/InputItem/custom-input.js +9 -9
- package/lib/InputItem/custom-keyboard.js +37 -34
- package/lib/InputItem/index.js +49 -52
- package/lib/InputItem/input.js +13 -9
- package/lib/LinkEditor/pc-popover/index.js +2 -3
- package/lib/List/index.js +21 -17
- package/lib/List/list-item.js +52 -50
- package/lib/MBEditorHeader/index.js +1 -1
- package/lib/MobileFullScreenPage/body/index.js +1 -1
- package/lib/MobileFullScreenPage/header/index.js +4 -4
- package/lib/MobileFullScreenPage/index.js +1 -1
- package/lib/MobileModal/index.js +10 -7
- package/lib/Modal/alert.js +2 -2
- package/lib/Modal/modal.js +31 -28
- package/lib/Modal/prompt.js +10 -10
- package/lib/MultipleSelectEditor/index.js +8 -6
- package/lib/MultipleSelectFormatter/index.js +1 -1
- package/lib/PhoneNumberLink/index.js +1 -1
- package/lib/Picker/AbstractPicker.js +28 -26
- package/lib/Popover/index.js +12 -9
- package/lib/Popover/item.js +26 -22
- package/lib/Progress/index.js +8 -10
- package/lib/Radio/Radio.js +15 -13
- package/lib/Radio/RadioItem.js +18 -18
- package/lib/RateFormatter/index.js +2 -2
- package/lib/RoleStatusEditor/index.js +1 -1
- package/lib/RowExpand/index.js +6 -7
- package/lib/RowExpandDialog/body/index.js +14 -14
- package/lib/RowExpandDialog/column-content/index.js +1 -1
- package/lib/RowExpandDialog/header/index.js +3 -4
- package/lib/RowExpandDialog/index.js +32 -43
- package/lib/RowExpandEditor/add-btn/index.js +6 -7
- package/lib/RowExpandEditor/checkbox-editor/index.js +6 -7
- package/lib/RowExpandEditor/collaborator-editor/index.js +6 -7
- package/lib/RowExpandEditor/date-editor/index.js +6 -7
- package/lib/RowExpandEditor/department-editor/index.js +6 -7
- package/lib/RowExpandEditor/digital-sign-editor/index.js +6 -7
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +4 -4
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +4 -4
- package/lib/RowExpandEditor/duration-editor/index.js +6 -7
- package/lib/RowExpandEditor/email-editor/index.js +6 -7
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/file-editor/index.js +6 -7
- package/lib/RowExpandEditor/geolocation-editor/index.js +6 -7
- package/lib/RowExpandEditor/image-editor/index.js +6 -7
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/index.js +10 -11
- package/lib/RowExpandEditor/long-text-editor/index.js +6 -7
- package/lib/RowExpandEditor/multiple-select-editor/index.js +6 -7
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
- package/lib/RowExpandEditor/number-editor/index.js +6 -7
- package/lib/RowExpandEditor/rate-editor/index.js +6 -7
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +5 -5
- package/lib/RowExpandEditor/single-select-editor/index.js +6 -7
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +4 -4
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
- package/lib/RowExpandEditor/text-editor/index.js +6 -7
- package/lib/RowExpandEditor/url-editor/index.js +6 -7
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +2 -2
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +2 -2
- package/lib/RowExpandFormatter/department-formatter/index.js +3 -6
- package/lib/RowExpandFormatter/email-formatter/index.js +1 -1
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/formula-formatter/index.js +11 -17
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/index.js +7 -11
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
- package/lib/RowExpandFormatter/rate-formatter/index.js +2 -2
- package/lib/RowExpandFormatter/url-formatter/index.js +2 -2
- package/lib/RowExpandView/body/index.js +15 -13
- package/lib/RowExpandView/index.js +28 -39
- package/lib/SelectOptionGroup/index.js +1 -1
- package/lib/SelectedDepartments/index.js +3 -3
- package/lib/SimpleLongTextFormatter/index.js +2 -2
- package/lib/SingleSelectEditor/index.js +8 -6
- package/lib/TabBar/Tab.js +10 -10
- package/lib/TabBar/index.js +6 -7
- package/lib/Tabs/index.js +9 -10
- package/lib/TextareaItem/index.js +45 -43
- package/lib/Toast/index.js +5 -5
- package/lib/formatterConfig/index.js +3 -3
- package/lib/select-editor/index.js +14 -15
- package/lib/select-editor/pc-editor/index.js +5 -5
- package/lib/toaster/alert.js +1 -1
- package/lib/toaster/toast.js +1 -1
- package/lib/toaster/toastManager.js +15 -12
- package/lib/toaster/toaster.js +9 -12
- package/lib/utils/class.js +3 -3
- package/lib/utils/departments.js +4 -3
- package/lib/utils/getLocale.js +5 -11
- package/lib/utils/object-utils.js +5 -5
- package/lib/utils/url.js +4 -4
- package/package.json +3 -4
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.KeyboardItem = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
12
|
var React = _interopRequireWildcard(require("react"));
|
|
11
13
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
14
|
var _exenv = require("../utils/exenv");
|
|
13
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
const _excluded = ["prefixCls", "onClick", "className", "disabled", "children", "tdRef", "label", "iconOnly"];
|
|
14
17
|
/**
|
|
15
18
|
* determines whether an array includes a certain value among its entries, returning true or false as appropriate.
|
|
16
19
|
* @param {array} arr The array to search in
|
|
17
20
|
* @param {any} item The value to search for
|
|
18
|
-
*/
|
|
21
|
+
*/
|
|
22
|
+
function includes(arr, item) {
|
|
19
23
|
if (!arr || !arr.length || !item) {
|
|
20
24
|
return false;
|
|
21
25
|
}
|
|
@@ -28,17 +32,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
32
|
}
|
|
29
33
|
class KeyboardItem extends React.Component {
|
|
30
34
|
render() {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
const _this$props = this.props,
|
|
36
|
+
{
|
|
37
|
+
prefixCls,
|
|
38
|
+
onClick,
|
|
39
|
+
className,
|
|
40
|
+
disabled,
|
|
41
|
+
children,
|
|
42
|
+
tdRef,
|
|
43
|
+
label,
|
|
44
|
+
iconOnly
|
|
45
|
+
} = _this$props,
|
|
46
|
+
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
42
47
|
let value = children;
|
|
43
48
|
if (className === 'keyboard-delete') {
|
|
44
49
|
value = 'delete';
|
|
@@ -48,26 +53,26 @@ class KeyboardItem extends React.Component {
|
|
|
48
53
|
value = 'confirm';
|
|
49
54
|
}
|
|
50
55
|
const extraCls = {
|
|
51
|
-
[
|
|
56
|
+
["".concat(prefixCls, "-item-disabled")]: disabled
|
|
52
57
|
};
|
|
53
|
-
const wrapCls = (0, _classnames.default)(
|
|
58
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, extraCls);
|
|
54
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
55
60
|
disabled: disabled,
|
|
56
|
-
activeClassName:
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("td", {
|
|
61
|
+
activeClassName: "".concat(prefixCls, "-item-active"),
|
|
62
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("td", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
58
63
|
ref: tdRef
|
|
59
64
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
60
65
|
,
|
|
61
66
|
onTouchEnd: e => {
|
|
62
67
|
onClick(e, value);
|
|
63
68
|
},
|
|
64
|
-
className: wrapCls
|
|
65
|
-
|
|
69
|
+
className: wrapCls
|
|
70
|
+
}, restProps), {}, {
|
|
66
71
|
children: [children, iconOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
67
72
|
className: "sr-only",
|
|
68
73
|
children: label
|
|
69
74
|
})]
|
|
70
|
-
})
|
|
75
|
+
}))
|
|
71
76
|
});
|
|
72
77
|
}
|
|
73
78
|
}
|
|
@@ -105,7 +110,7 @@ class CustomKeyboard extends React.Component {
|
|
|
105
110
|
onClick: this.onKeyboardClick,
|
|
106
111
|
disabled: disabled,
|
|
107
112
|
children: item
|
|
108
|
-
},
|
|
113
|
+
}, "item-".concat(item, "-").concat(index));
|
|
109
114
|
};
|
|
110
115
|
}
|
|
111
116
|
render() {
|
|
@@ -117,11 +122,11 @@ class CustomKeyboard extends React.Component {
|
|
|
117
122
|
wrapProps,
|
|
118
123
|
header
|
|
119
124
|
} = this.props;
|
|
120
|
-
const wrapperCls = (0, _classnames.default)(
|
|
121
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
125
|
+
const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-hide"));
|
|
126
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
122
127
|
className: wrapperCls,
|
|
123
|
-
ref: el => this.antmKeyboard = el
|
|
124
|
-
|
|
128
|
+
ref: el => this.antmKeyboard = el
|
|
129
|
+
}, wrapProps), {}, {
|
|
125
130
|
children: [header && /*#__PURE__*/React.cloneElement(header, {
|
|
126
131
|
onClick: this.onKeyboardClick
|
|
127
132
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("table", {
|
|
@@ -129,12 +134,11 @@ class CustomKeyboard extends React.Component {
|
|
|
129
134
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
130
135
|
children: [['1', '2', '3'].map((item, index) =>
|
|
131
136
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
132
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
137
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, (0, _objectSpread2.default)({
|
|
133
138
|
className: "keyboard-delete",
|
|
134
139
|
rowSpan: 2,
|
|
135
|
-
onClick: this.onKeyboardClick
|
|
136
|
-
|
|
137
|
-
})]
|
|
140
|
+
onClick: this.onKeyboardClick
|
|
141
|
+
}, this.getAriaAttr(backspaceLabel)))]
|
|
138
142
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
139
143
|
children: ['4', '5', '6'].map((item, index) =>
|
|
140
144
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
@@ -152,15 +156,14 @@ class CustomKeyboard extends React.Component {
|
|
|
152
156
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
153
157
|
children: [['.', '0'].map((item, index) =>
|
|
154
158
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
155
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
159
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, (0, _objectSpread2.default)({
|
|
156
160
|
className: "keyboard-hide",
|
|
157
|
-
onClick: this.onKeyboardClick
|
|
158
|
-
|
|
159
|
-
})]
|
|
161
|
+
onClick: this.onKeyboardClick
|
|
162
|
+
}, this.getAriaAttr(cancelKeyboardLabel)))]
|
|
160
163
|
})]
|
|
161
164
|
})
|
|
162
165
|
})]
|
|
163
|
-
});
|
|
166
|
+
}));
|
|
164
167
|
}
|
|
165
168
|
getAriaAttr(label) {
|
|
166
169
|
if (_exenv.IS_IOS) {
|
package/lib/InputItem/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
12
|
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
11
13
|
var React = _interopRequireWildcard(require("react"));
|
|
@@ -15,8 +17,8 @@ var _customInput = _interopRequireDefault(require("./custom-input"));
|
|
|
15
17
|
var _input = _interopRequireDefault(require("./input"));
|
|
16
18
|
require("./style/index.css");
|
|
17
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
const _excluded = ["prefixCls", "prefixListCls", "editable", "style", "clear", "children", "error", "className", "extra", "labelNumber", "type", "onExtraClick", "onErrorClick", "moneyKeyboardAlign", "moneyKeyboardWrapProps", "moneyKeyboardHeader", "onVirtualKeyboardConfirm", "autoAdjustHeight", "disabledKeys"];
|
|
18
21
|
/* tslint:disable:jsx-no-multiline-js */
|
|
19
|
-
|
|
20
22
|
function noop() {}
|
|
21
23
|
function normalizeValue(value) {
|
|
22
24
|
if (typeof value === 'undefined' || value === null) {
|
|
@@ -56,9 +58,9 @@ class InputItem extends React.Component {
|
|
|
56
58
|
ctrlValue = rawVal.replace(/\D/g, '').substring(0, 11);
|
|
57
59
|
const valueLen = ctrlValue.length;
|
|
58
60
|
if (valueLen > 3 && valueLen < 8) {
|
|
59
|
-
ctrlValue =
|
|
61
|
+
ctrlValue = "".concat(ctrlValue.substr(0, 3), " ").concat(ctrlValue.substr(3));
|
|
60
62
|
} else if (valueLen >= 8) {
|
|
61
|
-
ctrlValue =
|
|
63
|
+
ctrlValue = "".concat(ctrlValue.substr(0, 3), " ").concat(ctrlValue.substr(3, 4), " ").concat(ctrlValue.substr(7));
|
|
62
64
|
}
|
|
63
65
|
break;
|
|
64
66
|
case 'number':
|
|
@@ -220,32 +222,30 @@ class InputItem extends React.Component {
|
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
render() {
|
|
223
|
-
const props = {
|
|
224
|
-
...this.props
|
|
225
|
-
};
|
|
225
|
+
const props = (0, _objectSpread2.default)({}, this.props);
|
|
226
226
|
delete props.updatePlaceholder;
|
|
227
227
|
const {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
228
|
+
prefixCls,
|
|
229
|
+
prefixListCls,
|
|
230
|
+
editable,
|
|
231
|
+
style,
|
|
232
|
+
clear,
|
|
233
|
+
children,
|
|
234
|
+
error,
|
|
235
|
+
className,
|
|
236
|
+
extra,
|
|
237
|
+
labelNumber,
|
|
238
|
+
type,
|
|
239
|
+
onExtraClick,
|
|
240
|
+
onErrorClick,
|
|
241
|
+
moneyKeyboardAlign,
|
|
242
|
+
moneyKeyboardWrapProps,
|
|
243
|
+
moneyKeyboardHeader,
|
|
244
|
+
onVirtualKeyboardConfirm,
|
|
245
|
+
autoAdjustHeight,
|
|
246
|
+
disabledKeys
|
|
247
|
+
} = props,
|
|
248
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
249
249
|
const {
|
|
250
250
|
name,
|
|
251
251
|
disabled,
|
|
@@ -266,21 +266,21 @@ class InputItem extends React.Component {
|
|
|
266
266
|
focus,
|
|
267
267
|
placeholder
|
|
268
268
|
} = this.state;
|
|
269
|
-
const wrapCls = (0, _classnames.default)(
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
273
|
-
[
|
|
269
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixListCls, "-item"), "".concat(prefixCls, "-item"), "".concat(prefixListCls, "-item-middle"), className, {
|
|
270
|
+
["".concat(prefixCls, "-disabled")]: disabled,
|
|
271
|
+
["".concat(prefixCls, "-error")]: error,
|
|
272
|
+
["".concat(prefixCls, "-focus")]: focus,
|
|
273
|
+
["".concat(prefixCls, "-android")]: focus
|
|
274
274
|
});
|
|
275
|
-
const labelCls = (0, _classnames.default)(
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
281
|
-
[
|
|
275
|
+
const labelCls = (0, _classnames.default)("".concat(prefixCls, "-label"), {
|
|
276
|
+
["".concat(prefixCls, "-label-2")]: labelNumber === 2,
|
|
277
|
+
["".concat(prefixCls, "-label-3")]: labelNumber === 3,
|
|
278
|
+
["".concat(prefixCls, "-label-4")]: labelNumber === 4,
|
|
279
|
+
["".concat(prefixCls, "-label-5")]: labelNumber === 5,
|
|
280
|
+
["".concat(prefixCls, "-label-6")]: labelNumber === 6,
|
|
281
|
+
["".concat(prefixCls, "-label-7")]: labelNumber === 7
|
|
282
282
|
});
|
|
283
|
-
const controlCls =
|
|
283
|
+
const controlCls = "".concat(prefixCls, "-control");
|
|
284
284
|
let inputType = 'text';
|
|
285
285
|
if (type === 'bankCard' || type === 'phone') {
|
|
286
286
|
inputType = 'tel';
|
|
@@ -306,7 +306,7 @@ class InputItem extends React.Component {
|
|
|
306
306
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
307
307
|
className: wrapCls,
|
|
308
308
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
309
|
-
className:
|
|
309
|
+
className: "".concat(prefixListCls, "-line"),
|
|
310
310
|
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
311
311
|
className: labelCls,
|
|
312
312
|
children: children
|
|
@@ -334,10 +334,7 @@ class InputItem extends React.Component {
|
|
|
334
334
|
moneyKeyboardHeader: moneyKeyboardHeader,
|
|
335
335
|
autoAdjustHeight: autoAdjustHeight,
|
|
336
336
|
disabledKeys: disabledKeys
|
|
337
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, {
|
|
338
|
-
...patternProps,
|
|
339
|
-
...restProps,
|
|
340
|
-
...classNameProps,
|
|
337
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, patternProps), restProps), classNameProps), {}, {
|
|
341
338
|
value: normalizeValue(value),
|
|
342
339
|
defaultValue: undefined,
|
|
343
340
|
ref: el => this.inputRef = el,
|
|
@@ -351,18 +348,18 @@ class InputItem extends React.Component {
|
|
|
351
348
|
onBlur: this.onInputBlur,
|
|
352
349
|
readOnly: !editable,
|
|
353
350
|
disabled: disabled
|
|
354
|
-
})
|
|
355
|
-
}), clear && editable && !disabled && value &&
|
|
356
|
-
activeClassName:
|
|
351
|
+
}))
|
|
352
|
+
}), clear && editable && !disabled && value && "".concat(value).length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
353
|
+
activeClassName: "".concat(prefixCls, "-clear-active"),
|
|
357
354
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
358
|
-
className:
|
|
355
|
+
className: "".concat(prefixCls, "-clear"),
|
|
359
356
|
onClick: this.clearInput
|
|
360
357
|
})
|
|
361
358
|
}) : null, error ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
362
|
-
className:
|
|
359
|
+
className: "".concat(prefixCls, "-error-extra"),
|
|
363
360
|
onClick: onErrorClick
|
|
364
361
|
}) : null, extra !== '' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
365
|
-
className:
|
|
362
|
+
className: "".concat(prefixCls, "-extra"),
|
|
366
363
|
onClick: onExtraClick,
|
|
367
364
|
children: extra
|
|
368
365
|
}) : null]
|
package/lib/InputItem/input.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
8
11
|
var React = _interopRequireWildcard(require("react"));
|
|
9
12
|
require("./style/index.css");
|
|
10
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
const _excluded = ["onBlur", "onFocus"];
|
|
11
15
|
class Input extends React.Component {
|
|
12
16
|
constructor() {
|
|
13
17
|
super(...arguments);
|
|
@@ -31,17 +35,17 @@ class Input extends React.Component {
|
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
render() {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
const _this$props = this.props,
|
|
39
|
+
{
|
|
40
|
+
onBlur,
|
|
41
|
+
onFocus
|
|
42
|
+
} = _this$props,
|
|
43
|
+
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("input", (0, _objectSpread2.default)({
|
|
40
45
|
ref: el => this.inputRef = el,
|
|
41
46
|
onBlur: this.onInputBlur,
|
|
42
|
-
onFocus: this.onInputFocus
|
|
43
|
-
|
|
44
|
-
});
|
|
47
|
+
onFocus: this.onInputFocus
|
|
48
|
+
}, restProps));
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
var _default = exports.default = Input;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _lang = require("../../lang");
|
|
10
11
|
require("./index.css");
|
|
@@ -50,9 +51,7 @@ class PCLinkEditorPopover extends _react.default.Component {
|
|
|
50
51
|
let {
|
|
51
52
|
searchValue
|
|
52
53
|
} = this.state;
|
|
53
|
-
let popoverStyle = Object.assign({}, {
|
|
54
|
-
...popoverPosition
|
|
55
|
-
}, {
|
|
54
|
+
let popoverStyle = Object.assign({}, (0, _objectSpread2.default)({}, popoverPosition), {
|
|
56
55
|
position: 'absolute'
|
|
57
56
|
});
|
|
58
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
package/lib/List/index.js
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
12
|
var React = _interopRequireWildcard(require("react"));
|
|
11
13
|
var _listItem = _interopRequireDefault(require("./list-item"));
|
|
12
14
|
require("./index.css");
|
|
13
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
const _excluded = ["prefixCls", "children", "className", "style", "renderHeader", "renderFooter"];
|
|
14
17
|
class List extends React.Component {
|
|
15
18
|
render() {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const _this$props = this.props,
|
|
20
|
+
{
|
|
21
|
+
prefixCls,
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
style,
|
|
25
|
+
renderHeader,
|
|
26
|
+
renderFooter
|
|
27
|
+
} = _this$props,
|
|
28
|
+
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
25
29
|
const wrapCls = (0, _classnames.default)(prefixCls, className);
|
|
26
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
27
31
|
className: wrapCls,
|
|
28
|
-
style: style
|
|
29
|
-
|
|
32
|
+
style: style
|
|
33
|
+
}, restProps), {}, {
|
|
30
34
|
children: [renderHeader ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
-
className:
|
|
35
|
+
className: "".concat(prefixCls, "-header"),
|
|
32
36
|
children: typeof renderHeader === 'function' ? renderHeader() : renderHeader
|
|
33
37
|
}) : null, children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
-
className:
|
|
38
|
+
className: "".concat(prefixCls, "-body"),
|
|
35
39
|
children: children
|
|
36
40
|
}) : null, renderFooter ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
-
className:
|
|
41
|
+
className: "".concat(prefixCls, "-footer"),
|
|
38
42
|
children: typeof renderFooter === 'function' ? renderFooter() : renderFooter
|
|
39
43
|
}) : null]
|
|
40
|
-
});
|
|
44
|
+
}));
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
List.defaultProps = {
|
package/lib/List/list-item.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.Brief = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
12
|
var React = _interopRequireWildcard(require("react"));
|
|
11
13
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const _excluded = ["prefixCls", "className", "activeStyle", "error", "align", "wrap", "disabled", "children", "multipleLine", "thumb", "extra", "arrow", "onClick"],
|
|
16
|
+
_excluded2 = ["platform"];
|
|
13
17
|
/* tslint:disable:jsx-no-multiline-js */
|
|
14
|
-
|
|
15
18
|
class Brief extends React.Component {
|
|
16
19
|
render() {
|
|
17
20
|
return /*#__PURE__*/React.createElement('div', {
|
|
@@ -41,10 +44,10 @@ class ListItem extends React.Component {
|
|
|
41
44
|
const pointX = ev.clientX - ClientRect.left - Item.offsetWidth / 2;
|
|
42
45
|
const pointY = ev.clientY - ClientRect.top - Item.offsetWidth / 2;
|
|
43
46
|
const coverRippleStyle = {
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
46
|
-
left:
|
|
47
|
-
top:
|
|
47
|
+
width: "".concat(RippleWidth, "px"),
|
|
48
|
+
height: "".concat(RippleWidth, "px"),
|
|
49
|
+
left: "".concat(pointX, "px"),
|
|
50
|
+
top: "".concat(pointY, "px")
|
|
48
51
|
};
|
|
49
52
|
this.setState({
|
|
50
53
|
coverRippleStyle,
|
|
@@ -78,57 +81,57 @@ class ListItem extends React.Component {
|
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
83
|
render() {
|
|
84
|
+
const _this$props = this.props,
|
|
85
|
+
{
|
|
86
|
+
prefixCls,
|
|
87
|
+
className,
|
|
88
|
+
activeStyle,
|
|
89
|
+
error,
|
|
90
|
+
align,
|
|
91
|
+
wrap,
|
|
92
|
+
disabled,
|
|
93
|
+
children,
|
|
94
|
+
multipleLine,
|
|
95
|
+
thumb,
|
|
96
|
+
extra,
|
|
97
|
+
arrow,
|
|
98
|
+
onClick
|
|
99
|
+
} = _this$props,
|
|
100
|
+
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
81
101
|
const {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
error,
|
|
86
|
-
align,
|
|
87
|
-
wrap,
|
|
88
|
-
disabled,
|
|
89
|
-
children,
|
|
90
|
-
multipleLine,
|
|
91
|
-
thumb,
|
|
92
|
-
extra,
|
|
93
|
-
arrow,
|
|
94
|
-
onClick,
|
|
95
|
-
...restProps
|
|
96
|
-
} = this.props;
|
|
97
|
-
const {
|
|
98
|
-
platform,
|
|
99
|
-
...otherProps
|
|
100
|
-
} = restProps;
|
|
102
|
+
platform
|
|
103
|
+
} = restProps,
|
|
104
|
+
otherProps = (0, _objectWithoutProperties2.default)(restProps, _excluded2);
|
|
101
105
|
const {
|
|
102
106
|
coverRippleStyle,
|
|
103
107
|
RippleClicked
|
|
104
108
|
} = this.state;
|
|
105
|
-
const wrapCls = (0, _classnames.default)(
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
109
|
+
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, {
|
|
110
|
+
["".concat(prefixCls, "-item-disabled")]: disabled,
|
|
111
|
+
["".concat(prefixCls, "-item-error")]: error,
|
|
112
|
+
["".concat(prefixCls, "-item-top")]: align === 'top',
|
|
113
|
+
["".concat(prefixCls, "-item-middle")]: align === 'middle',
|
|
114
|
+
["".concat(prefixCls, "-item-bottom")]: align === 'bottom'
|
|
111
115
|
});
|
|
112
|
-
const rippleCls = (0, _classnames.default)(
|
|
113
|
-
[
|
|
116
|
+
const rippleCls = (0, _classnames.default)("".concat(prefixCls, "-ripple"), {
|
|
117
|
+
["".concat(prefixCls, "-ripple-animate")]: RippleClicked
|
|
114
118
|
});
|
|
115
|
-
const lineCls = (0, _classnames.default)(
|
|
116
|
-
[
|
|
117
|
-
[
|
|
119
|
+
const lineCls = (0, _classnames.default)("".concat(prefixCls, "-line"), {
|
|
120
|
+
["".concat(prefixCls, "-line-multiple")]: multipleLine,
|
|
121
|
+
["".concat(prefixCls, "-line-wrap")]: wrap
|
|
118
122
|
});
|
|
119
|
-
const arrowCls = (0, _classnames.default)(
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
+
const arrowCls = (0, _classnames.default)("".concat(prefixCls, "-arrow"), {
|
|
124
|
+
["".concat(prefixCls, "-arrow-horizontal")]: arrow === 'horizontal',
|
|
125
|
+
["".concat(prefixCls, "-arrow-vertical")]: arrow === 'down' || arrow === 'up',
|
|
126
|
+
["".concat(prefixCls, "-arrow-vertical-up")]: arrow === 'up'
|
|
123
127
|
});
|
|
124
|
-
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
125
|
-
...otherProps,
|
|
128
|
+
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, otherProps), {}, {
|
|
126
129
|
onClick: ev => {
|
|
127
130
|
this.onClick(ev);
|
|
128
131
|
},
|
|
129
132
|
className: wrapCls,
|
|
130
133
|
children: [thumb ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
-
className:
|
|
134
|
+
className: "".concat(prefixCls, "-thumb"),
|
|
132
135
|
children: typeof thumb === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
133
136
|
src: thumb,
|
|
134
137
|
alt: ""
|
|
@@ -136,10 +139,10 @@ class ListItem extends React.Component {
|
|
|
136
139
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
140
|
className: lineCls,
|
|
138
141
|
children: [children !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
-
className:
|
|
142
|
+
className: "".concat(prefixCls, "-content"),
|
|
140
143
|
children: children
|
|
141
144
|
}), extra !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
-
className:
|
|
145
|
+
className: "".concat(prefixCls, "-extra"),
|
|
143
146
|
children: extra
|
|
144
147
|
}), arrow && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
148
|
className: arrowCls,
|
|
@@ -149,7 +152,7 @@ class ListItem extends React.Component {
|
|
|
149
152
|
style: coverRippleStyle,
|
|
150
153
|
className: rippleCls
|
|
151
154
|
})]
|
|
152
|
-
});
|
|
155
|
+
}));
|
|
153
156
|
let touchProps = {};
|
|
154
157
|
Object.keys(otherProps).forEach(key => {
|
|
155
158
|
if (/onTouch/i.test(key)) {
|
|
@@ -157,13 +160,12 @@ class ListItem extends React.Component {
|
|
|
157
160
|
delete otherProps[key];
|
|
158
161
|
}
|
|
159
162
|
});
|
|
160
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
161
|
-
...touchProps,
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, touchProps), {}, {
|
|
162
164
|
disabled: disabled || !onClick,
|
|
163
165
|
activeStyle: activeStyle,
|
|
164
|
-
activeClassName:
|
|
166
|
+
activeClassName: "".concat(prefixCls, "-item-active"),
|
|
165
167
|
children: content
|
|
166
|
-
});
|
|
168
|
+
}));
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
ListItem.defaultProps = {
|
|
@@ -18,7 +18,7 @@ class MBEditorHeader extends _react.default.Component {
|
|
|
18
18
|
onRightClick
|
|
19
19
|
} = this.props;
|
|
20
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21
|
-
className:
|
|
21
|
+
className: "dtable-ui-mb-editor-header ".concat(titleClass ? titleClass : ''),
|
|
22
22
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
23
23
|
className: "editor-header-left-content",
|
|
24
24
|
onClick: onLeftClick,
|
|
@@ -17,7 +17,7 @@ const Body = _ref => {
|
|
|
17
17
|
} = _ref;
|
|
18
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
19
|
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-body', className, {
|
|
20
|
-
[
|
|
20
|
+
["".concat(classNamePrefix, "-mobile-full-screen-page-body")]: classNamePrefix
|
|
21
21
|
}),
|
|
22
22
|
children: children
|
|
23
23
|
});
|