Commit b467642d by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

Develop yuancheng

See merge request GFP/RBC/rbc-frontend!14
parents 61d87841 274f6476
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="newsList"> <div class="newsList">
<div class="newsList-title"> <div class="newsList-title">
<span class="newsList-title-side"></span> <span class="newsList-title-side"></span>
通知公告 {{fileTitle}}
<span class="newsList-title-more" @click="handleMore"> <span class="newsList-title-more" @click="handleMore">
<span>更多</span> <span>更多</span>
<Icon type="ios-arrow-forward" class="more-icon" /> <Icon type="ios-arrow-forward" class="more-icon" />
...@@ -37,16 +37,18 @@ export default { ...@@ -37,16 +37,18 @@ export default {
newsList: [1,2,3], newsList: [1,2,3],
fileWidth: '100%', fileWidth: '100%',
modalShow: false, modalShow: false,
list: [] list: [],
fileTitle: '通知公告'
} }
}, },
created() { created() {
// let prop = this.itemSetting.properties let prop = this.itemSetting.properties
// if (prop && Array.isArray(prop)) { if (prop) {
// let num = prop[0] ? prop[0].num : 2 let num = prop.num? prop.num: 2
// let str = Math.floor(100 / num) + '%' let str = Math.floor(100 / num) + '%'
// this.fileWidth = `calc(${str} - 10px)` this.fileTitle = prop.fileTitle
// } this.fileWidth = `calc(${str} - 10px)`
}
}, },
mounted() { mounted() {
}, },
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
<FormItem label="每行个数"> <FormItem label="每行个数">
<Input v-model="config.num" type="number"></Input> <Input v-model="config.num" type="number"></Input>
</FormItem> </FormItem>
<FormItem label="标题">
<Input v-model="config.fileTitle"></Input>
</FormItem>
</Form> </Form>
</div> </div>
</Panel> </Panel>
...@@ -34,13 +37,16 @@ export default { ...@@ -34,13 +37,16 @@ export default {
value1: '1', value1: '1',
config: { config: {
num: 1, num: 1,
fileTitle: '通知公告'
} }
} }
}, },
created() { created() {
let prop = this.itemSetting.properties[0] let prop = this.itemSetting.properties
if (prop) { if (prop) {
this.config = prop this.config = prop
} else {
this.itemSetting.properties = this.config
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment