@v2coding/ui 0.1.19 → 0.1.20
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/v2coding-ui.esm.js +12 -2
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +12 -2
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -10926,8 +10926,18 @@ var addColumnType = function addColumnType(type, config) {
|
|
|
10926
10926
|
var ColumnType$1 = ColumnType;
|
|
10927
10927
|
var DefaultTypes = {
|
|
10928
10928
|
default: function _default(_ref) {
|
|
10929
|
-
var cellValue = _ref.cellValue
|
|
10930
|
-
|
|
10929
|
+
var cellValue = _ref.cellValue,
|
|
10930
|
+
attrs = _ref.attrs,
|
|
10931
|
+
props = _ref.props;
|
|
10932
|
+
var fallback = attrs.fallback || props.fallback;
|
|
10933
|
+
var isEmpty = (attrs === null || attrs === void 0 ? void 0 : attrs.isEmpty) || Objects.isEmpty;
|
|
10934
|
+
var isEmptyValue = false;
|
|
10935
|
+
|
|
10936
|
+
if (typeof isEmpty === 'function') {
|
|
10937
|
+
isEmptyValue = isEmpty(cellValue);
|
|
10938
|
+
}
|
|
10939
|
+
|
|
10940
|
+
return isEmptyValue ? fallback : cellValue;
|
|
10931
10941
|
},
|
|
10932
10942
|
date: function date(_ref2) {
|
|
10933
10943
|
var cellValue = _ref2.cellValue,
|