mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 代码规范
This commit is contained in:
parent
7d26335d38
commit
6ad5ad7d32
@ -23,6 +23,11 @@ interface LineElementPosition {
|
|||||||
end: [number, number]
|
end: [number, number]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface CreateTextData {
|
||||||
|
content?: string
|
||||||
|
vertical?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const mainStore = useMainStore()
|
const mainStore = useMainStore()
|
||||||
const slidesStore = useSlidesStore()
|
const slidesStore = useSlidesStore()
|
||||||
@ -177,11 +182,6 @@ export default () => {
|
|||||||
* @param position 位置大小信息
|
* @param position 位置大小信息
|
||||||
* @param content 文本内容
|
* @param content 文本内容
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface CreateTextData {
|
|
||||||
content?: string
|
|
||||||
vertical?: boolean
|
|
||||||
}
|
|
||||||
const createTextElement = (position: CommonElementPosition, data?: CreateTextData) => {
|
const createTextElement = (position: CommonElementPosition, data?: CreateTextData) => {
|
||||||
const { left, top, width, height } = position
|
const { left, top, width, height } = position
|
||||||
const content = data?.content || ''
|
const content = data?.content || ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user