Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5299c64b
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5299c64b
编写于
3月 08, 2022
作者:
D
dongwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
dongwei
<
dongwei@kaihongdigi.com
>
上级
039f8739
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
50 addition
and
3 deletion
+50
-3
ace/ace_standard/src/main/js/default/pages/picker/prop/index.css
..._standard/src/main/js/default/pages/picker/prop/index.css
+5
-0
ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml
..._standard/src/main/js/default/pages/picker/prop/index.hml
+34
-0
ace/ace_standard/src/main/js/default/pages/picker/router/index.hml
...tandard/src/main/js/default/pages/picker/router/index.hml
+3
-2
ace/ace_standard/src/main/js/default/pages/picker/router/index.js
...standard/src/main/js/default/pages/picker/router/index.js
+8
-1
未找到文件。
ace/ace_standard/src/main/js/default/pages/picker/prop/index.css
浏览文件 @
5299c64b
...
...
@@ -390,3 +390,8 @@ picker {
height
:
20px
;
background-color
:
red
;
}
.picker
{
width
:
100%
;
height
:
20px
;
background-color
:
#00ff00
;
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml
浏览文件 @
5299c64b
...
...
@@ -140,6 +140,15 @@
<picker type="text" id="ifPropTrue"
if="true">
picker</picker>
<picker type="text" class="picker"
elif="true">
picker</picker>
<picker type="text" id="ifPropTrue"
elif="false">
picker</picker>
<picker type="text" id="ifPropTrue"
elif="">
picker</picker>
<text class="sub-title">
渲染属性 -- show
...
...
@@ -207,5 +216,30 @@
range="{{multitext}}"
selected="{{multitextselect}}"
></picker>
<text class="sub-title">
picker特有属性 -- picker
</text>
<picker
class="picker"
picker="picker"
type="time"
value="11:20"
></picker>
<picker
class="picker"
picker=""
type="time"
value="11:20"
></picker>
<!--<text class="sub-title">
picker特有属性 -- shareid
</text>
<picker class="picker" type="time" value="11:20" shareid="shareid"></picker>
<picker class="picker" type="time" value="11:20" shareid=""></picker>-->
<text class="sub-title">
picker特有属性 -- tid
</text>
<picker class="picker" type="time" value="11:20" tid="tid"></picker>
<picker class="picker" type="time" value="11:20" tid=""></picker>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/picker/router/index.hml
浏览文件 @
5299c64b
...
...
@@ -137,6 +137,7 @@
</text>
<picker id="event2" class="event2" onclick="click" ondoubleclick="doubleClick"
onlongpress="longPress" onfocus="focus" onblur="blur" onkey="key"
onaccessibility="onAccessibility"
onswipe="swipe" onattached="attached" ondetached="detached"
value="通用事件2" range="{{ rangetext }}">
</picker>
...
...
@@ -156,8 +157,8 @@
<text class="sub-title">
picker特有事件1
</text>
<picker id="event4" class="event4" type="
text" value="特有事件1" range="{{ rangetext
}}"
onchange="
textonchange" oncancel="textoncancel
">
<picker id="event4" class="event4" type="
multi-text" value="{{multitextvalue}}" columns="3" range="{{multitext}}" selected="{{multitextselect
}}"
onchange="
multitextonchange" oncancel="multitextoncancel" oncolumnchange="columnchange" show="true
">
</picker>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/picker/router/index.js
浏览文件 @
5299c64b
...
...
@@ -272,7 +272,11 @@ export default {
message
:
'
key:
\n
'
+
message
});
},
onAccessibility
(
event
)
{
if
(
event
.
eventType
===
1
)
{
console
.
log
(
"
onAccessibility
"
+
JSON
.
stringify
(
event
));
}
},
swipe
(
event
){
var
direction
=
event
.
direction
;
var
distance
=
event
.
distance
;
...
...
@@ -576,4 +580,7 @@ export default {
multitextoncancel
()
{
prompt
.
showToast
({
message
:
"
multitextoncancel
"
})
},
columnchange
()
{
prompt
.
showToast
({
message
:
"
columnchange
"
})
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录