Languages
English
简体中文
home
Homepage
getting-started
开发指南
Npm 安装
Cdn
示例
快速上手
使用之前
推荐工程
引入 Vue-V-Xxx
更新日志
configurations
V-Call
拨打指令
API
V-Click-Out
外部点击指令
API
V-Copy
复制指令
API
V-Debounce
防抖指令
API
V-Drag
拖拽指令
API
V-Ellipsis
省略指令
API
V-Focus
聚焦指令
API
V-Pin
固定指令
API
V-Throttle
节流指令
API

v-click-out

使用基本说明


# 外部点击指令

内部

<template lang="pug">
.v-xxx
  div(style="border:1px solid red;width:200px;height:200px;" @click="handleClick" v-click-out="handleClickOut") {{name}}
</template>
<script>
  export default {
    name: 'v-click-out',
    data() {
      return {
        name: '内部'
      }
    },
    methods: {
      handleClick() {
        this.name = '您点击了内部'
      },
      handleClickOut() {
        this.name = '您点击了外部'
      }
    }
  }
</script>

# 说明

v-click-out 点击外部 dom 触发

# API

Name Type Description Required
value function 方法 ✔️
最后更新: 10/8/2019, 3:55:58 AM