arengibook 2.4.670 → 2.4.672
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/index.js +22 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36374,6 +36374,10 @@ var Dropdown = function Dropdown(props) {
|
|
|
36374
36374
|
choice_attr = _props$choice_attr === void 0 ? function () {
|
|
36375
36375
|
return {};
|
|
36376
36376
|
} : _props$choice_attr,
|
|
36377
|
+
_props$optionClassnam = props.optionClassname,
|
|
36378
|
+
optionClassname = _props$optionClassnam === void 0 ? null : _props$optionClassnam,
|
|
36379
|
+
_props$valueClassname = props.valueClassname,
|
|
36380
|
+
valueClassname = _props$valueClassname === void 0 ? null : _props$valueClassname,
|
|
36377
36381
|
_props$isGroupedOptio = props.isGroupedOption,
|
|
36378
36382
|
isGroupedOption = _props$isGroupedOptio === void 0 ? false : _props$isGroupedOptio,
|
|
36379
36383
|
_props$showTooltipGro = props.showTooltipGroup,
|
|
@@ -36518,20 +36522,17 @@ var Dropdown = function Dropdown(props) {
|
|
|
36518
36522
|
};
|
|
36519
36523
|
var optionTemplate = function optionTemplate(option) {
|
|
36520
36524
|
if (!isSelectMeta) {
|
|
36521
|
-
|
|
36522
|
-
|
|
36523
|
-
|
|
36524
|
-
|
|
36525
|
-
|
|
36526
|
-
|
|
36527
|
-
|
|
36528
|
-
|
|
36529
|
-
|
|
36530
|
-
|
|
36531
|
-
|
|
36532
|
-
}, optionStyle)
|
|
36533
|
-
}, option === null || option === void 0 ? void 0 : option[optionLabel]);
|
|
36534
|
-
}
|
|
36525
|
+
var defaultAttrs = {
|
|
36526
|
+
className: optionClassname,
|
|
36527
|
+
style: {
|
|
36528
|
+
fontSize: '14px'
|
|
36529
|
+
}
|
|
36530
|
+
};
|
|
36531
|
+
var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
|
|
36532
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
36533
|
+
className: attrs.className,
|
|
36534
|
+
style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
|
|
36535
|
+
}, option === null || option === void 0 ? void 0 : option[optionLabel]);
|
|
36535
36536
|
} else {
|
|
36536
36537
|
var _ref = selectMetaConfig || {},
|
|
36537
36538
|
labelStyle = _ref.labelStyle,
|
|
@@ -36606,11 +36607,16 @@ var Dropdown = function Dropdown(props) {
|
|
|
36606
36607
|
}, placeholder)));
|
|
36607
36608
|
}
|
|
36608
36609
|
} else {
|
|
36609
|
-
|
|
36610
|
+
var attrs = {
|
|
36611
|
+
className: valueClassname,
|
|
36610
36612
|
style: _objectSpread2({
|
|
36611
36613
|
fontFamily: 'Arial',
|
|
36612
36614
|
fontSize: '14px'
|
|
36613
36615
|
}, valueStyle)
|
|
36616
|
+
};
|
|
36617
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
36618
|
+
className: attrs.className,
|
|
36619
|
+
style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
|
|
36614
36620
|
}, (option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder);
|
|
36615
36621
|
}
|
|
36616
36622
|
};
|
|
@@ -36845,7 +36851,7 @@ var DropdownPresets = {
|
|
|
36845
36851
|
},
|
|
36846
36852
|
choice_attr: function choice_attr(option) {
|
|
36847
36853
|
return {
|
|
36848
|
-
className: 'material-icons'
|
|
36854
|
+
className: 'material-icons bobo'
|
|
36849
36855
|
};
|
|
36850
36856
|
}
|
|
36851
36857
|
},
|