Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
王衍超
rbc-demo
Commits
a26ddf25
Commit
a26ddf25
authored
Jan 25, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 通知公告标题设置
parent
f9300f4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
gms-app.vue
...p/@gms/gms-plugin-mainpage-newsList/src/views/gms-app.vue
+10
-8
property.vue
.../@gms/gms-plugin-mainpage-newsList/src/views/property.vue
+8
-2
No files found.
develop/@gms/gms-plugin-mainpage-newsList/src/views/gms-app.vue
View file @
a26ddf25
...
...
@@ -2,7 +2,7 @@
<div
class=
"newsList"
>
<div
class=
"newsList-title"
>
<span
class=
"newsList-title-side"
></span>
通知公告
{{
fileTitle
}}
<span
class=
"newsList-title-more"
@
click=
"handleMore"
>
<span>
更多
</span>
<Icon
type=
"ios-arrow-forward"
class=
"more-icon"
/>
...
...
@@ -37,16 +37,18 @@ export default {
newsList
:
[
1
,
2
,
3
],
fileWidth
:
'100%'
,
modalShow
:
false
,
list
:
[]
list
:
[],
fileTitle
:
'通知公告'
}
},
created
()
{
// let prop = this.itemSetting.properties
// if (prop && Array.isArray(prop)) {
// let num = prop[0] ? prop[0].num : 2
// let str = Math.floor(100 / num) + '%'
// this.fileWidth = `calc(${str} - 10px)`
// }
let
prop
=
this
.
itemSetting
.
properties
if
(
prop
)
{
let
num
=
prop
.
num
?
prop
.
num
:
2
let
str
=
Math
.
floor
(
100
/
num
)
+
'%'
this
.
fileTitle
=
prop
.
fileTitle
this
.
fileWidth
=
`calc(
${
str
}
- 10px)`
}
},
mounted
()
{
},
...
...
develop/@gms/gms-plugin-mainpage-newsList/src/views/property.vue
View file @
a26ddf25
...
...
@@ -7,6 +7,9 @@
<FormItem
label=
"每行个数"
>
<Input
v-model=
"config.num"
type=
"number"
></Input>
</FormItem>
<FormItem
label=
"标题"
>
<Input
v-model=
"config.fileTitle"
></Input>
</FormItem>
</Form>
</div>
</Panel>
...
...
@@ -34,14 +37,17 @@ export default {
value1
:
'1'
,
config
:
{
num
:
1
,
fileTitle
:
'通知公告'
}
}
},
created
()
{
let
prop
=
this
.
itemSetting
.
properties
[
0
]
let
prop
=
this
.
itemSetting
.
properties
if
(
prop
)
{
this
.
config
=
prop
}
}
else
{
this
.
itemSetting
.
properties
=
this
.
config
}
},
}
</
script
>
...
...
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