Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1055eebf
authored
Apr 10, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 修复画笔粗细
1 parent
90115526
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
components/Canvas/wn-canvas.vue
pages/detail/components/Tabs.vue
components/Canvas/wn-canvas.vue
View file @
1055eeb
...
...
@@ -113,7 +113,7 @@ export default {
mode
:
"pen"
,
//操作模式
currentColor
:
"red"
,
//当前画笔颜色
bgColor
:
"#fff"
,
//画板背景颜色
lineWidth
:
3
,
//画笔粗细 px
lineWidth
:
2
,
//画笔粗细 px
lastRect
:
{},
//运动轨迹最后一个方形
lastCircle
:
{},
//运动轨迹最后一个圆形
//工具箱
...
...
@@ -498,6 +498,7 @@ export default {
//开始touch
touchStart
(
e
)
{
if
(
!
this
.
drawStatus
)
return
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
)
let
{
x
,
y
...
...
@@ -540,6 +541,7 @@ export default {
//touch移动
touchMove
(
e
)
{
if
(
!
this
.
drawStatus
)
return
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
)
let
{
x
,
y
...
...
@@ -581,6 +583,7 @@ export default {
//touch结束
touchEnd
(
e
)
{
if
(
!
this
.
drawStatus
)
return
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
)
let
{
x
,
y
...
...
pages/detail/components/Tabs.vue
View file @
1055eeb
...
...
@@ -46,7 +46,6 @@ export default {
query
.
select
(
`#tab-
${
tabIndex
}
`
)
.
boundingClientRect
((
data
)
=>
{
console
.
log
(
data
)
this
.
borderLeft
=
`left:
${
data
.
left
}
px;`
setTimeout
(()
=>
{
this
.
borderLeft
+=
`display:block;`
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment