mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
快捷设置文本样式
This commit is contained in:
parent
9f54848f80
commit
72c99bf4ec
@ -227,7 +227,7 @@ const presetStyles = [
|
|||||||
{
|
{
|
||||||
label: '大标题',
|
label: '大标题',
|
||||||
style: {
|
style: {
|
||||||
fontSize: '30px',
|
fontSize: '26px',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
},
|
},
|
||||||
cmd: [
|
cmd: [
|
||||||
@ -240,7 +240,7 @@ const presetStyles = [
|
|||||||
{
|
{
|
||||||
label: '小标题',
|
label: '小标题',
|
||||||
style: {
|
style: {
|
||||||
fontSize: '24px',
|
fontSize: '22px',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
},
|
},
|
||||||
cmd: [
|
cmd: [
|
||||||
@ -261,7 +261,17 @@ const presetStyles = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '注释',
|
label: '正文[小]',
|
||||||
|
style: {
|
||||||
|
fontSize: '18px',
|
||||||
|
},
|
||||||
|
cmd: [
|
||||||
|
{ command: 'clear' },
|
||||||
|
{ command: 'fontsize', value: '18px' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '注释 1',
|
||||||
style: {
|
style: {
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
fontStyle: 'italic',
|
fontStyle: 'italic',
|
||||||
@ -272,6 +282,18 @@ const presetStyles = [
|
|||||||
{ command: 'em' },
|
{ command: 'em' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '注释 2',
|
||||||
|
style: {
|
||||||
|
fontSize: '16px',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
},
|
||||||
|
cmd: [
|
||||||
|
{ command: 'clear' },
|
||||||
|
{ command: 'fontsize', value: '16px' },
|
||||||
|
{ command: 'underline' },
|
||||||
|
],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
interface CommandPayload {
|
interface CommandPayload {
|
||||||
@ -400,7 +422,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
.preset-style-item {
|
.preset-style-item {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 60px;
|
height: 50px;
|
||||||
border: solid 1px #d6d6d6;
|
border: solid 1px #d6d6d6;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user