Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
959060f0
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
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,发现更多精彩内容 >>
提交
959060f0
编写于
4月 02, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: image
上级
5b7fa2dd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
930 addition
and
110 deletion
+930
-110
packages/uni-components/src/components/image/index.vue
packages/uni-components/src/components/image/index.vue
+5
-5
packages/uni-h5/dist/assets/index-ca7b8a5a.css
packages/uni-h5/dist/assets/index-ca7b8a5a.css
+821
-0
packages/uni-h5/dist/uni-h5.esm.js
packages/uni-h5/dist/uni-h5.esm.js
+103
-101
packages/uni-h5/src/framework/plugin/index.ts
packages/uni-h5/src/framework/plugin/index.ts
+0
-3
packages/uni-h5/src/framework/plugin/provide/page.ts
packages/uni-h5/src/framework/plugin/provide/page.ts
+1
-1
未找到文件。
packages/uni-components/src/components/image/index.vue
浏览文件 @
959060f0
...
@@ -2,14 +2,11 @@
...
@@ -2,14 +2,11 @@
<uni-image
v-bind=
"$attrs"
>
<uni-image
v-bind=
"$attrs"
>
<div
ref=
"content"
:style=
"modeStyle"
/>
<div
ref=
"content"
:style=
"modeStyle"
/>
<img
:src=
"realImagePath"
/>
<img
:src=
"realImagePath"
/>
<v-uni-resize-sensor
<ResizeSensor
v-if=
"mode === 'widthFix'"
ref=
"sensor"
@
resize=
"_resize"
/>
v-if=
"mode === 'widthFix'"
ref=
"sensor"
@
resize=
"_resize"
/>
</uni-image>
</uni-image>
</
template
>
</
template
>
<
script
>
<
script
>
import
ResizeSensor
from
'
../resize-sensor/index.vue
'
import
{
getRealPath
}
from
'
@dcloudio/uni-platform
'
import
{
getRealPath
}
from
'
@dcloudio/uni-platform
'
export
default
{
export
default
{
name
:
'
Image
'
,
name
:
'
Image
'
,
...
@@ -111,6 +108,9 @@ export default {
...
@@ -111,6 +108,9 @@ export default {
}
}
},
},
},
},
components
:
{
ResizeSensor
,
},
mounted
()
{
mounted
()
{
this
.
availHeight
=
this
.
$el
.
style
.
height
||
''
this
.
availHeight
=
this
.
$el
.
style
.
height
||
''
this
.
_setContentImage
()
this
.
_setContentImage
()
...
...
packages/uni-h5/dist/assets/index-ca7b8a5a.css
0 → 100644
浏览文件 @
959060f0
uni-canvas
{
width
:
300px
;
height
:
150px
;
display
:
block
;
position
:
relative
;
}
uni-canvas
>
canvas
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
uni-checkbox-group
[
hidden
]
{
display
:
none
;
}
.ql-container
{
display
:
block
;
position
:
relative
;
box-sizing
:
border-box
;
-webkit-user-select
:
text
;
user-select
:
text
;
outline
:
none
;
overflow
:
hidden
;
width
:
100%
;
height
:
200px
;
min-height
:
200px
;
}
.ql-container
[
hidden
]
{
display
:
none
;
}
.ql-container
.ql-editor
{
position
:
relative
;
font-size
:
inherit
;
line-height
:
inherit
;
font-family
:
inherit
;
min-height
:
inherit
;
width
:
100%
;
height
:
100%
;
padding
:
0
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-touch-callout
:
none
;
-webkit-overflow-scrolling
:
touch
;
}
.ql-container
.ql-editor
::-webkit-scrollbar
{
width
:
0
!important
;
}
.ql-container
.ql-editor.scroll-disabled
{
overflow
:
hidden
;
}
.ql-container
.ql-image-overlay
{
display
:
flex
;
position
:
absolute
;
box-sizing
:
border-box
;
border
:
1px
dashed
#ccc
;
justify-content
:
center
;
align-items
:
center
;
-webkit-user-select
:
none
;
user-select
:
none
;
}
.ql-container
.ql-image-overlay
.ql-image-size
{
position
:
absolute
;
padding
:
4px
8px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#888
;
border
:
1px
solid
#ccc
;
box-sizing
:
border-box
;
opacity
:
0.8
;
right
:
4px
;
top
:
4px
;
font-size
:
12px
;
display
:
inline-block
;
width
:
auto
;
}
.ql-container
.ql-image-overlay
.ql-image-toolbar
{
position
:
relative
;
text-align
:
center
;
box-sizing
:
border-box
;
background
:
#000
;
border-radius
:
5px
;
color
:
#fff
;
font-size
:
0
;
min-height
:
24px
;
z-index
:
100
;
}
.ql-container
.ql-image-overlay
.ql-image-toolbar
span
{
display
:
inline-block
;
cursor
:
pointer
;
padding
:
5px
;
font-size
:
12px
;
border-right
:
1px
solid
#fff
;
}
.ql-container
.ql-image-overlay
.ql-image-toolbar
span
:last-child
{
border-right
:
0
;
}
.ql-container
.ql-image-overlay
.ql-image-toolbar
span
.triangle-up
{
padding
:
0
;
position
:
absolute
;
top
:
-12px
;
left
:
50%
;
transform
:
translatex
(
-50%
);
width
:
0
;
height
:
0
;
border-width
:
6px
;
border-style
:
solid
;
border-color
:
transparent
transparent
black
transparent
;
}
.ql-container
.ql-image-overlay
.ql-image-handle
{
position
:
absolute
;
height
:
12px
;
width
:
12px
;
border-radius
:
50%
;
border
:
1px
solid
#ccc
;
box-sizing
:
border-box
;
background
:
#fff
;
}
.ql-container
img
{
display
:
inline-block
;
max-width
:
100%
;
}
.ql-clipboard
p
{
margin
:
0
;
padding
:
0
;
}
.ql-editor
{
box-sizing
:
border-box
;
height
:
100%
;
outline
:
none
;
overflow-y
:
auto
;
tab-size
:
4
;
-moz-tab-size
:
4
;
text-align
:
left
;
white-space
:
pre-wrap
;
word-wrap
:
break-word
;
}
.ql-editor
>
*
{
cursor
:
text
;
}
.ql-editor
p
,
.ql-editor
ol
,
.ql-editor
ul
,
.ql-editor
pre
,
.ql-editor
blockquote
,
.ql-editor
h1
,
.ql-editor
h2
,
.ql-editor
h3
,
.ql-editor
h4
,
.ql-editor
h5
,
.ql-editor
h6
{
margin
:
0
;
padding
:
0
;
counter-reset
:
list-1
list-2
list-3
list-4
list-5
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
>
li
,
.ql-editor
ul
>
li
{
list-style-type
:
none
;
}
.ql-editor
ul
>
li
::before
{
content
:
'\2022'
;
}
.ql-editor
ul
[
data-checked
=
true
],
.ql-editor
ul
[
data-checked
=
false
]
{
pointer-events
:
none
;
}
.ql-editor
ul
[
data-checked
=
true
]
>
li
*,
.ql-editor
ul
[
data-checked
=
false
]
>
li
*
{
pointer-events
:
all
;
}
.ql-editor
ul
[
data-checked
=
true
]
>
li
::before
,
.ql-editor
ul
[
data-checked
=
false
]
>
li
::before
{
color
:
#777
;
cursor
:
pointer
;
pointer-events
:
all
;
}
.ql-editor
ul
[
data-checked
=
true
]
>
li
::before
{
content
:
'\2611'
;
}
.ql-editor
ul
[
data-checked
=
false
]
>
li
::before
{
content
:
'\2610'
;
}
.ql-editor
li
::before
{
display
:
inline-block
;
white-space
:
nowrap
;
width
:
2em
;
}
.ql-editor
ol
li
{
counter-reset
:
list-1
list-2
list-3
list-4
list-5
list-6
list-7
list-8
list-9
;
counter-increment
:
list-0
;
}
.ql-editor
ol
li
:before
{
content
:
counter
(
list-0
,
decimal
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-1
{
counter-increment
:
list-1
;
}
.ql-editor
ol
li
.ql-indent-1
:before
{
content
:
counter
(
list-1
,
lower-alpha
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-1
{
counter-reset
:
list-2
list-3
list-4
list-5
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-2
{
counter-increment
:
list-2
;
}
.ql-editor
ol
li
.ql-indent-2
:before
{
content
:
counter
(
list-2
,
lower-roman
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-2
{
counter-reset
:
list-3
list-4
list-5
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-3
{
counter-increment
:
list-3
;
}
.ql-editor
ol
li
.ql-indent-3
:before
{
content
:
counter
(
list-3
,
decimal
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-3
{
counter-reset
:
list-4
list-5
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-4
{
counter-increment
:
list-4
;
}
.ql-editor
ol
li
.ql-indent-4
:before
{
content
:
counter
(
list-4
,
lower-alpha
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-4
{
counter-reset
:
list-5
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-5
{
counter-increment
:
list-5
;
}
.ql-editor
ol
li
.ql-indent-5
:before
{
content
:
counter
(
list-5
,
lower-roman
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-5
{
counter-reset
:
list-6
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-6
{
counter-increment
:
list-6
;
}
.ql-editor
ol
li
.ql-indent-6
:before
{
content
:
counter
(
list-6
,
decimal
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-6
{
counter-reset
:
list-7
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-7
{
counter-increment
:
list-7
;
}
.ql-editor
ol
li
.ql-indent-7
:before
{
content
:
counter
(
list-7
,
lower-alpha
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-7
{
counter-reset
:
list-8
list-9
;
}
.ql-editor
ol
li
.ql-indent-8
{
counter-increment
:
list-8
;
}
.ql-editor
ol
li
.ql-indent-8
:before
{
content
:
counter
(
list-8
,
lower-roman
)
'. '
;
}
.ql-editor
ol
li
.ql-indent-8
{
counter-reset
:
list-9
;
}
.ql-editor
ol
li
.ql-indent-9
{
counter-increment
:
list-9
;
}
.ql-editor
ol
li
.ql-indent-9
:before
{
content
:
counter
(
list-9
,
decimal
)
'. '
;
}
.ql-editor
.ql-indent-1
:not
(
.ql-direction-rtl
)
{
padding-left
:
2em
;
}
.ql-editor
li
.ql-indent-1
:not
(
.ql-direction-rtl
)
{
padding-left
:
2em
;
}
.ql-editor
.ql-indent-1.ql-direction-rtl.ql-align-right
{
padding-right
:
2em
;
}
.ql-editor
li
.ql-indent-1.ql-direction-rtl.ql-align-right
{
padding-right
:
2em
;
}
.ql-editor
.ql-indent-2
:not
(
.ql-direction-rtl
)
{
padding-left
:
4em
;
}
.ql-editor
li
.ql-indent-2
:not
(
.ql-direction-rtl
)
{
padding-left
:
4em
;
}
.ql-editor
.ql-indent-2.ql-direction-rtl.ql-align-right
{
padding-right
:
4em
;
}
.ql-editor
li
.ql-indent-2.ql-direction-rtl.ql-align-right
{
padding-right
:
4em
;
}
.ql-editor
.ql-indent-3
:not
(
.ql-direction-rtl
)
{
padding-left
:
6em
;
}
.ql-editor
li
.ql-indent-3
:not
(
.ql-direction-rtl
)
{
padding-left
:
6em
;
}
.ql-editor
.ql-indent-3.ql-direction-rtl.ql-align-right
{
padding-right
:
6em
;
}
.ql-editor
li
.ql-indent-3.ql-direction-rtl.ql-align-right
{
padding-right
:
6em
;
}
.ql-editor
.ql-indent-4
:not
(
.ql-direction-rtl
)
{
padding-left
:
8em
;
}
.ql-editor
li
.ql-indent-4
:not
(
.ql-direction-rtl
)
{
padding-left
:
8em
;
}
.ql-editor
.ql-indent-4.ql-direction-rtl.ql-align-right
{
padding-right
:
8em
;
}
.ql-editor
li
.ql-indent-4.ql-direction-rtl.ql-align-right
{
padding-right
:
8em
;
}
.ql-editor
.ql-indent-5
:not
(
.ql-direction-rtl
)
{
padding-left
:
10em
;
}
.ql-editor
li
.ql-indent-5
:not
(
.ql-direction-rtl
)
{
padding-left
:
10em
;
}
.ql-editor
.ql-indent-5.ql-direction-rtl.ql-align-right
{
padding-right
:
10em
;
}
.ql-editor
li
.ql-indent-5.ql-direction-rtl.ql-align-right
{
padding-right
:
10em
;
}
.ql-editor
.ql-indent-6
:not
(
.ql-direction-rtl
)
{
padding-left
:
12em
;
}
.ql-editor
li
.ql-indent-6
:not
(
.ql-direction-rtl
)
{
padding-left
:
12em
;
}
.ql-editor
.ql-indent-6.ql-direction-rtl.ql-align-right
{
padding-right
:
12em
;
}
.ql-editor
li
.ql-indent-6.ql-direction-rtl.ql-align-right
{
padding-right
:
12em
;
}
.ql-editor
.ql-indent-7
:not
(
.ql-direction-rtl
)
{
padding-left
:
14em
;
}
.ql-editor
li
.ql-indent-7
:not
(
.ql-direction-rtl
)
{
padding-left
:
14em
;
}
.ql-editor
.ql-indent-7.ql-direction-rtl.ql-align-right
{
padding-right
:
14em
;
}
.ql-editor
li
.ql-indent-7.ql-direction-rtl.ql-align-right
{
padding-right
:
14em
;
}
.ql-editor
.ql-indent-8
:not
(
.ql-direction-rtl
)
{
padding-left
:
16em
;
}
.ql-editor
li
.ql-indent-8
:not
(
.ql-direction-rtl
)
{
padding-left
:
16em
;
}
.ql-editor
.ql-indent-8.ql-direction-rtl.ql-align-right
{
padding-right
:
16em
;
}
.ql-editor
li
.ql-indent-8.ql-direction-rtl.ql-align-right
{
padding-right
:
16em
;
}
.ql-editor
.ql-indent-9
:not
(
.ql-direction-rtl
)
{
padding-left
:
18em
;
}
.ql-editor
li
.ql-indent-9
:not
(
.ql-direction-rtl
)
{
padding-left
:
18em
;
}
.ql-editor
.ql-indent-9.ql-direction-rtl.ql-align-right
{
padding-right
:
18em
;
}
.ql-editor
li
.ql-indent-9.ql-direction-rtl.ql-align-right
{
padding-right
:
18em
;
}
.ql-editor
.ql-direction-rtl
{
direction
:
rtl
;
text-align
:
inherit
;
}
.ql-editor
.ql-align-center
{
text-align
:
center
;
}
.ql-editor
.ql-align-justify
{
text-align
:
justify
;
}
.ql-editor
.ql-align-right
{
text-align
:
right
;
}
.ql-editor.ql-blank
::before
{
color
:
rgba
(
0
,
0
,
0
,
0.6
);
content
:
attr
(
data-placeholder
);
font-style
:
italic
;
pointer-events
:
none
;
position
:
absolute
;
}
.ql-container.ql-disabled
.ql-editor
ul
[
data-checked
]
>
li
::before
{
pointer-events
:
none
;
}
.ql-clipboard
{
left
:
-100000px
;
height
:
1px
;
overflow-y
:
hidden
;
position
:
absolute
;
top
:
50%
;
}
@keyframes
once-show
{
from
{
top
:
0
;
}
}
uni-resize-sensor
,
uni-resize-sensor
>
div
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
overflow
:
hidden
;
}
uni-resize-sensor
{
display
:
block
;
z-index
:
-1
;
visibility
:
hidden
;
animation
:
once-show
1ms
;
}
uni-resize-sensor
>
div
>
div
{
position
:
absolute
;
left
:
0
;
top
:
0
;
}
uni-resize-sensor
>
div
:first-child
>
div
{
width
:
100000px
;
height
:
100000px
;
}
uni-resize-sensor
>
div
:last-child
>
div
{
width
:
200%
;
height
:
200%
;
}
.uni-label-pointer
{
cursor
:
pointer
;
}
uni-movable-view
{
display
:
inline-block
;
width
:
10px
;
height
:
10px
;
top
:
0px
;
left
:
0px
;
position
:
absolute
;
cursor
:
grab
;
}
uni-movable-view
[
hidden
]
{
display
:
none
;
}
uni-radio
{
-webkit-tap-highlight-color
:
transparent
;
display
:
inline-block
;
cursor
:
pointer
;
}
uni-radio
[
hidden
]
{
display
:
none
;
}
uni-radio
[
disabled
]
{
cursor
:
not-allowed
;
}
uni-radio
.uni-radio-wrapper
{
display
:
-webkit-inline-flex
;
display
:
inline-flex
;
-webkit-align-items
:
center
;
align-items
:
center
;
vertical-align
:
middle
;
}
uni-radio
.uni-radio-input
{
-webkit-appearance
:
none
;
appearance
:
none
;
margin-right
:
5px
;
outline
:
0
;
border
:
1px
solid
#D1D1D1
;
background-color
:
#ffffff
;
border-radius
:
50%
;
width
:
22px
;
height
:
22px
;
position
:
relative
;
}
uni-radio
:not
([
disabled
])
.uni-radio-input
:hover
{
border-color
:
#007aff
;
}
uni-radio
.uni-radio-input.uni-radio-input-checked
:before
{
font
:
normal
normal
normal
14px
/
1
"uni"
;
content
:
"\EA08"
;
color
:
#ffffff
;
font-size
:
18px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-48%
)
scale
(
0.73
);
-webkit-transform
:
translate
(
-50%
,
-48%
)
scale
(
0.73
);
}
uni-radio
.uni-radio-input.uni-radio-input-disabled
{
background-color
:
#E1E1E1
;
border-color
:
#D1D1D1
;
}
uni-radio
.uni-radio-input.uni-radio-input-disabled
:before
{
color
:
#ADADAD
;
}
uni-radio-group
{
display
:
block
;
}
uni-radio-group
[
hidden
]
{
display
:
none
;
}
uni-scroll-view
{
display
:
block
;
width
:
100%
;
}
uni-scroll-view
[
hidden
]
{
display
:
none
;
}
.uni-scroll-view
{
position
:
relative
;
-webkit-overflow-scrolling
:
touch
;
width
:
100%
;
/* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */
height
:
100%
;
max-height
:
inherit
;
}
.uni-scroll-view-content
{
width
:
100%
;
height
:
100%
;
}
.uni-scroll-view-refresher
{
position
:
relative
;
overflow
:
hidden
;
}
.uni-scroll-view-refresh
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
}
.uni-scroll-view-refresh-inner
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
line-height
:
0
;
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
background-color
:
#fff
;
box-shadow
:
0
1px
6px
rgba
(
0
,
0
,
0
,
0.117647
),
0
1px
4px
rgba
(
0
,
0
,
0
,
0.117647
);
}
.uni-scroll-view-refresh__spinner
{
transform-origin
:
center
center
;
animation
:
uni-scroll-view-refresh-rotate
2s
linear
infinite
;
}
.uni-scroll-view-refresh__spinner
>
circle
{
stroke
:
currentColor
;
stroke-linecap
:
round
;
animation
:
uni-scroll-view-refresh-dash
2s
linear
infinite
;
}
@keyframes
uni-scroll-view-refresh-rotate
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
@keyframes
uni-scroll-view-refresh-dash
{
0
%
{
stroke-dasharray
:
1
,
200
;
stroke-dashoffset
:
0
;
}
50
%
{
stroke-dasharray
:
89
,
200
;
stroke-dashoffset
:
-35px
;
}
100
%
{
stroke-dasharray
:
89
,
200
;
stroke-dashoffset
:
-124px
;
}
}
uni-swiper-item
{
display
:
block
;
overflow
:
hidden
;
will-change
:
transform
;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
cursor
:
grab
;
}
uni-swiper-item
[
hidden
]
{
display
:
none
;
}
uni-switch
{
-webkit-tap-highlight-color
:
transparent
;
display
:
inline-block
;
cursor
:
pointer
;
}
uni-switch
[
hidden
]
{
display
:
none
;
}
uni-switch
[
disabled
]
{
cursor
:
not-allowed
;
}
uni-switch
.uni-switch-wrapper
{
display
:
-webkit-inline-flex
;
display
:
inline-flex
;
-webkit-align-items
:
center
;
align-items
:
center
;
vertical-align
:
middle
;
}
uni-switch
.uni-switch-input
{
-webkit-appearance
:
none
;
appearance
:
none
;
position
:
relative
;
width
:
52px
;
height
:
32px
;
margin-right
:
5px
;
border
:
1px
solid
#DFDFDF
;
outline
:
0
;
border-radius
:
16px
;
box-sizing
:
border-box
;
background-color
:
#DFDFDF
;
transition
:
background-color
0.1s
,
border
0.1s
;
}
uni-switch
[
disabled
]
.uni-switch-input
{
opacity
:
.7
;
}
uni-switch
.uni-switch-input
:before
{
content
:
" "
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
50px
;
height
:
30px
;
border-radius
:
15px
;
background-color
:
#FDFDFD
;
transition
:
-webkit-transform
0.3s
;
transition
:
transform
0.3s
;
transition
:
transform
0.3s
,
-webkit-transform
0.3s
;
}
uni-switch
.uni-switch-input
:after
{
content
:
" "
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
background-color
:
#FFFFFF
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
);
transition
:
-webkit-transform
0.3s
;
transition
:
transform
0.3s
;
transition
:
transform
0.3s
,
-webkit-transform
0.3s
;
}
uni-switch
.uni-switch-input.uni-switch-input-checked
{
border-color
:
#007aff
;
background-color
:
#007aff
;
}
uni-switch
.uni-switch-input.uni-switch-input-checked
:before
{
-webkit-transform
:
scale
(
0
);
transform
:
scale
(
0
);
}
uni-switch
.uni-switch-input.uni-switch-input-checked
:after
{
-webkit-transform
:
translateX
(
20px
);
transform
:
translateX
(
20px
);
}
uni-switch
.uni-checkbox-input
{
margin-right
:
5px
;
-webkit-appearance
:
none
;
appearance
:
none
;
outline
:
0
;
border
:
1px
solid
#D1D1D1
;
background-color
:
#FFFFFF
;
border-radius
:
3px
;
width
:
22px
;
height
:
22px
;
position
:
relative
;
color
:
#007aff
;
}
uni-switch
:not
([
disabled
])
.uni-checkbox-input
:hover
{
border-color
:
#007aff
;
}
uni-switch
.uni-checkbox-input.uni-checkbox-input-checked
:before
{
font
:
normal
normal
normal
14px
/
1
"uni"
;
content
:
"\EA08"
;
color
:
inherit
;
font-size
:
22px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-48%
)
scale
(
0.73
);
-webkit-transform
:
translate
(
-50%
,
-48%
)
scale
(
0.73
);
}
uni-switch
.uni-checkbox-input.uni-checkbox-input-disabled
{
background-color
:
#E1E1E1
;
}
uni-switch
.uni-checkbox-input.uni-checkbox-input-disabled
:before
{
color
:
#ADADAD
;
}
uni-textarea
{
width
:
300px
;
height
:
150px
;
display
:
block
;
position
:
relative
;
font-size
:
16px
;
line-height
:
normal
;
white-space
:
pre-wrap
;
word-break
:
break-all
;
}
uni-textarea
[
hidden
]
{
display
:
none
;
}
.uni-textarea-wrapper
,
.uni-textarea-placeholder
,
.uni-textarea-line
,
.uni-textarea-compute
,
.uni-textarea-textarea
{
outline
:
none
;
border
:
none
;
padding
:
0
;
margin
:
0
;
text-decoration
:
inherit
;
}
.uni-textarea-wrapper
{
display
:
block
;
position
:
relative
;
width
:
100%
;
height
:
100%
;
}
.uni-textarea-placeholder
,
.uni-textarea-line
,
.uni-textarea-compute
,
.uni-textarea-textarea
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
left
:
0
;
top
:
0
;
white-space
:
inherit
;
word-break
:
inherit
;
}
.uni-textarea-placeholder
{
color
:
grey
;
overflow
:
hidden
;
}
.uni-textarea-line
,
.uni-textarea-compute
{
visibility
:
hidden
;
height
:
auto
;
}
.uni-textarea-line
{
width
:
1em
;
}
.uni-textarea-textarea
{
resize
:
none
;
background
:
none
;
color
:
inherit
;
opacity
:
1
;
-webkit-text-fill-color
:
currentcolor
;
font
:
inherit
;
line-height
:
inherit
;
letter-spacing
:
inherit
;
text-align
:
inherit
;
text-indent
:
inherit
;
text-transform
:
inherit
;
text-shadow
:
inherit
;
}
/* 用于解决 iOS textarea 内部默认边距 */
.uni-textarea-textarea-fix-margin
{
width
:
auto
;
right
:
0
;
margin
:
0
-3px
;
}
.uni-async-error
{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
color
:
#999
;
padding
:
100px
10px
;
text-align
:
center
;
}
.uni-async-loading
{
box-sizing
:
border-box
;
width
:
100%
;
padding
:
50px
;
text-align
:
center
;
}
.uni-async-loading
.uni-loading
{
width
:
30px
;
height
:
30px
;
}
packages/uni-h5/dist/uni-h5.esm.js
浏览文件 @
959060f0
import
{
isFunction
,
extend
,
isPlainObject
,
hasOwn
as
hasOwn$1
,
hyphenate
,
isArray
,
isObject
as
isObject$1
,
capitalize
,
toRawType
,
makeMap
as
makeMap$1
,
isPromise
}
from
"
@vue/shared
"
;
import
{
isFunction
,
extend
,
isPlainObject
,
hasOwn
as
hasOwn$1
,
hyphenate
,
isArray
,
isObject
as
isObject$1
,
capitalize
,
toRawType
,
makeMap
as
makeMap$1
,
isPromise
}
from
"
@vue/shared
"
;
import
{
injectHook
,
createVNode
,
defineComponent
,
inject
,
provide
,
reactive
,
computed
,
nextTick
,
withDirectives
,
vShow
,
withCtx
,
openBlock
,
createBlock
,
KeepAlive
,
resolveDynamicComponent
,
resolveComponent
,
onMounted
,
ref
,
mergeProps
,
toDisplayString
,
toHandlers
,
renderSlot
,
createCommentVNode
,
withModifiers
,
vModelDynamic
,
createTextVNode
,
Fragment
,
renderList
,
vModelText
}
from
"
vue
"
;
import
{
injectHook
,
createVNode
,
defineComponent
,
inject
,
provide
,
reactive
,
computed
,
nextTick
,
withDirectives
,
vShow
,
withCtx
,
openBlock
,
createBlock
,
KeepAlive
,
resolveDynamicComponent
,
resolveComponent
,
onMounted
,
ref
,
mergeProps
,
toDisplayString
,
toHandlers
,
renderSlot
,
createCommentVNode
,
withModifiers
,
vModelDynamic
,
createTextVNode
,
Fragment
,
renderList
,
vModelText
}
from
"
vue
"
;
import
{
NAVBAR_HEIGHT
,
COMPONENT_NAME_PREFIX
,
isCustomElement
,
plusReady
,
debounce
,
PRIMARY_COLOR
}
from
"
@dcloudio/uni-shared
"
;
import
{
createRouter
,
createWebHistory
,
createWebHashHistory
,
useRoute
,
RouterView
,
isNavigationFailure
}
from
"
vue-router
"
;
import
{
createRouter
,
createWebHistory
,
createWebHashHistory
,
useRoute
,
RouterView
,
isNavigationFailure
}
from
"
vue-router
"
;
import
{
NAVBAR_HEIGHT
,
COMPONENT_NAME_PREFIX
,
plusReady
,
debounce
,
PRIMARY_COLOR
}
from
"
@dcloudio/uni-shared
"
;
function
applyOptions
(
options
,
instance2
,
publicThis
)
{
function
applyOptions
(
options
,
instance2
,
publicThis
)
{
Object
.
keys
(
options
).
forEach
((
name
)
=>
{
Object
.
keys
(
options
).
forEach
((
name
)
=>
{
if
(
name
.
indexOf
(
"
on
"
)
===
0
)
{
if
(
name
.
indexOf
(
"
on
"
)
===
0
)
{
...
@@ -784,7 +784,7 @@ function initPageMeta() {
...
@@ -784,7 +784,7 @@ function initPageMeta() {
if
(
__UNI_FEATURE_PAGES__
)
{
if
(
__UNI_FEATURE_PAGES__
)
{
return
reactive
(
normalizePageMeta
(
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
useRoute
().
meta
)))));
return
reactive
(
normalizePageMeta
(
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
useRoute
().
meta
)))));
}
}
return
reactive
(
normalizePageMeta
(
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
__uniRoutes
[
1
].
meta
)))));
return
reactive
(
normalizePageMeta
(
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
__uniRoutes
[
0
].
meta
)))));
}
}
const
PAGE_META_KEYS
=
[
const
PAGE_META_KEYS
=
[
"
navigationBar
"
,
"
navigationBar
"
,
...
@@ -1135,7 +1135,6 @@ function initMixin(app) {
...
@@ -1135,7 +1135,6 @@ function initMixin(app) {
}
}
var
index$3
=
{
var
index$3
=
{
install
(
app
)
{
install
(
app
)
{
app
.
_context
.
config
.
isCustomElement
=
isCustomElement
;
initApp$1
(
app
);
initApp$1
(
app
);
initView
(
app
);
initView
(
app
);
initService
(
app
);
initService
(
app
);
...
@@ -3335,6 +3334,80 @@ var index$2 = defineComponent({
...
@@ -3335,6 +3334,80 @@ var index$2 = defineComponent({
return
()
=>
createVNode
(
"
uni-icon
"
,
null
,
[
path
.
value
.
d
&&
createSvgIconVNode
(
path
.
value
.
d
,
props
.
color
||
path
.
value
.
c
,
rpx2px
(
props
.
size
))]);
return
()
=>
createVNode
(
"
uni-icon
"
,
null
,
[
path
.
value
.
d
&&
createSvgIconVNode
(
path
.
value
.
d
,
props
.
color
||
path
.
value
.
c
,
rpx2px
(
props
.
size
))]);
}
}
});
});
var
index_vue_vue_type_style_index_0_lang$a
=
"
\n
@keyframes once-show {
\n
from {
\n
top: 0;
\n
}
\n
}
\n
uni-resize-sensor,
\n
uni-resize-sensor > div {
\n
position: absolute;
\n
left: 0;
\n
top: 0;
\n
right: 0;
\n
bottom: 0;
\n
overflow: hidden;
\n
}
\n
uni-resize-sensor {
\n
display: block;
\n
z-index: -1;
\n
visibility: hidden;
\n
animation: once-show 1ms;
\n
}
\n
uni-resize-sensor > div > div {
\n
position: absolute;
\n
left: 0;
\n
top: 0;
\n
}
\n
uni-resize-sensor > div:first-child > div {
\n
width: 100000px;
\n
height: 100000px;
\n
}
\n
uni-resize-sensor > div:last-child > div {
\n
width: 200%;
\n
height: 200%;
\n
}
\n
"
;
const
_sfc_main$i
=
{
name
:
"
ResizeSensor
"
,
props
:
{
initial
:
{
type
:
[
Boolean
,
String
],
default
:
false
}
},
data
:
function
()
{
return
{
size
:
{
width
:
-
1
,
height
:
-
1
}
};
},
watch
:
{
size
:
{
deep
:
true
,
handler
:
function
(
size
)
{
this
.
$emit
(
"
resize
"
,
Object
.
assign
({},
size
));
}
}
},
mounted
:
function
()
{
if
(
this
.
initial
===
true
)
{
this
.
$nextTick
(
this
.
update
);
}
if
(
this
.
$el
.
offsetParent
!==
this
.
$el
.
parentNode
)
{
this
.
$el
.
parentNode
.
style
.
position
=
"
relative
"
;
}
if
(
!
(
"
AnimationEvent
"
in
window
))
{
this
.
reset
();
}
},
methods
:
{
reset
:
function
()
{
var
expand
=
this
.
$el
.
firstChild
;
var
shrink
=
this
.
$el
.
lastChild
;
expand
.
scrollLeft
=
1
e5
;
expand
.
scrollTop
=
1
e5
;
shrink
.
scrollLeft
=
1
e5
;
shrink
.
scrollTop
=
1
e5
;
},
update
:
function
()
{
this
.
size
.
width
=
this
.
$el
.
offsetWidth
;
this
.
size
.
height
=
this
.
$el
.
offsetHeight
;
this
.
reset
();
}
},
render
:
function
(
create
)
{
return
create
(
"
uni-resize-sensor
"
,
{
on
:
{
"
~animationstart
"
:
this
.
update
}
},
[
create
(
"
div
"
,
{
on
:
{
scroll
:
this
.
update
}
},
[
create
(
"
div
"
)
]),
create
(
"
div
"
,
{
on
:
{
scroll
:
this
.
update
}
},
[
create
(
"
div
"
)
])
]);
}
};
const
SCHEME_RE
=
/^
([
a-z-
]
+:
)?\/\/
/i
;
const
SCHEME_RE
=
/^
([
a-z-
]
+:
)?\/\/
/i
;
const
DATA_RE
=
/^data:.*,.*/
;
const
DATA_RE
=
/^data:.*,.*/
;
function
addBase
(
filePath
)
{
function
addBase
(
filePath
)
{
...
@@ -3396,7 +3469,7 @@ function getBaseSystemInfo() {
...
@@ -3396,7 +3469,7 @@ function getBaseSystemInfo() {
windowWidth
windowWidth
};
};
}
}
const
_sfc_main$
i
=
{
const
_sfc_main$
h
=
{
name
:
"
Image
"
,
name
:
"
Image
"
,
props
:
{
props
:
{
src
:
{
src
:
{
...
@@ -3491,6 +3564,9 @@ const _sfc_main$i = {
...
@@ -3491,6 +3564,9 @@ const _sfc_main$i = {
}
}
}
}
},
},
components
:
{
ResizeSensor
:
_sfc_main$i
},
mounted
()
{
mounted
()
{
this
.
availHeight
=
this
.
$el
.
style
.
height
||
""
;
this
.
availHeight
=
this
.
$el
.
style
.
height
||
""
;
this
.
_setContentImage
();
this
.
_setContentImage
();
...
@@ -3548,24 +3624,24 @@ const _sfc_main$i = {
...
@@ -3548,24 +3624,24 @@ const _sfc_main$i = {
}
}
};
};
function
_sfc_render$h
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
_sfc_render$h
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
const
_component_
v_uni_resize_sensor
=
resolveComponent
(
"
v-uni-resize-s
ensor
"
);
const
_component_
ResizeSensor
=
resolveComponent
(
"
ResizeS
ensor
"
);
return
openBlock
(),
createBlock
(
"
uni-image
"
,
_ctx
.
$attrs
,
[
return
openBlock
(),
createBlock
(
"
uni-image
"
,
_ctx
.
$attrs
,
[
createVNode
(
"
div
"
,
{
createVNode
(
"
div
"
,
{
ref
:
"
content
"
,
ref
:
"
content
"
,
style
:
$options
.
modeStyle
style
:
$options
.
modeStyle
},
null
,
4
),
},
null
,
4
),
createVNode
(
"
img
"
,
{
src
:
$options
.
realImagePath
},
null
,
8
,
[
"
src
"
]),
createVNode
(
"
img
"
,
{
src
:
$options
.
realImagePath
},
null
,
8
,
[
"
src
"
]),
$props
.
mode
===
"
widthFix
"
?
(
openBlock
(),
createBlock
(
_component_
v_uni_resize_s
ensor
,
{
$props
.
mode
===
"
widthFix
"
?
(
openBlock
(),
createBlock
(
_component_
ResizeS
ensor
,
{
key
:
0
,
key
:
0
,
ref
:
"
sensor
"
,
ref
:
"
sensor
"
,
onResize
:
$options
.
_resize
onResize
:
$options
.
_resize
},
null
,
8
,
[
"
onResize
"
]))
:
createCommentVNode
(
""
,
true
)
},
null
,
8
,
[
"
onResize
"
]))
:
createCommentVNode
(
""
,
true
)
],
16
);
],
16
);
}
}
_sfc_main$
i
.
render
=
_sfc_render$h
;
_sfc_main$
h
.
render
=
_sfc_render$h
;
const
INPUT_TYPES
=
[
"
text
"
,
"
number
"
,
"
idcard
"
,
"
digit
"
,
"
password
"
];
const
INPUT_TYPES
=
[
"
text
"
,
"
number
"
,
"
idcard
"
,
"
digit
"
,
"
password
"
];
const
NUMBER_TYPES
=
[
"
number
"
,
"
digit
"
];
const
NUMBER_TYPES
=
[
"
number
"
,
"
digit
"
];
const
_sfc_main$
h
=
{
const
_sfc_main$
g
=
{
name
:
"
Input
"
,
name
:
"
Input
"
,
mixins
:
[
baseInput
],
mixins
:
[
baseInput
],
props
:
{
props
:
{
...
@@ -3783,9 +3859,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -3783,9 +3859,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
],
512
)
],
512
)
],
16
);
],
16
);
}
}
_sfc_main$
h
.
render
=
_sfc_render$g
;
_sfc_main$
g
.
render
=
_sfc_render$g
;
var
index_vue_vue_type_style_index_0_lang$
a
=
"
\n
.uni-label-pointer {
\r\n
cursor: pointer;
\n
}
\r\n
"
;
var
index_vue_vue_type_style_index_0_lang$
9
=
"
\n
.uni-label-pointer {
\r\n
cursor: pointer;
\n
}
\r\n
"
;
const
_sfc_main$
g
=
{
const
_sfc_main$
f
=
{
name
:
"
Label
"
,
name
:
"
Label
"
,
mixins
:
[
emitter
],
mixins
:
[
emitter
],
props
:
{
props
:
{
...
@@ -3825,7 +3901,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -3825,7 +3901,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
],
16
);
}
}
_sfc_main$
g
.
render
=
_sfc_render$f
;
_sfc_main$
f
.
render
=
_sfc_render$f
;
const
addListenerToElement
=
function
(
element
,
type
,
callback
,
capture
)
{
const
addListenerToElement
=
function
(
element
,
type
,
callback
,
capture
)
{
element
.
addEventListener
(
type
,
(
$event
)
=>
{
element
.
addEventListener
(
type
,
(
$event
)
=>
{
if
(
typeof
callback
===
"
function
"
)
{
if
(
typeof
callback
===
"
function
"
)
{
...
@@ -4231,7 +4307,7 @@ STD.prototype.reconfigure = function(e2, t2, n) {
...
@@ -4231,7 +4307,7 @@ STD.prototype.reconfigure = function(e2, t2, n) {
this
.
_springY
.
reconfigure
(
e2
,
t2
,
n
);
this
.
_springY
.
reconfigure
(
e2
,
t2
,
n
);
this
.
_springScale
.
reconfigure
(
e2
,
t2
,
n
);
this
.
_springScale
.
reconfigure
(
e2
,
t2
,
n
);
};
};
var
index_vue_vue_type_style_index_0_lang$
9
=
"
\n
uni-movable-view {
\n
display: inline-block;
\n
width: 10px;
\n
height: 10px;
\n
top: 0px;
\n
left: 0px;
\n
position: absolute;
\n
cursor: grab;
\n
}
\n
uni-movable-view[hidden] {
\n
display: none;
\n
}
\n
"
;
var
index_vue_vue_type_style_index_0_lang$
8
=
"
\n
uni-movable-view {
\n
display: inline-block;
\n
width: 10px;
\n
height: 10px;
\n
top: 0px;
\n
left: 0px;
\n
position: absolute;
\n
cursor: grab;
\n
}
\n
uni-movable-view[hidden] {
\n
display: none;
\n
}
\n
"
;
var
requesting
=
false
;
var
requesting
=
false
;
function
_requestAnimationFrame
(
e2
)
{
function
_requestAnimationFrame
(
e2
)
{
if
(
!
requesting
)
{
if
(
!
requesting
)
{
...
@@ -4292,7 +4368,7 @@ function g(e2, t2, n) {
...
@@ -4292,7 +4368,7 @@ function g(e2, t2, n) {
model
:
e2
model
:
e2
};
};
}
}
const
_sfc_main$
f
=
{
const
_sfc_main$
e
=
{
name
:
"
MovableView
"
,
name
:
"
MovableView
"
,
mixins
:
[
touchtrack
],
mixins
:
[
touchtrack
],
props
:
{
props
:
{
...
@@ -4851,7 +4927,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -4851,7 +4927,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
],
16
);
}
}
_sfc_main$
f
.
render
=
_sfc_render$e
;
_sfc_main$
e
.
render
=
_sfc_render$e
;
const
OPEN_TYPES
=
[
const
OPEN_TYPES
=
[
"
navigate
"
,
"
navigate
"
,
"
redirect
"
,
"
redirect
"
,
...
@@ -4859,7 +4935,7 @@ const OPEN_TYPES = [
...
@@ -4859,7 +4935,7 @@ const OPEN_TYPES = [
"
reLaunch
"
,
"
reLaunch
"
,
"
navigateBack
"
"
navigateBack
"
];
];
const
_sfc_main$
e
=
{
const
_sfc_main$
d
=
{
name
:
"
Navigator
"
,
name
:
"
Navigator
"
,
mixins
:
[
hover
],
mixins
:
[
hover
],
props
:
{
props
:
{
...
@@ -4949,13 +5025,13 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -4949,13 +5025,13 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
]));
]));
}
}
_sfc_main$
e
.
render
=
_sfc_render$d
;
_sfc_main$
d
.
render
=
_sfc_render$d
;
const
VALUES
=
{
const
VALUES
=
{
activeColor
:
"
#007AFF
"
,
activeColor
:
"
#007AFF
"
,
backgroundColor
:
"
#EBEBEB
"
,
backgroundColor
:
"
#EBEBEB
"
,
activeMode
:
"
backwards
"
activeMode
:
"
backwards
"
};
};
const
_sfc_main$
d
=
{
const
_sfc_main$
c
=
{
name
:
"
Progress
"
,
name
:
"
Progress
"
,
props
:
{
props
:
{
percent
:
{
percent
:
{
...
@@ -5070,9 +5146,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -5070,9 +5146,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
$props
.
showInfo
?
(
openBlock
(),
createBlock
(
"
p
"
,
_hoisted_1$9
,
toDisplayString
(
$data
.
currentPercent
)
+
"
%
"
,
1
))
:
createCommentVNode
(
""
,
true
)
$props
.
showInfo
?
(
openBlock
(),
createBlock
(
"
p
"
,
_hoisted_1$9
,
toDisplayString
(
$data
.
currentPercent
)
+
"
%
"
,
1
))
:
createCommentVNode
(
""
,
true
)
],
16
);
],
16
);
}
}
_sfc_main$
d
.
render
=
_sfc_render$c
;
_sfc_main$
c
.
render
=
_sfc_render$c
;
var
index_vue_vue_type_style_index_0_lang$
8
=
'
\n
uni-radio {
\r\n
-webkit-tap-highlight-color: transparent;
\r\n
display: inline-block;
\r\n
cursor: pointer;
\n
}
\n
uni-radio[hidden] {
\r\n
display: none;
\n
}
\n
uni-radio[disabled] {
\r\n
cursor: not-allowed;
\n
}
\n
uni-radio .uni-radio-wrapper {
\r\n
display: -webkit-inline-flex;
\r\n
display: inline-flex;
\r\n
-webkit-align-items: center;
\r\n
align-items: center;
\r\n
vertical-align: middle;
\n
}
\n
uni-radio .uni-radio-input {
\r\n
-webkit-appearance: none;
\r\n
appearance: none;
\r\n
margin-right: 5px;
\r\n
outline: 0;
\r\n
border: 1px solid #D1D1D1;
\r\n
background-color: #ffffff;
\r\n
border-radius: 50%;
\r\n
width: 22px;
\r\n
height: 22px;
\r\n
position: relative;
\n
}
\n
uni-radio:not([disabled]) .uni-radio-input:hover {
\r\n
border-color: #007aff;
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-checked:before {
\r\n
font: normal normal normal 14px/1 "uni";
\r\n
content: "
\\
EA08";
\r\n
color: #ffffff;
\r\n
font-size: 18px;
\r\n
position: absolute;
\r\n
top: 50%;
\r\n
left: 50%;
\r\n
transform: translate(-50%, -48%) scale(0.73);
\r\n
-webkit-transform: translate(-50%, -48%) scale(0.73);
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-disabled {
\r\n
background-color: #E1E1E1;
\r\n
border-color: #D1D1D1;
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-disabled:before {
\r\n
color: #ADADAD;
\n
}
\n
uni-radio-group {
\r\n
display: block;
\n
}
\r\n
'
;
var
index_vue_vue_type_style_index_0_lang$
7
=
'
\n
uni-radio {
\r\n
-webkit-tap-highlight-color: transparent;
\r\n
display: inline-block;
\r\n
cursor: pointer;
\n
}
\n
uni-radio[hidden] {
\r\n
display: none;
\n
}
\n
uni-radio[disabled] {
\r\n
cursor: not-allowed;
\n
}
\n
uni-radio .uni-radio-wrapper {
\r\n
display: -webkit-inline-flex;
\r\n
display: inline-flex;
\r\n
-webkit-align-items: center;
\r\n
align-items: center;
\r\n
vertical-align: middle;
\n
}
\n
uni-radio .uni-radio-input {
\r\n
-webkit-appearance: none;
\r\n
appearance: none;
\r\n
margin-right: 5px;
\r\n
outline: 0;
\r\n
border: 1px solid #D1D1D1;
\r\n
background-color: #ffffff;
\r\n
border-radius: 50%;
\r\n
width: 22px;
\r\n
height: 22px;
\r\n
position: relative;
\n
}
\n
uni-radio:not([disabled]) .uni-radio-input:hover {
\r\n
border-color: #007aff;
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-checked:before {
\r\n
font: normal normal normal 14px/1 "uni";
\r\n
content: "
\\
EA08";
\r\n
color: #ffffff;
\r\n
font-size: 18px;
\r\n
position: absolute;
\r\n
top: 50%;
\r\n
left: 50%;
\r\n
transform: translate(-50%, -48%) scale(0.73);
\r\n
-webkit-transform: translate(-50%, -48%) scale(0.73);
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-disabled {
\r\n
background-color: #E1E1E1;
\r\n
border-color: #D1D1D1;
\n
}
\n
uni-radio .uni-radio-input.uni-radio-input-disabled:before {
\r\n
color: #ADADAD;
\n
}
\n
uni-radio-group {
\r\n
display: block;
\n
}
\r\n
'
;
const
_sfc_main$
c
=
{
const
_sfc_main$
b
=
{
name
:
"
Radio
"
,
name
:
"
Radio
"
,
mixins
:
[
emitter
,
listeners
],
mixins
:
[
emitter
,
listeners
],
props
:
{
props
:
{
...
@@ -5167,9 +5243,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -5167,9 +5243,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
])
])
],
16
,
[
"
disabled
"
]);
],
16
,
[
"
disabled
"
]);
}
}
_sfc_main$
c
.
render
=
_sfc_render$b
;
_sfc_main$
b
.
render
=
_sfc_render$b
;
var
index_vue_vue_type_style_index_0_lang$
7
=
"
\n
uni-radio-group[hidden] {
\r\n
display: none;
\n
}
\r\n
"
;
var
index_vue_vue_type_style_index_0_lang$
6
=
"
\n
uni-radio-group[hidden] {
\r\n
display: none;
\n
}
\r\n
"
;
const
_sfc_main$
b
=
{
const
_sfc_main$
a
=
{
name
:
"
RadioGroup
"
,
name
:
"
RadioGroup
"
,
mixins
:
[
emitter
,
listeners
],
mixins
:
[
emitter
,
listeners
],
props
:
{
props
:
{
...
@@ -5258,81 +5334,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -5258,81 +5334,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
],
16
);
}
}
_sfc_main$b
.
render
=
_sfc_render$a
;
_sfc_main$a
.
render
=
_sfc_render$a
;
var
index_vue_vue_type_style_index_0_lang$6
=
"
\n
@keyframes once-show {
\n
from {
\n
top: 0;
\n
}
\n
}
\n
uni-resize-sensor,
\n
uni-resize-sensor > div {
\n
position: absolute;
\n
left: 0;
\n
top: 0;
\n
right: 0;
\n
bottom: 0;
\n
overflow: hidden;
\n
}
\n
uni-resize-sensor {
\n
display: block;
\n
z-index: -1;
\n
visibility: hidden;
\n
animation: once-show 1ms;
\n
}
\n
uni-resize-sensor > div > div {
\n
position: absolute;
\n
left: 0;
\n
top: 0;
\n
}
\n
uni-resize-sensor > div:first-child > div {
\n
width: 100000px;
\n
height: 100000px;
\n
}
\n
uni-resize-sensor > div:last-child > div {
\n
width: 200%;
\n
height: 200%;
\n
}
\n
"
;
const
_sfc_main$a
=
{
name
:
"
ResizeSensor
"
,
props
:
{
initial
:
{
type
:
[
Boolean
,
String
],
default
:
false
}
},
data
:
function
()
{
return
{
size
:
{
width
:
-
1
,
height
:
-
1
}
};
},
watch
:
{
size
:
{
deep
:
true
,
handler
:
function
(
size
)
{
this
.
$emit
(
"
resize
"
,
Object
.
assign
({},
size
));
}
}
},
mounted
:
function
()
{
if
(
this
.
initial
===
true
)
{
this
.
$nextTick
(
this
.
update
);
}
if
(
this
.
$el
.
offsetParent
!==
this
.
$el
.
parentNode
)
{
this
.
$el
.
parentNode
.
style
.
position
=
"
relative
"
;
}
if
(
!
(
"
AnimationEvent
"
in
window
))
{
this
.
reset
();
}
},
methods
:
{
reset
:
function
()
{
var
expand
=
this
.
$el
.
firstChild
;
var
shrink
=
this
.
$el
.
lastChild
;
expand
.
scrollLeft
=
1
e5
;
expand
.
scrollTop
=
1
e5
;
shrink
.
scrollLeft
=
1
e5
;
shrink
.
scrollTop
=
1
e5
;
},
update
:
function
()
{
this
.
size
.
width
=
this
.
$el
.
offsetWidth
;
this
.
size
.
height
=
this
.
$el
.
offsetHeight
;
this
.
reset
();
}
},
render
:
function
(
create
)
{
return
create
(
"
uni-resize-sensor
"
,
{
on
:
{
"
~animationstart
"
:
this
.
update
}
},
[
create
(
"
div
"
,
{
on
:
{
scroll
:
this
.
update
}
},
[
create
(
"
div
"
)
]),
create
(
"
div
"
,
{
on
:
{
scroll
:
this
.
update
}
},
[
create
(
"
div
"
)
])
]);
}
};
function
removeDOCTYPE
(
html
)
{
function
removeDOCTYPE
(
html
)
{
return
html
.
replace
(
/<
\?
xml.*
\?
>
\n
/
,
""
).
replace
(
/<!doctype.*>
\n
/
,
""
).
replace
(
/<!DOCTYPE.*>
\n
/
,
""
);
return
html
.
replace
(
/<
\?
xml.*
\?
>
\n
/
,
""
).
replace
(
/<!doctype.*>
\n
/
,
""
).
replace
(
/<!DOCTYPE.*>
\n
/
,
""
);
}
}
...
@@ -8641,7 +8643,7 @@ function createPageHeadSearchInputTsx(navigationBar, {
...
@@ -8641,7 +8643,7 @@ function createPageHeadSearchInputTsx(navigationBar, {
class
:
placeholderClass
class
:
placeholderClass
},
[
createVNode
(
"
div
"
,
{
},
[
createVNode
(
"
div
"
,
{
class
:
"
uni-page-head-search-icon
"
class
:
"
uni-page-head-search-icon
"
},
[
createSvgIconVNode
(
ICON_PATH_SEARCH
,
placeholderColor
,
20
)]),
text2
.
value
||
composing
.
value
?
""
:
placeholder
],
6
),
createVNode
(
_sfc_main$
h
,
{
},
[
createSvgIconVNode
(
ICON_PATH_SEARCH
,
placeholderColor
,
20
)]),
text2
.
value
||
composing
.
value
?
""
:
placeholder
],
6
),
createVNode
(
_sfc_main$
g
,
{
focus
:
autoFocus
,
focus
:
autoFocus
,
disabled
,
disabled
,
style
:
{
style
:
{
...
@@ -9518,4 +9520,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
...
@@ -9518,4 +9520,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
]);
]);
}
}
_sfc_main
.
render
=
_sfc_render
;
_sfc_main
.
render
=
_sfc_render
;
export
{
_sfc_main$1
as
AsyncErrorComponent
,
_sfc_main
as
AsyncLoadingComponent
,
_sfc_main$o
as
Audio
,
_sfc_main$n
as
Canvas
,
_sfc_main$m
as
Checkbox
,
_sfc_main$l
as
CheckboxGroup
,
_sfc_main$k
as
Editor
,
_sfc_main$j
as
Form
,
index$2
as
Icon
,
_sfc_main$
i
as
Image
,
_sfc_main$h
as
Input
,
_sfc_main$g
as
Label
,
_sfc_main$f
as
MovableView
,
_sfc_main$e
as
Navigator
,
index
as
PageComponent
,
_sfc_main$d
as
Progress
,
_sfc_main$c
as
Radio
,
_sfc_main$b
as
RadioGroup
,
_sfc_main$a
as
ResizeSensor
,
_sfc_main$9
as
RichText
,
_sfc_main$8
as
ScrollView
,
_sfc_main$7
as
Slider
,
_sfc_main$6
as
SwiperItem
,
_sfc_main$5
as
Switch
,
index$1
as
Text
,
_sfc_main$4
as
Textarea
,
UniServiceJSBridge$1
as
UniServiceJSBridge
,
UniViewJSBridge$1
as
UniViewJSBridge
,
_sfc_main$3
as
View
,
addInterceptor
,
arrayBufferToBase64
,
base64ToArrayBuffer
,
canIUse
,
createIntersectionObserver
,
createSelectorQuery
,
getApp$1
as
getApp
,
getCurrentPages$1
as
getCurrentPages
,
getImageInfo
,
getSystemInfo
,
getSystemInfoSync
,
makePhoneCall
,
navigateBack
,
navigateTo
,
openDocument
,
index$3
as
plugin
,
promiseInterceptor
,
reLaunch
,
redirectTo
,
removeInterceptor
,
switchTab
,
uni$1
as
uni
,
upx2px
};
export
{
_sfc_main$1
as
AsyncErrorComponent
,
_sfc_main
as
AsyncLoadingComponent
,
_sfc_main$o
as
Audio
,
_sfc_main$n
as
Canvas
,
_sfc_main$m
as
Checkbox
,
_sfc_main$l
as
CheckboxGroup
,
_sfc_main$k
as
Editor
,
_sfc_main$j
as
Form
,
index$2
as
Icon
,
_sfc_main$
h
as
Image
,
_sfc_main$g
as
Input
,
_sfc_main$f
as
Label
,
_sfc_main$e
as
MovableView
,
_sfc_main$d
as
Navigator
,
index
as
PageComponent
,
_sfc_main$c
as
Progress
,
_sfc_main$b
as
Radio
,
_sfc_main$a
as
RadioGroup
,
_sfc_main$i
as
ResizeSensor
,
_sfc_main$9
as
RichText
,
_sfc_main$8
as
ScrollView
,
_sfc_main$7
as
Slider
,
_sfc_main$6
as
SwiperItem
,
_sfc_main$5
as
Switch
,
index$1
as
Text
,
_sfc_main$4
as
Textarea
,
UniServiceJSBridge$1
as
UniServiceJSBridge
,
UniViewJSBridge$1
as
UniViewJSBridge
,
_sfc_main$3
as
View
,
addInterceptor
,
arrayBufferToBase64
,
base64ToArrayBuffer
,
canIUse
,
createIntersectionObserver
,
createSelectorQuery
,
getApp$1
as
getApp
,
getCurrentPages$1
as
getCurrentPages
,
getImageInfo
,
getSystemInfo
,
getSystemInfoSync
,
makePhoneCall
,
navigateBack
,
navigateTo
,
openDocument
,
index$3
as
plugin
,
promiseInterceptor
,
reLaunch
,
redirectTo
,
removeInterceptor
,
switchTab
,
uni$1
as
uni
,
upx2px
};
packages/uni-h5/src/framework/plugin/index.ts
浏览文件 @
959060f0
...
@@ -2,7 +2,6 @@ import { App } from 'vue'
...
@@ -2,7 +2,6 @@ import { App } from 'vue'
import
{
initApp
}
from
'
@dcloudio/uni-vue
'
import
{
initApp
}
from
'
@dcloudio/uni-vue
'
import
{
initView
,
initService
}
from
'
@dcloudio/uni-core
'
import
{
initView
,
initService
}
from
'
@dcloudio/uni-core
'
import
{
isCustomElement
}
from
'
@dcloudio/uni-shared
'
import
{
initRouter
}
from
'
./router
'
import
{
initRouter
}
from
'
./router
'
import
{
initSystemComponents
}
from
'
./components
'
import
{
initSystemComponents
}
from
'
./components
'
...
@@ -10,8 +9,6 @@ import { initMixin } from './mixin'
...
@@ -10,8 +9,6 @@ import { initMixin } from './mixin'
export
default
{
export
default
{
install
(
app
:
App
)
{
install
(
app
:
App
)
{
app
.
_context
.
config
.
isCustomElement
=
isCustomElement
initApp
(
app
)
initApp
(
app
)
initView
(
app
)
initView
(
app
)
initService
(
app
)
initService
(
app
)
...
...
packages/uni-h5/src/framework/plugin/provide/page.ts
浏览文件 @
959060f0
...
@@ -32,7 +32,7 @@ function initPageMeta() {
...
@@ -32,7 +32,7 @@ function initPageMeta() {
}
}
return
reactive
<
UniApp
.
PageRouteMeta
>
(
return
reactive
<
UniApp
.
PageRouteMeta
>
(
normalizePageMeta
(
normalizePageMeta
(
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
__uniRoutes
[
1
].
meta
)))
JSON
.
parse
(
JSON
.
stringify
(
mergePageMeta
(
__uniRoutes
[
0
].
meta
)))
)
)
)
)
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录