dtable-ui-component 6.0.110-aol.8 → 6.0.110-hap.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.
|
@@ -58,7 +58,10 @@ class DTableSelect extends _react.default.Component {
|
|
|
58
58
|
ref: innerRef,
|
|
59
59
|
filterOption: customFilterOption,
|
|
60
60
|
form: form,
|
|
61
|
-
autoFocus: autoFocus
|
|
61
|
+
autoFocus: autoFocus,
|
|
62
|
+
menuIsOpen: true,
|
|
63
|
+
onMenuClose: () => {},
|
|
64
|
+
onMenuOpen: () => {}
|
|
62
65
|
});
|
|
63
66
|
}
|
|
64
67
|
}
|
|
@@ -112,11 +112,11 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
|
112
112
|
} = state;
|
|
113
113
|
return {
|
|
114
114
|
...provided,
|
|
115
|
+
padding: '8px',
|
|
115
116
|
fontSize: '14px',
|
|
116
117
|
color: '#212529',
|
|
117
118
|
cursor: isDisabled ? 'default' : 'pointer',
|
|
118
119
|
backgroundColor: isFocused ? '#f5f5f5' : '#fff',
|
|
119
|
-
padding: '8px',
|
|
120
120
|
borderRadius: '4px',
|
|
121
121
|
':active': {
|
|
122
122
|
backgroundColor: '#f5f5f5'
|
|
@@ -126,6 +126,10 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
|
126
126
|
},
|
|
127
127
|
'.header-icon .multicolor-icon': {
|
|
128
128
|
color: '#aaa'
|
|
129
|
+
},
|
|
130
|
+
'.seatable-ui-select-tip': {
|
|
131
|
+
fontSize: '12px',
|
|
132
|
+
color: '#666666'
|
|
129
133
|
}
|
|
130
134
|
};
|
|
131
135
|
},
|
|
@@ -134,7 +138,15 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
|
134
138
|
...base,
|
|
135
139
|
zIndex: 9999
|
|
136
140
|
}),
|
|
137
|
-
indicatorSeparator: noneCallback
|
|
141
|
+
indicatorSeparator: noneCallback,
|
|
142
|
+
menuList: provided => ({
|
|
143
|
+
...provided,
|
|
144
|
+
padding: '8px'
|
|
145
|
+
}),
|
|
146
|
+
valueContainer: (provided, state) => ({
|
|
147
|
+
...provided,
|
|
148
|
+
padding: '2px 8px 2px 16px'
|
|
149
|
+
})
|
|
138
150
|
};
|
|
139
151
|
const DropdownIndicator = props => {
|
|
140
152
|
return _reactSelect.components.DropdownIndicator && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.DropdownIndicator, {
|
|
@@ -143,7 +155,9 @@ const DropdownIndicator = props => {
|
|
|
143
155
|
className: "dtable-font dtable-icon-down3",
|
|
144
156
|
style: {
|
|
145
157
|
fontSize: '12px',
|
|
146
|
-
marginLeft: '-2px'
|
|
158
|
+
marginLeft: '-2px',
|
|
159
|
+
color: '#666666',
|
|
160
|
+
paddingRight: '16px'
|
|
147
161
|
}
|
|
148
162
|
})
|
|
149
163
|
});
|
|
@@ -185,27 +199,29 @@ const MenuList = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
|
185
199
|
exports.MenuList = MenuList;
|
|
186
200
|
const Option = props => {
|
|
187
201
|
const {
|
|
188
|
-
isSelected
|
|
202
|
+
isSelected,
|
|
203
|
+
label
|
|
189
204
|
} = props;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
display: 'flex',
|
|
194
|
-
alignItems: 'center',
|
|
195
|
-
justifyContent: 'space-between'
|
|
196
|
-
};
|
|
197
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
198
|
-
style: containerStyle,
|
|
199
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.Option, {
|
|
200
|
-
...props
|
|
201
|
-
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
202
|
-
className: "dtable-font dtable-icon-check-mark",
|
|
205
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.Option, {
|
|
206
|
+
...props,
|
|
207
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
203
208
|
style: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
display: 'flex',
|
|
210
|
+
alignItems: 'center',
|
|
211
|
+
justifyContent: 'space-between',
|
|
212
|
+
width: '100%'
|
|
213
|
+
},
|
|
214
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
215
|
+
children: label
|
|
216
|
+
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
217
|
+
className: "dtable-font dtable-icon-check",
|
|
218
|
+
style: {
|
|
219
|
+
fontSize: '14px',
|
|
220
|
+
color: '#666666',
|
|
221
|
+
paddingLeft: '16px'
|
|
222
|
+
}
|
|
223
|
+
})]
|
|
224
|
+
})
|
|
209
225
|
});
|
|
210
226
|
};
|
|
211
227
|
exports.Option = Option;
|