Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
f4602436
Commit
f4602436
authored
Jun 06, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文字对齐方式,屏蔽 插入公式
parent
7dd34eb0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
useAlignElementToCanvas.ts
src/hooks/useAlignElementToCanvas.ts
+3
-3
index.vue
src/views/Editor/CanvasTool/index.vue
+1
-1
Index.vue
src/views/Market/Index.vue
+3
-2
No files found.
src/hooks/useAlignElementToCanvas.ts
View file @
f4602436
...
...
@@ -3,7 +3,7 @@ import { useMainStore, useSlidesStore } from '@/store'
import
type
{
PPTElement
}
from
'@/types/slides'
import
{
ElementAlignCommands
}
from
'@/types/edit'
import
{
getElementListRange
}
from
'@/utils/element'
import
{
VIEWPORT_SIZE
}
from
'@/configs/canvas'
import
{
VIEWPORT_SIZE
,
VIEWPORT_VER_SIZE
}
from
'@/configs/canvas'
import
useHistorySnapshot
from
'./useHistorySnapshot'
export
default
()
=>
{
...
...
@@ -18,8 +18,8 @@ export default () => {
* @param command 对齐方向
*/
const
alignElementToCanvas
=
(
command
:
ElementAlignCommands
)
=>
{
const
viewportWidth
=
VIEWPORT
_SIZE
.
Value
const
viewportHeight
=
VIEWPORT_SIZE
.
Value
*
viewportRatio
.
value
const
viewportWidth
=
viewportRatio
.
value
<
1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER
_SIZE
.
Value
const
viewportHeight
=
(
viewportRatio
.
value
<
1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER_SIZE
.
Value
)
*
viewportRatio
.
value
const
{
minX
,
maxX
,
minY
,
maxY
}
=
getElementListRange
(
activeElementList
.
value
)
const
newElementList
:
PPTElement
[]
=
JSON
.
parse
(
JSON
.
stringify
(
currentSlide
.
value
.
elements
))
...
...
src/views/Editor/CanvasTool/index.vue
View file @
f4602436
...
...
@@ -51,7 +51,7 @@
</
template
>
<IconInsertTable
class=
"handler-item"
v-tooltip=
"'插入表格'"
/>
</Popover>
<
IconFormula
class=
"handler-item"
v-tooltip=
"'插入公式'"
@
click=
"latexEditorVisible = true"
/
>
<
!-- <IconFormula class="handler-item" v-tooltip="'插入公式'" @click="latexEditorVisible = true" /> --
>
<IconEarth
class=
"handler-item"
v-tooltip=
"'编辑地图'"
@
click=
"mapVisibleStatus = true"
v-if=
"userInfo.iv||userInfo.it"
/>
<!-- <Popover trigger="click" v-model:value="mediaInputVisible">
<template #content>
...
...
src/views/Market/Index.vue
View file @
f4602436
...
...
@@ -155,7 +155,8 @@
</div>
</div>
<div
v-if=
"(dataList.length>0&&queryObj.pageIndex>1)||(dataList.length>0&&queryObj.pageIndex==1&&!loading)"
<!-- (dataList.length>0&&queryObj.pageIndex>1)||(dataList.length>0&&queryObj.pageIndex==1&&!loading) -->
<div
v-if=
"dataList.length>0"
class=
"listBox rounded"
>
<!-- :width="260" -->
<Waterfall
:list=
"dataList"
...
...
@@ -464,7 +465,7 @@ const queryTemplateBySearchHandler = async () => {
}
setTimeout
(()
=>
{
loading
.
value
=
false
},
3
00
)
},
5
00
)
}
catch
(
error
)
{
loading
.
value
=
false
}
...
...
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