@abi-software/scaffoldvuer 0.2.2-beta.0 → 0.2.2-beta.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/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "0.2.2-beta.0",
3
+ "version": "0.2.2-beta.1",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "0.2.2-beta.0",
3
+ "version": "0.2.2-beta.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -226,33 +226,15 @@
226
226
  width="128"
227
227
  :append-to-body="false"
228
228
  trigger="click"
229
- popper-class="open-map-popper non-selectable"
229
+ popper-class="open-map-popper"
230
230
  >
231
- <el-row>
232
- <el-button
233
- type="primary"
234
- plain
235
- @click="$emit('open-map', 'AC')"
236
- >
237
- Open AC Map
238
- </el-button>
239
- </el-row>
240
- <el-row>
241
- <el-button
242
- type="primary"
243
- plain
244
- @click="$emit('open-map', 'FC')"
245
- >
246
- Open FC Map
247
- </el-button>
248
- </el-row>
249
- <el-row>
231
+ <el-row v-for="item in openMapOptions" :key="item.key">
250
232
  <el-button
251
233
  type="primary"
252
234
  plain
253
- @click="$emit('open-map', '3D')"
235
+ @click="$emit('open-map', item.key)"
254
236
  >
255
- Open 3D Map
237
+ {{item.display}}
256
238
  </el-button>
257
239
  </el-row>
258
240
  </el-popover>
@@ -292,7 +274,7 @@
292
274
  popper-class="scaffold-popper right-popper non-selectable"
293
275
  >
294
276
  <map-svg-icon
295
- v-if="enableOpenMapUI"
277
+ v-if="enableOpenMapUI && openMapOptions.lenght > 0"
296
278
  slot="reference"
297
279
  v-popover:open-map-popover
298
280
  icon="openMap"
@@ -488,6 +470,25 @@ export default {
488
470
  type: Boolean,
489
471
  default: false,
490
472
  },
473
+ openMapOptions: {
474
+ type: Array,
475
+ default: function () {
476
+ return [
477
+ {
478
+ display: "Open AC Map",
479
+ key: "AC"
480
+ },
481
+ {
482
+ display: "Open FC Map",
483
+ key: "FC"
484
+ },
485
+ {
486
+ display: "Open 3D Human Map",
487
+ key: "3D"
488
+ },
489
+ ]
490
+ },
491
+ },
491
492
  /**
492
493
  * State containing state of the scaffold.
493
494
  */
@@ -1621,8 +1622,8 @@ export default {
1621
1622
  background-color: #ffffff;
1622
1623
  border: 1px solid $app-primary-color;
1623
1624
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
1624
- width: 128px;
1625
- min-width: 128px;
1625
+ width: 178px;
1626
+ min-width: 178px;
1626
1627
 
1627
1628
  .el-row ~ .el-row {
1628
1629
  margin-top: 8px;