mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 08:22:41 +08:00
feat:【商城】店铺装修-标题栏:增加 skew 标题栏。
This commit is contained in:
parent
897ecfed6d
commit
453256031e
@ -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 = {
|
|||||||
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,
|
||||||
|
@ -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 @@
|
|||||||
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"
|
||||||
>
|
>
|
||||||
|
@ -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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user