import Vue from 'vue';
export default Vue.extend({
  name: 'routable',
  props: {
    href: String,
    replace: Boolean,
    to: [String, Object]
  },
  methods: {
    routeLink: function routeLink() {
      var to = this.to,
          href = this.href,
          $router = this.$router,
          replace = this.replace;

      if (to && $router) {
        $router[replace ? 'replace' : 'push'](to);
      } else if (href) {
        replace ? location.replace(href) : location.href = href;
      }
    }
  }
});
//# sourceMappingURL=index.js.map