diff --git a/data-room-ui/packages/BasicComponents/Numbers/index.vue b/data-room-ui/packages/BasicComponents/Numbers/index.vue index 454e9c73..3e351269 100644 --- a/data-room-ui/packages/BasicComponents/Numbers/index.vue +++ b/data-room-ui/packages/BasicComponents/Numbers/index.vue @@ -5,7 +5,7 @@ >
{{ config.customize.title }}
@@ -62,10 +62,11 @@ export default { width: 100%; display: flex; align-items: center; - justify-content: center; + //justify-content: center; } .content-box{ - //text-align: center; + width: 100%; + text-align: center; /* 将背景设为渐变 */ /*background-image: -webkit-linear-gradient(left, #6294F7, #C85D14);*/ /* 规定背景绘制区域 */ diff --git a/data-room-ui/packages/BasicComponents/Numbers/setting.vue b/data-room-ui/packages/BasicComponents/Numbers/setting.vue index 35777728..156c15e4 100644 --- a/data-room-ui/packages/BasicComponents/Numbers/setting.vue +++ b/data-room-ui/packages/BasicComponents/Numbers/setting.vue @@ -74,6 +74,16 @@ placeholder="请输入数字权重" /> + + + + + + + +
{{ config.customize.title }}
@@ -73,7 +73,8 @@ export default { justify-content: center; } .content-box{ - //text-align: center; + width: 100%; + text-align: center; /* 将背景设为渐变 */ /*background-image: -webkit-linear-gradient(left, #6294F7, #C85D14);*/ /* 规定背景绘制区域 */ diff --git a/data-room-ui/packages/BasicComponents/Texts/setting.vue b/data-room-ui/packages/BasicComponents/Texts/setting.vue index 00acf058..048839fa 100644 --- a/data-room-ui/packages/BasicComponents/Texts/setting.vue +++ b/data-room-ui/packages/BasicComponents/Texts/setting.vue @@ -74,6 +74,16 @@ placeholder="请输入文字权重" /> + + + + + + + + @@ -116,6 +143,18 @@ export default { data () { return { fontFamilyList: fontList, + alignList: [{ + label: '靠左', + value: 'left' + }, + { + label: '居中', + value: 'center' + }, + { + label: '靠右', + value: 'right' + }], rules: { title: [ { required: true, message: '请输入标题', trigger: 'blur' } diff --git a/data-room-ui/packages/BasicComponents/Texts/settingConfig.js b/data-room-ui/packages/BasicComponents/Texts/settingConfig.js index 6eb9e016..12b5c430 100644 --- a/data-room-ui/packages/BasicComponents/Texts/settingConfig.js +++ b/data-room-ui/packages/BasicComponents/Texts/settingConfig.js @@ -8,7 +8,7 @@ import { commonConfig, displayOption } from 'data-room-ui/js/config' export const settingConfig = { theme: 'dark', - data:[], + data: [], text: '文本标签占位符', // text内容 // 设置面板属性的显隐 displayOption: { @@ -58,7 +58,9 @@ const customConfig = { fontSize: 20, fontWeight: 700, fontFamily: '', // 字体类型 - color: 'left,#ffffff,#ffffff' + color: 'left,#ffffff,#ffffff', + align: 'center', // 文字对齐方式 + letterSpacing: 1// 文字间距 } }