arengibook 2.4.680 → 2.4.681
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 +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36522,6 +36522,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
36522
36522
|
};
|
|
36523
36523
|
var optionTemplate = function optionTemplate(option) {
|
|
36524
36524
|
if (!isSelectMeta) {
|
|
36525
|
+
var _option$attrs;
|
|
36525
36526
|
var defaultAttrs = {
|
|
36526
36527
|
className: optionClassname,
|
|
36527
36528
|
style: {
|
|
@@ -36529,10 +36530,19 @@ var Dropdown = function Dropdown(props) {
|
|
|
36529
36530
|
}
|
|
36530
36531
|
};
|
|
36531
36532
|
var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
|
|
36533
|
+
var srcLink = option === null || option === void 0 || (_option$attrs = option.attrs) === null || _option$attrs === void 0 ? void 0 : _option$attrs['data-src'];
|
|
36532
36534
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36533
36535
|
className: attrs.className,
|
|
36534
36536
|
style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
|
|
36535
|
-
},
|
|
36537
|
+
}, srcLink && /*#__PURE__*/React__default.createElement("img", {
|
|
36538
|
+
alt: "img",
|
|
36539
|
+
src: srcLink,
|
|
36540
|
+
style: {
|
|
36541
|
+
width: '18px',
|
|
36542
|
+
marginRight: '0.5rem'
|
|
36543
|
+
},
|
|
36544
|
+
className: "mr-2"
|
|
36545
|
+
}), option === null || option === void 0 ? void 0 : option[optionLabel]);
|
|
36536
36546
|
} else {
|
|
36537
36547
|
var _ref = selectMetaConfig || {},
|
|
36538
36548
|
labelStyle = _ref.labelStyle,
|