Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoderSmallfan
uni-app
提交
9a3f2c4e
U
uni-app
项目概览
CoderSmallfan
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9a3f2c4e
编写于
11月 12, 2018
作者:
蓝色的小猫咪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mpvuePicker div 替换为 view
上级
fabda462
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
examples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
...ples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
+18
-18
未找到文件。
examples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
浏览文件 @
9a3f2c4e
<
template
>
<
div
class=
"mpvue-picker"
>
<
div
:class=
"
{'pickerMask':showPicker}" @click="maskClick" catchtouchmove="true">
</div
>
<
div
class=
"mpvue-picker-content "
:class=
"
{'mpvue-picker-view-show':showPicker}">
<
div
class=
"mpvue-picker__hd"
catchtouchmove=
"true"
>
<
div
class=
"mpvue-picker__action"
@
click=
"pickerCancel"
>
取消
</div
>
<
div
class=
"mpvue-picker__action"
:style=
"
{color:themeColor}" @click="pickerConfirm">确定
</div
>
</
div
>
<
view
class=
"mpvue-picker"
>
<
view
:class=
"
{'pickerMask':showPicker}" @click="maskClick" catchtouchmove="true">
</view
>
<
view
class=
"mpvue-picker-content "
:class=
"
{'mpvue-picker-view-show':showPicker}">
<
view
class=
"mpvue-picker__hd"
catchtouchmove=
"true"
>
<
view
class=
"mpvue-picker__action"
@
click=
"pickerCancel"
>
取消
</view
>
<
view
class=
"mpvue-picker__action"
:style=
"
{color:themeColor}" @click="pickerConfirm">确定
</view
>
</
view
>
<!-- 单列 -->
<picker-view
indicator-style=
"height: 40px;"
class=
"mpvue-picker-view"
:value=
"pickerValue"
@
change=
"pickerChange"
v-if=
"mode==='selector' && pickerValueSingleArray.length > 0"
>
<block>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueSingleArray"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueSingleArray"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
</block>
</picker-view>
...
...
@@ -18,10 +18,10 @@
<picker-view
indicator-style=
"height: 40px;"
class=
"mpvue-picker-view"
:value=
"pickerValue"
@
change=
"pickerChange"
v-if=
"mode==='timeSelector'"
>
<block>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueHour"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueHour"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMinute"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMinute"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
</block>
</picker-view>
...
...
@@ -29,7 +29,7 @@
<picker-view
indicator-style=
"height: 40px;"
class=
"mpvue-picker-view"
:value=
"pickerValue"
@
change=
"pickerChange"
v-if=
"mode==='multiSelector'"
>
<block
v-for=
"(n,index) in pickerValueMulArray.length"
:key=
"index"
>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index1) in pickerValueMulArray[n]"
:key=
"index1"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index1) in pickerValueMulArray[n]"
:key=
"index1"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
</block>
</picker-view>
...
...
@@ -37,10 +37,10 @@
<picker-view
indicator-style=
"height: 40px;"
class=
"mpvue-picker-view"
:value=
"pickerValue"
@
change=
"pickerChangeMul"
v-if=
"mode==='multiLinkageSelector' && deepLength===2"
>
<block>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulTwoOne"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulTwoOne"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulTwoTwo"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulTwoTwo"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
</block>
</picker-view>
...
...
@@ -48,18 +48,18 @@
<picker-view
indicator-style=
"height: 40px;"
class=
"mpvue-picker-view"
:value=
"pickerValue"
@
change=
"pickerChangeMul"
v-if=
"mode==='multiLinkageSelector' && deepLength===3"
>
<block>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeOne"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeOne"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeTwo"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeTwo"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
<picker-view-column>
<
div
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeThree"
:key=
"index"
>
{{
item
.
label
}}
</div
>
<
view
class=
"picker-item"
v-for=
"(item,index) in pickerValueMulThreeThree"
:key=
"index"
>
{{
item
.
label
}}
</view
>
</picker-view-column>
</block>
</picker-view>
</
div
>
</
div
>
</
view
>
</
view
>
</
template
>
<
script
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录