dtable-ui-component 5.2.12 → 5.2.13
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/lib/AutoNumberFormatter/index.js +1 -0
- package/lib/CTimeFormatter/index.js +1 -0
- package/lib/CollaboratorItem/index.js +1 -0
- package/lib/DateFormatter/index.js +1 -0
- package/lib/DepartmentSingleSelectFormatter/index.js +1 -0
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EmailFormatter/index.js +1 -0
- package/lib/GeolocationFormatter/index.js +6 -4
- package/lib/ImageFormatter/images-lazy-load.js +2 -0
- package/lib/MTimeFormatter/index.js +1 -0
- package/lib/NumberFormatter/index.js +1 -0
- package/lib/RateFormatter/index.js +1 -0
- package/lib/UrlFormatter/index.js +1 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ class AutoNumberFormatter extends _react.default.Component {
|
|
|
16
16
|
} = this.props;
|
|
17
17
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container auto-number-formatter', containerClassName);
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
title: value,
|
|
19
20
|
className: classname
|
|
20
21
|
}, value);
|
|
21
22
|
}
|
|
@@ -20,6 +20,7 @@ class CollaboratorItem extends _react.default.Component {
|
|
|
20
20
|
enableDeleteCollaborator
|
|
21
21
|
} = this.props;
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
title: collaborator.name,
|
|
23
24
|
className: "dtable-ui collaborator-item"
|
|
24
25
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
25
26
|
className: "collaborator-avatar"
|
|
@@ -20,6 +20,7 @@ function DepartmentSingleSelectFormatter(props) {
|
|
|
20
20
|
const department = departments.find(department => department.id === value);
|
|
21
21
|
const name = department ? department.name : deletedTip;
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
title: name,
|
|
23
24
|
className: (0, _classnames.default)('dtable-ui cell-formatter-container department-single-select-formatter text-truncate', containerClassName)
|
|
24
25
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
26
|
className: "department-avatar-container d-flex align-items-center justify-content-center"
|
|
@@ -17,11 +17,13 @@ class DurationFormatter extends _react.default.Component {
|
|
|
17
17
|
format
|
|
18
18
|
} = this.props;
|
|
19
19
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container duration-formatter', containerClassName);
|
|
20
|
+
const durationDisplayString = (0, _dtableUtils.getDurationDisplayString)(value, {
|
|
21
|
+
duration_format: format
|
|
22
|
+
});
|
|
20
23
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
+
title: durationDisplayString,
|
|
21
25
|
className: classname
|
|
22
|
-
},
|
|
23
|
-
duration_format: format
|
|
24
|
-
}));
|
|
26
|
+
}, durationDisplayString);
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
var _default = exports.default = DurationFormatter;
|
|
@@ -16,6 +16,7 @@ class EmailFormatter extends _react.default.Component {
|
|
|
16
16
|
} = this.props;
|
|
17
17
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container email-formatter', containerClassName);
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
title: value,
|
|
19
20
|
className: classname
|
|
20
21
|
}, value);
|
|
21
22
|
}
|
|
@@ -21,12 +21,14 @@ class GeolocationFormatter extends _react.default.Component {
|
|
|
21
21
|
if (typeof value !== 'object') {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
className: className
|
|
26
|
-
}, (0, _dtableUtils.getGeolocationDisplayString)(value, data, {
|
|
24
|
+
const geolocationDisplayString = (0, _dtableUtils.getGeolocationDisplayString)(value, data, {
|
|
27
25
|
isBaiduMap,
|
|
28
26
|
hyphen: ' '
|
|
29
|
-
})
|
|
27
|
+
});
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
+
title: geolocationDisplayString,
|
|
30
|
+
className: className
|
|
31
|
+
}, geolocationDisplayString);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
GeolocationFormatter.defaultProps = {
|
|
@@ -116,7 +116,9 @@ class ImagesLazyLoad extends _react.default.Component {
|
|
|
116
116
|
}, /*#__PURE__*/_react.default.createElement(_Loading.default, null));
|
|
117
117
|
}
|
|
118
118
|
return loadedImages.map((image, index) => {
|
|
119
|
+
let imageName = image.slice(image.src.lastIndexOf('/') + 1);
|
|
119
120
|
const imgDom = /*#__PURE__*/_react.default.createElement("img", {
|
|
121
|
+
title: imageName,
|
|
120
122
|
className: "image-item",
|
|
121
123
|
src: image.src,
|
|
122
124
|
onMouseDown: this.onMouseDown,
|
|
@@ -16,6 +16,7 @@ class UrlFormatter extends _react.default.Component {
|
|
|
16
16
|
} = this.props;
|
|
17
17
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container url-formatter', containerClassName);
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
title: value,
|
|
19
20
|
className: classname
|
|
20
21
|
}, value);
|
|
21
22
|
}
|