diff --git a/data-room-ui/package-lock.json b/data-room-ui/package-lock.json
index 32c968d4..31507cc2 100644
--- a/data-room-ui/package-lock.json
+++ b/data-room-ui/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@gcpaas/data-room-ui",
- "version": "1.0.1-2023101101-Alpha",
+ "version": "1.0.1-2023101301-Alpha",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -3699,7 +3699,7 @@
},
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.2",
- "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.2.tgz",
+ "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.10.2.tgz",
"integrity": "sha512-ndeSe/8KQc/nlA7TJ+OBhv2qalmj1s+uBs7yHDRFaAXscFTApBzY9F1jES3bautmgWjDlDct0fw8rPuySDLwxw==",
"dev": true,
"requires": {
@@ -3712,13 +3712,13 @@
"dependencies": {
"hash-sum": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
+ "resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
},
"json5": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
+ "resolved": "https://registry.npmmirror.com/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
@@ -3727,7 +3727,7 @@
},
"loader-utils": {
"version": "1.4.2",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
+ "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-1.4.2.tgz",
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
@@ -10499,11 +10499,6 @@
"integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
"dev": true
},
- "image-conversion": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/image-conversion/-/image-conversion-2.1.1.tgz",
- "integrity": "sha512-hnMOmP7q2jxA+52FZ+wHNhg3fdFRlgfngsQH2JQHEQkafY7tj/8F15e6Rv/RxDegc872jvyaRHwMbkTZK1Cjbg=="
- },
"image-size": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
@@ -20147,7 +20142,7 @@
},
"vue-hot-reload-api": {
"version": "2.3.4",
- "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
+ "resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
diff --git a/data-room-ui/package.json b/data-room-ui/package.json
index 0bda615d..c850698a 100644
--- a/data-room-ui/package.json
+++ b/data-room-ui/package.json
@@ -64,7 +64,6 @@
"es6-promise": "4.2.8",
"gc-vue-draggable-resizable": "^1.0.1",
"html-to-image": "1.11.11",
- "image-conversion": "^2.1.1",
"insert-css": "^2.0.0",
"jquery": "^3.6.4",
"lodash": "4.17.21",
diff --git a/data-room-ui/packages/BasicComponents/Button/setting.vue b/data-room-ui/packages/BasicComponents/Button/setting.vue
index 147428db..90993bc6 100644
--- a/data-room-ui/packages/BasicComponents/Button/setting.vue
+++ b/data-room-ui/packages/BasicComponents/Button/setting.vue
@@ -28,12 +28,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/ChartTab/setting.vue b/data-room-ui/packages/BasicComponents/ChartTab/setting.vue
index dec7177a..4f0067c9 100644
--- a/data-room-ui/packages/BasicComponents/ChartTab/setting.vue
+++ b/data-room-ui/packages/BasicComponents/ChartTab/setting.vue
@@ -35,12 +35,12 @@
label-width="120px"
/>
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/DigitalFlop/setting.vue b/data-room-ui/packages/BasicComponents/DigitalFlop/setting.vue
index 09d706e7..50b4075b 100644
--- a/data-room-ui/packages/BasicComponents/DigitalFlop/setting.vue
+++ b/data-room-ui/packages/BasicComponents/DigitalFlop/setting.vue
@@ -36,12 +36,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/FlyMap/setting.vue b/data-room-ui/packages/BasicComponents/FlyMap/setting.vue
index 3098a0bd..e195642d 100644
--- a/data-room-ui/packages/BasicComponents/FlyMap/setting.vue
+++ b/data-room-ui/packages/BasicComponents/FlyMap/setting.vue
@@ -33,12 +33,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
- 旋转
+
边框
- 旋转
+
边框
- 旋转
+
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/IndicatorCard/setting.vue b/data-room-ui/packages/BasicComponents/IndicatorCard/setting.vue
index 662d1e36..536a227b 100644
--- a/data-room-ui/packages/BasicComponents/IndicatorCard/setting.vue
+++ b/data-room-ui/packages/BasicComponents/IndicatorCard/setting.vue
@@ -27,12 +27,12 @@
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/LinkChart/setting.vue b/data-room-ui/packages/BasicComponents/LinkChart/setting.vue
index 9a8a9b04..6f82e2f3 100644
--- a/data-room-ui/packages/BasicComponents/LinkChart/setting.vue
+++ b/data-room-ui/packages/BasicComponents/LinkChart/setting.vue
@@ -40,12 +40,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
{
diff --git a/data-room-ui/packages/BasicComponents/ScreenScrollBoard/setting.vue b/data-room-ui/packages/BasicComponents/ScreenScrollBoard/setting.vue
index 440f26b9..251fa23e 100644
--- a/data-room-ui/packages/BasicComponents/ScreenScrollBoard/setting.vue
+++ b/data-room-ui/packages/BasicComponents/ScreenScrollBoard/setting.vue
@@ -36,12 +36,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/ScreenScrollRanking/setting.vue b/data-room-ui/packages/BasicComponents/ScreenScrollRanking/setting.vue
index 640b8571..b05e8b54 100644
--- a/data-room-ui/packages/BasicComponents/ScreenScrollRanking/setting.vue
+++ b/data-room-ui/packages/BasicComponents/ScreenScrollRanking/setting.vue
@@ -35,12 +35,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/Tables/setting.vue b/data-room-ui/packages/BasicComponents/Tables/setting.vue
index becb04e2..2b30957c 100644
--- a/data-room-ui/packages/BasicComponents/Tables/setting.vue
+++ b/data-room-ui/packages/BasicComponents/Tables/setting.vue
@@ -35,12 +35,12 @@
label-width="120px"
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/Texts/setting.vue b/data-room-ui/packages/BasicComponents/Texts/setting.vue
index 18dc62d9..c7679b00 100644
--- a/data-room-ui/packages/BasicComponents/Texts/setting.vue
+++ b/data-room-ui/packages/BasicComponents/Texts/setting.vue
@@ -42,12 +42,12 @@
:big-title="config.title"
/>
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/VerticalLine/setting.vue b/data-room-ui/packages/BasicComponents/VerticalLine/setting.vue
index 4fd1374d..e06ae1ea 100644
--- a/data-room-ui/packages/BasicComponents/VerticalLine/setting.vue
+++ b/data-room-ui/packages/BasicComponents/VerticalLine/setting.vue
@@ -37,12 +37,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BasicComponents/Video/setting.vue b/data-room-ui/packages/BasicComponents/Video/setting.vue
index 12b066a0..33a01dff 100644
--- a/data-room-ui/packages/BasicComponents/Video/setting.vue
+++ b/data-room-ui/packages/BasicComponents/Video/setting.vue
@@ -37,12 +37,12 @@
:bigTitle='config.title'
/>
- 旋转
+
基础
diff --git a/data-room-ui/packages/BigScreenDesign/BorderSetting.vue b/data-room-ui/packages/BigScreenDesign/BorderSetting.vue
index aa448283..70d4629b 100644
--- a/data-room-ui/packages/BigScreenDesign/BorderSetting.vue
+++ b/data-room-ui/packages/BigScreenDesign/BorderSetting.vue
@@ -27,12 +27,12 @@
- 旋转
+
基础
diff --git a/data-room-ui/packages/BigScreenDesign/PageDesignTop.vue b/data-room-ui/packages/BigScreenDesign/PageDesignTop.vue
index b6e45349..3df59a92 100644
--- a/data-room-ui/packages/BigScreenDesign/PageDesignTop.vue
+++ b/data-room-ui/packages/BigScreenDesign/PageDesignTop.vue
@@ -131,10 +131,9 @@ import icons from 'data-room-ui/assets/images/alignIcon/export'
import IconSvg from 'data-room-ui/SvgIcon'
import {
showSize,
- dataURLtoBlob,
- translateBlobToBase64
+ compressImage
} from 'data-room-ui/js/utils/compressImg'
-import * as imageConversion from 'image-conversion'
+// import * as imageConversion from 'image-conversion'
export default {
name: 'PageTopSetting',
components: {
@@ -449,15 +448,21 @@ export default {
}
if (dataUrl) {
if (showSize(dataUrl) > 200) {
- const url = dataURLtoBlob(dataUrl)
- // 压缩到500KB,这里的500就是要压缩的大小,可自定义
- const imgRes = await imageConversion.compressAccurately(url, {
- size: 200, // 图片大小压缩到100kb
- width: 1280, // 宽度压缩到1280
- height: 720 // 高度压缩到720
- })
- const base64 = await translateBlobToBase64(imgRes)
- pageInfo.coverPicture = base64.result
+ // const newData = compressImage(dataUrl, 800)
+ // console.log(111, newData)
+ // const url = dataURLtoBlob(dataUrl)
+ // // 压缩到500KB,这里的500就是要压缩的大小,可自定义
+ // const imgRes = await imageConversion.compressAccurately(url, {
+ // size: 200, // 图片大小压缩到100kb
+ // width: 1280, // 宽度压缩到1280
+ // height: 720 // 高度压缩到720
+ // })
+ // const base64 = await translateBlobToBase64(imgRes)
+ // pageInfo.coverPicture = base64.result
+ this.$message.info('由于封面图片过大,进行压缩中')
+ const compressCoverPicture = await compressImage(dataUrl, { width: 1280, height: 720, size: 400, quality: 1 })
+ console.log(showSize(compressCoverPicture))
+ pageInfo.coverPicture = compressCoverPicture
} else {
pageInfo.coverPicture = dataUrl
}
diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/BorderSetting.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/BorderSetting.vue
index b60e2f4a..5ae47a69 100644
--- a/data-room-ui/packages/BigScreenDesign/RightSetting/BorderSetting.vue
+++ b/data-room-ui/packages/BigScreenDesign/RightSetting/BorderSetting.vue
@@ -75,6 +75,7 @@
+
+
+
+ 选择
+
+
+
+
@@ -258,12 +276,14 @@ import plotList from 'data-room-ui/BorderComponents/settingList.js'
import BorderColorSetting from 'data-room-ui/BigScreenDesign/RightSetting/BorderColorSetting/index.vue'
import ColorSelect from 'data-room-ui/ColorMultipleSelect/index.vue'
import BorderSelect from 'data-room-ui/BorderSelect/index.vue'
+import SourceDialog from '../SourceDialog/index.vue'
export default {
name: '',
components: {
BorderSelect,
ColorSelect,
- BorderColorSetting
+ BorderColorSetting,
+ SourceDialog
},
props: {
bigTitle:{
@@ -361,9 +381,17 @@ export default {
// }
},
methods: {
+ changeImg(val){
+ console.log(val)
+ this.$set(this.config,'imgUrl',val.url)
+ },
init(){
this.$refs.BorderSelect.init()
+ },
+ initCard(){
+ this.$refs.SourceDialog.init()
}
+
}
}
diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue
index a0ae2b24..d67bcae6 100644
--- a/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue
+++ b/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue
@@ -792,6 +792,8 @@ export default {
},
// 根据数据集来获取数据集详情
getDataSetDetailsById (id, type) {
+ this.clearVerify()
+ this.config.customize.columnConfig=[]
if (id) {
this.config.dataSource.businessKey = id
getDataSetDetails(id).then(res => {
diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/EchartsCustomSetting.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/EchartsCustomSetting.vue
index 55ebeb46..67374603 100644
--- a/data-room-ui/packages/BigScreenDesign/RightSetting/EchartsCustomSetting.vue
+++ b/data-room-ui/packages/BigScreenDesign/RightSetting/EchartsCustomSetting.vue
@@ -37,12 +37,12 @@
:config="config"
/>
- 旋转
+
{{ group.groupName | filterGroupName }}
diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/G2CustomSetting.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/G2CustomSetting.vue
index 4b759afd..36935a17 100644
--- a/data-room-ui/packages/BigScreenDesign/RightSetting/G2CustomSetting.vue
+++ b/data-room-ui/packages/BigScreenDesign/RightSetting/G2CustomSetting.vue
@@ -37,12 +37,12 @@
:config="config"
/>
- 旋转
+
{{ group.groupName | filterGroupName }}
diff --git a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
index acb8882d..01f06416 100644
--- a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
+++ b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
@@ -153,7 +153,16 @@ import { getFileUrl } from 'data-room-ui/js/utils/file'
export default {
name: 'SourceDialog',
mixins: [pageMixins],
- props: {},
+ props: {
+ imgUrl: {
+ type: String,
+ default: ''
+ }
+ },
+ model: {
+ prop: 'imgUrl',
+ event: 'change'
+ },
data () {
return {
dialogVisible: false,
@@ -193,6 +202,7 @@ export default {
confirm () {
this.dialogVisible = false
if (this.focus !== -1) {
+ this.$emit('change', this.focus)
this.$emit('getImg', this.focus)
}
},
diff --git a/data-room-ui/packages/BizComponent/index.vue b/data-room-ui/packages/BizComponent/index.vue
index c01c6036..dc1c9471 100644
--- a/data-room-ui/packages/BizComponent/index.vue
+++ b/data-room-ui/packages/BizComponent/index.vue
@@ -156,10 +156,11 @@ import 'codemirror/mode/vue/vue.js'
import {
showSize,
- dataURLtoBlob,
- translateBlobToBase64
+ compressImage
+ // dataURLtoBlob,
+ // translateBlobToBase64
} from 'data-room-ui/js/utils/compressImg'
-import * as imageConversion from 'image-conversion'
+// import * as imageConversion from 'image-conversion'
export default {
name: 'BizComponentDesign',
@@ -354,20 +355,22 @@ export default {
}
if (dataUrl) {
if (showSize(dataUrl) > 200) {
- const url = dataURLtoBlob(dataUrl)
+ // const url = dataURLtoBlob(dataUrl)
// 压缩到500KB,这里的500就是要压缩的大小,可自定义
- imageConversion.compressAccurately(
- url,
- {
- size: 200, // 图片大小压缩到100kb
- width: 1280, // 宽度压缩到1280
- height: 720 // 高度压缩到720
- }
- ).then((res) => {
- translateBlobToBase64(res, (e) => {
- this.form.coverPicture = e.result
- })
- })
+ // imageConversion.compressAccurately(
+ // url,
+ // {
+ // size: 200, // 图片大小压缩到100kb
+ // width: 1280, // 宽度压缩到1280
+ // height: 720 // 高度压缩到720
+ // }
+ // ).then((res) => {
+ // translateBlobToBase64(res, (e) => {
+ // this.form.coverPicture = e.result
+ // })
+ // })
+ this.$message.info('由于封面图片过大,进行压缩中')
+ this.form.coverPicture = await compressImage(dataUrl, { width: 1280, height: 720, size: 400, quality: 1 })
} else {
this.form.coverPicture = dataUrl
}
diff --git a/data-room-ui/packages/BorderComponents/GcBorder16/index.vue b/data-room-ui/packages/BorderComponents/GcBorder16/index.vue
index ba83dba4..ac4205e0 100644
--- a/data-room-ui/packages/BorderComponents/GcBorder16/index.vue
+++ b/data-room-ui/packages/BorderComponents/GcBorder16/index.vue
@@ -4,8 +4,8 @@
class="bs-design-wrap"
:id="'border'+ config.code"
:style="{
- borderImageSlice:'100 100 100 100 fill',
- borderImageWidth:'100px 100px 100px 100px',
+ borderImageSlice:`${borderArray[0]} ${borderArray[1]} ${borderArray[2]} ${borderArray[3]} fill`,
+ borderImageWidth:`${borderArray[0]}px ${borderArray[1]}px ${borderArray[2]}px ${borderArray[3]}px`,
}"
>
@@ -33,12 +33,26 @@ export default {
}
},
computed: {
+ borderArray(){
+ return this.config.border.borderArray ? this.config.border.borderArray
+ : [100,100,100,100]
+ }
},
watch: {
+ 'config.border.imgUrl': {
+ handler (val) {
+ if(val){
+ const a =document.getElementById('border'+ this.config.code)
+ a.style['border-image-source']=`url(${val})`
+ }
+ }
+ }
},
mounted () {
- const a =document.getElementById('border'+ this.config.code)
- // a.style['border-image-source']=`url(http://127.0.0.1:8081//bigScreenServer/static/1704043211902484481.png)`
+ if(this.config.border.imgUrl){
+ const a =document.getElementById('border'+ this.config.code)
+ a.style['border-image-source']=`url(${this.config.border.imgUrl})`
+ }
},
methods: {
}
diff --git a/data-room-ui/packages/BorderComponents/GcBorder16/setting.js b/data-room-ui/packages/BorderComponents/GcBorder16/setting.js
index 4ae565d1..05445c23 100644
--- a/data-room-ui/packages/BorderComponents/GcBorder16/setting.js
+++ b/data-room-ui/packages/BorderComponents/GcBorder16/setting.js
@@ -3,134 +3,14 @@ const type = 'GcBorder16'
const name = '边框16'
-const isTitle = true
+const isTitle = false
const padding =[0,0,0,0]
// 右侧配置项
const setting = [
- {
- label:'标题区域背景色',
- // 设置组件类型, select / input / colorPicker
- type: 'gradual',
- // 字段
- field: 'fontGradientColor',
- optionField: 'fontGradientColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: [],
- },
// 背景色
// {
- // label:'标题区域背景色一',
- // // 设置组件类型, select / input / colorPicker
- // type: 'colorPicker',
- // // 字段
- // field: 'fontGradientColor0',
- // optionField: 'fontGradientColor0', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: '',
- // },
- // {
- // label:'标题区域背景色二',
- // // 设置组件类型, select / input / colorPicker
- // type: 'colorPicker',
- // // 字段
- // field: 'fontGradientColor1',
- // optionField: 'fontGradientColor1', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: '',
- // },
- {
- label:'标题左侧颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'fontLeftColor',
- optionField: 'fontLeftColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '#007aff',
- },
- {
- label:'标题左侧宽度',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'fontLeftWidth',
- optionField: 'fontLeftWidth', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 4,
- },
- {
- label:'标题底部分割线颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'fontBottomColor',
- optionField: 'fontBottomColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '',
- },
- {
- label:'外边框线颜色',
- // 设置组件类型, select / input / colorPicker
- type: 'colorPicker',
- // 字段
- field: 'borderColor',
- optionField: 'borderColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: '',
- },
- {
- label:'外边框线宽度',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'borderWidth',
- optionField: 'borderWidth', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 0,
- },
- {
- label:'背景色',
- // 设置组件类型, select / input / colorPicker
- type: 'gradual',
- // 字段
- field: 'gradientColor',
- optionField: 'gradientColor', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: [],
- },
- // {
- // label:'背景色一',
- // // 设置组件类型, select / input / colorPicker
- // type: 'colorPicker',
- // // 字段
- // field: 'gradientColor0',
- // optionField: 'gradientColor0', // 对应options中的字段
- // // 是否多选
- // multiple: false,
- // // 绑定的值
- // value: '',
- // },
- // {
// label:'背景色二',
// // 设置组件类型, select / input / colorPicker
// type: 'colorPicker',
@@ -143,104 +23,29 @@ const setting = [
// value: '',
// },
{
- label: '渐变色方向',
- // 设置组件类型
- type: 'select',
- // 字段
- field: 'gradientDirection',
- // 对应options中的字段
- optionField: 'gradientDirection',
- // 是否多选
- multiple: false,
- value: 'to right',
- options: [
- {
- label: '从左到右',
- value: 'to right'
- },
- {
- label: '从右到左',
- value: 'to left'
- },
- {
- label: '从上到下',
- value: 'to bottom'
- },
- {
- label: '从下到上',
- value: 'to top'
- },
- {
- label: '从左上到右下',
- value: 'to bottom right'
- },
- {
- label: '从右上到左下',
- value: 'to bottom left'
- },
- {
- label: '从左下到右上',
- value: 'to top right'
- },
- {
- label: '从右下到左上',
- value: 'to top left'
- }
- ]
- },
- {
- label:'左上圆角值',
+ label:'选择背景图',
// 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
+ type: 'background',
// 字段
- field: 'radiusLeftTop',
- optionField: 'radiusLeftTop', // 对应options中的字段
+ field: 'imgUrl',
+ optionField: 'imgUrl', // 对应options中的字段
// 是否多选
multiple: false,
// 绑定的值
- value: 2,
- },
- {
- label:'左下圆角值',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'radiusLeftBottom',
- optionField: 'radiusLeftBottom', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 2,
- },
- {
- label:'右上圆角值',
- // 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
- // 字段
- field: 'radiusRightTop',
- optionField: 'radiusRightTop', // 对应options中的字段
- // 是否多选
- multiple: false,
- // 绑定的值
- value: 2,
+ value: '',
},
{
- label:'右下圆角值',
+ label:'点九图背景切割',
// 设置组件类型, select / input / colorPicker
- type: 'inputNumber',
+ type: 'move',
// 字段
- field: 'radiusRightBottom',
- optionField: 'radiusRightBottom', // 对应options中的字段
+ field: 'borderArray',
+ optionField: 'borderArray', // 对应options中的字段
// 是否多选
multiple: false,
// 绑定的值
- value: 2,
+ value: [100,100,100,100],
},
-
-
-
-
-
]
diff --git a/data-room-ui/packages/BorderSelect/index.vue b/data-room-ui/packages/BorderSelect/index.vue
index e3b30f6d..4c6ea9d1 100644
--- a/data-room-ui/packages/BorderSelect/index.vue
+++ b/data-room-ui/packages/BorderSelect/index.vue
@@ -29,6 +29,7 @@
@click="chooseComponent(component)"
>
diff --git a/data-room-ui/packages/Borders/Border1/setting.vue b/data-room-ui/packages/Borders/Border1/setting.vue
index 85bc92f6..d3b46ebf 100644
--- a/data-room-ui/packages/Borders/Border1/setting.vue
+++ b/data-room-ui/packages/Borders/Border1/setting.vue
@@ -5,9 +5,9 @@
:config="config"
:predefine-theme-colors="predefineThemeColors"
/>
-
+ /> -->