linkmore-design 1.1.24 → 1.1.25
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.umd.js +21 -7
- package/dist/index.umd.min.js +2 -2
- package/dist/variables.css +20 -0
- package/es/LmEditTable/EditTable.js +1 -1
- package/es/LmEditTable/style/index.css +3 -0
- package/es/LmEditTable/style/variables.css +3 -0
- package/es/LmUpload/UploadList/ItemPicture.js +2 -1
- package/es/LmUpload/UploadList/ItemPictureCard.js +11 -2
- package/es/LmUpload/UploadList/ItemText.js +2 -1
- package/es/LmUpload/UploadList/index.js +2 -1
- package/es/LmUpload/body/UploadCore.js +4 -1
- package/es/LmUpload/style/index.css +17 -0
- package/es/LmUpload/style/variables.css +17 -0
- package/es/styles/variables.css +20 -0
- package/lib/LmEditTable/EditTable.js +1 -1
- package/lib/LmEditTable/style/index.css +3 -0
- package/lib/LmEditTable/style/variables.css +3 -0
- package/lib/LmUpload/UploadList/ItemPicture.js +2 -1
- package/lib/LmUpload/UploadList/ItemPictureCard.js +11 -2
- package/lib/LmUpload/UploadList/ItemText.js +2 -1
- package/lib/LmUpload/UploadList/index.js +2 -1
- package/lib/LmUpload/body/UploadCore.js +5 -1
- package/lib/LmUpload/style/index.css +17 -0
- package/lib/LmUpload/style/variables.css +17 -0
- package/lib/styles/variables.css +20 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -182022,6 +182022,7 @@
|
|
|
182022
182022
|
var instance = _ref.instance;
|
|
182023
182023
|
var inputRef = React__default['default'].useRef(null);
|
|
182024
182024
|
var accept = instance.accept,
|
|
182025
|
+
disabled = instance.disabled,
|
|
182025
182026
|
children = instance.children,
|
|
182026
182027
|
beforeUpload = instance.beforeUpload,
|
|
182027
182028
|
getUploadStatus = instance.getUploadStatus,
|
|
@@ -182030,6 +182031,7 @@
|
|
|
182030
182031
|
var handleClick = React.useCallback(function () {
|
|
182031
182032
|
var _inputRef$current;
|
|
182032
182033
|
|
|
182034
|
+
if (disabled) return;
|
|
182033
182035
|
var isUploading = getUploadStatus().uploading;
|
|
182034
182036
|
if (isUploading) return;
|
|
182035
182037
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
@@ -182055,7 +182057,7 @@
|
|
|
182055
182057
|
};
|
|
182056
182058
|
return !getIsMaxCount() && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182057
182059
|
onClick: handleClick,
|
|
182058
|
-
className:
|
|
182060
|
+
className: classnames('lm_upload_core', disabled && 'disabled')
|
|
182059
182061
|
}, children || /*#__PURE__*/React__default['default'].createElement(UploadPicture, {
|
|
182060
182062
|
instance: instance
|
|
182061
182063
|
}), /*#__PURE__*/React__default['default'].createElement("input", _objectSpread({
|
|
@@ -182096,6 +182098,7 @@
|
|
|
182096
182098
|
var file = _ref.file,
|
|
182097
182099
|
instance = _ref.instance;
|
|
182098
182100
|
var readOnly = instance.readOnly,
|
|
182101
|
+
disabled = instance.disabled,
|
|
182099
182102
|
remove = instance.remove,
|
|
182100
182103
|
download = instance.download,
|
|
182101
182104
|
fileNames = instance.fileNames;
|
|
@@ -182112,7 +182115,7 @@
|
|
|
182112
182115
|
onClick: function onClick() {
|
|
182113
182116
|
return download(file);
|
|
182114
182117
|
}
|
|
182115
|
-
}, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
|
|
182118
|
+
}, file[fileNames.fileName])), !readOnly && !disabled && /*#__PURE__*/React.createElement("div", {
|
|
182116
182119
|
className: "text_right lm_upload_item_text_action"
|
|
182117
182120
|
}, /*#__PURE__*/React.createElement("div", {
|
|
182118
182121
|
className: "action_delete",
|
|
@@ -182128,6 +182131,7 @@
|
|
|
182128
182131
|
var file = _ref.file,
|
|
182129
182132
|
instance = _ref.instance;
|
|
182130
182133
|
var readOnly = instance.readOnly,
|
|
182134
|
+
disabled = instance.disabled,
|
|
182131
182135
|
remove = instance.remove,
|
|
182132
182136
|
preview = instance.preview,
|
|
182133
182137
|
download = instance.download,
|
|
@@ -182149,7 +182153,7 @@
|
|
|
182149
182153
|
onClick: function onClick() {
|
|
182150
182154
|
return download(file);
|
|
182151
182155
|
}
|
|
182152
|
-
}, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
|
|
182156
|
+
}, file[fileNames.fileName])), !readOnly && !disabled && /*#__PURE__*/React.createElement("div", {
|
|
182153
182157
|
className: "picture_right lm_upload_item_action"
|
|
182154
182158
|
}, /*#__PURE__*/React.createElement("div", {
|
|
182155
182159
|
className: "action_delete",
|
|
@@ -182225,6 +182229,7 @@
|
|
|
182225
182229
|
instance = _ref.instance,
|
|
182226
182230
|
listeners = _ref.listeners;
|
|
182227
182231
|
var dispatch = instance.dispatch,
|
|
182232
|
+
disabled = instance.disabled,
|
|
182228
182233
|
readOnly = instance.readOnly,
|
|
182229
182234
|
size = instance.size,
|
|
182230
182235
|
remove = instance.remove,
|
|
@@ -182298,7 +182303,15 @@
|
|
|
182298
182303
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182299
182304
|
className: "lm_upload_item_mask"
|
|
182300
182305
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182301
|
-
className: "lm_upload_item_action"
|
|
182306
|
+
className: "lm_upload_item_action",
|
|
182307
|
+
onKeyDown: function onKeyDown(e) {
|
|
182308
|
+
e.stopPropagation();
|
|
182309
|
+
e.preventDefault();
|
|
182310
|
+
},
|
|
182311
|
+
onPointerDown: function onPointerDown(e) {
|
|
182312
|
+
e.stopPropagation();
|
|
182313
|
+
e.preventDefault();
|
|
182314
|
+
}
|
|
182302
182315
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182303
182316
|
className: "action_preview",
|
|
182304
182317
|
onClick: handlePreview
|
|
@@ -182307,7 +182320,7 @@
|
|
|
182307
182320
|
style: {
|
|
182308
182321
|
fontSize: resetSize.fontSize
|
|
182309
182322
|
}
|
|
182310
|
-
})), !readOnly && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182323
|
+
})), !readOnly && !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
182311
182324
|
className: "action_delete",
|
|
182312
182325
|
onClick: function onClick() {
|
|
182313
182326
|
return remove(file);
|
|
@@ -182344,6 +182357,7 @@
|
|
|
182344
182357
|
itemRender = instance.itemRender,
|
|
182345
182358
|
listType = instance.listType,
|
|
182346
182359
|
showUploadList = instance.showUploadList,
|
|
182360
|
+
disabled = instance.disabled,
|
|
182347
182361
|
enableDrag = instance.enableDrag,
|
|
182348
182362
|
fileNames = instance.fileNames,
|
|
182349
182363
|
move = instance.move;
|
|
@@ -182379,7 +182393,7 @@
|
|
|
182379
182393
|
}
|
|
182380
182394
|
};
|
|
182381
182395
|
|
|
182382
|
-
if (enableDrag) {
|
|
182396
|
+
if (!disabled && enableDrag) {
|
|
182383
182397
|
return /*#__PURE__*/React__default['default'].createElement(LmDrag$1, {
|
|
182384
182398
|
options: fileList,
|
|
182385
182399
|
rowKey: uid,
|
|
@@ -313890,7 +313904,7 @@
|
|
|
313890
313904
|
options: Array.isArray(useQuickOpetate) ? useQuickOpetate : ['add', 'delete']
|
|
313891
313905
|
}
|
|
313892
313906
|
} : null]).filter(function (item) {
|
|
313893
|
-
return item;
|
|
313907
|
+
return item && item.show !== false;
|
|
313894
313908
|
});
|
|
313895
313909
|
localColumns = localColumns.map(function (item, index) {
|
|
313896
313910
|
return _objectSpread(_objectSpread({}, item), {}, {
|