Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4599842e
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看板
提交
4599842e
编写于
3月 08, 2022
作者:
D
dongwei
提交者:
wanggang
3月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
dongwei
<
dongwei@kaihongdigi.com
>
上级
13ca6c04
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
120 addition
and
42 deletion
+120
-42
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css
...ndard/src/main/js/default/pages/pickerView/prop/index.css
+1
-0
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml
...ndard/src/main/js/default/pages/pickerView/prop/index.hml
+93
-39
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
...andard/src/main/js/default/pages/pickerView/prop/index.js
+16
-0
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css
...ard/src/main/js/default/pages/pickerView/router/index.css
+1
-1
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml
...ard/src/main/js/default/pages/pickerView/router/index.hml
+2
-2
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js
...dard/src/main/js/default/pages/pickerView/router/index.js
+7
-0
未找到文件。
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css
浏览文件 @
4599842e
...
...
@@ -352,6 +352,7 @@ picker-view {
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
...
...
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml
浏览文件 @
4599842e
...
...
@@ -140,6 +140,15 @@
<picker-view id="ifPropTrue"
if="true">
</picker-view>
<picker-view id="ifPropTrue"
elif="true">
</picker-view>
<picker-view id="ifPropTrue"
elif="false">
</picker-view>
<picker-view id="ifPropTrue"
elif="">
</picker-view>
<text class="sub-title">
渲染属性 -- show
...
...
@@ -164,44 +173,89 @@
<text class="sub-title">
picker-view特有属性 -- type
</text>
<!-- <picker-view-->
<!-- id="pickerViewText"-->
<!-- type="text"-->
<!-- selected="0"-->
<!-- range="{{rangetext}}"-->
<!-- indicatorprefix="前缀"-->
<!-- indicatorsuffix="后缀"-->
<!-- ></picker-view>-->
<!-- <picker-view-->
<!-- id="pickerViewTime"-->
<!-- type="time"-->
<!-- containsecond="true"-->
<!-- selected="11:22:30"-->
<!-- hours="12"-->
<!-- ></picker-view>-->
<!-- <picker-view-->
<!-- id="pickerViewDate"-->
<!-- type="date"-->
<!-- start="2002-2-5"-->
<!-- end="2030-6-5"-->
<!-- selected="2022-2-22"-->
<!-- lunar="false"-->
<!-- lunarswitch="true"-->
<!-- ></picker-view>-->
<!-- <picker-view-->
<!-- id="pickerViewDatetime"-->
<!-- type="datetime"-->
<!-- selected=""-->
<!-- hours="12"-->
<!-- lunar="false"-->
<!-- lunarswitch="true"-->
<!-- ></picker-view>-->
<!-- <picker-view-->
<!-- id="pickerViewMultiText"-->
<!-- type="multi-text"-->
<!-- columns="3"-->
<!-- range="{{multitext}}"-->
<!-- selected="{{multitextselect}}"-->
<!-- ></picker-view>-->
<picker-view
id="pickerViewText"
type="text"
selected="0"
range="{{rangetext}}"
indicatorprefix="前缀"
indicatorsuffix="后缀"
></picker-view>
<picker-view
id="pickerViewTime"
type="time"
containsecond="true"
selected="11:22:30"
hours="12"
></picker-view>
<picker-view
id="pickerViewDate"
type="date"
start="2002-2-5"
end="2030-6-5"
selected="2022-2-22"
lunar="false"
lunarswitch="true"
></picker-view>
<picker-view
id="pickerViewDatetime"
type="datetime"
selected=""
hours="12"
lunar="false"
lunarswitch="true"
></picker-view>
<picker-view
id="pickerViewMultiText"
type="multi-text"
columns="3"
range="{{multitext}}"
selected="{{multitextselect}}"
></picker-view>
<text class="sub-title">
picker-view特有属性 -- picker-view
</text>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
picker-view="picker-view"
></picker-view>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
picker-view=""
></picker-view>
<!--<text class="sub-title">
picker-view特有属性 -- shareid
</text>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
shareid="shareid"
></picker-view>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
shareid=""
></picker-view>-->
<text class="sub-title">
picker-view特有属性 -- tid
</text>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
tid="tid"
></picker-view>
<picker-view
class="pickerView"
type="text"
range="{{rangetext}}"
tid=""
></picker-view>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js
浏览文件 @
4599842e
...
...
@@ -48,10 +48,19 @@ export default {
showPropTrue
:
null
,
showPropFalse
:
null
,
showPropNone
:
null
,
multitext
:[[
"
a
"
,
"
b
"
,
"
c
"
],
[
"
e
"
,
"
f
"
,
"
g
"
],
[
"
h
"
,
"
i
"
],
[
"
k
"
,
"
l
"
,
"
m
"
]],
rangetext
:[
'
15
'
,
"
20
"
,
"
25
"
],
// multitextselect:[1,2,0],
// pickerViewText: null,
// pickerViewDate: null,
// pickerViewTime: null,
// pickerViewDatetime: null,
// pickerViewMultiText: null
},
onShow
(){
this
.
getCommonPropValues
();
// this.getSpecificPropValues();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
...
...
@@ -121,4 +130,11 @@ export default {
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
},
getSpecificPropValues
()
{
// this.pickerViewViewText = this.$element("pickerViewViewText").getInspector()
// this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector()
// this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector()
// this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector()
// this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector()
}
}
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css
浏览文件 @
4599842e
...
...
@@ -243,7 +243,7 @@ picker {
.event4
{
width
:
100%
;
height
:
2
0px
;
height
:
4
0px
;
background-color
:
blanchedalmond
;
}
...
...
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml
浏览文件 @
4599842e
...
...
@@ -152,8 +152,8 @@
<text class="sub-title">
picker-view特有事件1
</text>
<picker-view id="event4" class="event4" type="
text" value="特有事件1" range="{{ range
text }}"
onchange="
textonchange" oncancel="textoncancel
">
<picker-view id="event4" class="event4" type="
multi-text" value="特有事件1" range="{{ multi
text }}"
onchange="
multiTextChange" oncolumnchange="columnChange
">
</picker-view>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
...
...
ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js
浏览文件 @
4599842e
...
...
@@ -88,6 +88,7 @@ export default {
data
:
{
defaultTime
:
""
,
time
:
""
,
multitext
:[[
"
a
"
,
"
b
"
,
"
c
"
],
[
"
e
"
,
"
f
"
,
"
g
"
],
[
"
h
"
,
"
i
"
],
[
"
k
"
,
"
l
"
,
"
m
"
]],
},
onMenuSelected
(
e
)
{
prompt
.
showToast
({
...
...
@@ -545,4 +546,10 @@ export default {
concat
(
hours
,
minutes
)
{
return
`
${
this
.
fill
(
hours
)}
:
${
this
.
fill
(
minutes
)}
`
;
},
multiTextChange
()
{
prompt
.
showToast
({
message
:
"
multiTextChange
"
});
},
columnChange
()
{
prompt
.
showToast
({
message
:
"
columnChange
"
});
},
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录