ywana-core8 0.0.958 → 0.0.960
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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +8 -4
package/dist/index.modern.js
CHANGED
@@ -2263,7 +2263,7 @@ var DataTableCell = function DataTableCell(_ref6) {
|
|
2263
2263
|
id: id,
|
2264
2264
|
value: cell,
|
2265
2265
|
uploadURL: column.uploadURL,
|
2266
|
-
onUpload: column.
|
2266
|
+
onUpload: column.onChange
|
2267
2267
|
});
|
2268
2268
|
default:
|
2269
2269
|
return cell;
|
@@ -2330,16 +2330,24 @@ var ImageCellViewer = function ImageCellViewer(_ref7) {
|
|
2330
2330
|
if (onChange) onChange(id, file, message);
|
2331
2331
|
console.error(message);
|
2332
2332
|
}
|
2333
|
-
return /*#__PURE__*/React.createElement("div", {
|
2333
|
+
return uploadURL ? /*#__PURE__*/React.createElement("div", {
|
2334
2334
|
className: "image-cell"
|
2335
|
-
}, /*#__PURE__*/React.createElement("img", {
|
2335
|
+
}, value ? /*#__PURE__*/React.createElement("img", {
|
2336
2336
|
src: value
|
2337
|
-
})
|
2337
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
2338
|
+
icon: "person"
|
2339
|
+
}), /*#__PURE__*/React.createElement(Uploader, {
|
2338
2340
|
icon: "cloud_upload",
|
2339
2341
|
target: uploadURL,
|
2340
2342
|
onSuccess: success,
|
2341
2343
|
onError: error
|
2342
|
-
}) :
|
2344
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
2345
|
+
className: "image-cell"
|
2346
|
+
}, value ? /*#__PURE__*/React.createElement("img", {
|
2347
|
+
src: value
|
2348
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
2349
|
+
icon: "person"
|
2350
|
+
}));
|
2343
2351
|
};
|
2344
2352
|
|
2345
2353
|
/**
|