Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
81f92d98
C
cube-ui
项目概览
DiDi
/
cube-ui
12 个月 前同步成功
通知
34
Star
9078
Fork
1508
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cube-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
81f92d98
编写于
12月 15, 2017
作者:
W
wind-stone
提交者:
doly mood
12月 15, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iPhone X compatible: ActionSheet、Picker (#47)
上级
c3cbe43c
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
17 addition
and
3 deletion
+17
-3
example/index.html
example/index.html
+1
-1
src/common/stylus/base.styl
src/common/stylus/base.styl
+4
-0
src/common/stylus/mixin.styl
src/common/stylus/mixin.styl
+7
-0
src/common/stylus/theme/default.styl
src/common/stylus/theme/default.styl
+1
-0
src/components/action-sheet/action-sheet.vue
src/components/action-sheet/action-sheet.vue
+3
-1
src/components/picker/picker.vue
src/components/picker/picker.vue
+1
-1
未找到文件。
example/index.html
浏览文件 @
81f92d98
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<title>
cube-ui lib
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
>
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no
, viewport-fit=cover
"
>
</head>
<body>
<div
id=
"app"
></div>
...
...
src/common/stylus/base.styl
浏览文件 @
81f92d98
@require "./variable.styl"
@require "./mixin.styl"
body, html
line-height: 1
...
...
@@ -52,6 +53,9 @@ body, html
height: 100%
transform-origin: left 0
.cube-safe-area-pb
safe-area-mixin(padding-bottom, bottom, true)
@media (min-resolution: 2dppx)
.border-top-1px
&::before
...
...
src/common/stylus/mixin.styl
浏览文件 @
81f92d98
...
...
@@ -54,3 +54,10 @@ bg-image($url, $ext = ".png")
background-image: url($url + "@2x" + $ext)
@media (min-resolution: 3dppx)
background-image: url($url + "@3x" + $ext)
functions = constant env
safe-area-fn(fn, position)
s("%s(safe-area-inset-%s)", fn, position)
safe-area-mixin(property, position, important = false)
for fn in functions
{property} safe-area-fn(fn, position) important == true ? !important : unquote("")
src/common/stylus/theme/default.styl
浏览文件 @
81f92d98
...
...
@@ -6,6 +6,7 @@ $action-sheet-active-color := $color-orange
$action-sheet-bgc := $color-white
$action-sheet-active-bgc := $color-light-grey-opacity
$action-sheet-title-color := $color-dark-grey
$action-sheet-space-bgc := $color-mask-bg
/// picker style
$action-sheet-picker-cancel-color := $color-light-grey
$action-sheet-picker-cancel-active-color := $color-light-grey-s
...
...
src/components/action-sheet/action-sheet.vue
浏览文件 @
81f92d98
...
...
@@ -9,7 +9,7 @@
@touchmove.prevent="noop"
@click="cancel">
<transition
name=
"cube-action-sheet-move"
>
<div
class=
"cube-action-sheet-panel"
v-show=
"isVisible"
@
click.stop=
"noop"
>
<div
class=
"cube-action-sheet-panel
cube-safe-area-pb
"
v-show=
"isVisible"
@
click.stop=
"noop"
>
<h1
class=
"cube-action-sheet-title border-bottom-1px"
v-show=
"pickerStyle || title"
>
{{
title
}}
</h1>
<div
class=
"cube-action-sheet-content"
>
<ul
class=
"cube-action-sheet-list"
>
...
...
@@ -94,6 +94,7 @@
.cube-action-sheet-panel
text-align: center
font-size: $fontsize-medium
background-color: $action-sheet-bgc
.cube-action-sheet-move-enter, .cube-action-sheet-move-leave-active
transform: translate3d(0, 100%, 0)
.cube-action-sheet-move-enter-active, .cube-action-sheet-move-leave-active
...
...
@@ -142,6 +143,7 @@
.cube-action-sheet-space
height: 6px
background-color: $action-sheet-space-bgc
.cube-action-sheet-item_active
color: $action-sheet-active-color
...
...
src/components/picker/picker.vue
浏览文件 @
81f92d98
...
...
@@ -8,7 +8,7 @@
@
touchmove.prevent
@
mask-click=
"cancel"
>
<transition
name=
"cube-picker-move"
>
<div
class=
"cube-picker-panel"
v-show=
"isVisible"
@
click.stop
>
<div
class=
"cube-picker-panel
cube-safe-area-pb
"
v-show=
"isVisible"
@
click.stop
>
<div
class=
"cube-picker-choose border-bottom-1px"
>
<span
data-action=
"cancel"
@
click=
"cancel"
>
{{
cancelTxt
}}
</span>
<span
data-action=
"confirm"
@
click=
"confirm"
>
{{
confirmTxt
}}
</span>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录