How to use the withModifiers function from vue

Find comprehensive JavaScript vue.withModifiers code examples handpicked from public code repositorys.

197
198
199
200
201
202
203
204
205
206
  class: ["el-select-dropdown__item", {
    'selected': _ctx.itemSelected,
    'is-disabled': _ctx.isDisabled,
    'hover': _ctx.hover}],
  onMouseenter: _cache[1] || (_cache[1] = (...args) => (_ctx.hoverItem && _ctx.hoverItem(...args))),
  onClick: _cache[2] || (_cache[2] = vue.withModifiers((...args) => (_ctx.selectOptionClick && _ctx.selectOptionClick(...args)), ["stop"]))
}, [
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
    vue.createVNode("span", null, vue.toDisplayString(_ctx.currentLabel), 1 /* TEXT */)
  ])
fork icon1
star icon2
watch icon1

98
99
100
101
102
103
104
105
106
107
      style: {
  'right': _ctx.styleRight,
  'bottom': _ctx.styleBottom
},
      class: "el-backtop",
      onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["stop"]))
    }, [
      vue.renderSlot(_ctx.$slots, "default", {}, () => [
        _hoisted_1
      ])
fork icon1
star icon2
watch icon1

182
183
184
185
186
187
188
189
190
191
  ]),
  (_ctx.showClose)
    ? (vue.openBlock(), vue.createBlock("div", {
        key: 1,
        class: "el-message__closeBtn el-icon-close",
        onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => (_ctx.close && _ctx.close(...args)), ["stop"]))
      }))
    : vue.createCommentVNode("v-if", true)
], 46 /* CLASS, STYLE, PROPS, HYDRATE_EVENTS */, ["id"]), [
  [vue.vShow, _ctx.visible]
fork icon1
star icon2
watch icon1