dtable-ui-component 6.0.125 → 6.0.126
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/ActionSheet/index.js +14 -16
- package/lib/ActivityIndicator/index.js +7 -8
- package/lib/AsyncUserSelect/index.css +5 -0
- package/lib/AsyncUserSelect/index.js +40 -19
- package/lib/AsyncUserSelect/user-item.js +5 -6
- package/lib/AutoNumberFormatter/index.js +3 -4
- package/lib/Badge/index.js +9 -11
- package/lib/ButtonFormatter/index.js +6 -8
- package/lib/CTimeFormatter/index.js +3 -4
- package/lib/CheckboxEditor/index.js +1 -3
- package/lib/CheckboxEditor/mb-editor.js +9 -20
- package/lib/CheckboxEditor/pc-editor.js +12 -24
- package/lib/CheckboxFormatter/index.js +4 -5
- package/lib/CollaboratorEditor/index.js +2 -4
- package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
- package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
- package/lib/CollaboratorFormatter/index.js +8 -10
- package/lib/CollaboratorItem/index.js +4 -5
- package/lib/CollapsibleSettingLayout/index.js +9 -7
- package/lib/Comment/body/comment.js +10 -18
- package/lib/Comment/body/index.js +2 -4
- package/lib/Comment/footer/btns/index.js +4 -7
- package/lib/Comment/footer/index.js +9 -20
- package/lib/Comment/footer/input/index.js +29 -50
- package/lib/Comment/footer/input/participant/index.js +4 -5
- package/lib/Comment/footer/participants/index.js +4 -5
- package/lib/Comment/footer/participants/participant/index.js +1 -3
- package/lib/Comment/footer/participants/participant-select/index.js +8 -24
- package/lib/Comment/index.js +39 -57
- package/lib/Comment/utils/utilities.js +15 -21
- package/lib/CreatorFormatter/index.js +6 -8
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +23 -19
- package/lib/DTableColorPicker/index.css +0 -2
- package/lib/DTableColorPicker/index.js +56 -41
- package/lib/DTableColorPicker/utils.js +4 -6
- package/lib/DTableColumnIcon/index.js +6 -7
- package/lib/DTableCommonAddTool/index.css +1 -3
- package/lib/DTableCommonAddTool/index.js +6 -8
- package/lib/DTableCustomFooter/index.css +1 -3
- package/lib/DTableCustomFooter/index.js +1 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
- package/lib/DTableCustomizeSelect/index.js +19 -24
- package/lib/DTableDropdownItem/index.js +16 -18
- package/lib/DTableDropdownMenu/index.js +8 -10
- package/lib/DTableEmptyTip/index.js +4 -5
- package/lib/DTableFiltersPopover/index.css +0 -2
- package/lib/DTableFiltersPopover/index.js +26 -41
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
- package/lib/DTableFiltersPopover/utils/index.js +63 -113
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
- package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
- package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
- package/lib/DTableGroupSelect/index.js +11 -15
- package/lib/DTableGroupSelect/select-option-group.js +23 -32
- package/lib/DTableIcon/index.js +6 -7
- package/lib/DTableIcon/svg-icon.js +5 -7
- package/lib/DTableModalHeader/index.js +1 -3
- package/lib/DTablePopover/index.js +13 -16
- package/lib/DTableRadio/index.js +10 -9
- package/lib/DTableRadioGroup/index.js +8 -17
- package/lib/DTableSearchInput/index.js +19 -29
- package/lib/DTableSelect/dtable-select-label.js +6 -5
- package/lib/DTableSelect/index.js +21 -22
- package/lib/DTableSelect/utils.js +7 -15
- package/lib/DTableSubDropdownMenu/index.js +8 -10
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.css +0 -1
- package/lib/DTableSwitch/index.js +12 -11
- package/lib/DTableToolTip/index.js +7 -8
- package/lib/DateEditor/index.js +20 -15
- package/lib/DateEditor/mb-editor/index.js +18 -31
- package/lib/DateEditor/pc-editor.js +26 -45
- package/lib/DateFormatter/index.js +4 -5
- package/lib/DatePicker/index.js +9 -15
- package/lib/DatePicker/utils.js +1 -3
- package/lib/DeleteTip/index.js +5 -6
- package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
- package/lib/DepartmentSelectFilter/index.js +6 -8
- package/lib/DepartmentSingleSelectEditor/index.js +1 -3
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
- package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
- package/lib/DigitalSignEditor/index.js +1 -3
- package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
- package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
- package/lib/DigitalSignEditor/service.js +2 -4
- package/lib/DigitalSignEditor/signature-board/index.js +5 -8
- package/lib/DigitalSignEditor/utils.js +2 -4
- package/lib/DigitalSignFormatter/index.js +12 -15
- package/lib/DigitalSignFormatter/utils.js +4 -5
- package/lib/DurationEditor/index.js +21 -31
- package/lib/DurationFormatter/index.js +4 -5
- package/lib/EditEditorButton/index.js +1 -3
- package/lib/EmailFormatter/index.js +3 -4
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +11 -9
- package/lib/FileEditor/files-previewer/index.js +1 -3
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
- package/lib/FileEditor/index.js +1 -3
- package/lib/FileEditor/mb-editor/index.js +28 -20
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
- package/lib/FileEditor/pc-editor/index.js +19 -27
- package/lib/FileFormatter/index.js +26 -19
- package/lib/FileItemFormatter/index.js +6 -9
- package/lib/FileUploader/index.js +28 -45
- package/lib/FormulaFormatter/index.js +15 -29
- package/lib/GeolocationEditor/index.js +11 -12
- package/lib/GeolocationEditor/map-editor-utils.js +17 -15
- package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/index.js +4 -6
- package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
- package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
- package/lib/GeolocationEditor/pc-editor/index.js +12 -20
- package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
- package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
- package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
- package/lib/GeolocationFormatter/index.js +4 -5
- package/lib/HtmlLongTextFormatter/index.js +4 -12
- package/lib/Icon/index.js +3 -5
- package/lib/IconButton/index.js +4 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
- package/lib/ImageEditor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/index.js +1 -3
- package/lib/ImageEditor/mb-editor/index.js +28 -20
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/pc-editor/index.js +11 -16
- package/lib/ImageFormatter/images-lazy-load.js +19 -11
- package/lib/ImageFormatter/index.js +11 -13
- package/lib/ImagePreviewerLightbox/index.js +15 -13
- package/lib/ImageThumbnail/index.js +10 -13
- package/lib/InputItem/custom-input.js +26 -46
- package/lib/InputItem/custom-keyboard.js +15 -18
- package/lib/InputItem/index.js +34 -50
- package/lib/InputItem/input.js +2 -4
- package/lib/LastModifierFormatter/index.js +6 -8
- package/lib/LinkEditor/index.js +33 -53
- package/lib/LinkEditor/link-editor-option.js +3 -4
- package/lib/LinkEditor/mb-popover/index.js +9 -22
- package/lib/LinkEditor/pc-popover/index.js +5 -10
- package/lib/LinkFormatter/index.js +21 -37
- package/lib/List/index.js +6 -8
- package/lib/List/list-item.js +22 -28
- package/lib/LongTextFormatter/index.js +4 -5
- package/lib/MBEditorHeader/index.js +7 -8
- package/lib/MTimeFormatter/index.js +3 -4
- package/lib/MobileFullScreenPage/body/index.js +3 -5
- package/lib/MobileFullScreenPage/header/index.js +4 -6
- package/lib/MobileFullScreenPage/index.js +13 -11
- package/lib/MobileModal/index.js +1 -3
- package/lib/MobileOperationSheet/index.js +7 -8
- package/lib/MobileSelector/empty/index.js +1 -3
- package/lib/MobileSelector/index.js +5 -7
- package/lib/MobileSelector/option/index.js +3 -5
- package/lib/MobileSelector/options/index.js +1 -3
- package/lib/MobileSelector/search/index.js +3 -5
- package/lib/MobileUpload/index.js +4 -5
- package/lib/Modal/modal.js +14 -15
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +1 -3
- package/lib/MultipleSelectFormatter/index.js +6 -8
- package/lib/NotificationPopover/index.css +1 -6
- package/lib/NotificationPopover/index.js +6 -7
- package/lib/NumberEditor/index.js +12 -21
- package/lib/NumberFormatter/index.js +4 -5
- package/lib/PhoneNumberLink/index.js +2 -4
- package/lib/Picker/AbstractPicker.js +23 -27
- package/lib/Popover/index.js +3 -4
- package/lib/Popover/item.js +7 -9
- package/lib/Progress/index.js +9 -8
- package/lib/Radio/Radio.js +4 -8
- package/lib/Radio/RadioItem.js +8 -12
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +18 -17
- package/lib/RowExpandDialog/body/index.js +32 -49
- package/lib/RowExpandDialog/column-content/index.js +5 -9
- package/lib/RowExpandDialog/header/index.js +6 -8
- package/lib/RowExpandDialog/index.js +49 -34
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
- package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
- package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
- package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
- package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
- package/lib/RowExpandEditor/index.js +4 -8
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
- package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
- package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
- package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
- package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
- package/lib/RowExpandFormatter/index.js +27 -41
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
- package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
- package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
- package/lib/RowExpandFormatter/text/index.js +4 -5
- package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
- package/lib/RowExpandView/body/index.js +22 -35
- package/lib/RowExpandView/column-content/index.js +3 -7
- package/lib/RowExpandView/index.js +42 -30
- package/lib/SelectItem/index.js +5 -7
- package/lib/SelectOptionGroup/index.css +3 -3
- package/lib/SelectOptionGroup/index.js +31 -40
- package/lib/SelectedDepartments/index.js +7 -9
- package/lib/SimpleLongTextFormatter/index.js +10 -16
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
- package/lib/SingleSelectEditor/index.js +1 -3
- package/lib/SingleSelectFormatter/index.js +8 -9
- package/lib/TabBar/Tab.js +14 -16
- package/lib/TabBar/index.js +18 -21
- package/lib/Tabs/index.js +1 -3
- package/lib/TextEditor/index.js +14 -23
- package/lib/TextFormatter/index.js +3 -4
- package/lib/TextareaItem/index.js +19 -26
- package/lib/Toast/index.js +3 -4
- package/lib/UrlFormatter/index.js +3 -4
- package/lib/common/editor-base.js +7 -12
- package/lib/hooks/common-hooks.js +2 -4
- package/lib/select-editor/index.js +1 -3
- package/lib/select-editor/mb-editor/index.js +17 -28
- package/lib/select-editor/pc-editor/index.js +27 -42
- package/lib/toaster/alert.js +6 -7
- package/lib/toaster/toast.js +2 -3
- package/lib/toaster/toastManager.js +2 -4
- package/lib/utils/cell.js +8 -11
- package/lib/utils/column-utils.js +8 -14
- package/lib/utils/departments.js +1 -3
- package/lib/utils/url.js +24 -31
- package/lib/utils/utils.js +2 -6
- package/package.json +8 -8
|
@@ -50,13 +50,12 @@ class MapEditor extends _react.Component {
|
|
|
50
50
|
this.loadMineMapCallBack = () => {
|
|
51
51
|
if (!this.timer) {
|
|
52
52
|
this.timer = setTimeout(() => {
|
|
53
|
-
const
|
|
54
|
-
domainUrl,
|
|
55
|
-
dataDomainUrl,
|
|
56
|
-
serverDomainUrl,
|
|
57
|
-
spriteUrl,
|
|
58
|
-
serviceUrl
|
|
59
|
-
} = (0, _mapEditorUtils.getMineMapUrl)();
|
|
53
|
+
const _getMineMapUrl = (0, _mapEditorUtils.getMineMapUrl)(),
|
|
54
|
+
domainUrl = _getMineMapUrl.domainUrl,
|
|
55
|
+
dataDomainUrl = _getMineMapUrl.dataDomainUrl,
|
|
56
|
+
serverDomainUrl = _getMineMapUrl.serverDomainUrl,
|
|
57
|
+
spriteUrl = _getMineMapUrl.spriteUrl,
|
|
58
|
+
serviceUrl = _getMineMapUrl.serviceUrl;
|
|
60
59
|
window.minemap.domainUrl = domainUrl;
|
|
61
60
|
window.minemap.dataDomainUrl = dataDomainUrl;
|
|
62
61
|
window.minemap.serverDomainUrl = serverDomainUrl;
|
|
@@ -83,14 +82,11 @@ class MapEditor extends _react.Component {
|
|
|
83
82
|
minZoom: 3,
|
|
84
83
|
projection: 'MERCATOR'
|
|
85
84
|
});
|
|
86
|
-
let
|
|
87
|
-
lng,
|
|
88
|
-
lat,
|
|
89
|
-
zoom
|
|
90
|
-
|
|
91
|
-
const {
|
|
92
|
-
value
|
|
93
|
-
} = this.state;
|
|
85
|
+
let _getInitCenter = (0, _mapEditorUtils.getInitCenter)(),
|
|
86
|
+
lng = _getInitCenter.lng,
|
|
87
|
+
lat = _getInitCenter.lat,
|
|
88
|
+
zoom = _getInitCenter.zoom;
|
|
89
|
+
const value = this.state.value;
|
|
94
90
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
95
91
|
lng = value.lng;
|
|
96
92
|
lat = value.lat;
|
|
@@ -114,14 +110,11 @@ class MapEditor extends _react.Component {
|
|
|
114
110
|
this.map = new window.BMap.Map('geolocation-map-container', {
|
|
115
111
|
enableMapClick: false
|
|
116
112
|
});
|
|
117
|
-
let
|
|
118
|
-
lng,
|
|
119
|
-
lat,
|
|
120
|
-
zoom
|
|
121
|
-
|
|
122
|
-
const {
|
|
123
|
-
value
|
|
124
|
-
} = this.state;
|
|
113
|
+
let _getInitCenter2 = (0, _mapEditorUtils.getInitCenter)(),
|
|
114
|
+
lng = _getInitCenter2.lng,
|
|
115
|
+
lat = _getInitCenter2.lat,
|
|
116
|
+
zoom = _getInitCenter2.zoom;
|
|
117
|
+
const value = this.state.value;
|
|
125
118
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
126
119
|
lng = value.lng;
|
|
127
120
|
lat = value.lat;
|
|
@@ -156,11 +149,10 @@ class MapEditor extends _react.Component {
|
|
|
156
149
|
this.setState({
|
|
157
150
|
isLoading: false
|
|
158
151
|
}, () => {
|
|
159
|
-
let
|
|
160
|
-
lng,
|
|
161
|
-
lat,
|
|
162
|
-
zoom
|
|
163
|
-
} = (0, _mapEditorUtils.getInitCenter)();
|
|
152
|
+
let _getInitCenter3 = (0, _mapEditorUtils.getInitCenter)(),
|
|
153
|
+
lng = _getInitCenter3.lng,
|
|
154
|
+
lat = _getInitCenter3.lat,
|
|
155
|
+
zoom = _getInitCenter3.zoom;
|
|
164
156
|
this.map = new window.google.maps.Map(this.ref, {
|
|
165
157
|
zoom,
|
|
166
158
|
center: {
|
|
@@ -174,9 +166,7 @@ class MapEditor extends _react.Component {
|
|
|
174
166
|
rotateControl: false,
|
|
175
167
|
fullscreenControl: false
|
|
176
168
|
});
|
|
177
|
-
const
|
|
178
|
-
value
|
|
179
|
-
} = this.state;
|
|
169
|
+
const value = this.state.value;
|
|
180
170
|
if (value.lng && value.lat) {
|
|
181
171
|
lng = value.lng;
|
|
182
172
|
lat = value.lat;
|
|
@@ -211,10 +201,8 @@ class MapEditor extends _react.Component {
|
|
|
211
201
|
});
|
|
212
202
|
};
|
|
213
203
|
this.setPropsValue = _ref => {
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
lat
|
|
217
|
-
} = _ref;
|
|
204
|
+
let lng = _ref.lng,
|
|
205
|
+
lat = _ref.lat;
|
|
218
206
|
if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) {
|
|
219
207
|
this.props.setValue(null);
|
|
220
208
|
return;
|
|
@@ -278,9 +266,7 @@ class MapEditor extends _react.Component {
|
|
|
278
266
|
event.preventDefault();
|
|
279
267
|
event.stopPropagation();
|
|
280
268
|
event.nativeEvent.stopImmediatePropagation();
|
|
281
|
-
const
|
|
282
|
-
value
|
|
283
|
-
} = this.state;
|
|
269
|
+
const value = this.state.value;
|
|
284
270
|
const numericValue = (0, _dtableUtils.normalizeMapPoint)(value);
|
|
285
271
|
this.setPropsValue(numericValue);
|
|
286
272
|
this.setState({
|
|
@@ -297,10 +283,8 @@ class MapEditor extends _react.Component {
|
|
|
297
283
|
this.props.onSubmit();
|
|
298
284
|
};
|
|
299
285
|
this.rerenderMapMarker = _ref2 => {
|
|
300
|
-
let
|
|
301
|
-
|
|
302
|
-
lat
|
|
303
|
-
} = _ref2;
|
|
286
|
+
let lng = _ref2.lng,
|
|
287
|
+
lat = _ref2.lat;
|
|
304
288
|
if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) return;
|
|
305
289
|
if (this.map) {
|
|
306
290
|
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP || this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
@@ -315,9 +299,7 @@ class MapEditor extends _react.Component {
|
|
|
315
299
|
this.addMarkerByPosition(lng, lat);
|
|
316
300
|
};
|
|
317
301
|
this.onBlur = () => {
|
|
318
|
-
const
|
|
319
|
-
value
|
|
320
|
-
} = this.state;
|
|
302
|
+
const value = this.state.value;
|
|
321
303
|
const numericValue = (0, _dtableUtils.normalizeMapPoint)(value);
|
|
322
304
|
this.setState({
|
|
323
305
|
value: numericValue
|
|
@@ -369,10 +351,9 @@ class MapEditor extends _react.Component {
|
|
|
369
351
|
lng: '',
|
|
370
352
|
lat: ''
|
|
371
353
|
};
|
|
372
|
-
const
|
|
373
|
-
mapType,
|
|
374
|
-
mapKey
|
|
375
|
-
} = (0, _mapEditorUtils.getMapInfo)(props.config);
|
|
354
|
+
const _getMapInfo = (0, _mapEditorUtils.getMapInfo)(props.config),
|
|
355
|
+
mapType = _getMapInfo.mapType,
|
|
356
|
+
mapKey = _getMapInfo.mapKey;
|
|
376
357
|
this.mapType = mapType;
|
|
377
358
|
this.mapKey = mapKey;
|
|
378
359
|
this.readOnly = props.readOnly;
|
|
@@ -408,11 +389,10 @@ class MapEditor extends _react.Component {
|
|
|
408
389
|
this.onSubmit();
|
|
409
390
|
}
|
|
410
391
|
render() {
|
|
411
|
-
const
|
|
412
|
-
isLoading,
|
|
413
|
-
value
|
|
414
|
-
isShowLargeEditor
|
|
415
|
-
} = this.state;
|
|
392
|
+
const _this$state = this.state,
|
|
393
|
+
isLoading = _this$state.isLoading,
|
|
394
|
+
lng_lat = _this$state.value,
|
|
395
|
+
isShowLargeEditor = _this$state.isShowLargeEditor;
|
|
416
396
|
const lat = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lat) ? lng_lat.lat : '';
|
|
417
397
|
const lng = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lng) ? lng_lat.lng : '';
|
|
418
398
|
if (!isShowLargeEditor) {
|
|
@@ -23,13 +23,12 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
23
23
|
this.loadMineMapCallBack = () => {
|
|
24
24
|
if (!this.timer) {
|
|
25
25
|
this.timer = setTimeout(() => {
|
|
26
|
-
const
|
|
27
|
-
domainUrl,
|
|
28
|
-
dataDomainUrl,
|
|
29
|
-
serverDomainUrl,
|
|
30
|
-
spriteUrl,
|
|
31
|
-
serviceUrl
|
|
32
|
-
} = (0, _mapEditorUtils.getMineMapUrl)();
|
|
26
|
+
const _getMineMapUrl = (0, _mapEditorUtils.getMineMapUrl)(),
|
|
27
|
+
domainUrl = _getMineMapUrl.domainUrl,
|
|
28
|
+
dataDomainUrl = _getMineMapUrl.dataDomainUrl,
|
|
29
|
+
serverDomainUrl = _getMineMapUrl.serverDomainUrl,
|
|
30
|
+
spriteUrl = _getMineMapUrl.spriteUrl,
|
|
31
|
+
serviceUrl = _getMineMapUrl.serviceUrl;
|
|
33
32
|
window.minemap.domainUrl = domainUrl;
|
|
34
33
|
window.minemap.dataDomainUrl = dataDomainUrl;
|
|
35
34
|
window.minemap.serverDomainUrl = serverDomainUrl;
|
|
@@ -56,14 +55,11 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
56
55
|
minZoom: 3,
|
|
57
56
|
projection: 'MERCATOR'
|
|
58
57
|
});
|
|
59
|
-
let
|
|
60
|
-
lng,
|
|
61
|
-
lat,
|
|
62
|
-
zoom
|
|
63
|
-
|
|
64
|
-
const {
|
|
65
|
-
value
|
|
66
|
-
} = this.state;
|
|
58
|
+
let _getInitCenter = (0, _mapEditorUtils.getInitCenter)(),
|
|
59
|
+
lng = _getInitCenter.lng,
|
|
60
|
+
lat = _getInitCenter.lat,
|
|
61
|
+
zoom = _getInitCenter.zoom;
|
|
62
|
+
const value = this.state.value;
|
|
67
63
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
68
64
|
lng = value.lng;
|
|
69
65
|
lat = value.lat;
|
|
@@ -85,14 +81,11 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
85
81
|
}, () => {
|
|
86
82
|
if (!window.BMap.Map) return;
|
|
87
83
|
this.map = new window.BMap.Map('geolocation-map-container-large');
|
|
88
|
-
let
|
|
89
|
-
lng,
|
|
90
|
-
lat,
|
|
91
|
-
zoom
|
|
92
|
-
|
|
93
|
-
const {
|
|
94
|
-
value
|
|
95
|
-
} = this.state;
|
|
84
|
+
let _getInitCenter2 = (0, _mapEditorUtils.getInitCenter)(),
|
|
85
|
+
lng = _getInitCenter2.lng,
|
|
86
|
+
lat = _getInitCenter2.lat,
|
|
87
|
+
zoom = _getInitCenter2.zoom;
|
|
88
|
+
const value = this.state.value;
|
|
96
89
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
97
90
|
lng = value.lng;
|
|
98
91
|
lat = value.lat;
|
|
@@ -113,11 +106,10 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
113
106
|
this.setState({
|
|
114
107
|
isLoading: false
|
|
115
108
|
}, () => {
|
|
116
|
-
let
|
|
117
|
-
lng,
|
|
118
|
-
lat,
|
|
119
|
-
zoom
|
|
120
|
-
} = (0, _mapEditorUtils.getInitCenter)();
|
|
109
|
+
let _getInitCenter3 = (0, _mapEditorUtils.getInitCenter)(),
|
|
110
|
+
lng = _getInitCenter3.lng,
|
|
111
|
+
lat = _getInitCenter3.lat,
|
|
112
|
+
zoom = _getInitCenter3.zoom;
|
|
121
113
|
this.map = new window.google.maps.Map(this.ref, {
|
|
122
114
|
zoom,
|
|
123
115
|
center: {
|
|
@@ -131,9 +123,7 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
131
123
|
rotateControl: false,
|
|
132
124
|
fullscreenControl: false
|
|
133
125
|
});
|
|
134
|
-
const
|
|
135
|
-
value
|
|
136
|
-
} = this.state;
|
|
126
|
+
const value = this.state.value;
|
|
137
127
|
if (value.lng && value.lat) {
|
|
138
128
|
lng = value.lng;
|
|
139
129
|
lat = value.lat;
|
|
@@ -170,10 +160,8 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
170
160
|
}
|
|
171
161
|
};
|
|
172
162
|
this.setPropsValue = _ref => {
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
lat
|
|
176
|
-
} = _ref;
|
|
163
|
+
let lng = _ref.lng,
|
|
164
|
+
lat = _ref.lat;
|
|
177
165
|
if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) {
|
|
178
166
|
this.props.setValue(null);
|
|
179
167
|
return;
|
|
@@ -241,10 +229,8 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
241
229
|
}
|
|
242
230
|
};
|
|
243
231
|
this.rerenderMapMarker = _ref2 => {
|
|
244
|
-
let
|
|
245
|
-
|
|
246
|
-
lat
|
|
247
|
-
} = _ref2;
|
|
232
|
+
let lng = _ref2.lng,
|
|
233
|
+
lat = _ref2.lat;
|
|
248
234
|
if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) return;
|
|
249
235
|
if (this.map) {
|
|
250
236
|
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP || this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
@@ -259,9 +245,7 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
259
245
|
this.addMarkerByPosition(lng, lat);
|
|
260
246
|
};
|
|
261
247
|
this.onBlur = () => {
|
|
262
|
-
const
|
|
263
|
-
value
|
|
264
|
-
} = this.state;
|
|
248
|
+
const value = this.state.value;
|
|
265
249
|
const numericValue = (0, _dtableUtils.normalizeMapPoint)(value);
|
|
266
250
|
this.setState({
|
|
267
251
|
value: numericValue
|
|
@@ -299,9 +283,7 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
299
283
|
}
|
|
300
284
|
};
|
|
301
285
|
this.onSubmit = () => {
|
|
302
|
-
const
|
|
303
|
-
value
|
|
304
|
-
} = this.state;
|
|
286
|
+
const value = this.state.value;
|
|
305
287
|
this.props.setValue(value);
|
|
306
288
|
this.props.onSubmit();
|
|
307
289
|
};
|
|
@@ -322,9 +304,7 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
322
304
|
event.preventDefault();
|
|
323
305
|
event.stopPropagation();
|
|
324
306
|
event.nativeEvent.stopImmediatePropagation();
|
|
325
|
-
const
|
|
326
|
-
value
|
|
327
|
-
} = this.state;
|
|
307
|
+
const value = this.state.value;
|
|
328
308
|
this.props.setValue(value);
|
|
329
309
|
this.props.toggleFullScreen(event);
|
|
330
310
|
};
|
|
@@ -333,19 +313,16 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
333
313
|
e.nativeEvent.stopImmediatePropagation();
|
|
334
314
|
e.stopPropagation();
|
|
335
315
|
};
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
config
|
|
339
|
-
} = props;
|
|
316
|
+
const readOnly = props.readOnly,
|
|
317
|
+
config = props.config;
|
|
340
318
|
const _value = props.value || {
|
|
341
319
|
lng: '',
|
|
342
320
|
lat: ''
|
|
343
321
|
};
|
|
344
322
|
this.readOnly = readOnly;
|
|
345
|
-
const
|
|
346
|
-
mapType,
|
|
347
|
-
mapKey
|
|
348
|
-
} = (0, _mapEditorUtils.getMapInfo)(config);
|
|
323
|
+
const _getMapInfo = (0, _mapEditorUtils.getMapInfo)(config),
|
|
324
|
+
mapType = _getMapInfo.mapType,
|
|
325
|
+
mapKey = _getMapInfo.mapKey;
|
|
349
326
|
this.mapType = mapType;
|
|
350
327
|
this.mapKey = mapKey;
|
|
351
328
|
this.map = null;
|
|
@@ -400,10 +377,9 @@ class LargeMapEditorDialog extends _react.default.Component {
|
|
|
400
377
|
this.map = null;
|
|
401
378
|
}
|
|
402
379
|
render() {
|
|
403
|
-
const
|
|
404
|
-
isLoading,
|
|
405
|
-
value
|
|
406
|
-
} = this.state;
|
|
380
|
+
const _this$state = this.state,
|
|
381
|
+
isLoading = _this$state.isLoading,
|
|
382
|
+
lng_lat = _this$state.value;
|
|
407
383
|
const lat = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lat) ? lng_lat.lat : '';
|
|
408
384
|
const lng = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lng) ? lng_lat.lng : '';
|
|
409
385
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Modal, {
|
|
@@ -40,17 +40,12 @@ class MapSelectionEditor extends _react.Component {
|
|
|
40
40
|
this.map = new window.BMap.Map('geolocation-map-selection-container', {
|
|
41
41
|
enableMapClick: false
|
|
42
42
|
});
|
|
43
|
-
let
|
|
44
|
-
lng,
|
|
45
|
-
lat,
|
|
46
|
-
zoom
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
value
|
|
50
|
-
} = this.state;
|
|
51
|
-
const {
|
|
52
|
-
lngLat
|
|
53
|
-
} = value;
|
|
43
|
+
let _getInitCenter = (0, _mapEditorUtils.getInitCenter)(true),
|
|
44
|
+
lng = _getInitCenter.lng,
|
|
45
|
+
lat = _getInitCenter.lat,
|
|
46
|
+
zoom = _getInitCenter.zoom;
|
|
47
|
+
const value = this.state.value;
|
|
48
|
+
const lngLat = value.lngLat;
|
|
54
49
|
if ((0, _cell.isValidPosition)(lngLat.lng, lngLat.lat)) {
|
|
55
50
|
lng = lngLat.lng;
|
|
56
51
|
lat = lngLat.lat;
|
|
@@ -71,11 +66,9 @@ class MapSelectionEditor extends _react.Component {
|
|
|
71
66
|
const point = event.point;
|
|
72
67
|
const geoCoder = new window.BMap.Geocoder();
|
|
73
68
|
geoCoder.getLocation(point, result => {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
point
|
|
78
|
-
} = result;
|
|
69
|
+
const surroundingPois = result.surroundingPois,
|
|
70
|
+
address = result.address,
|
|
71
|
+
point = result.point;
|
|
79
72
|
if (surroundingPois.length === 0) {
|
|
80
73
|
value.address = address;
|
|
81
74
|
value.lngLat = {
|
|
@@ -86,12 +79,10 @@ class MapSelectionEditor extends _react.Component {
|
|
|
86
79
|
value.title = '';
|
|
87
80
|
} else {
|
|
88
81
|
const position = surroundingPois[0];
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
point
|
|
94
|
-
} = position;
|
|
82
|
+
const address = position.address,
|
|
83
|
+
title = position.title,
|
|
84
|
+
tags = position.tags,
|
|
85
|
+
point = position.point;
|
|
95
86
|
value.address = address || '';
|
|
96
87
|
value.title = title || '';
|
|
97
88
|
value.tag = tags || [];
|
|
@@ -106,9 +97,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
106
97
|
});
|
|
107
98
|
};
|
|
108
99
|
this.addMarkerByPosition = value => {
|
|
109
|
-
const
|
|
110
|
-
lngLat
|
|
111
|
-
} = value;
|
|
100
|
+
const lngLat = value.lngLat;
|
|
112
101
|
let point = new window.BMap.Point(lngLat.lng, lngLat.lat);
|
|
113
102
|
const marker = new window.BMap.Marker(point, {
|
|
114
103
|
offset: new window.BMap.Size(-2, -5)
|
|
@@ -161,11 +150,9 @@ class MapSelectionEditor extends _react.Component {
|
|
|
161
150
|
}
|
|
162
151
|
};
|
|
163
152
|
this.getLabelContent = value => {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
tag
|
|
168
|
-
} = value;
|
|
153
|
+
const address = value.address,
|
|
154
|
+
title = value.title,
|
|
155
|
+
tag = value.tag;
|
|
169
156
|
const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
|
|
170
157
|
if (title) {
|
|
171
158
|
return "\n <div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='label-title text-truncate' title=".concat(title, ">").concat(title, "</span>\n ").concat(tagContent && "<span class='label-tag'>".concat(tagContent, "</span>"), "\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address-tip'>").concat((0, _lang.getLocale)('Address'), "</span>\n <span class='label-address text-truncate' title=").concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
|
|
@@ -173,9 +160,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
173
160
|
return "\n <div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address text-truncate simple' title=".concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
|
|
174
161
|
};
|
|
175
162
|
this.getInitValue = () => {
|
|
176
|
-
const
|
|
177
|
-
value
|
|
178
|
-
} = this.props;
|
|
163
|
+
const value = this.props.value;
|
|
179
164
|
if (!value || (0, _dtableUtils.isEmptyObject)(value)) {
|
|
180
165
|
return {
|
|
181
166
|
address: '',
|
|
@@ -187,9 +172,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
187
172
|
return value;
|
|
188
173
|
};
|
|
189
174
|
this.onSearch = () => {
|
|
190
|
-
const
|
|
191
|
-
inputValue
|
|
192
|
-
} = this.state;
|
|
175
|
+
const inputValue = this.state.inputValue;
|
|
193
176
|
let options = {
|
|
194
177
|
onSearchComplete: results => {
|
|
195
178
|
const status = local.getStatus();
|
|
@@ -246,9 +229,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
246
229
|
event.preventDefault();
|
|
247
230
|
event.stopPropagation();
|
|
248
231
|
event.nativeEvent.stopImmediatePropagation();
|
|
249
|
-
const
|
|
250
|
-
value
|
|
251
|
-
} = this.state;
|
|
232
|
+
const value = this.state.value;
|
|
252
233
|
this.props.setValue(value);
|
|
253
234
|
this.setState({
|
|
254
235
|
isShowLargeEditor: !this.state.isShowLargeEditor
|
|
@@ -271,11 +252,9 @@ class MapSelectionEditor extends _react.Component {
|
|
|
271
252
|
const geoCoder = new window.BMap.Geocoder();
|
|
272
253
|
geoCoder.getLocation(point, result => {
|
|
273
254
|
let value = {};
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
point
|
|
278
|
-
} = result;
|
|
255
|
+
const surroundingPois = result.surroundingPois,
|
|
256
|
+
address = result.address,
|
|
257
|
+
point = result.point;
|
|
279
258
|
if (surroundingPois.length === 0) {
|
|
280
259
|
value.address = address;
|
|
281
260
|
value.lngLat = {
|
|
@@ -286,12 +265,10 @@ class MapSelectionEditor extends _react.Component {
|
|
|
286
265
|
value.title = '';
|
|
287
266
|
} else {
|
|
288
267
|
const position = surroundingPois[0];
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
point
|
|
294
|
-
} = position;
|
|
268
|
+
const address = position.address,
|
|
269
|
+
title = position.title,
|
|
270
|
+
tags = position.tags,
|
|
271
|
+
point = position.point;
|
|
295
272
|
value.address = address || '';
|
|
296
273
|
value.title = title || '';
|
|
297
274
|
value.tag = tags || [];
|
|
@@ -320,9 +297,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
320
297
|
(0, _mapEditorUtils.locateCurrentPosition)(this.map, this.mapType, this.geolocationCallback);
|
|
321
298
|
};
|
|
322
299
|
this.renderSearchResults = () => {
|
|
323
|
-
const
|
|
324
|
-
searchResults
|
|
325
|
-
} = this.state;
|
|
300
|
+
const searchResults = this.state.searchResults;
|
|
326
301
|
if (searchResults.length === 0) return null;
|
|
327
302
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
328
303
|
className: "search-results-container",
|
|
@@ -344,10 +319,9 @@ class MapSelectionEditor extends _react.Component {
|
|
|
344
319
|
const _value = this.getInitValue();
|
|
345
320
|
this.readOnly = props.readOnly;
|
|
346
321
|
const _inputValue = _value.title || _value.address || '';
|
|
347
|
-
const
|
|
348
|
-
mapType,
|
|
349
|
-
mapKey
|
|
350
|
-
} = (0, _mapEditorUtils.getMapInfo)(props.config);
|
|
322
|
+
const _getMapInfo = (0, _mapEditorUtils.getMapInfo)(props.config),
|
|
323
|
+
mapType = _getMapInfo.mapType,
|
|
324
|
+
mapKey = _getMapInfo.mapKey;
|
|
351
325
|
this.state = {
|
|
352
326
|
isLoading: true,
|
|
353
327
|
value: _value,
|
|
@@ -376,11 +350,10 @@ class MapSelectionEditor extends _react.Component {
|
|
|
376
350
|
}
|
|
377
351
|
}
|
|
378
352
|
render() {
|
|
379
|
-
const
|
|
380
|
-
isLoading,
|
|
381
|
-
inputValue,
|
|
382
|
-
isShowLargeEditor
|
|
383
|
-
} = this.state;
|
|
353
|
+
const _this$state = this.state,
|
|
354
|
+
isLoading = _this$state.isLoading,
|
|
355
|
+
inputValue = _this$state.inputValue,
|
|
356
|
+
isShowLargeEditor = _this$state.isShowLargeEditor;
|
|
384
357
|
if (isShowLargeEditor) {
|
|
385
358
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_largeEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.props), {}, {
|
|
386
359
|
toggleFullScreen: this.toggleFullScreen
|