Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
45325603
authored
May 01, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【商城】店铺装修-标题栏:增加 skew 标题栏。
parent
897ecfed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
src/components/DiyEditor/components/mobile/TitleBar/config.ts
+3
-0
src/components/DiyEditor/components/mobile/TitleBar/index.vue
+4
-2
src/components/DiyEditor/components/mobile/TitleBar/property.vue
+10
-0
No files found.
src/components/DiyEditor/components/mobile/TitleBar/config.ts
View file @
45325603
...
@@ -4,6 +4,8 @@ import {ComponentStyle, DiyComponent} from '@/components/DiyEditor/util'
...
@@ -4,6 +4,8 @@ import {ComponentStyle, DiyComponent} from '@/components/DiyEditor/util'
export
interface
TitleBarProperty
{
export
interface
TitleBarProperty
{
// 偏移
// 偏移
marginLeft
:
number
marginLeft
:
number
// 偏移量
skew
:
number
// 显示位置
// 显示位置
textAlign
:
'left'
|
'center'
textAlign
:
'left'
|
'center'
// 主标题
// 主标题
...
@@ -52,6 +54,7 @@ export const component = {
...
@@ -52,6 +54,7 @@ export const component = {
descriptionWeight
:
200
,
descriptionWeight
:
200
,
titleColor
:
'rgba(50, 50, 51, 10)'
,
titleColor
:
'rgba(50, 50, 51, 10)'
,
descriptionColor
:
'rgba(150, 151, 153, 10)'
,
descriptionColor
:
'rgba(150, 151, 153, 10)'
,
skew
:
0
,
more
:
{
more
:
{
//查看更多
//查看更多
show
:
false
,
show
:
false
,
...
...
src/components/DiyEditor/components/mobile/TitleBar/index.vue
View file @
45325603
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
fontSize: `${property.titleSize}px`,
fontSize: `${property.titleSize}px`,
fontWeight: property.titleWeight,
fontWeight: property.titleWeight,
color: property.titleColor,
color: property.titleColor,
textAlign: property.textAlign
textAlign: property.textAlign,
marginLeft: property.skew + 'px'
}"
}"
>
>
{{
property
.
title
}}
{{
property
.
title
}}
...
@@ -29,7 +30,8 @@
...
@@ -29,7 +30,8 @@
fontSize: `${property.descriptionSize}px`,
fontSize: `${property.descriptionSize}px`,
fontWeight: property.descriptionWeight,
fontWeight: property.descriptionWeight,
color: property.descriptionColor,
color: property.descriptionColor,
textAlign: property.textAlign
textAlign: property.textAlign,
marginLeft: property.skew + 'px'
}"
}"
class="m-t-8px"
class="m-t-8px"
>
>
...
...
src/components/DiyEditor/components/mobile/TitleBar/property.vue
View file @
45325603
...
@@ -16,6 +16,16 @@
...
@@ -16,6 +16,16 @@
</el-tooltip>
</el-tooltip>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"偏移量"
prop=
"skew"
>
<el-slider
v-model=
"formData.skew"
:max=
"100"
:min=
"0"
:step=
"1"
input-size=
"small"
show-input
/>
</el-form-item>
</el-card>
</el-card>
<el-card
class=
"property-group"
header=
"主标题"
shadow=
"never"
>
<el-card
class=
"property-group"
header=
"主标题"
shadow=
"never"
>
<el-form-item
label=
"文字"
label-width=
"40px"
prop=
"title"
>
<el-form-item
label=
"文字"
label-width=
"40px"
prop=
"title"
>
...
...
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