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
57c4b0c2
Commit
57c4b0c2
authored
Oct 21, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加是否强制登录配置
parent
f1ac94b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
index.ts
app/web/page/editor/component/DynamicPageForm/index.ts
+8
-1
index.vue
app/web/page/editor/component/DynamicPageForm/index.vue
+6
-0
state.ts
app/web/page/store/modules/editor/state.ts
+1
-0
No files found.
app/web/page/editor/component/DynamicPageForm/index.ts
View file @
57c4b0c2
...
@@ -33,6 +33,13 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
...
@@ -33,6 +33,13 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
type
:
'
ColorSelector
'
type
:
'
ColorSelector
'
}
}
];
];
baseConfigSchema
:
object
[]
=
[
{
key
:
'
pageNeedLogin
'
,
name
:
'
是否登录
'
,
type
:
'
SwitchBtn
'
},
];
,
titleSchema
:
object
[]
=
[
titleSchema
:
object
[]
=
[
{
{
key
:
'
titleBgColor
'
,
key
:
'
titleBgColor
'
,
...
@@ -179,7 +186,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
...
@@ -179,7 +186,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
},
},
];
];
get
propsSchema
()
{
get
propsSchema
()
{
return
[...
this
.
titleSchema
,
...
this
.
bottomSchema
,
...
this
.
floatSchema
,
...
this
.
otherProps
,
...
this
.
floatModal
];
return
[...
this
.
titleSchema
,
...
this
.
bottomSchema
,
...
this
.
floatSchema
,
...
this
.
otherProps
,
...
this
.
floatModal
,
...
this
.
baseConfigSchema
];
}
}
@
Watch
(
'
cartAndShareBtn
'
,
{
immediate
:
true
})
@
Watch
(
'
cartAndShareBtn
'
,
{
immediate
:
true
})
...
...
app/web/page/editor/component/DynamicPageForm/index.vue
View file @
57c4b0c2
...
@@ -3,6 +3,12 @@
...
@@ -3,6 +3,12 @@
<h2>
{{
title
}}
</h2>
<h2>
{{
title
}}
</h2>
<Form
class=
"dynamic-form-component"
:label-width=
"80"
:model=
"propsForm"
@
submit
.
native
.
prevent
>
<Form
class=
"dynamic-form-component"
:label-width=
"80"
:model=
"propsForm"
@
submit
.
native
.
prevent
>
<h3>
基础属性
</h3>
<h3>
基础属性
</h3>
<h4>
基础配置
</h4>
<template
v-for=
"(item, index) in baseConfigSchema"
>
<FormItem
class=
"Df-component-formitem"
:label=
"item.name"
:key=
"'baseConfigSchema_' + index"
>
<component
:is=
"item.type"
:options=
"item.options"
v-bind=
"item.props"
v-model=
"propsForm[item.key]"
:formControl=
"item.formControl"
/>
</FormItem>
</
template
>
<h4>
标题栏
</h4>
<h4>
标题栏
</h4>
<
template
v-for=
"(item, index) in titleSchema"
>
<
template
v-for=
"(item, index) in titleSchema"
>
<FormItem
class=
"Df-component-formitem"
:label=
"item.name"
:key=
"'titleSchema_' + index"
>
<FormItem
class=
"Df-component-formitem"
:label=
"item.name"
:key=
"'titleSchema_' + index"
>
...
...
app/web/page/store/modules/editor/state.ts
View file @
57c4b0c2
...
@@ -95,6 +95,7 @@ export const defaultState = {
...
@@ -95,6 +95,7 @@ export const defaultState = {
backgroundImage
:
''
,
backgroundImage
:
''
,
},
},
props
:
{
props
:
{
pageNeedLogin
:
false
,
titleBgColor
:
'
#fff
'
,
titleBgColor
:
'
#fff
'
,
titleUseUrl
:
false
,
titleUseUrl
:
false
,
showPageBottomTip
:
true
,
showPageBottomTip
:
true
,
...
...
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