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
7213252e
authored
Jun 18, 2025
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 商城轮播图装修组件增加高度配置
parent
bf371885
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
+7
-1
src/components/DiyEditor/components/mobile/Carousel/config.ts
+3
-0
src/components/DiyEditor/components/mobile/Carousel/index.vue
+1
-1
src/components/DiyEditor/components/mobile/Carousel/property.vue
+3
-0
No files found.
src/components/DiyEditor/components/mobile/Carousel/config.ts
View file @
7213252e
...
@@ -10,6 +10,8 @@ export interface CarouselProperty {
...
@@ -10,6 +10,8 @@ export interface CarouselProperty {
autoplay
:
boolean
autoplay
:
boolean
// 播放间隔
// 播放间隔
interval
:
number
interval
:
number
// 轮播高度
height
:
number
// 轮播内容
// 轮播内容
items
:
CarouselItemProperty
[]
items
:
CarouselItemProperty
[]
// 组件样式
// 组件样式
...
@@ -37,6 +39,7 @@ export const component = {
...
@@ -37,6 +39,7 @@ export const component = {
indicator
:
'dot'
,
indicator
:
'dot'
,
autoplay
:
false
,
autoplay
:
false
,
interval
:
3
,
interval
:
3
,
height
:
174
,
items
:
[
items
:
[
{
type
:
'img'
,
imgUrl
:
'https://static.iocoder.cn/mall/banner-01.jpg'
,
videoUrl
:
''
},
{
type
:
'img'
,
imgUrl
:
'https://static.iocoder.cn/mall/banner-01.jpg'
,
videoUrl
:
''
},
{
type
:
'img'
,
imgUrl
:
'https://static.iocoder.cn/mall/banner-02.jpg'
,
videoUrl
:
''
}
{
type
:
'img'
,
imgUrl
:
'https://static.iocoder.cn/mall/banner-02.jpg'
,
videoUrl
:
''
}
...
...
src/components/DiyEditor/components/mobile/Carousel/index.vue
View file @
7213252e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div
v-else
class=
"relative"
>
<div
v-else
class=
"relative"
>
<el-carousel
<el-carousel
height=
"174px
"
:height=
"property.height + 'px'
"
:type=
"property.type === 'card' ? 'card' : ''"
:type=
"property.type === 'card' ? 'card' : ''"
:autoplay=
"property.autoplay"
:autoplay=
"property.autoplay"
:interval=
"property.interval * 1000"
:interval=
"property.interval * 1000"
...
...
src/components/DiyEditor/components/mobile/Carousel/property.vue
View file @
7213252e
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
</el-tooltip>
</el-tooltip>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"高度"
prop=
"height"
>
<el-input-number
class=
"!w-50% mr-10px"
controls-position=
"right"
v-model=
"formData.height"
/>
px
</el-form-item>
<el-form-item
label=
"指示器"
prop=
"indicator"
>
<el-form-item
label=
"指示器"
prop=
"indicator"
>
<el-radio-group
v-model=
"formData.indicator"
>
<el-radio-group
v-model=
"formData.indicator"
>
<el-radio
value=
"dot"
>
小圆点
</el-radio>
<el-radio
value=
"dot"
>
小圆点
</el-radio>
...
...
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