Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wychl
uni-app
提交
144c9b69
U
uni-app
项目概览
wychl
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
144c9b69
编写于
12月 09, 2019
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: $listeners
上级
0b5210ed
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
49 addition
and
39 deletion
+49
-39
src/core/view/components/editor/index.vue
src/core/view/components/editor/index.vue
+2
-1
src/core/view/components/icon/index.vue
src/core/view/components/icon/index.vue
+1
-1
src/core/view/components/picker-view-column/index.vue
src/core/view/components/picker-view-column/index.vue
+12
-9
src/core/view/components/swiper/index.vue
src/core/view/components/swiper/index.vue
+4
-4
src/platforms/app-plus/view/components/picker/index.vue
src/platforms/app-plus/view/components/picker/index.vue
+3
-1
src/platforms/app-plus/view/components/web-view/index.vue
src/platforms/app-plus/view/components/web-view/index.vue
+12
-12
src/platforms/h5/view/components/map/index.vue
src/platforms/h5/view/components/map/index.vue
+3
-1
src/platforms/h5/view/components/picker/index.vue
src/platforms/h5/view/components/picker/index.vue
+3
-1
src/platforms/h5/view/components/web-view/index.vue
src/platforms/h5/view/components/web-view/index.vue
+9
-9
未找到文件。
src/core/view/components/editor/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-editor
:id=
"id"
class=
"ql-container"
/>
class=
"ql-container"
v-on=
"$listeners"
/>
</
template
>
<
script
>
...
...
src/core/view/components/icon/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-icon>
<uni-icon
v-on=
"$listeners"
>
<i
:class=
"`uni-icon-$
{type}`"
:style="{'font-size': _converPx(size),'color': color}"
...
...
src/core/view/components/picker-view-column/index.vue
浏览文件 @
144c9b69
...
...
@@ -96,9 +96,9 @@ export default {
if
(
this
.
_scroller
)
{
switch
(
e
.
detail
.
state
)
{
case
'
start
'
:
this
.
_handleTouchStart
(
e
)
disableScrollBounce
({
disable
:
true
this
.
_handleTouchStart
(
e
)
disableScrollBounce
({
disable
:
true
})
break
case
'
move
'
:
...
...
@@ -106,9 +106,9 @@ export default {
break
case
'
end
'
:
case
'
cancel
'
:
this
.
_handleTouchEnd
(
e
)
disableScrollBounce
({
disable
:
false
this
.
_handleTouchEnd
(
e
)
disableScrollBounce
({
disable
:
false
})
}
}
...
...
@@ -182,12 +182,15 @@ export default {
this
.
length
=
(
this
.
$slots
.
default
&&
this
.
$slots
.
default
.
length
)
||
0
return
createElement
(
'
uni-picker-view-column
'
,
{
on
:
{
wheel
:
this
.
_handleWheel
on
:
this
.
$listeners
}
},
[
createElement
(
'
div
'
,
{
ref
:
'
main
'
,
staticClass
:
'
uni-picker-view-group
'
staticClass
:
'
uni-picker-view-group
'
,
on
:
{
wheel
:
this
.
_handleWheel
}
},
[
createElement
(
'
div
'
,
{
...
...
@@ -332,4 +335,4 @@ export default {
height
:
1px
;
color
:
#e5e5e5
;
}
</
style
>
</
style
>
src/core/view/components/swiper/index.vue
浏览文件 @
144c9b69
...
...
@@ -617,11 +617,11 @@ export default {
}
return
createElement
(
'
uni-swiper
'
,
[
createElement
(
'
div
'
,
{
ref
:
'
slidesWrapper
'
,
'
class
'
:
'
uni-swiper-wrapper
'
,
'
uni-swiper
'
,
{
on
:
this
.
$listeners
},
[
createElement
(
'
div
'
,
{
ref
:
'
slidesWrapper
'
,
'
class
'
:
'
uni-swiper-wrapper
'
},
slidesWrapperChild
)]
)
}
...
...
src/platforms/app-plus/view/components/picker/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-picker
@
click.stop=
"_show"
>
<uni-picker
@
click.stop=
"_show"
v-on=
"$listeners"
>
<slot
/>
</uni-picker>
</
template
>
...
...
src/platforms/app-plus/view/components/web-view/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-web-view
/>
<uni-web-view
v-on=
"$listeners"
/>
</
template
>
<
script
>
import
{
WEBVIEW_INSERTED
,
<
script
>
import
{
WEBVIEW_INSERTED
,
WEBVIEW_REMOVED
}
from
'
../../../constants
'
let
webview
=
false
...
...
@@ -30,7 +30,7 @@ const insertHTMLWebView = ({
}
})
})
}
}
plus
.
webview
.
currentWebview
().
append
(
webview
)
}
...
...
@@ -50,9 +50,9 @@ const updateHTMLWebView = ({
color
:
webviewStyles
.
progress
.
color
}
})
}
}
webview
.
loadURL
(
realPath
)
}
}
const
removeHTMLWebView
=
()
=>
{
plus
.
webview
.
currentWebview
().
remove
(
webview
)
...
...
@@ -90,12 +90,12 @@ export default {
updateHTMLWebView
({
src
:
this
.
$getRealPath
(
this
.
src
),
webviewStyles
:
this
.
webviewStyles
})
UniViewJSBridge
.
publishHandler
(
WEBVIEW_INSERTED
,
{},
this
.
$page
.
id
)
})
UniViewJSBridge
.
publishHandler
(
WEBVIEW_INSERTED
,
{},
this
.
$page
.
id
)
},
beforeDestroy
()
{
removeHTMLWebView
()
UniViewJSBridge
.
publishHandler
(
WEBVIEW_REMOVED
,
{},
this
.
$page
.
id
)
removeHTMLWebView
()
UniViewJSBridge
.
publishHandler
(
WEBVIEW_REMOVED
,
{},
this
.
$page
.
id
)
}
}
</
script
>
...
...
@@ -107,4 +107,4 @@ export default {
top
:
0
;
bottom
:
0
;
}
</
style
>
</
style
>
src/platforms/h5/view/components/map/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-map
:id=
"id"
>
<uni-map
:id=
"id"
v-on=
"$listeners"
>
<div
ref=
"map"
style=
"width: 100%; height: 100%; position: relative; overflow: hidden;"
/>
...
...
src/platforms/h5/view/components/picker/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-picker
@
click.stop=
"_show"
>
<uni-picker
@
click.stop=
"_show"
v-on=
"$listeners"
>
<div
ref=
"picker"
class=
"uni-picker-container"
...
...
src/platforms/h5/view/components/web-view/index.vue
浏览文件 @
144c9b69
<
template
>
<uni-web-view
/>
<uni-web-view
v-on=
"$listeners"
/>
</
template
>
<
script
>
export
default
{
...
...
@@ -9,11 +9,11 @@ export default {
type
:
String
,
default
:
''
}
},
watch
:
{
src
(
val
,
oldVal
)
{
this
.
iframe
&&
(
this
.
iframe
.
src
=
this
.
$getRealPath
(
this
.
src
))
}
},
watch
:
{
src
(
val
,
oldVal
)
{
this
.
iframe
&&
(
this
.
iframe
.
src
=
this
.
$getRealPath
(
this
.
src
))
}
},
mounted
()
{
const
{
...
...
@@ -23,9 +23,9 @@ export default {
height
}
=
this
.
$el
.
getBoundingClientRect
()
this
.
iframe
=
document
.
createElement
(
'
iframe
'
)
this
.
iframe
=
document
.
createElement
(
'
iframe
'
)
this
.
iframe
.
style
.
position
=
'
absolute
'
this
.
iframe
.
style
.
display
=
'
block
'
this
.
iframe
.
style
.
display
=
'
block
'
this
.
iframe
.
style
.
border
=
0
this
.
iframe
.
style
.
top
=
top
+
'
px
'
this
.
iframe
.
style
.
bottom
=
bottom
+
'
px
'
...
...
@@ -54,4 +54,4 @@ export default {
top
:
0
;
bottom
:
0
;
}
</
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录