ywana-core8 0.0.511 → 0.0.514
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.cjs +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +4 -4
package/dist/index.umd.js
CHANGED
@@ -1809,8 +1809,7 @@
|
|
1809
1809
|
return column.type === TYPES.ENTITY ? /*#__PURE__*/React__default["default"].createElement(EntityCellViewer, {
|
1810
1810
|
id: column.id,
|
1811
1811
|
item: column.item,
|
1812
|
-
value: cell
|
1813
|
-
format: column.format
|
1812
|
+
value: cell
|
1814
1813
|
}) : /*#__PURE__*/React__default["default"].createElement("td", {
|
1815
1814
|
key: column.id,
|
1816
1815
|
className: column.id
|
@@ -1825,17 +1824,15 @@
|
|
1825
1824
|
|
1826
1825
|
var EntityCellViewer = function EntityCellViewer(_ref5) {
|
1827
1826
|
var item = _ref5.item,
|
1828
|
-
value = _ref5.value
|
1829
|
-
_ref5$format = _ref5.format,
|
1830
|
-
format = _ref5$format === void 0 ? "" : _ref5$format;
|
1827
|
+
value = _ref5.value;
|
1831
1828
|
var fields = Object.values(item).filter(function (field) {
|
1832
1829
|
return field.column === true;
|
1833
1830
|
});
|
1834
1831
|
return fields.map(function (field) {
|
1835
1832
|
var text = value[field.id];
|
1836
1833
|
|
1837
|
-
if (format) {
|
1838
|
-
switch (format) {
|
1834
|
+
if (field.format) {
|
1835
|
+
switch (field.format) {
|
1839
1836
|
case FORMATS.COLOR:
|
1840
1837
|
text = /*#__PURE__*/React__default["default"].createElement("input", {
|
1841
1838
|
type: "color",
|