提交 144c9b69 编写于 作者: Q qiang

fix: $listeners

上级 0b5210ed
<template> <template>
<uni-editor <uni-editor
:id="id" :id="id"
class="ql-container" /> class="ql-container"
v-on="$listeners" />
</template> </template>
<script> <script>
......
<template> <template>
<uni-icon> <uni-icon v-on="$listeners">
<i <i
:class="`uni-icon-${type}`" :class="`uni-icon-${type}`"
:style="{'font-size': _converPx(size),'color': color}" :style="{'font-size': _converPx(size),'color': color}"
......
...@@ -182,12 +182,15 @@ export default { ...@@ -182,12 +182,15 @@ export default {
this.length = (this.$slots.default && this.$slots.default.length) || 0 this.length = (this.$slots.default && this.$slots.default.length) || 0
return createElement('uni-picker-view-column', { return createElement('uni-picker-view-column', {
on: { on: {
wheel: this._handleWheel on: this.$listeners
} }
}, [ }, [
createElement('div', { createElement('div', {
ref: 'main', ref: 'main',
staticClass: 'uni-picker-view-group' staticClass: 'uni-picker-view-group',
on: {
wheel: this._handleWheel
}
}, },
[ [
createElement('div', { createElement('div', {
......
...@@ -617,11 +617,11 @@ export default { ...@@ -617,11 +617,11 @@ export default {
} }
return createElement( return createElement(
'uni-swiper', 'uni-swiper', {
[createElement('div', {
ref: 'slidesWrapper',
'class': 'uni-swiper-wrapper',
on: this.$listeners on: this.$listeners
}, [createElement('div', {
ref: 'slidesWrapper',
'class': 'uni-swiper-wrapper'
}, slidesWrapperChild)] }, slidesWrapperChild)]
) )
} }
......
<template> <template>
<uni-picker @click.stop="_show"> <uni-picker
@click.stop="_show"
v-on="$listeners">
<slot /> <slot />
</uni-picker> </uni-picker>
</template> </template>
......
<template> <template>
<uni-web-view /> <uni-web-view v-on="$listeners"/>
</template> </template>
<script> <script>
import { import {
......
<template> <template>
<uni-map :id="id"> <uni-map
:id="id"
v-on="$listeners">
<div <div
ref="map" ref="map"
style="width: 100%; height: 100%; position: relative; overflow: hidden;" /> style="width: 100%; height: 100%; position: relative; overflow: hidden;" />
......
<template> <template>
<uni-picker @click.stop="_show"> <uni-picker
@click.stop="_show"
v-on="$listeners">
<div <div
ref="picker" ref="picker"
class="uni-picker-container" class="uni-picker-container"
......
<template> <template>
<uni-web-view /> <uni-web-view v-on="$listeners" />
</template> </template>
<script> <script>
export default { export default {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册