Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
94e66ba3
Commit
94e66ba3
authored
Nov 28, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: 升级组件库
parent
b6be1e13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
goodsTabs.mixin.ts
app/web/page/editor/mixins/goodsTabs.mixin.ts
+3
-0
index.ts
app/web/page/editor/view/dashboard/index.ts
+8
-0
No files found.
app/web/page/editor/mixins/goodsTabs.mixin.ts
View file @
94e66ba3
...
@@ -16,6 +16,9 @@ export default class GoodsTabsMixin extends Vue {
...
@@ -16,6 +16,9 @@ export default class GoodsTabsMixin extends Vue {
get
hasSnapUpCom
()
{
get
hasSnapUpCom
()
{
return
this
.
pageData
.
elements
.
some
(
item
=>
item
.
name
===
'
cs-snap-up
'
);
return
this
.
pageData
.
elements
.
some
(
item
=>
item
.
name
===
'
cs-snap-up
'
);
}
}
get
hasSeckillCom
()
{
return
this
.
pageData
.
elements
.
some
(
item
=>
item
.
name
===
'
cs-seckill
'
);
}
get
hasGoodsNavCom
()
{
get
hasGoodsNavCom
()
{
return
this
.
pageData
.
elements
.
some
(
item
=>
item
.
name
===
'
cs-goods-tabs
'
);
return
this
.
pageData
.
elements
.
some
(
item
=>
item
.
name
===
'
cs-goods-tabs
'
);
}
}
...
...
app/web/page/editor/view/dashboard/index.ts
View file @
94e66ba3
...
@@ -273,6 +273,14 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
...
@@ -273,6 +273,14 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
return
;
return
;
}
}
}
}
if
(
el
.
data
.
name
===
'
cs-seckill
'
)
{
if
(
this
.
hasSeckillCom
)
{
this
.
$Notice
.
warning
({
title
:
'
秒杀组件目前只支持添加一个
'
});
return
;
}
}
// 添加多个goods-tabs会取消锚点滚动
// 添加多个goods-tabs会取消锚点滚动
if
(
el
.
data
.
name
===
'
cs-goods-tabs
'
)
{
if
(
el
.
data
.
name
===
'
cs-goods-tabs
'
)
{
if
(
this
.
hasGoodsNavCom
)
{
if
(
this
.
hasGoodsNavCom
)
{
...
...
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