dtable-ui-component 5.2.5-alpha5 → 5.2.6-alpha1
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.
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
10
10
|
var _utils = require("./utils");
|
|
11
|
+
require("./index.css");
|
|
11
12
|
class DTableSelect extends _react.default.Component {
|
|
12
13
|
render() {
|
|
13
14
|
const {
|
|
@@ -32,7 +33,9 @@ class DTableSelect extends _react.default.Component {
|
|
|
32
33
|
value: value,
|
|
33
34
|
onChange: onChange,
|
|
34
35
|
options: options,
|
|
35
|
-
isMulti: isMulti
|
|
36
|
+
isMulti: isMulti
|
|
37
|
+
// classNamePrefix={'dtable-select' + classNamePrefix}
|
|
38
|
+
,
|
|
36
39
|
classNamePrefix: classNamePrefix,
|
|
37
40
|
styles: style || _utils.MenuSelectStyle,
|
|
38
41
|
components: {
|
|
@@ -70,6 +73,7 @@ DTableSelect.defaultProps = {
|
|
|
70
73
|
isMulti: false,
|
|
71
74
|
autoFocus: false,
|
|
72
75
|
menuPortalTarget: '.modal',
|
|
76
|
+
// classNamePrefix: '',
|
|
73
77
|
noOptionsMessage: () => {
|
|
74
78
|
return null;
|
|
75
79
|
}
|
|
@@ -101,16 +101,14 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
|
101
101
|
...base,
|
|
102
102
|
zIndex: 9999
|
|
103
103
|
}),
|
|
104
|
-
indicatorSeparator: () => {}
|
|
105
|
-
indicatorsContainer: provided => {
|
|
106
|
-
return {
|
|
107
|
-
...provided,
|
|
108
|
-
padding: '8px 6px'
|
|
109
|
-
};
|
|
110
|
-
}
|
|
104
|
+
indicatorSeparator: () => {}
|
|
111
105
|
};
|
|
112
106
|
const DropdownIndicator = props => {
|
|
113
|
-
return _reactSelect.components.DropdownIndicator && /*#__PURE__*/_react.default.createElement(_reactSelect.components.DropdownIndicator,
|
|
107
|
+
return _reactSelect.components.DropdownIndicator && /*#__PURE__*/_react.default.createElement(_reactSelect.components.DropdownIndicator, Object.assign({}, props, {
|
|
108
|
+
style: {
|
|
109
|
+
padding: '8px 6px'
|
|
110
|
+
}
|
|
111
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
114
112
|
className: "dtable-font dtable-icon-drop-down",
|
|
115
113
|
style: {
|
|
116
114
|
fontSize: '12px'
|
|
@@ -131,7 +129,11 @@ const ClearIndicator = _ref => {
|
|
|
131
129
|
...innerProps,
|
|
132
130
|
onMouseDown
|
|
133
131
|
};
|
|
134
|
-
return /*#__PURE__*/_react.default.createElement(_reactSelect.components.ClearIndicator,
|
|
132
|
+
return /*#__PURE__*/_react.default.createElement(_reactSelect.components.ClearIndicator, Object.assign({}, props, {
|
|
133
|
+
style: {
|
|
134
|
+
padding: '8px 6px'
|
|
135
|
+
}
|
|
136
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
135
137
|
className: "dtable-font dtable-icon-fork-number",
|
|
136
138
|
style: {
|
|
137
139
|
fontSize: '12px'
|