Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tech
pi_gui
Commits
c7ebb731
Commit
c7ebb731
authored
4 years ago
by
suncy
Browse files
Options
Download
Email Patches
Plain Diff
bug: 设置class未判断节点是否被销毁
parent
34b28ae8
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/engine/element.ts
+1
-1
src/engine/element.ts
src/engine/gui.asm.js
+1
-1
src/engine/gui.asm.js
src/engine/gui.wasm
+0
-0
src/engine/gui.wasm
src/engine/gui_lib.ts
+3
-3
src/engine/gui_lib.ts
src/widget/painter.ts
+3
-0
src/widget/painter.ts
with
8 additions
and
5 deletions
+8
-5
src/engine/element.ts
+
1
-
1
View file @
c7ebb731
...
...
@@ -88,7 +88,7 @@ export class Element {
}
public
add_class_start
():
number
{
return
Module
.
_add_class_start
(
this
.
document
.
uniqueID
,
this
.
uniqueID
)
;
return
Module
.
_add_class_start
(
this
.
document
.
uniqueID
,
this
.
uniqueID
)
}
public
get
display
()
{
...
...
This diff is collapsed.
Click to expand it.
src/engine/gui.asm.js
+
1
-
1
View file @
c7ebb731
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
src/engine/gui.wasm
+
0
-
0
View file @
c7ebb731
No preview for this file type
This diff is collapsed.
Click to expand it.
src/engine/gui_lib.ts
+
3
-
3
View file @
c7ebb731
...
...
@@ -1111,7 +1111,7 @@ const gui_debug = {
if
(
cfg
.
record
)
{
records
.
push
({
type
:
CmdType
.
_set_border_image_slice
,
param
:
[
node
,
u1
,
v1
,
u2
,
v2
,
fill
]})
}
return
gui1
.
_set_border_image_slice
(
doc
,
node
,
u1
,
v1
,
u2
,
v2
,
fill
);
return
gui1
.
_set_border_image_slice
(
doc
,
node
,
u1
,
v1
,
u2
,
v2
,
fill
?
1
:
0
);
},
_set_border_image_clip
:
(
doc
:
GUINode
,
node
:
GUINode
,
u1
:
f32
,
v1
:
f32
,
u2
:
f32
,
v2
:
f32
)
=>
{
if
(
!
cfg
.
useLib
)
{
return
0
;
}
...
...
@@ -1425,7 +1425,7 @@ const gui_debug = {
if
(
cfg
.
record
)
{
records
.
push
({
type
:
CmdType
.
_set_overflow
,
param
:
[
node
,
data
]})
}
return
gui1
.
_set_overflow
(
doc
,
node
,
data
);
return
gui1
.
_set_overflow
(
doc
,
node
,
data
?
1
:
0
);
},
_set_opacity
:
(
doc
:
GUINode
,
node
:
GUINode
,
value
:
f32
)
=>
{
...
...
@@ -1449,7 +1449,7 @@ const gui_debug = {
if
(
cfg
.
record
)
{
records
.
push
({
type
:
CmdType
.
_set_visibility
,
param
:
[
node
,
value
]})
}
gui1
.
_set_visibility
(
doc
,
node
,
value
);
gui1
.
_set_visibility
(
doc
,
node
,
value
?
1
:
0
);
},
// ------------ container
...
...
This diff is collapsed.
Click to expand it.
src/widget/painter.ts
+
3
-
0
View file @
c7ebb731
...
...
@@ -145,6 +145,9 @@ export class Painter implements Painter1{
*/
const
mountPatch
=
(
desc
:
Desc
,
preStyle
:
Object
,
node
:
VNode
,
isReplace
:
boolean
)
=>
{
let
realNode
=
node
.
realNode
;
if
(
realNode
.
isDestroy
)
{
return
;
}
let
oldClass
=
realNode
.
add_class_start
();
mountPatch1
(
desc
,
preStyle
,
node
.
ext
,
0
,
node
.
realNode
,
node
,
isReplace
);
realNode
.
add_class_end
(
oldClass
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help