njleonzhang / vue-data-tables

A simple, customizable and pageable table with SSR support, based on vue2 and element-ui
https://njleonzhang.github.io/vue-data-tables
MIT License
1.02k stars 221 forks source link

How to open actionCol in new tab #250

Closed robertnicjoo closed 4 years ago

robertnicjoo commented 4 years ago

Please follow the issue template, or your issue may be closed automatically.

For bug report, provide the following section

Online reproduce

It is important to provide an online sample to reproduce the issue.

Expected Behavior

Open visit link in new tab

Current Behavior

Visit link opens in same tab

Steps to Reproduce

actionCol: {
  label: 'Actions',
    props: {
      align: 'center',
      width:"230"
    },
    buttons: [{
    {
      props: {
        type: 'secondary',
        size: 'mini',
        icon: 'el-icon-thumb'
      },
      handler: row => {
        this.$router.push({ name: 'SingleProduct', params: { slug: row.slug } })
      },
      label: ''
   }
  }]
},

Screenshot (35)

Detailed Description

I just need to open my visit link in new tab same as target="_blank" if it was a tag.

For feature request, provide the following section

Motivation / Use Case

-

Expected Behavior

-

Other Information

-

robertnicjoo commented 4 years ago

no one has idea?

njleonzhang commented 4 years ago

it seems not a an question about this project. follow stackoverflow to solve your problem: https://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-and-not-a-new-window