Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Moving items in el-transfer with double clicks #14086

Closed
maiolica opened this issue Jan 15, 2019 · 2 comments
Closed

[Feature Request] Moving items in el-transfer with double clicks #14086

maiolica opened this issue Jan 15, 2019 · 2 comments

Comments

@maiolica
Copy link

Existing Component

Yes

Component Name

el-transfer

Description

Would it be possible to move items from one column to the other using a double click as shortcut?

Thanks

@island205
Copy link
Contributor

pr welcome

@ehsanbagherzadegan
Copy link

ehsanbagherzadegan commented Feb 9, 2019

hi sorry i have quastion im new in vuejs i try fill data using axios from laravel backend but i cant do it if u have sample whit backend data pls send me my code is

<el-form-item>
                <el-transfer
                  filterable
                  :filter-method="filterMethod"
                  filter-placeholder="State Abbreviations"
                  v-model="value2"
              
                  :props="{
                      key:'name',
                      label: 'description',
                      initial:'name'
                    }"
                  :data="permission_options">
                </el-transfer>
</el-form-item>
  export default {
    data(){ 
      return{
            form: 
            {
              name: '',
              description: '',
              permissions: '',
            },            
            permission_options:[],
           value2: [],
            filterMethod(query, item) {
              return item.initial.toLowerCase().indexOf(query.toLowerCase()) > -1;
            }
          };
    },

and loading method is

loadUserPermission(){
          axios.get("../api/auth/permissions").then(({data})=>(this.permission_options = data.data)).catch(()=>{
            this.$message({
              title: '',
              message: error.respons.data.errors,
              center: true,
              type: 'error'
            });                
          });

@iamkun iamkun closed this as completed Feb 19, 2019
@iamkun iamkun reopened this Feb 19, 2019
@iamkun iamkun added the stale label Feb 19, 2019
@stale stale bot removed the stale label Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants