@ldmjs/ui 1.0.84 → 1.0.85

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -428,11 +428,13 @@ class BreadcrumbsComponent extends external_vue_property_decorator_.Vue {
428
428
  if (item.disabled) {
429
429
  return;
430
430
  }
431
- if (!this.$router) {
432
- /* eslint-disable no-console */
433
- console.error('Router is undefined');
431
+ if (this.$attrs.onOpen instanceof Function) {
432
+ this.$attrs.onOpen(item);
434
433
  return;
435
434
  }
435
+ if (!this.$router) {
436
+ throw new Error('Router is undefined');
437
+ }
436
438
  if (item.route) {
437
439
  this.$router.push(item.route);
438
440
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {