增加标题文字大小控制
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <template> | ||||
|   <section class="preview"> | ||||
|     <ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="handleBack" v-if="screenId" :title="info.name" :background="bgImg"> | ||||
|     <ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="handleBack" v-if="screenId" :title="info.name" :background="bgImg" :titleSize="config.titleSize"> | ||||
|       <ai-dv-viewer :urlPrefix="urlPrefix" :instance="instance" :dict="dict" :id="screenId"/> | ||||
|     </ai-dv-wrapper> | ||||
|   </section> | ||||
|   | ||||
| @@ -66,6 +66,7 @@ | ||||
|                   style="height: 100%" | ||||
|                   :type="dashboard.style" | ||||
|                   :title="$route.query.name" | ||||
|                   :titleSize="dashboard.titleSize" | ||||
|                   :theme="dashboard.theme" | ||||
|                   :background="dashboard.theme == 1 ? 'https://cdn.cunwuyun.cn/dvcp/dv/img/dj_bg.png' : (dashboard.backgroundImage.length ? dashboard.backgroundImage[0].url : '')"> | ||||
|                 <div style="width: 100%; height: 100%"> | ||||
| @@ -120,39 +121,26 @@ | ||||
|         <div class="layout-page__setting layout-right__content" v-else> | ||||
|           <h2>页面设置</h2> | ||||
|           <div class="layout-config__group"> | ||||
|             <div class="layout-config__item"> | ||||
|               <label>屏幕大小</label> | ||||
|               <div class="layout-config__item--right"> | ||||
|                 <el-input-number size="mini" :min="0" v-model="bigscreenWidth" disabled | ||||
|                                  controls-position="right"></el-input-number> | ||||
|                 <el-input-number size="mini" :min="0" v-model="bigscreenHeight" disabled | ||||
|                                  controls-position="right"></el-input-number> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div class="layout-config__item layout-config__item--input"> | ||||
|               <label>屏幕标题</label> | ||||
|               <div class="layout-config__item--right"> | ||||
|                 <el-input v-model="dashboard.title" size="mini"></el-input> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div class="layout-config__item"> | ||||
|               <label>主题设置</label> | ||||
|               <div class="layout-config__item--right"> | ||||
|                 <el-select size="mini" v-model="dashboard.theme" placeholder="请选择"> | ||||
|                   <el-option label="默认" value="0"></el-option> | ||||
|                   <el-option label="党建" value="1"></el-option> | ||||
|                 </el-select> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div class="layout-config__item"> | ||||
|               <label>样式设置</label> | ||||
|               <div class="layout-config__item--right"> | ||||
|                 <el-select size="mini" v-model="dashboard.style" placeholder="请选择"> | ||||
|                   <el-option label="默认" value="black"/> | ||||
|                   <el-option label="经典" value="classic"/> | ||||
|                 </el-select> | ||||
|               </div> | ||||
|             </div> | ||||
|             <config-item label="屏幕大小"> | ||||
|               <el-input-number size="mini" :min="0" v-model="bigscreenWidth" disabled controls-position="right"/> | ||||
|               <el-input-number size="mini" :min="0" v-model="bigscreenHeight" disabled controls-position="right"/> | ||||
|             </config-item> | ||||
|             <config-item label="屏幕标题"> | ||||
|               <el-input v-model="dashboard.title" size="mini"/> | ||||
|               <el-input type="number" v-model="dashboard.titleSize" size="mini" placeholder="字体大小" :max="68"/> | ||||
|             </config-item> | ||||
|             <config-item label="主题设置"> | ||||
|               <el-select size="mini" v-model="dashboard.theme" placeholder="请选择"> | ||||
|                 <el-option label="默认" value="0"></el-option> | ||||
|                 <el-option label="党建" value="1"></el-option> | ||||
|               </el-select> | ||||
|             </config-item> | ||||
|             <config-item label="样式设置"> | ||||
|               <el-select size="mini" v-model="dashboard.style" placeholder="请选择"> | ||||
|                 <el-option label="默认" value="black"/> | ||||
|                 <el-option label="经典" value="classic"/> | ||||
|               </el-select> | ||||
|             </config-item> | ||||
|             <div class="layout-config__item"> | ||||
|               <label>背景图</label> | ||||
|               <div class="layout-config__item--right layout-config__item--bg"> | ||||
| @@ -235,6 +223,7 @@ import DataConfig from './components/DataConfig.vue' | ||||
| import ComponentConfig from "./components/componentConfig.vue"; | ||||
| import {mapActions} from "vuex" | ||||
| import Vue from "vue"; | ||||
| import ConfigItem from "./components/configItem.vue"; | ||||
|  | ||||
| export default { | ||||
|   name: "viewport", | ||||
| @@ -271,6 +260,7 @@ export default { | ||||
|       componentList: [], | ||||
|       dashboard: { | ||||
|         title: '大屏', | ||||
|         titleSize: 38, | ||||
|         width: 1920, | ||||
|         height: 1080, | ||||
|         theme: '0', | ||||
| @@ -292,6 +282,7 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   components: { | ||||
|     ConfigItem, | ||||
|     ComponentConfig, | ||||
|     DataConfig, | ||||
|     VueRulerTool, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user