Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d90389af
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看板
提交
d90389af
编写于
5月 25, 2023
作者:
H
hekun
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dismantle the case
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
c4d24b56
变更
51
展开全部
隐藏空白更改
内联
并排
Showing
51 changed file
with
6173 addition
and
30 deletion
+6173
-30
arkui/ace_standard/src/main/config.json
arkui/ace_standard/src/main/config.json
+12
-1
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.css
...d/src/main/js/default/pages/pickerView/prop2111/index.css
+154
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.hml
...d/src/main/js/default/pages/pickerView/prop2111/index.hml
+29
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.js
...rd/src/main/js/default/pages/pickerView/prop2111/index.js
+42
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.css
...d/src/main/js/default/pages/pickerView/prop2112/index.css
+154
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.hml
...d/src/main/js/default/pages/pickerView/prop2112/index.hml
+29
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.js
...rd/src/main/js/default/pages/pickerView/prop2112/index.js
+34
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.css
...d/src/main/js/default/pages/pickerView/prop2113/index.css
+154
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.hml
...d/src/main/js/default/pages/pickerView/prop2113/index.hml
+29
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.js
...rd/src/main/js/default/pages/pickerView/prop2113/index.js
+33
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.css
...rd/src/main/js/default/pages/pickerView/prop212/index.css
+154
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.hml
...rd/src/main/js/default/pages/pickerView/prop212/index.hml
+40
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.js
...ard/src/main/js/default/pages/pickerView/prop212/index.js
+39
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.css
...ard/src/main/js/default/pages/pickerView/prop22/index.css
+154
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.hml
...ard/src/main/js/default/pages/pickerView/prop22/index.hml
+49
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.js
...dard/src/main/js/default/pages/pickerView/prop22/index.js
+49
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.css
...ard/src/main/js/default/pages/pickerView/prop31/index.css
+370
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.hml
...ard/src/main/js/default/pages/pickerView/prop31/index.hml
+43
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.js
...dard/src/main/js/default/pages/pickerView/prop31/index.js
+44
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.css
...ard/src/main/js/default/pages/pickerView/prop32/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.hml
...ard/src/main/js/default/pages/pickerView/prop32/index.hml
+48
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.js
...dard/src/main/js/default/pages/pickerView/prop32/index.js
+51
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.css
...d/src/main/js/default/pages/pickerView/prop4111/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.hml
...d/src/main/js/default/pages/pickerView/prop4111/index.hml
+43
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.js
...rd/src/main/js/default/pages/pickerView/prop4111/index.js
+32
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.css
...d/src/main/js/default/pages/pickerView/prop4112/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.hml
...d/src/main/js/default/pages/pickerView/prop4112/index.hml
+41
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.js
...rd/src/main/js/default/pages/pickerView/prop4112/index.js
+34
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.css
...d/src/main/js/default/pages/pickerView/prop4113/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.hml
...d/src/main/js/default/pages/pickerView/prop4113/index.hml
+49
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.js
...rd/src/main/js/default/pages/pickerView/prop4113/index.js
+35
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.css
...rd/src/main/js/default/pages/pickerView/prop412/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.hml
...rd/src/main/js/default/pages/pickerView/prop412/index.hml
+48
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.js
...ard/src/main/js/default/pages/pickerView/prop412/index.js
+40
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.css
...ard/src/main/js/default/pages/pickerView/prop42/index.css
+371
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.hml
...ard/src/main/js/default/pages/pickerView/prop42/index.hml
+64
-0
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.js
...dard/src/main/js/default/pages/pickerView/prop42/index.js
+53
-0
arkui/ace_standard/src/main/js/default/test/List.test.js
arkui/ace_standard/src/main/js/default/test/List.test.js
+12
-1
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+28
-28
arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js
...dard/src/main/js/default/test/pickerViewProps2111.test.js
+127
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js
...dard/src/main/js/default/test/pickerViewProps2112.test.js
+127
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js
...dard/src/main/js/default/test/pickerViewProps2113.test.js
+126
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js
...ndard/src/main/js/default/test/pickerViewProps212.test.js
+147
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps22.test.js
...andard/src/main/js/default/test/pickerViewProps22.test.js
+194
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps31.test.js
...andard/src/main/js/default/test/pickerViewProps31.test.js
+156
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps32.test.js
...andard/src/main/js/default/test/pickerViewProps32.test.js
+198
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps4111.test.js
...dard/src/main/js/default/test/pickerViewProps4111.test.js
+101
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps4112.test.js
...dard/src/main/js/default/test/pickerViewProps4112.test.js
+102
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps4113.test.js
...dard/src/main/js/default/test/pickerViewProps4113.test.js
+99
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps412.test.js
...ndard/src/main/js/default/test/pickerViewProps412.test.js
+121
-0
arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js
...andard/src/main/js/default/test/pickerViewProps42.test.js
+259
-0
未找到文件。
arkui/ace_standard/src/main/config.json
浏览文件 @
d90389af
...
...
@@ -97,7 +97,18 @@
"pages/picker/prop/index"
,
"pages/picker/style/index"
,
"pages/pickerView/router/index"
,
"pages/pickerView/prop/index"
,
"pages/pickerView/prop2111/index"
,
"pages/pickerView/prop2112/index"
,
"pages/pickerView/prop2113/index"
,
"pages/pickerView/prop212/index"
,
"pages/pickerView/prop22/index"
,
"pages/pickerView/prop31/index"
,
"pages/pickerView/prop32/index"
,
"pages/pickerView/prop4111/index"
,
"pages/pickerView/prop4112/index"
,
"pages/pickerView/prop4113/index"
,
"pages/pickerView/prop412/index"
,
"pages/pickerView/prop42/index"
,
"pages/pickerView/style/index"
,
"pages/piece/router/index"
,
"pages/piece/prop/index"
,
...
...
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- id
</text>
<picker-view id="idProp">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2111/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
idProp
:
null
,
},
onReady
()
{
this
.
getCommonPropValues
();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
}
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
}
},
getCommonPropValues
(){
this
.
idProp
=
this
.
$element
(
"
idProp
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- class
</text>
<picker-view id="classProp"
class="classProp">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2112/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
classProp
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
classProp
:
this
.
classProp
,
}
},
getCommonPropValues
(){
this
.
classProp
=
this
.
$element
(
"
classProp
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- id
</text>
<picker-view id="classPropNone"
class="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop2113/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
classPropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
classPropNone
:
this
.
classPropNone
,
}
},
getCommonPropValues
(){
this
.
classPropNone
=
this
.
$element
(
"
classPropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- style
</text>
<picker-view id="styleProp"
style="width:10%;height:20px;background-color:red">
</picker-view>
<text class="sub-title">
通用属性 -- ref
</text>
<picker-view id="refProp"
ref="refProp">
</picker-view>
<picker-view id="refPropNone"
ref="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop212/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
styleProp
:
null
,
refProp
:
null
,
refPropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
}
},
getCommonPropValues
(){
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refPropNone
=
this
.
$element
(
"
refPropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- disabled
</text>
<picker-view id="disabledPropTrue"
disabled="true">
</picker-view>
<picker-view id="disabledPropFalse"
disabled="false">
</picker-view>
<picker-view id="disabledPropNone"
disabled="">
</picker-view>
<text class="sub-title">
通用属性 -- focusable
</text>
<picker-view id="focusablePropTrue"
focusable="true">
</picker-view>
<picker-view id="focusablePropFalse"
focusable="false">
</picker-view>
<picker-view id="focusablePropNone"
focusable="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop22/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
disabledPropTrue
:
null
,
disabledPropFalse
:
null
,
disabledPropNone
:
null
,
focusablePropTrue
:
null
,
focusablePropFalse
:
null
,
focusablePropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
}
},
getCommonPropValues
(){
this
.
disabledPropTrue
=
this
.
$element
(
"
disabledPropTrue
"
).
getInspector
()
this
.
disabledPropFalse
=
this
.
$element
(
"
disabledPropFalse
"
).
getInspector
()
this
.
disabledPropNone
=
this
.
$element
(
"
disabledPropNone
"
).
getInspector
()
this
.
focusablePropTrue
=
this
.
$element
(
"
focusablePropTrue
"
).
getInspector
()
this
.
focusablePropFalse
=
this
.
$element
(
"
focusablePropFalse
"
).
getInspector
()
this
.
focusablePropNone
=
this
.
$element
(
"
focusablePropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- data-*
</text>
<text class="sub-title">
通用属性 -- dir
</text>
<picker-view id="dirPropRtl"
dir="rtl">
</picker-view>
<picker-view id="dirPropAuto"
dir="auto">
</picker-view>
<picker-view id="dirPropLtr"
dir="ltr">
</picker-view>
<picker-view id="dirPropNone"
dir="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop31/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
listOne
:[{}],
listThree
:[{},{},{}],
dirPropRtl
:
null
,
dirPropAuto
:
null
,
dirPropLtr
:
null
,
dirPropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
}
},
getCommonPropValues
(){
this
.
dirPropRtl
=
this
.
$element
(
"
dirPropRtl
"
).
getInspector
()
this
.
dirPropAuto
=
this
.
$element
(
"
dirPropAuto
"
).
getInspector
()
this
.
dirPropLtr
=
this
.
$element
(
"
dirPropLtr
"
).
getInspector
()
this
.
dirPropNone
=
this
.
$element
(
"
dirPropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
通用属性 -- data-*
</text>
<picker-view id="dataProp"
data-picker-view="通用属性 -- data-*">
</picker-view>
<picker-view id="dataPropNone"
data-picker-view="">
</picker-view>
<text class="sub-title">
通用属性 -- click-effect
</text>
<picker-view id="clickEffectPropSmall"
click-effect="spring-small">
</picker-view>
<picker-view id="clickEffectPropMedium"
click-effect="spring-medium">
</picker-view>
<picker-view id="clickEffectPropLarge"
click-effect="spring-large">
</picker-view>
<picker-view id="clickEffectPropNone"
click-effect="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop32/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
listOne
:[{}],
listThree
:[{},{},{}],
dataProp
:
null
,
dataPropNone
:
null
,
clickEffectPropSmall
:
null
,
clickEffectPropMedium
:
null
,
clickEffectPropLarge
:
null
,
clickEffectPropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
}
},
getCommonPropValues
(){
this
.
dataProp
=
this
.
$element
(
"
dataProp
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
this
.
clickEffectPropMedium
=
this
.
$element
(
"
clickEffectPropMedium
"
).
getInspector
()
this
.
clickEffectPropLarge
=
this
.
$element
(
"
clickEffectPropLarge
"
).
getInspector
()
this
.
clickEffectPropNone
=
this
.
$element
(
"
clickEffectPropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
picker-view特有属性
</text>
<text class="sub-title">
picker-view特有属性 -- type
</text>
<picker-view
id="pickerViewDate"
type="date"
start="2002-2-5"
end="2030-6-5"
selected="2022-2-22"
lunar="false"
lunarswitch="true"
></picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4111/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
pickerViewDate
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
pickerViewDate
:
this
.
pickerViewDate
,
}
},
getCommonPropValues
(){
this
.
pickerViewDate
=
this
.
$element
(
"
pickerViewDate
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
picker-view特有属性
</text>
<text class="sub-title">
picker-view特有属性 -- type
</text>
<picker-view
id="pickerViewDatetime"
type="datetime"
selected=""
hours="12"
lunar="false"
lunarswitch="true"
></picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4112/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
pickerViewDatetime
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
pickerViewDatetime
:
this
.
pickerViewDatetime
,
}
},
getCommonPropValues
(){
this
.
pickerViewDatetime
=
this
.
$element
(
"
pickerViewDatetime
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
picker-view特有属性
</text>
<text class="sub-title">
picker-view特有属性 -- type
</text>
<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>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop4113/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
multitext
:[[
"
a
"
,
"
b
"
,
"
c
"
],
[
"
e
"
,
"
f
"
,
"
g
"
],
[
"
h
"
,
"
i
"
],
[
"
k
"
,
"
l
"
,
"
m
"
]],
rangetext
:[
'
15
'
,
"
20
"
,
"
25
"
],
pickerViewMultiText
:
null
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
pickerViewMultiText
:
this
.
pickerViewMultiText
}
},
getCommonPropValues
(){
this
.
pickerViewMultiText
=
this
.
$element
(
"
pickerViewMultiText
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
picker-view特有属性
</text>
<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>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop412/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
multitext
:[[
"
a
"
,
"
b
"
,
"
c
"
],
[
"
e
"
,
"
f
"
,
"
g
"
],
[
"
h
"
,
"
i
"
],
[
"
k
"
,
"
l
"
,
"
m
"
]],
rangetext
:[
'
15
'
,
"
20
"
,
"
25
"
],
multitextselect
:[
1
,
2
,
0
],
pickerViewText
:
null
,
pickerViewTime
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
pickerViewText
:
this
.
pickerViewText
,
pickerViewTime
:
this
.
pickerViewTime
,
}
},
getCommonPropValues
(){
this
.
pickerViewText
=
this
.
$element
(
"
pickerViewText
"
).
getInspector
()
this
.
pickerViewTime
=
this
.
$element
(
"
pickerViewTime
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.css
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
picker-view
{
font-size
:
12px
;
selected-font-size
:
12px
;
height
:
60px
;
disappear-font-size
:
12px
;
background-color
:
yellow
;
}
#pickerViewText
{
background-color
:
deeppink
;
}
#pickerViewTime
{
background-color
:
pink
;
}
#pickerViewDate
{
background-color
:
yellow
;
}
#pickerViewDatetime
{
background-color
:
greenyellow
;
}
#pickerViewMultiText
{
background-color
:
skyblue
;
}
\ No newline at end of file
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.hml
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<div class="prop-container">
<text class="title">
picker-view通用属性
</text>
<text class="sub-title">
渲染属性 -- for
</text>
<picker-view id="forPropNull"
for="">
</picker-view>
<picker-view id="forPropOne"
for="{{listOne}}">
</picker-view>
<picker-view id="forPropThree"
for="{{listThree}}">
</picker-view>
<text class="sub-title">
渲染属性 -- if
</text>
<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
</text>
<picker-view id="showPropTrue"
show="true">
</picker-view>
<picker-view id="showPropFalse"
show="false">
</picker-view>
<picker-view id="showPropNone"
show="">
</picker-view>
</div>
</div>
arkui/ace_standard/src/main/js/default/pages/pickerView/prop42/index.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
listOne
:[{}],
listThree
:[{},{},{}],
forPropNull
:
null
,
forPropOne
:
null
,
forPropThree
:
null
,
ifPropTrue
:
null
,
showPropTrue
:
null
,
showPropFalse
:
null
,
showPropNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
globalThis
.
value
=
{
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
}
},
getCommonPropValues
(){
this
.
forPropNull
=
this
.
$element
(
"
forPropNull
"
).
getInspector
()
this
.
forPropOne
=
this
.
$element
(
"
forPropOne
"
).
getInspector
()
this
.
forPropThree
=
this
.
$element
(
"
forPropThree
"
).
getInspector
()
this
.
ifPropTrue
=
this
.
$element
(
"
ifPropTrue
"
).
getInspector
()
this
.
showPropTrue
=
this
.
$element
(
"
showPropTrue
"
).
getInspector
()
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
}
}
arkui/ace_standard/src/main/js/default/test/List.test.js
浏览文件 @
d90389af
...
...
@@ -26,7 +26,18 @@ require('./tabsProps.test.js')
require
(
'
./progressProps.test.js
'
)
require
(
'
./dividerProps.test.js
'
)
require
(
'
./pickerProps.test.js
'
)
require
(
'
./pickerViewProps.test.js
'
)
require
(
'
./pickerViewProps2111.test.js
'
)
require
(
'
./pickerViewProps2112.test.js
'
)
require
(
'
./pickerViewProps2113.test.js
'
)
require
(
'
./pickerViewProps212.test.js
'
)
require
(
'
./pickerViewProps22.test.js
'
)
require
(
'
./pickerViewProps31.test.js
'
)
require
(
'
./pickerViewProps32.test.js
'
)
require
(
'
./pickerViewProps4111.test.js
'
)
require
(
'
./pickerViewProps4112.test.js
'
)
require
(
'
./pickerViewProps4113.test.js
'
)
require
(
'
./pickerViewProps412.test.js
'
)
require
(
'
./pickerViewProps42.test.js
'
)
require
(
'
./labelProps.test.js
'
)
require
(
'
./stackProps.test.js
'
)
require
(
'
./panelProps.test.js
'
)
...
...
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
d90389af
...
...
@@ -491,34 +491,12 @@ describe('aceJsTest', function () {
expect
(
"
pages/picker/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewComponent
* @tc.desc ACE
*/
it
(
'
testPickerViewComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/router/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/pickerView/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPieceComponent
* @tc.desc ACE
*/
it
(
'
testPieceComponent
'
,
0
,
async
function
(
done
)
{
it
(
'
testPieceComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/piece/router/index
'
...
...
@@ -528,7 +506,7 @@ describe('aceJsTest', function () {
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1
000
)
await
sleep
(
3
000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/piece/router/
"
).
assertEqual
(
pages
.
path
);
done
();
...
...
@@ -549,7 +527,7 @@ describe('aceJsTest', function () {
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1
000
)
await
sleep
(
3
000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/progress/router/
"
).
assertEqual
(
pages
.
path
);
done
();
...
...
@@ -570,7 +548,7 @@ describe('aceJsTest', function () {
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1
000
)
await
sleep
(
3
000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/qrcode/router/
"
).
assertEqual
(
pages
.
path
);
done
();
...
...
@@ -591,7 +569,7 @@ describe('aceJsTest', function () {
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1
000
)
await
sleep
(
3
000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/select/router/
"
).
assertEqual
(
pages
.
path
);
done
();
...
...
@@ -1194,6 +1172,27 @@ describe('aceJsTest', function () {
expect
(
"
pages/obj_Path2D/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewComponent
// * @tc.desc ACE
// */
// it('testPickerViewComponent', 0, async function (done) {
// let result;
// let options = {
// uri: 'pages/pickerView/router2/index'
// }
// try {
// result = router.push(options)
// } catch (err) {
// result = err
// }
// await sleep(5000)
// let pages = router.getState();
// expect("pages/pickerView/router2/").assertEqual(pages.path);
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
...
...
@@ -1217,6 +1216,7 @@ describe('aceJsTest', function () {
expect
(
"
pages/camera/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
...
...
arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
router
from
'
@system.router
'
;
import
{
describe
,
beforeAll
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
describe
(
'
pickerViewPropsJsTest2111
'
,
function
()
{
async
function
sleep
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
time
)
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
}
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
back
({
uri
:
'
pages/index/index
'
});
resolve
();
},
500
);
})
let
clearPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
clear
();
resolve
();
},
500
);
})
await
backToIndexPromise
.
then
(()
=>
{
return
clearPromise
;
})
}
/**
* run before testcase
*/
beforeAll
(
async
function
(
done
)
{
console
.
info
(
'
[pickerViewPropsJsTest] before each called
'
)
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/prop2111/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push pickerViewProps page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push pickerViewProps page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
2000
)
done
()
})
/**
* run after testcase
*/
afterAll
(
async
function
()
{
console
.
info
(
'
[pickerViewPropsJsTest] after each called
'
)
await
backToIndex
()
await
sleep
(
1000
)
})
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewIdProp
* @tc.desc ACE
*/
it
(
'
testPickerViewIdProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewIdProp START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
idProp
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
idProp
'
)
done
();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewStyleProp
// * @tc.desc ACEs
// */
// it('testPickerViewStyleProp', 0, async function (done) {
// console.info('testPickerViewStyleProp START');
// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('picker-view')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// done();
// });
});
arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
router
from
'
@system.router
'
;
import
{
describe
,
beforeAll
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
describe
(
'
pickerViewPropsJsTest2112
'
,
function
()
{
async
function
sleep
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
time
)
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
}
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
back
({
uri
:
'
pages/index/index
'
});
resolve
();
},
500
);
})
let
clearPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
clear
();
resolve
();
},
500
);
})
await
backToIndexPromise
.
then
(()
=>
{
return
clearPromise
;
})
}
/**
* run before testcase
*/
beforeAll
(
async
function
(
done
)
{
console
.
info
(
'
[pickerViewPropsJsTest] before each called
'
)
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/prop2112/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push pickerViewProps page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push pickerViewProps page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
4000
)
done
()
})
/**
* run after testcase
*/
afterAll
(
async
function
()
{
console
.
info
(
'
[pickerViewPropsJsTest] after each called
'
)
await
backToIndex
()
await
sleep
(
1000
)
})
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewClassProp
* @tc.desc ACE
*/
it
(
'
testPickerViewClassProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewClassProp START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
classProp
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classProp
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
'
classProp
'
)
done
();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewStyleProp
// * @tc.desc ACEs
// */
// it('testPickerViewStyleProp', 0, async function (done) {
// console.info('testPickerViewStyleProp START');
// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('picker-view')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// done();
// });
});
arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
router
from
'
@system.router
'
;
import
{
describe
,
beforeAll
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
describe
(
'
pickerViewPropsJsTest2113
'
,
function
()
{
async
function
sleep
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
time
)
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
}
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
back
({
uri
:
'
pages/index/index
'
});
resolve
();
},
500
);
})
let
clearPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
clear
();
resolve
();
},
500
);
})
await
backToIndexPromise
.
then
(()
=>
{
return
clearPromise
;
})
}
/**
* run before testcase
*/
beforeAll
(
async
function
(
done
)
{
console
.
info
(
'
[pickerViewPropsJsTest] before each called
'
)
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/prop2113/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push pickerViewProps page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push pickerViewProps page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
4000
)
done
()
})
/**
* run after testcase
*/
afterAll
(
async
function
()
{
console
.
info
(
'
[pickerViewPropsJsTest] after each called
'
)
await
backToIndex
()
await
sleep
(
1000
)
})
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewClassPropNone
* @tc.desc ACE
*/
it
(
'
testPickerViewClassPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewClassPropNone START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
classPropNone
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classPropNone
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
undefined
)
console
.
info
(
"
[pickerViewProps] get className value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
className
));
done
();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewStyleProp
// * @tc.desc ACEs
// */
// it('testPickerViewStyleProp', 0, async function (done) {
// console.info('testPickerViewStyleProp START');
// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('picker-view')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// done();
// });
});
arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps22.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps31.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps32.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps4111.test.js
0 → 100644
浏览文件 @
d90389af
/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
router
from
'
@system.router
'
;
import
{
describe
,
beforeAll
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
describe
(
'
pickerViewPropsJsTest4111
'
,
function
()
{
async
function
sleep
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
time
)
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
}
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
back
({
uri
:
'
pages/index/index
'
});
resolve
();
},
500
);
})
let
clearPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
clear
();
resolve
();
},
500
);
})
await
backToIndexPromise
.
then
(()
=>
{
return
clearPromise
;
})
}
/**
* run before testcase
*/
beforeAll
(
async
function
(
done
)
{
console
.
info
(
'
[pickerViewPropsJsTest] before each called
'
)
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/prop4111/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push pickerViewProps page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push pickerViewProps page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
4000
)
done
()
})
/**
* run after testcase
*/
afterAll
(
async
function
()
{
console
.
info
(
'
[pickerViewPropsJsTest] after each called
'
)
await
backToIndex
()
await
sleep
(
1000
)
})
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewPickerViewDate
* @tc.desc ACE
*/
it
(
'
testPickerViewPickerViewDate
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testPickerViewPickerViewDate START
'
);
console
.
info
(
"
[pickerViewProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
pickerViewDate
);
console
.
info
(
"
[pickerViewProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[pickerViewProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
picker-view
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
pickerViewDate
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
date
'
)
console
.
info
(
"
[pickerViewProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
});
});
arkui/ace_standard/src/main/js/default/test/pickerViewProps4112.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps4113.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps412.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js
0 → 100644
浏览文件 @
d90389af
此差异已折叠。
点击以展开。
鸿蒙社区
@harmonycommunity
mentioned in commit
dc9cfebc
·
5月 27, 2023
mentioned in commit
dc9cfebc
mentioned in commit dc9cfebc03bee3fbd3df1ca5ce10872346d19dc3
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录