Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
e7a61f77
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e7a61f77
编写于
7月 12, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 12, 2023
浏览文件
操作
浏览文件
下载
差异文件
!20745 拖拽示例修改
Merge pull request !20745 from xionghao1002/docs
上级
d90a7b0e
5a72502b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
0 addition
and
16 deletion
+0
-16
zh-cn/application-dev/reference/arkui-ts/figures/dragImage.gif
.../application-dev/reference/arkui-ts/figures/dragImage.gif
+0
-0
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-drag-drop.md
...v/reference/arkui-ts/ts-universal-attributes-drag-drop.md
+0
-16
未找到文件。
zh-cn/application-dev/reference/arkui-ts/figures/dragImage.gif
查看替换文件 @
d90a7b0e
浏览文件 @
e7a61f77
121.7 KB
|
W:
|
H:
109.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-drag-drop.md
浏览文件 @
e7a61f77
...
@@ -31,16 +31,6 @@ struct ImageExample {
...
@@ -31,16 +31,6 @@ struct ImageExample {
@
State
AVisible
:
Visibility
=
Visibility
.
Visible
@
State
AVisible
:
Visibility
=
Visibility
.
Visible
@
State
dragSuccess
:
Boolean
=
false
@
State
dragSuccess
:
Boolean
=
false
@
Builder
pixelMapBuilder
()
{
Column
()
{
Column
()
.
width
(
100
)
.
height
(
100
)
.
borderRadius
(
10
)
.
backgroundColor
(
Color
.
Yellow
)
}
}
build
()
{
build
()
{
Column
()
{
Column
()
{
Text
(
'
Image拖拽
'
)
Text
(
'
Image拖拽
'
)
...
@@ -52,12 +42,6 @@ struct ImageExample {
...
@@ -52,12 +42,6 @@ struct ImageExample {
.
border
({
width
:
1
})
.
border
({
width
:
1
})
.
visibility
(
this
.
AVisible
)
.
visibility
(
this
.
AVisible
)
.
draggable
(
true
)
.
draggable
(
true
)
.
onDragStart
((
event
:
DragEvent
,
extraParams
:
string
)
=>
{
let
image
=
new
UDMF
.
Image
();
let
unifiedData
=
new
UDMF
.
UnifiedData
(
image
);
event
.
setData
(
unifiedData
);
return
this
.
pixelMapBuilder
()
})
.
onDragEnd
((
event
:
DragEvent
)
=>
{
.
onDragEnd
((
event
:
DragEvent
)
=>
{
let
ret
=
event
.
getResult
();
let
ret
=
event
.
getResult
();
if
(
ret
==
0
)
{
if
(
ret
==
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录