How to use v-click-outside - 10 common examples

To help you get started, we’ve selected a few v-click-outside examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hello-efficiency-inc / raven-reader / src / renderer / components / ArticleToolbar.vue View on Github external
return this.article.read ? 'Mark as unread' : 'Mark as read'
    },
    pocketConnected () {
      return this.$store.state.Setting.pocket_connected
    }
  },
  watch: {
    '$route.fullPath': {
      immediate: true, // Immediate option to call watch handler on first mount
      handler () {
        this.resetData()
      }
    }
  },
  directives: {
    clickOutside: vClickOutside.directive
  },
  methods: {
    resetData () {
      this.original = false
      this.settingspanel = false
      this.$store.dispatch('turnOnFontSetting', false)
    },
    openOriginal (url) {
      this.original = !this.original
      this.$emit('openOriginalArticle', this.original, url)
    },
    hideTextConfig () {
      this.settingspanel = !this.settingspanel
      this.$store.dispatch('turnOnFontSetting', this.settingspanel)
    },
    changeFontStyle (fontStyle) {
github Cocos-BCX / CocosPayDesktop / src / renderer / components / app-header.vue View on Github external
//     delete el.__vueClickOutside__;
//   }
// };
import vClickOutside from "v-click-outside";
import Cocos from "../models/cocos";
import { mapState, mapMutations, mapActions } from "vuex";
import { setTimeout } from "timers";
export default {
  data() {
    return {
      selectAccount: false,
      list: []
    };
  },
  directives: {
    clickOutside: vClickOutside.directive
  },
  computed: {
    ...mapState(["cocosAccount", "isLocked", "accountType", "cocos"])
  },
  mounted() {
    this.loadAccounts();
  },
  // directives: { clickoutside },
  watch: {
    "cocosAccount.accounts"(val) {
      if (val) {
        this.loadAccounts();
      }
    }
  },
github zilpay / zil-pay / src / views / Send.vue View on Github external
import { ERRORCODE } from '../../lib/errors/code'

const BackBar = () => import('../components/BackBar');

async function nonContractSendTransaction(data) {
  const type = MTypesZilPay.CALL_SIGN_TX;
  const payload = data;
  await new Message({ type, payload }).send();  
}

export default {
  name: 'Send',
  mixins: [GasFee, clipboardMixin, AccountListing],
  components: { BackBar },
  directives: {
    clickOutside: vClickOutside.directive
  },
  data() {
    return {
      isAdvance: false,
      isInput: false,

      amount: 0,
      to: null,
      resolveDomain: null
    };
  },
  computed: {
    ...mapState('Static', [
      'network'
    ]),
    isWarning() {
github zilpay / zil-pay / src / components / Jumbotron.vue View on Github external
import fromZil from '../filters/from-zil'


export default {
  name: 'Jumbotron',
  components: { },
  mixins: [
    Jazzicon,
    clipboardMixin,
    AccountListing,
    explorer
  ],
  filters: { toConversion, fromZil },
  directives: {
    tooltip,
    clickOutside: vClickOutside.directive
  },
  data() {
    return {
      isDropdown: false
    };
  },
  computed: {
    ...mapState(['conversionRate']),
    ...mapState('Static', [
      'currency'
    ])
  },
  mounted() {
    this.jazziconMake(this.account.address, 'acc');
  },
  methods: {

v-click-outside

Vue directive to react on clicks outside an element

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular v-click-outside functions

Similar packages