dtable-ui-component 5.3.1-beta → 5.3.1
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/CheckboxEditor/index.css +20 -3
- package/lib/CheckboxEditor/index.js +35 -98
- package/lib/CheckboxFormatter/index.js +9 -6
- package/lib/CollaboratorEditor/index.css +35 -12
- package/lib/CollaboratorEditor/index.js +212 -18
- package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
- package/lib/CollaboratorItem/index.css +1 -1
- package/lib/CollaboratorItem/index.js +2 -6
- package/lib/DTableFiltersPopover/utils/index.js +7 -1
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
- package/lib/DTableSelect/index.js +1 -3
- package/lib/DateEditor/index.js +51 -14
- package/lib/DateEditor/pc-date-editor-popover.js +12 -145
- package/lib/Department-editor/department-single-select.js +1 -1
- package/lib/Department-editor/index.js +4 -3
- package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
- package/lib/FileEditor/index.js +11 -244
- package/lib/FileEditor/pc-files-addition/index.js +1 -0
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/FileEditor/pc-files-preview/index.js +1 -0
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
- package/lib/FileItemFormatter/index.js +20 -19
- package/lib/FileItemFormatter/utils.js +99 -0
- package/lib/FileUploader/index.js +14 -268
- package/lib/FormulaFormatter/index.js +1 -2
- package/lib/FormulaFormatter/utils.js +31 -0
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/MultipleSelectEditor/index.css +9 -0
- package/lib/MultipleSelectEditor/index.js +177 -16
- package/lib/NumberEditor/index.js +77 -64
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
- package/lib/RowExpandFormatter/index.css +0 -26
- package/lib/RowExpandFormatter/index.js +100 -84
- package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +5 -5
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/utils.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
- package/lib/RowExpandUrlFormatter/index.css +1 -0
- package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
- package/lib/SingleSelectEditor/index.css +14 -0
- package/lib/SingleSelectEditor/index.js +156 -16
- package/lib/TextEditor/index.js +42 -113
- package/lib/constants/index.js +2 -34
- package/lib/css/cell-editor.css +2 -18
- package/lib/index.js +46 -74
- package/lib/lang/index.js +14 -16
- package/lib/locals/de.js +103 -0
- package/lib/locals/en.js +104 -0
- package/lib/locals/es.js +103 -0
- package/lib/locals/fr.js +103 -0
- package/lib/locals/pt.js +103 -0
- package/lib/locals/ru.js +103 -0
- package/lib/locals/zh-CN.js +104 -0
- package/lib/select-editor/index.js +6 -6
- package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
- package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
- package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
- package/lib/utils/editor-utils.js +6 -1
- package/lib/utils/url.js +8 -119
- package/lib/utils/utils.js +2 -89
- package/package.json +2 -3
- package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
- package/lib/DeleteTip/index.js +0 -50
- package/lib/DigitalSignEditor/constants.js +0 -7
- package/lib/DigitalSignEditor/index.css +0 -69
- package/lib/DigitalSignEditor/index.js +0 -182
- package/lib/DigitalSignEditor/service.js +0 -38
- package/lib/DigitalSignEditor/signature-board/index.css +0 -35
- package/lib/DigitalSignEditor/signature-board/index.js +0 -135
- package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
- package/lib/DigitalSignEditor/utils.js +0 -29
- package/lib/DurationEditor/index.js +0 -111
- package/lib/EmailEditor/index.js +0 -59
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/index.js +0 -52
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
- package/lib/FileEditor/constants.js +0 -7
- package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
- package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
- package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
- package/lib/FileEditor/files-previewer/index.css +0 -56
- package/lib/FileEditor/files-previewer/index.js +0 -277
- package/lib/FileEditor/index.css +0 -6
- package/lib/FileEditor/utils.js +0 -22
- package/lib/FileUploader/index.css +0 -9
- package/lib/GeolocationEditor/country-editor.js +0 -319
- package/lib/GeolocationEditor/index.css +0 -641
- package/lib/GeolocationEditor/index.js +0 -241
- package/lib/GeolocationEditor/location-editor.js +0 -368
- package/lib/GeolocationEditor/map-editor/index.js +0 -456
- package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
- package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
- package/lib/GeolocationEditor/map-editor-utils.js +0 -153
- package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
- package/lib/GeolocationEditor/parse-geolocation.js +0 -282
- package/lib/GeolocationEditor/province-city-editor.js +0 -292
- package/lib/GeolocationEditor/province-editor.js +0 -226
- package/lib/GeolocationEditor/selector-header-item.js +0 -28
- package/lib/GeolocationEditor/selector-list.js +0 -33
- package/lib/GeolocationEditor/with-ref.js +0 -27
- package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
- package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
- package/lib/ImageEditor/addition-previewer/index.css +0 -106
- package/lib/ImageEditor/addition-previewer/index.js +0 -63
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
- package/lib/ImageEditor/constants.js +0 -7
- package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
- package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
- package/lib/ImageEditor/images-previewer/index.css +0 -18
- package/lib/ImageEditor/images-previewer/index.js +0 -140
- package/lib/ImageEditor/index.css +0 -24
- package/lib/ImageEditor/index.js +0 -194
- package/lib/ImageThumbnail/index.css +0 -20
- package/lib/ImageThumbnail/index.js +0 -136
- package/lib/RowExpandDialog/body/index.css +0 -21
- package/lib/RowExpandDialog/body/index.js +0 -279
- package/lib/RowExpandDialog/column-content/index.css +0 -43
- package/lib/RowExpandDialog/column-content/index.js +0 -50
- package/lib/RowExpandDialog/constants.js +0 -114
- package/lib/RowExpandDialog/header/index.css +0 -31
- package/lib/RowExpandDialog/header/index.js +0 -33
- package/lib/RowExpandDialog/index.css +0 -24
- package/lib/RowExpandDialog/index.js +0 -268
- package/lib/RowExpandDialog/utils.js +0 -83
- package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
- package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -124
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
- package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
- package/lib/RowExpandEditor/constants.js +0 -44
- package/lib/RowExpandEditor/index.css +0 -0
- package/lib/RowExpandEditor/index.js +0 -32
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
- package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
- package/lib/RowExpandFormatter/constants.js +0 -60
- package/lib/UploadProgress/index.js +0 -38
- package/lib/UrlEditor/index.js +0 -62
- package/lib/common/editor-base.js +0 -53
- package/lib/constants/file.js +0 -96
- package/lib/constants/key-codes.js +0 -109
- package/lib/hooks/index.js +0 -16
- package/lib/locales/de.json +0 -163
- package/lib/locales/en.json +0 -163
- package/lib/locales/es.json +0 -163
- package/lib/locales/fr.json +0 -163
- package/lib/locales/pt.json +0 -163
- package/lib/locales/ru.json +0 -163
- package/lib/locales/zh-CN.json +0 -163
- package/lib/select-editor/pc-select-editor/index.css +0 -85
- package/lib/select-editor/pc-select-editor/index.js +0 -290
- package/lib/utils/cell-comparer.js +0 -35
- package/lib/utils/cell.js +0 -55
- package/lib/utils/column-utils.js +0 -25
- package/lib/utils/get-event-transfer.js +0 -75
- package/lib/utils/object-utils.js +0 -61
- /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
- /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
- /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
.dtable-ui-image-add-box {
|
|
2
|
-
display: flex;
|
|
3
|
-
background: #f0f0f0;
|
|
4
|
-
height: 100%;
|
|
5
|
-
width: 100%;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
font-size: 12px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dtable-ui-image-add-box .dtable-ui-image-add-button {
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
padding: 16px 10px 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dtable-ui-image-add-box .dtable-ui-image-add-button i {
|
|
20
|
-
color: #999;
|
|
21
|
-
font-size: 25px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
dtable-ui-image-add-box .dtable-ui-image-add-span {
|
|
25
|
-
color: #999;
|
|
26
|
-
margin-top: 5px;
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dtable-ui-dtable-ui-image-add-icon {
|
|
31
|
-
line-height: 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.dtable-ui-dtable-ui-image-add-icon i {
|
|
35
|
-
font-size: 54px;
|
|
36
|
-
color: #ccc;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.dtable-ui-image-tip-addition {
|
|
40
|
-
text-align: center;
|
|
41
|
-
padding: 6rem 4rem;
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.dtable-ui-image-upload-percent {
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 100%;
|
|
48
|
-
border-radius: 2px;
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
position: relative;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.dtable-ui-image-upload-success {
|
|
56
|
-
width: 60px;
|
|
57
|
-
height: 60px;
|
|
58
|
-
background: rgba(0, 0, 0, 0.7);
|
|
59
|
-
border-radius: 2px;
|
|
60
|
-
position: absolute;
|
|
61
|
-
z-index: 5;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.dtable-ui-image-upload-success .dtable-ui-image-upload-success-scale {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 100%;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dtable-ui-image-upload-success .dtable-ui-image-upload-success-scale .dtable-ui-image-upload-success-tip {
|
|
73
|
-
color: #fff;
|
|
74
|
-
font-size: 12px;
|
|
75
|
-
width: 100%;
|
|
76
|
-
transform: scale(0.8);
|
|
77
|
-
text-align: center;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.dtable-ui-image-upload-success .dtable-ui-image-upload-success-icon i {
|
|
81
|
-
display: inline-block;
|
|
82
|
-
color: #757474;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.dtable-ui-image-upload-mask {
|
|
86
|
-
height: 100%;
|
|
87
|
-
width: 100%;
|
|
88
|
-
background: rgba(0, 0, 0, 0.6);
|
|
89
|
-
z-index: 2;
|
|
90
|
-
border-radius: 2px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.dtable-ui-image-upload-error-tip {
|
|
94
|
-
z-index: 3;
|
|
95
|
-
font-size: 12px;
|
|
96
|
-
transform: scale(0.7);
|
|
97
|
-
position: absolute;
|
|
98
|
-
color: #fff;
|
|
99
|
-
white-space: nowrap;
|
|
100
|
-
text-align: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.dtable-ui-image-upload-again {
|
|
104
|
-
text-decoration: underline;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
margin-left: 3px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.dtable-delete-image-icon {
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: -4px;
|
|
112
|
-
right: -4px;
|
|
113
|
-
height: 32px;
|
|
114
|
-
width: 32px;
|
|
115
|
-
border-radius: 50%;
|
|
116
|
-
background: rgba(0, 0, 0, 0.6);
|
|
117
|
-
color: #fff;
|
|
118
|
-
text-align: center;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
transform: scale(0.5);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.dtable-delete-image-icon .image-delete-span {
|
|
124
|
-
font-size: 20px;
|
|
125
|
-
}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
|
-
var _UploadProgress = _interopRequireDefault(require("../../../UploadProgress"));
|
|
12
|
-
var _url = require("../../../utils/url");
|
|
13
|
-
var _FileUploader = _interopRequireDefault(require("../../../FileUploader"));
|
|
14
|
-
var _lang = require("../../../lang");
|
|
15
|
-
require("./index.css");
|
|
16
|
-
class LocalImageAddition extends _react.default.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.setFileTipShow = (isImageTipShow, uploadType) => {
|
|
20
|
-
if (uploadType && uploadType === 'image') {
|
|
21
|
-
this.setState({
|
|
22
|
-
isImagePasteTipShow: isImageTipShow
|
|
23
|
-
});
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.setState({
|
|
27
|
-
isImageTipShow: isImageTipShow
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
this.updateUploadFileList = fileListInfo => {
|
|
31
|
-
if (!fileListInfo) {
|
|
32
|
-
this.setState({
|
|
33
|
-
thumbnailSrcList: []
|
|
34
|
-
});
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.setState({
|
|
38
|
-
thumbnailSrcList: fileListInfo
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
this.onFileUploadSuccess = fileMessage => {
|
|
42
|
-
this.hideDeleteIcon();
|
|
43
|
-
let {
|
|
44
|
-
thumbnailSrcList
|
|
45
|
-
} = this.state;
|
|
46
|
-
const findUploadFileIndex = this.findUploadFileIndex(fileMessage);
|
|
47
|
-
thumbnailSrcList.splice(findUploadFileIndex, 1, fileMessage);
|
|
48
|
-
if (thumbnailSrcList.every(fileItem => !fileItem.isUploading)) {
|
|
49
|
-
this.setState({
|
|
50
|
-
thumbnailSrcList: []
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
this.props.fileUploadCompleted(fileMessage);
|
|
54
|
-
};
|
|
55
|
-
this.onFileUploadFailed = uploadedFileInfo => {
|
|
56
|
-
let {
|
|
57
|
-
thumbnailSrcList
|
|
58
|
-
} = this.state;
|
|
59
|
-
const findUploadFileIndex = this.findUploadFileIndex(uploadedFileInfo);
|
|
60
|
-
thumbnailSrcList.splice(findUploadFileIndex, 1, uploadedFileInfo);
|
|
61
|
-
this.setState({
|
|
62
|
-
thumbnailSrcList
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
this.findUploadFileIndex = fileMessage => {
|
|
66
|
-
let {
|
|
67
|
-
thumbnailSrcList
|
|
68
|
-
} = this.state;
|
|
69
|
-
let uploadFileIndex = thumbnailSrcList.findIndex(item => item.name === fileMessage.file.name);
|
|
70
|
-
return uploadFileIndex;
|
|
71
|
-
};
|
|
72
|
-
this.onFileUploadProgress = uploadMessage => {
|
|
73
|
-
if (!uploadMessage) {
|
|
74
|
-
this.setState({
|
|
75
|
-
uploadMessageList: []
|
|
76
|
-
});
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
let {
|
|
80
|
-
uploadMessageList
|
|
81
|
-
} = this.state;
|
|
82
|
-
let newUploadMessageList = uploadMessageList.slice(0);
|
|
83
|
-
let uploadFile = uploadMessageList.find(item => item.uploadName === uploadMessage.uploadName);
|
|
84
|
-
if (uploadFile) {
|
|
85
|
-
uploadFile.uploadPercent = uploadMessage.uploadPercent;
|
|
86
|
-
} else {
|
|
87
|
-
newUploadMessageList.push(uploadMessage);
|
|
88
|
-
}
|
|
89
|
-
this.setState({
|
|
90
|
-
uploadMessageList: newUploadMessageList
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
this.deleteImage = (event, index) => {
|
|
94
|
-
this.props.deleteImage(index, 'localPicture');
|
|
95
|
-
};
|
|
96
|
-
this.fileUploadAgain = (event, uploadFileInfo) => {
|
|
97
|
-
this.uploaderFileRef.uploadFileAgain(uploadFileInfo);
|
|
98
|
-
};
|
|
99
|
-
this.onCellTipShow = code => {
|
|
100
|
-
//
|
|
101
|
-
};
|
|
102
|
-
this.showDeleteIcon = (event, index) => {
|
|
103
|
-
this.setState({
|
|
104
|
-
isShowDeleteIcon: true,
|
|
105
|
-
enterImageIndex: index
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
this.hideDeleteIcon = () => {
|
|
109
|
-
this.setState({
|
|
110
|
-
isShowDeleteIcon: false,
|
|
111
|
-
enterImageIndex: -1
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
this.renderMultipleFilesArr = () => {
|
|
115
|
-
let {
|
|
116
|
-
thumbnailSrcList
|
|
117
|
-
} = this.state;
|
|
118
|
-
let imageArr = [];
|
|
119
|
-
if (Array.isArray(this.props.uploadLocalImageValue)) {
|
|
120
|
-
let uploadedFileList = this.renderUploadedFile();
|
|
121
|
-
if (uploadedFileList) {
|
|
122
|
-
imageArr.push(...uploadedFileList);
|
|
123
|
-
}
|
|
124
|
-
if (Array.isArray(thumbnailSrcList) && thumbnailSrcList.length > 0) {
|
|
125
|
-
let thumbnailList = thumbnailSrcList.map((fileThumbnailItem, index) => {
|
|
126
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
|
|
127
|
-
key: "dtable-ui-image-wrapper-circle".concat(index)
|
|
128
|
-
}, fileThumbnailItem.isUploading && /*#__PURE__*/_react.default.createElement("div", {
|
|
129
|
-
className: "dtable-ui-image-wrapper"
|
|
130
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
131
|
-
className: "dtable-ui-image-upload-percent"
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
133
|
-
src: fileThumbnailItem.fileIconUrl,
|
|
134
|
-
style: {
|
|
135
|
-
position: 'absolute',
|
|
136
|
-
zIndex: "".concat(fileThumbnailItem.percent === 100 ? 3 : 1),
|
|
137
|
-
maxHeight: '100%'
|
|
138
|
-
},
|
|
139
|
-
alt: ""
|
|
140
|
-
}), fileThumbnailItem.percent < 100 && /*#__PURE__*/_react.default.createElement(_UploadProgress.default, {
|
|
141
|
-
uploadPercent: fileThumbnailItem.percent || 0
|
|
142
|
-
}), fileThumbnailItem.percent === 100 && /*#__PURE__*/_react.default.createElement("div", {
|
|
143
|
-
className: "dtable-ui-image-upload-success"
|
|
144
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
145
|
-
className: "dtable-ui-image-upload-success-scale"
|
|
146
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
147
|
-
className: "dtable-ui-image-upload-success-tip"
|
|
148
|
-
}, (0, _lang.getLocale)('Indexing')))), /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
-
className: "dtable-ui-image-upload-mask"
|
|
150
|
-
}), fileThumbnailItem.isErrorTip && /*#__PURE__*/_react.default.createElement("div", {
|
|
151
|
-
className: "dtable-ui-image-upload-error-tip"
|
|
152
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Network_Error')), /*#__PURE__*/_react.default.createElement("span", {
|
|
153
|
-
className: "dtable-ui-image-upload-again",
|
|
154
|
-
onClick: event => this.fileUploadAgain(event, fileThumbnailItem)
|
|
155
|
-
}, (0, _lang.getLocale)('Re_upload'))))));
|
|
156
|
-
});
|
|
157
|
-
imageArr.push(...thumbnailList);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return imageArr;
|
|
161
|
-
};
|
|
162
|
-
this.renderUploadedFile = () => {
|
|
163
|
-
const {
|
|
164
|
-
uploadLocalImageValue
|
|
165
|
-
} = this.props;
|
|
166
|
-
let uploadedFileList = [];
|
|
167
|
-
uploadedFileList = uploadLocalImageValue.length > 0 && uploadLocalImageValue.map((imgSrc, index) => {
|
|
168
|
-
let imageThumbnailUrl = (0, _url.getImageThumbnailUrl)(imgSrc);
|
|
169
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
170
|
-
key: 'dtable-ui-image-wrapper-' + index,
|
|
171
|
-
className: "dtable-ui-image-wrapper",
|
|
172
|
-
onMouseEnter: event => this.showDeleteIcon(event, index),
|
|
173
|
-
onMouseLeave: this.hideDeleteIcon
|
|
174
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
-
className: "dtable-ui-image-content"
|
|
176
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
177
|
-
src: imageThumbnailUrl,
|
|
178
|
-
alt: "",
|
|
179
|
-
style: {
|
|
180
|
-
maxHeight: '100%'
|
|
181
|
-
}
|
|
182
|
-
})), this.state.isShowDeleteIcon && this.state.enterImageIndex === index && /*#__PURE__*/_react.default.createElement("div", {
|
|
183
|
-
className: "dtable-delete-image-icon",
|
|
184
|
-
onClick: event => this.deleteImage(event, index)
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
186
|
-
className: "image-delete-span"
|
|
187
|
-
}, "x")));
|
|
188
|
-
});
|
|
189
|
-
return uploadedFileList;
|
|
190
|
-
};
|
|
191
|
-
this.renderUploadFileWrapper = imageArr => {
|
|
192
|
-
let {
|
|
193
|
-
isImageTipShow
|
|
194
|
-
} = this.state;
|
|
195
|
-
let editorContent;
|
|
196
|
-
let className = imageArr.length === 0 ? "dtable-ui-image-upload-container ".concat(isImageTipShow ? 'dtable-ui-image-upload-container-active' : '') : 'dtable-ui-image-wrapper';
|
|
197
|
-
if (imageArr.length === 0) {
|
|
198
|
-
editorContent = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
199
|
-
className: "dtable-ui-image-tip-addition ".concat(isImageTipShow ? 'dtable-ui-image-drop-active' : '')
|
|
200
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
201
|
-
className: "dtable-ui-dtable-ui-image-add-icon"
|
|
202
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
203
|
-
"aria-hidden": "true",
|
|
204
|
-
className: "dtable-font dtable-icon-add-files"
|
|
205
|
-
})), isImageTipShow ? /*#__PURE__*/_react.default.createElement("div", {
|
|
206
|
-
className: "dtable-ui-image-add-span"
|
|
207
|
-
}, (0, _lang.getLocale)('Drag_and_drop_to_add_an_image')) : /*#__PURE__*/_react.default.createElement("div", {
|
|
208
|
-
className: "dtable-ui-image-add-span"
|
|
209
|
-
}, (0, _lang.getLocale)('Drag_and_drop_images_or_click_or_paste_here_to_add'))), this.state.isImagePasteTipShow && /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
210
|
-
className: "image-addition-paste",
|
|
211
|
-
autoFocus: true
|
|
212
|
-
}));
|
|
213
|
-
} else {
|
|
214
|
-
editorContent = /*#__PURE__*/_react.default.createElement("div", {
|
|
215
|
-
className: "dtable-ui-image-add-box"
|
|
216
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
217
|
-
className: "dtable-ui-image-add-button ".concat(isImageTipShow ? 'dtable-ui-image-wrapper-drop-active' : '')
|
|
218
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
219
|
-
"aria-hidden": "true",
|
|
220
|
-
className: "dtable-font dtable-icon-add-table"
|
|
221
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
222
|
-
className: "dtable-ui-image-add-span"
|
|
223
|
-
}, (0, _lang.getLocale)('Upload'))));
|
|
224
|
-
}
|
|
225
|
-
return /*#__PURE__*/_react.default.createElement(_FileUploader.default, {
|
|
226
|
-
uploadType: "image",
|
|
227
|
-
isSupportDragDrop: true,
|
|
228
|
-
isSupportPaste: true,
|
|
229
|
-
className: className,
|
|
230
|
-
updateParentTips: this.setFileTipShow,
|
|
231
|
-
onFileUploadSuccess: this.onFileUploadSuccess,
|
|
232
|
-
onFileUploadProgress: this.onFileUploadProgress,
|
|
233
|
-
updateUploadFileList: this.updateUploadFileList,
|
|
234
|
-
onFileUploadFailed: this.onFileUploadFailed,
|
|
235
|
-
ref: ref => this.uploaderFileRef = ref,
|
|
236
|
-
onCellTipShow: this.onCellTipShow,
|
|
237
|
-
uploadFile: this.props.uploadFile
|
|
238
|
-
}, editorContent);
|
|
239
|
-
};
|
|
240
|
-
this.state = {
|
|
241
|
-
isImageTipShow: false,
|
|
242
|
-
isShowDeleteIcon: false,
|
|
243
|
-
enterImageIndex: -1,
|
|
244
|
-
thumbnailSrcList: [],
|
|
245
|
-
uploadMessageList: [],
|
|
246
|
-
isImagePasteTipShow: false
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
render() {
|
|
250
|
-
const imageArr = this.renderMultipleFilesArr();
|
|
251
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, imageArr, this.renderUploadFileWrapper(imageArr));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
var _default = exports.default = LocalImageAddition;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.dtable-ui-image-previewer-box:nth-child(5n) {
|
|
2
|
-
margin-right: 0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.dtable-ui-image-previewer-box {
|
|
6
|
-
margin-right: 19px;
|
|
7
|
-
width: 100px;
|
|
8
|
-
height: 100px;
|
|
9
|
-
margin-top: 15px;
|
|
10
|
-
border: 2px solid #ededed;
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
position: relative;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dtable-ui-image-previewer-box:hover {
|
|
20
|
-
border-color: #c9c9c9;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dtable-ui-image-previewer-box img {
|
|
24
|
-
max-height: 100%;
|
|
25
|
-
max-width: 100%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.dtable-ui-image-icons-choice {
|
|
29
|
-
height: 20px;
|
|
30
|
-
width: 100%;
|
|
31
|
-
top: 0;
|
|
32
|
-
position: absolute;
|
|
33
|
-
color: #fff;
|
|
34
|
-
display: flex;
|
|
35
|
-
padding: 0 3px;
|
|
36
|
-
justify-content: flex-end;
|
|
37
|
-
align-items: center;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.dtable-ui-image-icons-choice .image-icon {
|
|
41
|
-
height: 16px;
|
|
42
|
-
width: 16px;
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
background: rgba(0, 0, 0, 0.5);
|
|
45
|
-
color: #fff;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.dtable-ui-image-icons-choice .image-icon:nth-child(2) {
|
|
53
|
-
margin-left: 5px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.dtable-ui-image-icons-choice .image-icon .dtable-font {
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
transform: scale(0.7);
|
|
59
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
|
-
var _url = require("../../../utils/url");
|
|
12
|
-
var _DeleteTip = _interopRequireDefault(require("../../../DeleteTip"));
|
|
13
|
-
var _constants = require("../../../constants");
|
|
14
|
-
var _lang = require("../../../lang");
|
|
15
|
-
require("./index.css");
|
|
16
|
-
class ImagePreviewer extends _react.default.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.showLargeImage = () => {
|
|
20
|
-
let {
|
|
21
|
-
imageItemUrl
|
|
22
|
-
} = this.props;
|
|
23
|
-
this.props.showLargeImage(imageItemUrl);
|
|
24
|
-
};
|
|
25
|
-
this.showImageToolbar = () => {
|
|
26
|
-
let {
|
|
27
|
-
itemIndex
|
|
28
|
-
} = this.props;
|
|
29
|
-
this.props.setImageItemIndex(itemIndex);
|
|
30
|
-
};
|
|
31
|
-
this.hideImageToolbar = () => {
|
|
32
|
-
this.props.setImageItemIndex(-1);
|
|
33
|
-
};
|
|
34
|
-
this.downloadImage = e => {
|
|
35
|
-
e.stopPropagation();
|
|
36
|
-
this.props.downloadImage(this.props.imageItemUrl);
|
|
37
|
-
};
|
|
38
|
-
this.deleteImage = e => {
|
|
39
|
-
e.stopPropagation();
|
|
40
|
-
let {
|
|
41
|
-
itemIndex
|
|
42
|
-
} = this.props;
|
|
43
|
-
this.props.deleteImage(itemIndex, _constants.FILE_EDITOR_STATUS.PREVIEWER);
|
|
44
|
-
};
|
|
45
|
-
this.onClickDelete = e => {
|
|
46
|
-
e.stopPropagation();
|
|
47
|
-
this.position = {
|
|
48
|
-
top: e.clientY,
|
|
49
|
-
left: e.clientX
|
|
50
|
-
};
|
|
51
|
-
this.setState({
|
|
52
|
-
showTip: true
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
this.closeTip = () => {
|
|
56
|
-
this.setState({
|
|
57
|
-
showTip: false
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
this.toggle = () => {
|
|
61
|
-
this.setState({
|
|
62
|
-
isTooltipOpen: !this.state.isTooltipOpen
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
this.renderImageIcons = () => {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
-
className: "dtable-ui-image-icons-choice"
|
|
68
|
-
}, this.props.downloadImage && this.canDownLoad && /*#__PURE__*/_react.default.createElement("span", {
|
|
69
|
-
className: "image-icon",
|
|
70
|
-
onClick: this.downloadImage
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
72
|
-
"aria-hidden": "true",
|
|
73
|
-
className: "dtable-font dtable-icon-download"
|
|
74
|
-
})), this.props.deleteImage && /*#__PURE__*/_react.default.createElement("span", {
|
|
75
|
-
className: "image-icon",
|
|
76
|
-
onClick: this.onClickDelete
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
78
|
-
"aria-hidden": "true",
|
|
79
|
-
className: "dtable-font dtable-icon-fork-number"
|
|
80
|
-
})));
|
|
81
|
-
};
|
|
82
|
-
this.state = {
|
|
83
|
-
isTooltipOpen: false,
|
|
84
|
-
imageThumbnailUrl: ''
|
|
85
|
-
};
|
|
86
|
-
this.canDownLoad = props.canDownLoad;
|
|
87
|
-
const offsetWidth = document.body.offsetWidth;
|
|
88
|
-
this.containerSize = offsetWidth < 767.8 ? (offsetWidth - 55) / 2 + 'px' : (offsetWidth - 80) / 3 + 'px';
|
|
89
|
-
this.position = {};
|
|
90
|
-
const {
|
|
91
|
-
mediaUrl
|
|
92
|
-
} = props.config || {};
|
|
93
|
-
this.imageLoadingFailedUrl = "".concat(mediaUrl, "img/image-loading-failed.png");
|
|
94
|
-
this.ref = null;
|
|
95
|
-
}
|
|
96
|
-
componentDidMount() {
|
|
97
|
-
let {
|
|
98
|
-
imageItemUrl,
|
|
99
|
-
config
|
|
100
|
-
} = this.props;
|
|
101
|
-
if ((0, _url.checkSVGImage)(imageItemUrl)) {
|
|
102
|
-
this.setState({
|
|
103
|
-
imageThumbnailUrl: imageItemUrl
|
|
104
|
-
});
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
let imageThumbnailUrl = (0, _url.getImageThumbnailUrl)(imageItemUrl, config);
|
|
108
|
-
(0, _url.checkImgExists)(imageThumbnailUrl).then(() => {
|
|
109
|
-
this.setState({
|
|
110
|
-
imageThumbnailUrl: imageThumbnailUrl
|
|
111
|
-
});
|
|
112
|
-
}).catch(() => {
|
|
113
|
-
this.setState({
|
|
114
|
-
imageThumbnailUrl: this.imageLoadingFailedUrl
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
render() {
|
|
119
|
-
const {
|
|
120
|
-
enterImageItemIndex,
|
|
121
|
-
itemIndex,
|
|
122
|
-
imageItemUrl
|
|
123
|
-
} = this.props;
|
|
124
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
style: window.isMobile ? {
|
|
126
|
-
width: this.containerSize,
|
|
127
|
-
height: this.containerSize
|
|
128
|
-
} : {},
|
|
129
|
-
onClick: this.showLargeImage,
|
|
130
|
-
className: "dtable-ui-image-previewer-box",
|
|
131
|
-
onMouseEnter: this.showImageToolbar,
|
|
132
|
-
onMouseLeave: this.hideImageToolbar,
|
|
133
|
-
ref: ref => this.ref = ref
|
|
134
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
135
|
-
src: this.state.imageThumbnailUrl,
|
|
136
|
-
alt: ""
|
|
137
|
-
}), enterImageItemIndex === itemIndex && this.renderImageIcons()), enterImageItemIndex === itemIndex && /*#__PURE__*/_react.default.createElement(_reactstrap.Tooltip, {
|
|
138
|
-
placement: "bottom",
|
|
139
|
-
isOpen: this.state.isTooltipOpen,
|
|
140
|
-
toggle: this.toggle,
|
|
141
|
-
target: this.ref,
|
|
142
|
-
delay: {
|
|
143
|
-
show: 0,
|
|
144
|
-
hide: 0
|
|
145
|
-
},
|
|
146
|
-
fade: false
|
|
147
|
-
}, (0, _url.getFileName)(imageItemUrl)), this.state.showTip && /*#__PURE__*/_react.default.createElement(_DeleteTip.default, {
|
|
148
|
-
position: this.position,
|
|
149
|
-
toggle: this.closeTip,
|
|
150
|
-
deleteImage: this.deleteImage,
|
|
151
|
-
deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_image')
|
|
152
|
-
}));
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
var _default = exports.default = ImagePreviewer;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.dtable-ui-image-editor-container .dtable-ui-image-previewer-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
min-height: 30px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.dtable-ui-image-previewer-wrapper {
|
|
8
|
-
padding: 0 20px 20px;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
height: 350px;
|
|
11
|
-
overflow-y: auto;
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.dtable-ui-image-previewer-content {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
}
|