@abi-software/map-utilities 1.7.7-demo.0 → 1.7.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/map-utilities.js +1355 -1343
- package/dist/map-utilities.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Tooltip/CreateTooltipContent.vue +20 -6
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container class="create-container">
|
|
3
3
|
<el-header height="30px" class="header">
|
|
4
|
-
<div>
|
|
4
|
+
<div>{{ dialogTitle }}</div>
|
|
5
5
|
</el-header>
|
|
6
6
|
<el-main class="slides-block">
|
|
7
|
-
<span class="create-text">
|
|
7
|
+
<span class="create-text" v-if="createData.editingIndex === -1">
|
|
8
8
|
Primitives will be created in the __annotation region
|
|
9
9
|
</span>
|
|
10
10
|
<el-row class="row" v-show="showPoint">
|
|
@@ -99,13 +99,19 @@ export default {
|
|
|
99
99
|
watch: {
|
|
100
100
|
"createData.shape": {
|
|
101
101
|
handler: function (newValue, oldValue) {
|
|
102
|
-
this.group = newValue;
|
|
102
|
+
this.group = this.createData.tempGroupName ? this.createData.tempGroupName : newValue;
|
|
103
103
|
if (oldValue !== undefined) {
|
|
104
104
|
this.$emit("cancel-create");
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
immediate: true,
|
|
108
108
|
},
|
|
109
|
+
"createData.tempGroupName": {
|
|
110
|
+
handler: function (newValue, oldValue) {
|
|
111
|
+
this.group = newValue ? newValue : this.createData.shape;
|
|
112
|
+
},
|
|
113
|
+
immediate: true,
|
|
114
|
+
},
|
|
109
115
|
},
|
|
110
116
|
computed: {
|
|
111
117
|
confirmText: function () {
|
|
@@ -114,6 +120,13 @@ export default {
|
|
|
114
120
|
}
|
|
115
121
|
return "Confirm";
|
|
116
122
|
},
|
|
123
|
+
dialogTitle: function() {
|
|
124
|
+
if (this.createData.editingIndex > -1) {
|
|
125
|
+
return `Edit ${this.createData.shape}`;
|
|
126
|
+
} else {
|
|
127
|
+
return `Create ${this.createData.shape}`;
|
|
128
|
+
}
|
|
129
|
+
},
|
|
117
130
|
},
|
|
118
131
|
data: function () {
|
|
119
132
|
return {
|
|
@@ -125,9 +138,9 @@ export default {
|
|
|
125
138
|
methods: {
|
|
126
139
|
confirm: function () {
|
|
127
140
|
this.$emit(
|
|
128
|
-
"confirm-create",
|
|
129
|
-
{
|
|
130
|
-
region: "__annotation/" + this.region,
|
|
141
|
+
"confirm-create",
|
|
142
|
+
{
|
|
143
|
+
region: "__annotation/" + this.region,
|
|
131
144
|
group: this.group,
|
|
132
145
|
shape: this.createData.shape,
|
|
133
146
|
editingIndex: this.createData.editingIndex,
|
|
@@ -166,6 +179,7 @@ export default {
|
|
|
166
179
|
|
|
167
180
|
.create-container {
|
|
168
181
|
width: 100%;
|
|
182
|
+
min-width:200px;
|
|
169
183
|
height: auto;
|
|
170
184
|
border-radius: 4px;
|
|
171
185
|
border: solid 1px #d8dce6;
|