@appbaseio/reactivesearch-vue 1.16.0-alpha.31 → 1.16.0-alpha.32

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.
@@ -1239,7 +1239,8 @@ var GoogleMapMarker = {
1239
1239
  },
1240
1240
  data: function data() {
1241
1241
  return {
1242
- zIndex: 0
1242
+ zIndex: 0,
1243
+ markerIcon: null
1243
1244
  };
1244
1245
  },
1245
1246
  methods: {
@@ -1371,6 +1372,10 @@ var GoogleMapMarker = {
1371
1372
  }
1372
1373
 
1373
1374
  if (renderItem) {
1375
+ marker.setIcon = function (icon) {
1376
+ _this2.markerIcon = icon;
1377
+ };
1378
+
1374
1379
  var data = renderItem(marker);
1375
1380
 
1376
1381
  if ('label' in data) {
@@ -1428,12 +1433,12 @@ var GoogleMapMarker = {
1428
1433
  return h(Marker, {
1429
1434
  "key": marker._id,
1430
1435
  "attrs": {
1431
- "icon": markerProps.icon,
1432
1436
  "zIndex": markerProps.zIndex,
1433
1437
  "position": getPosition(marker),
1434
1438
  "options": {
1435
1439
  metaData: marker
1436
- }
1440
+ },
1441
+ "icon": this.markerIcon || markerProps.icon
1437
1442
  },
1438
1443
  "on": {
1439
1444
  "click": function click() {
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.16.0-alpha.31";
5
+ var version = "1.16.0-alpha.32";
6
6
 
7
7
  exports.default = version;
@@ -1231,7 +1231,8 @@ var GoogleMapMarker = {
1231
1231
  },
1232
1232
  data: function data() {
1233
1233
  return {
1234
- zIndex: 0
1234
+ zIndex: 0,
1235
+ markerIcon: null
1235
1236
  };
1236
1237
  },
1237
1238
  methods: {
@@ -1363,6 +1364,10 @@ var GoogleMapMarker = {
1363
1364
  }
1364
1365
 
1365
1366
  if (renderItem) {
1367
+ marker.setIcon = function (icon) {
1368
+ _this2.markerIcon = icon;
1369
+ };
1370
+
1366
1371
  var data = renderItem(marker);
1367
1372
 
1368
1373
  if ('label' in data) {
@@ -1420,12 +1425,12 @@ var GoogleMapMarker = {
1420
1425
  return h(Marker, {
1421
1426
  "key": marker._id,
1422
1427
  "attrs": {
1423
- "icon": markerProps.icon,
1424
1428
  "zIndex": markerProps.zIndex,
1425
1429
  "position": getPosition(marker),
1426
1430
  "options": {
1427
1431
  metaData: marker
1428
- }
1432
+ },
1433
+ "icon": this.markerIcon || markerProps.icon
1429
1434
  },
1430
1435
  "on": {
1431
1436
  "click": function click() {
@@ -1,3 +1,3 @@
1
- var version = "1.16.0-alpha.31";
1
+ var version = "1.16.0-alpha.32";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.16.0-alpha.31",
3
+ "version": "1.16.0-alpha.32",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",