Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
3adb8810
Commit
3adb8810
authored
May 08, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拖选工具
parent
daeca6f5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
91 deletions
+105
-91
common.js
src/utils/common.js
+1
-1
Playground.vue
src/views/Editor/Playground.vue
+24
-5
editControlView.vue
src/views/Editor/components/editControlView.vue
+80
-85
No files found.
src/utils/common.js
View file @
3adb8810
...
...
@@ -182,7 +182,7 @@ export const styles = {
// }
//console.log("attr,value")
console
.
log
(
attr
,
value
)
//
console.log(attr,value)
switch
(
attr
)
{
case
'rotation'
:
...
...
src/views/Editor/Playground.vue
View file @
3adb8810
...
...
@@ -4,9 +4,21 @@
<div
class=
"draw-body"
>
<div
class=
"playground-con"
>
<!--
<label
class=
"el-form-item__label"
>
滑动滚轮进行缩放
</label>
-->
<el-button
size=
"mini"
@
click=
"setZoom(true)"
><i
class=
"el-icon-plus"
></i></el-button>
<el-input
class=
"el-input el-input--mini"
:value=
"parseInt(zoom*100)+'%'"
style=
"width:60px"
readonly
/>
<el-button
size=
"mini"
@
click=
"setZoom(false)"
><i
class=
"el-icon-minus"
></i></el-button>
<el-form
:inline=
"true"
class=
"filter-bar"
size=
"mini"
@
submit
.
native
.
prevent
>
<el-form-item>
<el-button
size=
"mini"
@
click=
"setZoom(true)"
><i
class=
"el-icon-plus"
></i></el-button>
<el-input
class=
"el-input el-input--mini"
:value=
"parseInt(zoom*100)+'%'"
style=
"width:60px"
readonly
/>
<el-button
size=
"mini"
@
click=
"setZoom(false)"
><i
class=
"el-icon-minus"
></i></el-button>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"overFlowState"
size=
"mini"
>
舞台边缘裁剪
</el-checkbox>
</el-form-item>
</el-form>
</div>
<div
class=
"zero-playground-body-center"
:style=
"playgroundStyle"
>
...
...
@@ -34,7 +46,8 @@ export default {
data
()
{
return
{
zoom
:
0.5
,
hasCtrlState
:
false
hasCtrlState
:
false
,
overFlowState
:
false
}
},
methods
:
{
...
...
@@ -73,7 +86,8 @@ export default {
keyDo
(
state
){
console
.
log
(
state
)
this
.
hasCtrlState
=
state
;
}
},
overFlowCon
(){}
},
computed
:
{
playgroundStyle
(){
...
...
@@ -81,6 +95,11 @@ export default {
let
style
=
{
zoom
:
`
${
this
.
zoom
}
`
}
if
(
this
.
overFlowState
){
style
.
overflow
=
"hidden"
}
else
{
style
.
overflow
=
"initial"
}
console
.
log
(
1213
,
style
)
return
style
},
...
...
src/views/Editor/components/editControlView.vue
View file @
3adb8810
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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