arengibook 2.4.680 → 2.4.682
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 +13 -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,21 @@ var Dropdown = function Dropdown(props) {
|
|
|
36529
36530
|
}
|
|
36530
36531
|
};
|
|
36531
36532
|
var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
|
|
36533
|
+
console.log('choice_attr');
|
|
36534
|
+
console.log(choice_attr);
|
|
36535
|
+
var srcLink = option === null || option === void 0 || (_option$attrs = option.attrs) === null || _option$attrs === void 0 ? void 0 : _option$attrs['data-src'];
|
|
36532
36536
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36533
36537
|
className: attrs.className,
|
|
36534
36538
|
style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
|
|
36535
|
-
},
|
|
36539
|
+
}, srcLink && /*#__PURE__*/React__default.createElement("img", {
|
|
36540
|
+
alt: "img",
|
|
36541
|
+
src: srcLink,
|
|
36542
|
+
style: {
|
|
36543
|
+
width: '18px',
|
|
36544
|
+
marginRight: '0.5rem'
|
|
36545
|
+
},
|
|
36546
|
+
className: "mr-2"
|
|
36547
|
+
}), option === null || option === void 0 ? void 0 : option[optionLabel]);
|
|
36536
36548
|
} else {
|
|
36537
36549
|
var _ref = selectMetaConfig || {},
|
|
36538
36550
|
labelStyle = _ref.labelStyle,
|