dtable-ui-component 7.0.13 → 7.0.15
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 +58 -49
- package/lib/ActivityIndicator/index.js +17 -16
- package/lib/AsyncUserSelect/index.js +20 -46
- package/lib/AsyncUserSelect/user-item.js +6 -5
- package/lib/AutoNumberFormatter/index.js +4 -3
- package/lib/Badge/index.js +27 -29
- package/lib/ButtonFormatter/index.js +8 -6
- package/lib/CTimeFormatter/index.js +4 -3
- package/lib/CheckboxEditor/index.js +16 -13
- package/lib/CheckboxEditor/mb-editor.js +20 -9
- package/lib/CheckboxEditor/pc-editor.js +24 -12
- package/lib/CheckboxFormatter/index.js +5 -4
- package/lib/CollaboratorEditor/index.js +17 -14
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
- package/lib/CollaboratorEditor/pc-editor/index.js +35 -26
- package/lib/CollaboratorFormatter/index.js +10 -8
- package/lib/CollaboratorItem/index.js +5 -4
- package/lib/CollapsibleSettingLayout/index.js +8 -10
- package/lib/Comment/body/comment.js +19 -11
- package/lib/Comment/body/index.js +8 -8
- package/lib/Comment/footer/btns/index.js +7 -4
- package/lib/Comment/footer/index.js +21 -10
- package/lib/Comment/footer/input/index.js +55 -34
- package/lib/Comment/footer/input/participant/index.js +6 -5
- package/lib/Comment/footer/participants/index.js +5 -4
- package/lib/Comment/footer/participants/participant/index.js +3 -1
- package/lib/Comment/footer/participants/participant-select/index.js +26 -10
- package/lib/Comment/index.js +57 -39
- package/lib/Comment/utils/utilities.js +22 -16
- package/lib/CreatorFormatter/index.js +8 -6
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +26 -28
- package/lib/DTableColorPicker/index.js +53 -67
- package/lib/DTableColorPicker/utils.js +7 -5
- package/lib/DTableColumnIcon/index.js +7 -6
- package/lib/DTableCommonAddTool/index.js +10 -8
- package/lib/DTableCustomFooter/index.js +3 -1
- package/lib/DTableCustomizeSearchInput/index.js +41 -26
- package/lib/DTableCustomizeSelect/index.js +24 -19
- package/lib/DTableDropdownItem/index.js +28 -24
- package/lib/DTableDropdownMenu/index.js +17 -14
- package/lib/DTableEmptyTip/index.js +5 -4
- package/lib/DTableFiltersPopover/index.js +42 -27
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
- package/lib/DTableFiltersPopover/utils/index.js +114 -64
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
- package/lib/DTableFiltersPopover/widgets/filter-group.js +57 -36
- package/lib/DTableFiltersPopover/widgets/filter-item.js +165 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +162 -137
- package/lib/DTableFiltersPopover/widgets/rate-item.js +25 -20
- package/lib/DTableIcon/index.js +11 -10
- package/lib/DTableIcon/svg-icon.js +11 -9
- package/lib/DTableModalHeader/index.js +7 -7
- package/lib/DTablePopover/index.js +16 -12
- package/lib/DTableRadio/index.js +9 -10
- package/lib/DTableRadioGroup/index.js +20 -11
- package/lib/DTableSearchInput/index.js +29 -19
- package/lib/DTableSelect/dtable-select-label.js +6 -7
- package/lib/DTableSelect/index.js +26 -25
- package/lib/DTableSelect/select-dropdown-indicator/index.js +3 -1
- package/lib/DTableSelect/utils.js +83 -47
- package/lib/DTableSubDropdownMenu/index.js +16 -12
- package/lib/DTableSubDropdownToggle/index.js +16 -17
- package/lib/DTableSwitch/index.js +11 -12
- package/lib/DTableToolTip/index.js +12 -11
- package/lib/DateEditor/index.js +28 -30
- package/lib/DateEditor/mb-editor/index.js +31 -18
- package/lib/DateEditor/pc-editor.js +46 -27
- package/lib/DateFormatter/index.js +5 -4
- package/lib/DatePicker/index.js +15 -9
- package/lib/DatePicker/utils.js +7 -5
- package/lib/DeleteTip/index.js +6 -5
- package/lib/DepartmentMultipleSelectEditor/index.js +26 -28
- package/lib/DepartmentSelectFilter/index.js +13 -8
- package/lib/DepartmentSingleSelectEditor/index.js +16 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +49 -50
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +64 -42
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
- package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
- package/lib/DigitalSignEditor/index.js +16 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +24 -16
- package/lib/DigitalSignEditor/pc-editor/index.js +31 -23
- package/lib/DigitalSignEditor/service.js +5 -3
- package/lib/DigitalSignEditor/signature-board/index.js +10 -7
- package/lib/DigitalSignEditor/utils.js +4 -2
- package/lib/DigitalSignFormatter/index.js +15 -12
- package/lib/DigitalSignFormatter/utils.js +6 -5
- package/lib/Drawer/index.js +3 -2
- package/lib/DurationEditor/index.js +31 -21
- package/lib/DurationFormatter/index.js +5 -4
- package/lib/EditEditorButton/index.js +3 -1
- package/lib/EmailFormatter/index.js +4 -3
- package/lib/FieldDisplaySetting/field-item.js +13 -13
- package/lib/FieldDisplaySetting/index.js +20 -20
- package/lib/FileEditor/files-previewer/index.js +16 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +20 -12
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +24 -17
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
- package/lib/FileEditor/index.js +16 -13
- package/lib/FileEditor/mb-editor/index.js +20 -28
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +4 -2
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +31 -17
- package/lib/FileEditor/pc-editor/index.js +30 -22
- package/lib/FileFormatter/index.js +20 -27
- package/lib/FileItemFormatter/index.js +10 -7
- package/lib/FileUploader/index.js +46 -29
- package/lib/FormulaFormatter/index.js +44 -24
- package/lib/GeolocationEditor/index.js +32 -27
- package/lib/GeolocationEditor/map-editor-utils.js +23 -21
- package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/index.js +28 -22
- package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +77 -47
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
- package/lib/GeolocationEditor/pc-editor/country-editor.js +25 -12
- package/lib/GeolocationEditor/pc-editor/index.js +41 -27
- package/lib/GeolocationEditor/pc-editor/location-editor.js +33 -28
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +67 -43
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +69 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +86 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +85 -39
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +26 -20
- package/lib/GeolocationEditor/pc-editor/province-editor.js +15 -8
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +8 -7
- package/lib/GeolocationFormatter/index.js +5 -4
- package/lib/HtmlLongTextFormatter/index.js +13 -5
- package/lib/Icon/index.js +13 -15
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +12 -13
- package/lib/ImageEditor/images-previewer/image-preview/index.js +22 -13
- package/lib/ImageEditor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/index.js +16 -13
- package/lib/ImageEditor/mb-editor/index.js +20 -28
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +5 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +26 -12
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +10 -4
- package/lib/ImageEditor/pc-editor/index.js +16 -11
- package/lib/ImageFormatter/images-lazy-load.js +11 -19
- package/lib/ImageFormatter/index.js +14 -12
- package/lib/ImagePreviewerLightbox/index.js +15 -19
- package/lib/ImageThumbnail/index.js +15 -12
- package/lib/InputItem/custom-input.js +55 -35
- package/lib/InputItem/custom-keyboard.js +42 -42
- package/lib/InputItem/index.js +82 -63
- package/lib/InputItem/input.js +9 -11
- package/lib/LastModifierFormatter/index.js +8 -6
- package/lib/LinkEditor/index.js +53 -33
- package/lib/LinkEditor/link-editor-option.js +4 -3
- package/lib/LinkEditor/mb-popover/index.js +22 -9
- package/lib/LinkEditor/pc-popover/index.js +13 -7
- package/lib/LinkFormatter/index.js +37 -21
- package/lib/List/index.js +17 -19
- package/lib/List/list-item.js +59 -55
- package/lib/LongTextFormatter/index.js +5 -4
- package/lib/MBEditorHeader/index.js +9 -8
- package/lib/MTimeFormatter/index.js +4 -3
- package/lib/MobileFullScreenPage/body/index.js +6 -4
- package/lib/MobileFullScreenPage/header/index.js +10 -8
- package/lib/MobileFullScreenPage/index.js +12 -14
- package/lib/MobileModal/index.js +7 -8
- package/lib/MobileOperationSheet/index.js +8 -7
- package/lib/MobileSelector/empty/index.js +3 -1
- package/lib/MobileSelector/index.js +7 -5
- package/lib/MobileSelector/option/index.js +5 -3
- package/lib/MobileSelector/options/index.css +0 -4
- package/lib/MobileSelector/options/index.js +3 -1
- package/lib/MobileSelector/search/index.js +5 -3
- package/lib/MobileUpload/index.js +5 -4
- package/lib/Modal/alert.js +2 -2
- package/lib/Modal/modal.js +28 -30
- package/lib/Modal/prompt.js +14 -14
- package/lib/MultipleSelectEditor/index.js +7 -7
- package/lib/MultipleSelectFormatter/index.js +9 -7
- package/lib/NotificationPopover/index.js +5 -4
- package/lib/NumberEditor/index.js +21 -12
- package/lib/NumberFormatter/index.js +5 -4
- package/lib/PhoneNumberLink/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +35 -33
- package/lib/Popover/index.js +9 -11
- package/lib/Popover/item.js +22 -24
- package/lib/Progress/index.js +18 -17
- package/lib/Radio/Radio.js +17 -15
- package/lib/Radio/RadioItem.js +23 -19
- package/lib/RateFormatter/index.js +15 -15
- package/lib/RoleStatusEditor/index.js +18 -19
- package/lib/RowExpand/index.js +7 -6
- package/lib/RowExpandDialog/body/index.js +57 -40
- package/lib/RowExpandDialog/column-content/index.js +10 -6
- package/lib/RowExpandDialog/header/index.js +12 -9
- package/lib/RowExpandDialog/index.js +59 -63
- package/lib/RowExpandEditor/add-btn/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
- package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
- package/lib/RowExpandEditor/date-editor/index.js +7 -6
- package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
- package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
- package/lib/RowExpandEditor/department-editor/index.js +7 -6
- package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
- package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
- package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +38 -24
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +39 -25
- package/lib/RowExpandEditor/duration-editor/index.js +7 -6
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
- package/lib/RowExpandEditor/email-editor/index.js +7 -6
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -10
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +25 -14
- package/lib/RowExpandEditor/file-editor/index.js +7 -6
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
- package/lib/RowExpandEditor/image-editor/index.js +7 -6
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +26 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +24 -14
- package/lib/RowExpandEditor/index.js +16 -11
- package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +20 -12
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +38 -27
- package/lib/RowExpandEditor/number-editor/index.js +7 -6
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
- package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
- package/lib/RowExpandEditor/rate-editor/index.js +7 -6
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +26 -13
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +41 -25
- package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +32 -21
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +37 -25
- package/lib/RowExpandEditor/text-editor/index.js +7 -6
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
- package/lib/RowExpandEditor/url-editor/index.js +7 -6
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +15 -7
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -11
- package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
- package/lib/RowExpandFormatter/email-formatter/index.js +8 -5
- package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +14 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +51 -30
- package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +10 -9
- package/lib/RowExpandFormatter/index.js +52 -34
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +15 -9
- package/lib/RowExpandFormatter/link-formatter/index.js +25 -17
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
- package/lib/RowExpandFormatter/rate-formatter/index.js +14 -13
- package/lib/RowExpandFormatter/text/index.js +5 -4
- package/lib/RowExpandFormatter/url-formatter/index.js +9 -6
- package/lib/RowExpandView/body/index.js +43 -32
- package/lib/RowExpandView/column-content/index.js +7 -3
- package/lib/RowExpandView/index.js +52 -53
- package/lib/SelectItem/index.js +7 -5
- package/lib/SelectOptionGroup/index.js +40 -30
- package/lib/SelectedDepartments/index.js +12 -10
- package/lib/SimpleLongTextFormatter/index.js +18 -12
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
- package/lib/SingleSelectEditor/index.js +7 -7
- package/lib/SingleSelectFormatter/index.js +9 -8
- package/lib/TabBar/Tab.js +26 -24
- package/lib/TabBar/index.js +28 -24
- package/lib/Tabs/index.js +13 -10
- package/lib/TextEditor/index.js +23 -14
- package/lib/TextFormatter/index.js +4 -3
- package/lib/TextareaItem/index.js +53 -48
- package/lib/Toast/index.js +9 -8
- package/lib/UrlFormatter/index.js +4 -3
- package/lib/common/editor-base.js +12 -7
- package/lib/formatterConfig/index.js +3 -3
- package/lib/hooks/common-hooks.js +4 -2
- package/lib/select-editor/index.js +16 -13
- package/lib/select-editor/mb-editor/index.js +28 -17
- package/lib/select-editor/pc-editor/index.js +47 -32
- package/lib/toaster/alert.js +8 -7
- package/lib/toaster/toast.js +4 -3
- package/lib/toaster/toastManager.js +13 -13
- package/lib/toaster/toaster.js +12 -9
- package/lib/utils/cell.js +11 -8
- package/lib/utils/class.js +3 -3
- package/lib/utils/column-utils.js +14 -8
- package/lib/utils/departments.js +6 -5
- package/lib/utils/getLocale.js +11 -5
- package/lib/utils/object-utils.js +5 -4
- package/lib/utils/url.js +29 -22
- package/lib/utils/utils.js +6 -2
- package/package.json +2 -2
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.locateCurrentPosition = exports.loadMapSource = exports.getMineMapUrl = exports.getMapInfo = exports.getInitCenter = exports.MAP_TYPES = exports.INPUT_MODE_MAP = exports.DOMESTIC_MAP_TYPE = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
7
|
const INPUT_MODE_MAP = exports.INPUT_MODE_MAP = {
|
|
10
8
|
ANY_LOCATION: 'any_location',
|
|
11
9
|
ONLY_MOBILE_POSITIONING: 'only_mobile_positioning'
|
|
@@ -30,19 +28,19 @@ const MINE_MAP_ONLINE_SERVICE = {
|
|
|
30
28
|
const getMineMapUrl = function () {
|
|
31
29
|
var _window;
|
|
32
30
|
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
sprite_url =
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
const {
|
|
32
|
+
dtableMineMapCustomConfig = {}
|
|
33
|
+
} = {
|
|
34
|
+
...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
|
|
35
|
+
...config
|
|
36
|
+
};
|
|
37
|
+
const {
|
|
38
|
+
domain_url = '',
|
|
39
|
+
data_domain_url = '',
|
|
40
|
+
server_domain_url = '',
|
|
41
|
+
sprite_url = '',
|
|
42
|
+
service_url = ''
|
|
43
|
+
} = dtableMineMapCustomConfig;
|
|
46
44
|
return {
|
|
47
45
|
domainUrl: domain_url || MINE_MAP_ONLINE_SERVICE.DOMAIN_URL,
|
|
48
46
|
dataDomainUrl: data_domain_url || MINE_MAP_ONLINE_SERVICE.DATA_DOMAIN_URL,
|
|
@@ -75,10 +73,14 @@ exports.getInitCenter = getInitCenter;
|
|
|
75
73
|
const getMapInfo = function () {
|
|
76
74
|
var _window2;
|
|
77
75
|
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
78
|
-
const
|
|
79
|
-
baiduMapKey
|
|
80
|
-
googleMapKey
|
|
81
|
-
mineMapKey
|
|
76
|
+
const {
|
|
77
|
+
dtableBaiduMapKey: baiduMapKey,
|
|
78
|
+
dtableGoogleMapKey: googleMapKey,
|
|
79
|
+
dtableMineMapKey: mineMapKey
|
|
80
|
+
} = {
|
|
81
|
+
...((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable),
|
|
82
|
+
...config
|
|
83
|
+
};
|
|
82
84
|
let mapType;
|
|
83
85
|
let mapKey;
|
|
84
86
|
if (baiduMapKey) {
|
|
@@ -103,9 +105,9 @@ const loadMapSource = (mapType, mapKey, callback) => {
|
|
|
103
105
|
let script = document.createElement('script');
|
|
104
106
|
script.type = 'text/javascript';
|
|
105
107
|
if (mapType === MAP_TYPES.B_MAP) {
|
|
106
|
-
scriptUrl =
|
|
108
|
+
scriptUrl = `https://api.map.baidu.com/api?v=3.0&ak=${mapKey}&callback=renderBaiduMap`;
|
|
107
109
|
} else if (mapType === MAP_TYPES.G_MAP) {
|
|
108
|
-
scriptUrl =
|
|
110
|
+
scriptUrl = `https://maps.googleapis.com/maps/api/js?key=${mapKey}&callback=renderGoogleMap&libraries=&v=weekly`;
|
|
109
111
|
} else {
|
|
110
112
|
scriptUrl = 'https://minemap.minedata.cn/minemapapi/v2.1.1/minemap.js';
|
|
111
113
|
let link = document.createElement('link');
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _Picker = _interopRequireDefault(require("../../Picker"));
|
|
12
11
|
var _List = _interopRequireDefault(require("../../List"));
|
|
13
12
|
var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
|
|
14
13
|
var _lang = require("../../lang");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
const {
|
|
16
|
+
Header,
|
|
17
|
+
Body
|
|
18
|
+
} = _MobileFullScreenPage.default;
|
|
18
19
|
const CountryEditor = _ref => {
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const _useState3 = (0, _react.useState)(true),
|
|
29
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
30
|
-
isLoading = _useState4[0],
|
|
31
|
-
setLoading = _useState4[1];
|
|
20
|
+
let {
|
|
21
|
+
column,
|
|
22
|
+
value: oldValue,
|
|
23
|
+
getData,
|
|
24
|
+
onToggle,
|
|
25
|
+
onCommit
|
|
26
|
+
} = _ref;
|
|
27
|
+
const [value, setValue] = (0, _react.useState)([]);
|
|
28
|
+
const [isLoading, setLoading] = (0, _react.useState)(true);
|
|
32
29
|
const locations = (0, _react.useRef)([]);
|
|
33
30
|
(0, _react.useEffect)(() => {
|
|
34
31
|
getData().then(data => {
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
11
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _dtableUtils = require("dtable-utils");
|
|
13
11
|
var _countryEditor = _interopRequireDefault(require("./country-editor"));
|
|
@@ -18,7 +16,6 @@ var _mapEditor = _interopRequireDefault(require("./map-editor"));
|
|
|
18
16
|
var _mapSelectionEditor = _interopRequireDefault(require("./map-selection-editor"));
|
|
19
17
|
require("./index.css");
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const _excluded = ["column", "config", "getLocationData", "getCountryData"];
|
|
22
19
|
const transLocationData = data => {
|
|
23
20
|
if (Object.prototype.toString.call(data) === '[object Object]') {
|
|
24
21
|
const name = data.name;
|
|
@@ -55,11 +52,13 @@ const transCountryData = data => {
|
|
|
55
52
|
return _data;
|
|
56
53
|
};
|
|
57
54
|
const MBGeolocationEditor = _ref => {
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
let {
|
|
56
|
+
column,
|
|
57
|
+
config,
|
|
58
|
+
getLocationData,
|
|
59
|
+
getCountryData,
|
|
60
|
+
...props
|
|
61
|
+
} = _ref;
|
|
63
62
|
const format = (0, _react.useMemo)(() => {
|
|
64
63
|
let data = column.data || {};
|
|
65
64
|
return data.geo_format ? data.geo_format : _dtableUtils.DEFAULT_GEOLOCATION_FORMAT;
|
|
@@ -75,53 +74,60 @@ const MBGeolocationEditor = _ref => {
|
|
|
75
74
|
switch (format) {
|
|
76
75
|
case _dtableUtils.GEOLOCATION_FORMAT.LNG_LAT:
|
|
77
76
|
{
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapEditor.default,
|
|
77
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapEditor.default, {
|
|
78
|
+
...props,
|
|
79
79
|
config: config,
|
|
80
80
|
column: column
|
|
81
|
-
})
|
|
81
|
+
});
|
|
82
82
|
}
|
|
83
83
|
case _dtableUtils.GEOLOCATION_FORMAT.MAP_SELECTION:
|
|
84
84
|
{
|
|
85
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapSelectionEditor.default,
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapSelectionEditor.default, {
|
|
86
|
+
...props,
|
|
86
87
|
config: config,
|
|
87
88
|
column: column
|
|
88
|
-
})
|
|
89
|
+
});
|
|
89
90
|
}
|
|
90
91
|
case _dtableUtils.GEOLOCATION_FORMAT.COUNTRY_REGION:
|
|
91
92
|
{
|
|
92
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_countryEditor.default,
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_countryEditor.default, {
|
|
94
|
+
...props,
|
|
93
95
|
getData: _getCountryData,
|
|
94
96
|
column: column
|
|
95
|
-
})
|
|
97
|
+
});
|
|
96
98
|
}
|
|
97
99
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE:
|
|
98
100
|
{
|
|
99
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceEditor.default,
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceEditor.default, {
|
|
102
|
+
...props,
|
|
100
103
|
getData: getData,
|
|
101
104
|
column: column
|
|
102
|
-
})
|
|
105
|
+
});
|
|
103
106
|
}
|
|
104
107
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY:
|
|
105
108
|
{
|
|
106
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceCityEditor.default,
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceCityEditor.default, {
|
|
110
|
+
...props,
|
|
107
111
|
getData: getData,
|
|
108
112
|
column: column
|
|
109
|
-
})
|
|
113
|
+
});
|
|
110
114
|
}
|
|
111
115
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY_DISTRICT:
|
|
112
116
|
{
|
|
113
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default,
|
|
117
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
118
|
+
...props,
|
|
114
119
|
getData: getData,
|
|
115
120
|
column: column
|
|
116
|
-
})
|
|
121
|
+
});
|
|
117
122
|
}
|
|
118
123
|
default:
|
|
119
124
|
{
|
|
120
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default,
|
|
125
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
126
|
+
...props,
|
|
121
127
|
isShowDetails: true,
|
|
122
128
|
getData: getData,
|
|
123
129
|
column: column
|
|
124
|
-
})
|
|
130
|
+
});
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _InputItem = _interopRequireDefault(require("../../InputItem"));
|
|
12
11
|
var _Picker = _interopRequireDefault(require("../../Picker"));
|
|
@@ -15,27 +14,25 @@ var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScre
|
|
|
15
14
|
var _lang = require("../../lang");
|
|
16
15
|
var _objectUtils = _interopRequireDefault(require("../../utils/object-utils"));
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
const
|
|
19
|
-
|
|
17
|
+
const {
|
|
18
|
+
Header,
|
|
19
|
+
Body
|
|
20
|
+
} = _MobileFullScreenPage.default;
|
|
20
21
|
const LocationEditor = _ref => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
let {
|
|
23
|
+
isShowDetails,
|
|
24
|
+
column,
|
|
25
|
+
value: oldValue,
|
|
26
|
+
getData,
|
|
27
|
+
onToggle,
|
|
28
|
+
onCommit
|
|
29
|
+
} = _ref;
|
|
27
30
|
let initValue = [(oldValue === null || oldValue === void 0 ? void 0 : oldValue.province) || '', (oldValue === null || oldValue === void 0 ? void 0 : oldValue.city) || '', (oldValue === null || oldValue === void 0 ? void 0 : oldValue.district) || ''];
|
|
28
31
|
if (isShowDetails) {
|
|
29
32
|
initValue.push((oldValue === null || oldValue === void 0 ? void 0 : oldValue.detail) || '');
|
|
30
33
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
value = _useState2[0],
|
|
34
|
-
setValue = _useState2[1];
|
|
35
|
-
const _useState3 = (0, _react.useState)(true),
|
|
36
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
37
|
-
isLoading = _useState4[0],
|
|
38
|
-
setLoading = _useState4[1];
|
|
34
|
+
const [value, setValue] = (0, _react.useState)(initValue);
|
|
35
|
+
const [isLoading, setLoading] = (0, _react.useState)(true);
|
|
39
36
|
const locations = (0, _react.useRef)([]);
|
|
40
37
|
(0, _react.useEffect)(() => {
|
|
41
38
|
getData().then(data => {
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _dtableUtils = require("dtable-utils");
|
|
11
10
|
var _InputItem = _interopRequireDefault(require("../../../InputItem"));
|
|
@@ -18,20 +17,23 @@ var _Loading = _interopRequireDefault(require("../../../Loading"));
|
|
|
18
17
|
var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
|
|
19
18
|
require("./index.css");
|
|
20
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
const {
|
|
21
|
+
Header,
|
|
22
|
+
Body
|
|
23
|
+
} = _MobileFullScreenPage.default;
|
|
23
24
|
class MapEditor extends _react.default.Component {
|
|
24
25
|
constructor(props) {
|
|
25
26
|
super(props);
|
|
26
27
|
this.loadMineMapCallBack = () => {
|
|
27
28
|
if (!this.timer) {
|
|
28
29
|
this.timer = setTimeout(() => {
|
|
29
|
-
const
|
|
30
|
-
domainUrl
|
|
31
|
-
dataDomainUrl
|
|
32
|
-
serverDomainUrl
|
|
33
|
-
spriteUrl
|
|
34
|
-
serviceUrl
|
|
30
|
+
const {
|
|
31
|
+
domainUrl,
|
|
32
|
+
dataDomainUrl,
|
|
33
|
+
serverDomainUrl,
|
|
34
|
+
spriteUrl,
|
|
35
|
+
serviceUrl
|
|
36
|
+
} = (0, _mapEditorUtils.getMineMapUrl)();
|
|
35
37
|
window.minemap.domainUrl = domainUrl;
|
|
36
38
|
window.minemap.dataDomainUrl = dataDomainUrl;
|
|
37
39
|
window.minemap.serverDomainUrl = serverDomainUrl;
|
|
@@ -59,11 +61,14 @@ class MapEditor extends _react.default.Component {
|
|
|
59
61
|
minZoom: 3,
|
|
60
62
|
projection: 'MERCATOR'
|
|
61
63
|
});
|
|
62
|
-
let
|
|
63
|
-
lng
|
|
64
|
-
lat
|
|
65
|
-
zoom
|
|
66
|
-
|
|
64
|
+
let {
|
|
65
|
+
lng,
|
|
66
|
+
lat,
|
|
67
|
+
zoom
|
|
68
|
+
} = (0, _mapEditorUtils.getInitCenter)();
|
|
69
|
+
const {
|
|
70
|
+
value
|
|
71
|
+
} = this.state;
|
|
67
72
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
68
73
|
lng = value.lng;
|
|
69
74
|
lat = value.lat;
|
|
@@ -87,11 +92,14 @@ class MapEditor extends _react.default.Component {
|
|
|
87
92
|
if (!window.BMap.Map) return;
|
|
88
93
|
setTimeout(() => {
|
|
89
94
|
this.map = new window.BMap.Map('dtable-ui-mobile-geolocation-map-container');
|
|
90
|
-
let
|
|
91
|
-
lng
|
|
92
|
-
lat
|
|
93
|
-
zoom
|
|
94
|
-
|
|
95
|
+
let {
|
|
96
|
+
lng,
|
|
97
|
+
lat,
|
|
98
|
+
zoom
|
|
99
|
+
} = (0, _mapEditorUtils.getInitCenter)();
|
|
100
|
+
const {
|
|
101
|
+
value
|
|
102
|
+
} = this.state;
|
|
95
103
|
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
96
104
|
lng = value.lng;
|
|
97
105
|
lat = value.lat;
|
|
@@ -111,7 +119,9 @@ class MapEditor extends _react.default.Component {
|
|
|
111
119
|
};
|
|
112
120
|
this.geolocationCallback = (error, point) => {
|
|
113
121
|
if (!error) {
|
|
114
|
-
this.setValue(
|
|
122
|
+
this.setValue({
|
|
123
|
+
...point
|
|
124
|
+
});
|
|
115
125
|
this.addMarkerByPosition(point.lng, point.lat);
|
|
116
126
|
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
117
127
|
this.map.setCenter({
|
|
@@ -128,10 +138,11 @@ class MapEditor extends _react.default.Component {
|
|
|
128
138
|
isLoading: false
|
|
129
139
|
}, () => {
|
|
130
140
|
setTimeout(() => {
|
|
131
|
-
let
|
|
132
|
-
lng
|
|
133
|
-
lat
|
|
134
|
-
zoom
|
|
141
|
+
let {
|
|
142
|
+
lng,
|
|
143
|
+
lat,
|
|
144
|
+
zoom
|
|
145
|
+
} = (0, _mapEditorUtils.getInitCenter)();
|
|
135
146
|
this.map = new window.google.maps.Map(this.ref, {
|
|
136
147
|
zoom,
|
|
137
148
|
center: {
|
|
@@ -145,7 +156,9 @@ class MapEditor extends _react.default.Component {
|
|
|
145
156
|
rotateControl: false,
|
|
146
157
|
fullscreenControl: false
|
|
147
158
|
});
|
|
148
|
-
const
|
|
159
|
+
const {
|
|
160
|
+
value
|
|
161
|
+
} = this.state;
|
|
149
162
|
if (value.lng && value.lat) {
|
|
150
163
|
lng = value.lng;
|
|
151
164
|
lat = value.lat;
|
|
@@ -231,13 +244,16 @@ class MapEditor extends _react.default.Component {
|
|
|
231
244
|
});
|
|
232
245
|
};
|
|
233
246
|
this.onSubmit = () => {
|
|
234
|
-
const
|
|
247
|
+
const {
|
|
248
|
+
value
|
|
249
|
+
} = this.state;
|
|
235
250
|
if (!_objectUtils.default.isSameObject(value, this.props.value)) {
|
|
236
251
|
this.props.onCommit(value);
|
|
237
252
|
}
|
|
238
|
-
const
|
|
239
|
-
lng
|
|
240
|
-
lat
|
|
253
|
+
const {
|
|
254
|
+
lng,
|
|
255
|
+
lat
|
|
256
|
+
} = (0, _dtableUtils.normalizeMapPoint)(value);
|
|
241
257
|
const newValue = !(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat) ? null : value;
|
|
242
258
|
this.props.onCommit(newValue);
|
|
243
259
|
this.onClose();
|
|
@@ -277,16 +293,19 @@ class MapEditor extends _react.default.Component {
|
|
|
277
293
|
this.props.onToggle();
|
|
278
294
|
};
|
|
279
295
|
this.onBlur = () => {
|
|
280
|
-
const
|
|
296
|
+
const {
|
|
297
|
+
value
|
|
298
|
+
} = this.state;
|
|
281
299
|
const numericValue = (0, _dtableUtils.normalizeMapPoint)(value);
|
|
282
300
|
this.setState({
|
|
283
301
|
value: numericValue
|
|
284
302
|
});
|
|
285
303
|
};
|
|
286
304
|
this.handleLatitudeChange = value => {
|
|
287
|
-
const newValue =
|
|
305
|
+
const newValue = {
|
|
306
|
+
...this.state.value,
|
|
288
307
|
lat: value
|
|
289
|
-
}
|
|
308
|
+
};
|
|
290
309
|
this.setState({
|
|
291
310
|
value: newValue
|
|
292
311
|
}, () => {
|
|
@@ -295,9 +314,10 @@ class MapEditor extends _react.default.Component {
|
|
|
295
314
|
});
|
|
296
315
|
};
|
|
297
316
|
this.handleLongitudeChange = value => {
|
|
298
|
-
const newValue =
|
|
317
|
+
const newValue = {
|
|
318
|
+
...this.state.value,
|
|
299
319
|
lng: value
|
|
300
|
-
}
|
|
320
|
+
};
|
|
301
321
|
this.setState({
|
|
302
322
|
value: newValue
|
|
303
323
|
}, () => {
|
|
@@ -306,8 +326,10 @@ class MapEditor extends _react.default.Component {
|
|
|
306
326
|
});
|
|
307
327
|
};
|
|
308
328
|
this.rerenderMapMarker = _ref => {
|
|
309
|
-
let
|
|
310
|
-
|
|
329
|
+
let {
|
|
330
|
+
lng,
|
|
331
|
+
lat
|
|
332
|
+
} = _ref;
|
|
311
333
|
if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) {
|
|
312
334
|
return;
|
|
313
335
|
}
|
|
@@ -324,10 +346,11 @@ class MapEditor extends _react.default.Component {
|
|
|
324
346
|
this.addMarkerByPosition(lng, lat);
|
|
325
347
|
};
|
|
326
348
|
this.renderMap = () => {
|
|
327
|
-
const
|
|
328
|
-
isLoading
|
|
329
|
-
mode
|
|
330
|
-
lng_lat
|
|
349
|
+
const {
|
|
350
|
+
isLoading,
|
|
351
|
+
mode,
|
|
352
|
+
value: lng_lat
|
|
353
|
+
} = this.state;
|
|
331
354
|
if (isLoading) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
332
355
|
className: "w-100 h-100 d-flex align-items-center justify-content-center",
|
|
333
356
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
@@ -420,14 +443,17 @@ class MapEditor extends _react.default.Component {
|
|
|
420
443
|
lng: '',
|
|
421
444
|
lat: ''
|
|
422
445
|
};
|
|
423
|
-
const
|
|
424
|
-
mapType
|
|
425
|
-
mapKey
|
|
446
|
+
const {
|
|
447
|
+
mapType,
|
|
448
|
+
mapKey
|
|
449
|
+
} = (0, _mapEditorUtils.getMapInfo)(props.config);
|
|
426
450
|
this.mapType = mapType;
|
|
427
451
|
this.mapKey = mapKey;
|
|
428
452
|
this.map = null;
|
|
429
|
-
const
|
|
430
|
-
|
|
453
|
+
const {
|
|
454
|
+
lng: _lng,
|
|
455
|
+
lat: _lat
|
|
456
|
+
} = _value;
|
|
431
457
|
this.state = {
|
|
432
458
|
mode: (0, _cell.isValidPosition)(_lng, _lat) ? 'preview' : 'edit',
|
|
433
459
|
isLoading: true,
|
|
@@ -485,8 +511,12 @@ class MapEditor extends _react.default.Component {
|
|
|
485
511
|
this.map = null;
|
|
486
512
|
}
|
|
487
513
|
render() {
|
|
488
|
-
const
|
|
489
|
-
|
|
514
|
+
const {
|
|
515
|
+
column
|
|
516
|
+
} = this.props;
|
|
517
|
+
const {
|
|
518
|
+
mode
|
|
519
|
+
} = this.state;
|
|
490
520
|
const isEdit = mode === 'edit';
|
|
491
521
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
492
522
|
className: "dtable-ui-mobile-geolocation-map-editor",
|