From b840e2f09cb3b24cfb16670fa7e0b0e44dc8384a Mon Sep 17 00:00:00 2001 From: pengxiaotian <673923162@qq.com> Date: Sun, 15 Jan 2023 16:52:29 +0800 Subject: [PATCH 01/10] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/data/pie/basic-pie.json | 37 +++++++++++++ src/components/index.ts | 2 + src/components/pie/basic-pie/index.ts | 11 ++++ src/components/pie/basic-pie/src/basic-pie.ts | 55 +++++++++++++++++++ src/components/pie/basic-pie/src/config.json | 1 + src/components/pie/basic-pie/src/config.vue | 3 + src/components/pie/basic-pie/src/index.vue | 31 +++++++++++ src/data/system-components.ts | 2 +- 8 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 public/data/pie/basic-pie.json create mode 100644 src/components/pie/basic-pie/index.ts create mode 100644 src/components/pie/basic-pie/src/basic-pie.ts create mode 100644 src/components/pie/basic-pie/src/config.json create mode 100644 src/components/pie/basic-pie/src/config.vue create mode 100644 src/components/pie/basic-pie/src/index.vue diff --git a/public/data/pie/basic-pie.json b/public/data/pie/basic-pie.json new file mode 100644 index 00000000..645e49eb --- /dev/null +++ b/public/data/pie/basic-pie.json @@ -0,0 +1,37 @@ +[ + { + "type": "分类一", + "value": 10, + "colorField": 100 + }, + { + "type": "分类二", + "value": 20, + "colorField": 200 + }, + { + "type": "分类三", + "value": 30, + "colorField": 300 + }, + { + "type": "分类四", + "value": 40, + "colorField": 400 + }, + { + "type": "分类五", + "value": 50, + "colorField": 500 + }, + { + "type": "分类六", + "value": 60, + "colorField": 600 + }, + { + "type": "分类七", + "value": 70, + "colorField": 700 + } +] diff --git a/src/components/index.ts b/src/components/index.ts index edda4671..db2454df 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -18,6 +18,7 @@ import VDecoration from './media/decoration' import VMainImg from './media/main-img' import VDatePicker from './other/date-picker' import VTableBar from './table/table-bar' +import VBasicPie from './pie/basic-pie' // -- prepend placeholder 1 -- const components = [ @@ -38,6 +39,7 @@ const components = [ VMainImg, VDatePicker, VTableBar, + VBasicPie, // -- prepend placeholder 2 -- ] diff --git a/src/components/pie/basic-pie/index.ts b/src/components/pie/basic-pie/index.ts new file mode 100644 index 00000000..7949f956 --- /dev/null +++ b/src/components/pie/basic-pie/index.ts @@ -0,0 +1,11 @@ +import type { App } from 'vue' +import type { SFCWithInstall } from '@/utils/types' +import { loadAsyncComponent } from '@/utils/async-component' +import BasicPie from './src/index.vue' + +BasicPie.install = (app: App): void => { + app.component('VBasicPie', BasicPie) + app.component('VBasicPieProp', loadAsyncComponent(() => import('./src/config.vue'))) +} + +export default BasicPie as SFCWithInstall diff --git a/src/components/pie/basic-pie/src/basic-pie.ts b/src/components/pie/basic-pie/src/basic-pie.ts new file mode 100644 index 00000000..2680c86d --- /dev/null +++ b/src/components/pie/basic-pie/src/basic-pie.ts @@ -0,0 +1,55 @@ +import { DatavComponent } from '@/components/_models/datav-component' +import { + ApiConfigMap, ApiDataConfigMap, + setApiConfig, setApiData, +} from '@/components/_models/data-source' +import { createField } from '@/components/_models/data-field' +import { DataEventConfig } from '@/components/_models/data-event' +import { getStaticData } from '@/api/data' + +/** + * BasicPie + */ +export class BasicPie extends DatavComponent { + config = {} + + apis: Partial + apiData: Partial + events: Record + actions: Record + + constructor() { + super('BasicPie', { w: 400, h: 240 }) + + this.initData() + } + + initData() { + const fields = [ + createField('value', { description: '', optional: true }), + ] + + setApiConfig(this, { + fields: Object.assign({}, ...fields), + }) + + setApiData(this) + + this.events = {} + this.actions = {} + + return this + } + + async loadData() { + try { + const path = 'pie/basic-pie' + const res = await getStaticData(this.id, path) + this.apiData.source.config.data = JSON.stringify(res.data) + } catch (error) { + throw error + } + } +} + +export default BasicPie diff --git a/src/components/pie/basic-pie/src/config.json b/src/components/pie/basic-pie/src/config.json new file mode 100644 index 00000000..fe51488c --- /dev/null +++ b/src/components/pie/basic-pie/src/config.json @@ -0,0 +1 @@ +[] diff --git a/src/components/pie/basic-pie/src/config.vue b/src/components/pie/basic-pie/src/config.vue new file mode 100644 index 00000000..7b8b46cb --- /dev/null +++ b/src/components/pie/basic-pie/src/config.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/pie/basic-pie/src/index.vue b/src/components/pie/basic-pie/src/index.vue new file mode 100644 index 00000000..023dd886 --- /dev/null +++ b/src/components/pie/basic-pie/src/index.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/data/system-components.ts b/src/data/system-components.ts index 1b921e23..8ccdf762 100644 --- a/src/data/system-components.ts +++ b/src/data/system-components.ts @@ -96,7 +96,7 @@ export const pie: ComDataType = { alias: '基本饼图', img: `${import.meta.env.VITE_APP_CDN}/com/basic-pie-160-116.png`, thum: `${import.meta.env.VITE_APP_CDN}/com-thum/basic-pie-368-208.png`, - used: false, + used: true, }, { name: 'VPieOneValue', alias: '指标占比饼图', From 94feb0039c89aa6b4b0a95f0ed33f73a276eb683 Mon Sep 17 00:00:00 2001 From: pengxiaotian <673923162@qq.com> Date: Mon, 16 Jan 2023 01:59:53 +0800 Subject: [PATCH 02/10] =?UTF-8?q?revert:=20=E9=87=8D=E5=86=99=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +- datav-cli-ui/assets/templates/config-tpl.hbs | 6 +- .../templates/partials/prop-component-tpl.hbs | 130 ++- .../templates/partials/prop-config-tpl.hbs | 2 +- .../templates/partials/prop-data-tpl.hbs | 10 +- datav-cli-ui/components/config-form-item.vue | 48 +- datav-cli-ui/components/config-form.vue | 2 + datav-cli-ui/components/preview-prop-item.vue | 78 +- datav-cli-ui/components/preview-prop.vue | 2 + datav-cli-ui/domains/prop-data.ts | 11 +- datav-cli-ui/pages/attr-settings.vue | 5 + datav-cli-ui/ui-components/index.ts | 2 + src/api/data.ts | 6 +- src/components/_models/border-image.ts | 1 + src/components/bar/basic-bar/src/basic-bar.ts | 14 +- src/components/bar/basic-bar/src/config.json | 874 +++++++++++----- src/components/bar/basic-bar/src/config.vue | 207 ++-- src/components/bar/basic-bar/src/index.vue | 4 +- .../button/full-screen/src/config.json | 27 +- .../button/full-screen/src/config.vue | 29 +- .../button/full-screen/src/full-screen.ts | 2 - .../chart/word-cloud/src/config.json | 172 +++- .../chart/word-cloud/src/config.vue | 84 +- .../chart/word-cloud/src/word-cloud.ts | 12 - .../line/basic-line/src/basic-line.ts | 12 +- .../line/basic-line/src/config.json | 934 ++++++++++++------ src/components/line/basic-line/src/config.vue | 274 +++-- src/components/line/basic-line/src/index.vue | 4 +- .../map/china2d/src/china2d-area/config.json | 45 +- .../map/china2d/src/china2d-area/config.vue | 54 +- .../china2d/src/china2d-bubbles/config.json | 49 +- .../china2d/src/china2d-bubbles/config.vue | 25 +- .../map/china2d/src/china2d-bubbles/index.ts | 20 +- .../src/china2d-flyingline/config.json | 19 +- .../china2d/src/china2d-flyingline/config.vue | 1 + .../china2d/src/china2d-flyingline/index.ts | 3 +- src/components/map/china2d/src/config.json | 64 +- src/components/map/china2d/src/config.vue | 37 +- src/components/media/bg-box/src/bg-box.ts | 3 +- src/components/media/bg-box/src/config.json | 142 ++- src/components/media/bg-box/src/config.vue | 112 +-- .../media/border-box/src/border-box.ts | 3 +- .../media/border-box/src/config.json | 14 +- .../media/border-box/src/config.vue | 25 +- .../media/decoration/src/config.json | 17 +- .../media/decoration/src/config.vue | 36 +- .../media/decoration/src/decoration.ts | 344 ++++--- src/components/media/decoration/src/index.vue | 4 +- src/components/media/main-img/src/config.json | 54 +- src/components/media/main-img/src/config.vue | 50 +- .../other/date-picker/src/config.json | 162 ++- .../other/date-picker/src/config.vue | 25 +- src/components/pie/basic-pie/src/basic-pie.ts | 19 +- src/components/pie/basic-pie/src/config.json | 434 +++++++- src/components/pie/basic-pie/src/config.vue | 32 +- .../table/carousel-table/src/config.json | 2 +- .../table/carousel-table/src/config.vue | 67 +- .../table/table-bar/src/config.json | 4 +- src/components/table/table-bar/src/config.vue | 50 +- .../text/main-title/src/config.json | 102 +- src/components/text/main-title/src/config.vue | 36 +- src/components/text/marquee/src/config.vue | 8 +- .../text/number-title-flop/src/config.json | 264 ++++- .../text/number-title-flop/src/config.vue | 51 +- src/components/text/paragraph/src/config.json | 62 +- src/components/text/paragraph/src/config.vue | 30 +- src/components/text/timer/src/config.json | 77 +- src/components/text/timer/src/config.vue | 61 +- src/components/ui/checkbox/index.ts | 2 + src/components/ui/checkbox/src/index.vue | 67 ++ .../ui/field-collapse/src/index.vue | 2 +- src/components/ui/field/src/index.vue | 2 +- src/components/ui/index.ts | 2 + src/components/ui/input-number/src/index.vue | 15 +- src/components/ui/input/src/index.vue | 15 +- src/components/ui/radio-group/index.ts | 2 + src/components/ui/radio-group/src/index.vue | 94 ++ src/components/ui/select-image/src/index.vue | 15 +- src/components/ui/select-shape/src/index.vue | 15 +- .../ui/select-suggest/src/index.vue | 15 +- src/components/ui/select/src/index.vue | 15 +- src/components/ui/slider-range/src/index.vue | 15 +- src/components/ui/slider/src/index.vue | 15 +- src/components/ui/switch/src/index.vue | 29 +- src/components/ui/upload-image/src/index.vue | 15 +- src/data/system-components.ts | 6 +- src/styles/checkbox.scss | 7 + src/styles/field.scss | 1 - src/styles/index.scss | 2 + src/styles/input.scss | 10 + src/styles/radio-group.scss | 7 + src/styles/switch.scss | 7 + src/styles/themes/naive-ui-theme-overrides.ts | 2 +- 93 files changed, 3992 insertions(+), 1954 deletions(-) create mode 100644 src/components/ui/checkbox/index.ts create mode 100644 src/components/ui/checkbox/src/index.vue create mode 100644 src/components/ui/radio-group/index.ts create mode 100644 src/components/ui/radio-group/src/index.vue create mode 100644 src/styles/checkbox.scss create mode 100644 src/styles/switch.scss diff --git a/README.md b/README.md index 289f10e3..5d062e4e 100644 --- a/README.md +++ b/README.md @@ -69,15 +69,15 @@ - 基础组件库 - [ ] 柱图 - * [x] 基本柱状图 - * [ ] 弧形柱图 + * [x] 柱状图 + * [ ] 玉环图 * [ ] 折线柱图 - * [ ] 水平基本柱状图 + * [ ] 条形图 - [ ] 折线 - * [x] 基本折线图 + * [x] 折线图 * [ ] 区域图 - [ ] 饼图 - * [ ] 基本饼图 + * [ ] 饼图 * [ ] 指标占比图 - [ ] 关系 * [ ] 树图 diff --git a/datav-cli-ui/assets/templates/config-tpl.hbs b/datav-cli-ui/assets/templates/config-tpl.hbs index 8961058e..1fc8ab5b 100644 --- a/datav-cli-ui/assets/templates/config-tpl.hbs +++ b/datav-cli-ui/assets/templates/config-tpl.hbs @@ -14,11 +14,13 @@ diff --git a/datav-cli-ui/assets/templates/partials/prop-component-tpl.hbs b/datav-cli-ui/assets/templates/partials/prop-component-tpl.hbs index 866f6a5e..e21e4bcd 100644 --- a/datav-cli-ui/assets/templates/partials/prop-component-tpl.hbs +++ b/datav-cli-ui/assets/templates/partials/prop-component-tpl.hbs @@ -8,6 +8,9 @@ inline="{{config.displayMode}}" label="{{config.alias}}" {{/if}} + {{#if config.tip}} + tooltip="{{{config.tip}}}" + {{/if}} /> {{else if (eq config.component componentTypes.number)}} {{else if (eq config.component componentTypes.color)}} {{else if (eq config.component componentTypes.checkbox)}} - {{else if (eq config.component componentTypes.switch)}} - -{{else if (eq config.component componentTypes.radio)}} - - - \{{ pair.value }} - - -{{else if (eq config.component componentTypes.radioBase)}} - +{{else if (eq config.component componentTypes.radio)}} + - - \{{ pair.value }} - - + v-model="{{ getPath path virtualPath }}" + {{#if (getInlineMode config.displayMode)}} + inline="{{config.displayMode}}" + label="{{config.alias}}" + {{/if}} + :data="pairData{{config.id}}" + is-button + {{#if config.tip}} + tooltip="{{{config.tip}}}" + {{/if}} +/> {{else if (eq config.component componentTypes.slider)}} {{else if (eq config.component componentTypes.sliderRange)}} {{else if (eq config.component componentTypes.select)}} {{else if (eq config.component componentTypes.uploadImage)}} {{else if (eq config.component componentTypes.selectImage)}} {{else if (eq config.component componentTypes.selectSuggest)}} {{else if (eq config.component componentTypes.echartIcon)}} {{else if (hasSelectOpts selectOpts config.component)}} {{#if config.flatValue}} - - - \{{ em.value }} - - + v-model="{{ getPath path virtualPath }}" + {{#if (getInlineMode config.displayMode)}} + inline="{{config.displayMode}}" + label="{{config.alias}}" + {{/if}} + :data="{{config.component}}s" + is-button + {{#if config.tip}} + tooltip="{{{config.tip}}}" + {{/if}} +/> {{else}} {{/if}} {{else}} diff --git a/datav-cli-ui/assets/templates/partials/prop-config-tpl.hbs b/datav-cli-ui/assets/templates/partials/prop-config-tpl.hbs index 0e75aef9..4d72493c 100644 --- a/datav-cli-ui/assets/templates/partials/prop-config-tpl.hbs +++ b/datav-cli-ui/assets/templates/partials/prop-config-tpl.hbs @@ -53,7 +53,7 @@ label="{{item.config.alias}}" mode="layout" default-layout="{{item.config.layout}}" - :features="{{{enumsToTpl item.config.features}}}" + :features="{{enumsToTpl item.config.features}}" :list="{{getSlotPath item.path item.virtualPath}}.{{item.key}}" :min="{{item.config.min}}" :max="{{item.config.max}}" diff --git a/datav-cli-ui/assets/templates/partials/prop-data-tpl.hbs b/datav-cli-ui/assets/templates/partials/prop-data-tpl.hbs index 1dcf256b..bea1cb75 100644 --- a/datav-cli-ui/assets/templates/partials/prop-data-tpl.hbs +++ b/datav-cli-ui/assets/templates/partials/prop-data-tpl.hbs @@ -15,7 +15,11 @@ const enumData{{item.config.id}} = [ ] {{/unless}} -{{> prop-data-tpl - configs=item.children -}} +{{#if (includes item.config.features 'add')}} +const handleAdd{{capitalize item.key}}Item = () => { + throw new Error('handleAdd{{capitalize item.key}}Item Not Implemented') +} + +{{/if}} +{{> prop-data-tpl configs=item.children}} {{/each}} diff --git a/datav-cli-ui/components/config-form-item.vue b/datav-cli-ui/components/config-form-item.vue index a8178bd8..1671ca44 100644 --- a/datav-cli-ui/components/config-form-item.vue +++ b/datav-cli-ui/components/config-form-item.vue @@ -12,30 +12,25 @@ v-model="strValue" size="medium" /> - - - - - {{ pair.value }} - - - - - {{ pair.value }} - - + v-model="strValue" + :data="pairs" + /> + diff --git a/datav-cli-ui/components/preview-prop-item.vue b/datav-cli-ui/components/preview-prop-item.vue index 42ab99e2..d8d4d8f5 100644 --- a/datav-cli-ui/components/preview-prop-item.vue +++ b/datav-cli-ui/components/preview-prop-item.vue @@ -4,6 +4,7 @@ v-model="strValue" :inline="mode" :label="mode ? label : ''" + :tooltip="tooltip" /> - - - - - {{ pair.value }} - - - - - {{ pair.value }} - - + v-model="strValue" + :inline="mode" + :label="mode ? label : ''" + :tooltip="tooltip" + :data="pairs" + /> + -- @@ -124,8 +140,7 @@ diff --git a/src/components/bar/basic-bar/src/index.vue b/src/components/bar/basic-bar/src/index.vue index 4d5fccb3..72c84599 100644 --- a/src/components/bar/basic-bar/src/index.vue +++ b/src/components/bar/basic-bar/src/index.vue @@ -178,7 +178,9 @@ export default defineComponent({ xAxis: { show: xAxis.show, type: xAxis.type, - boundaryGap: xAxis.boundaryGap, + boundaryGap: xAxis.type === 'category' + ? xAxis.boundaryGap : xAxis.boundaryGap + ? ['5%', '5%'] : ['0%', '0%'], name: xAxis.title.show ? xAxis.title.name : '', nameLocation: xAxis.title.location, nameRotate: xAxis.title.display.rotate, diff --git a/src/components/button/full-screen/src/config.json b/src/components/button/full-screen/src/config.json index 08073884..9eac662c 100644 --- a/src/components/button/full-screen/src/config.json +++ b/src/components/button/full-screen/src/config.json @@ -2,6 +2,7 @@ { "key": "request", "config": { + "id": 1016, "type": "string", "component": "uploadImage", "alias": "全屏显示", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "request", "virtualPath": "" @@ -31,6 +34,7 @@ { "key": "exit", "config": { + "id": 4398, "type": "string", "component": "uploadImage", "alias": "退出全屏", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "exit", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "bgColor", "config": { + "id": 6975, "type": "string", "component": "color", "alias": "背景颜色", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "bgColor", "virtualPath": "" @@ -89,6 +98,7 @@ { "key": "borderRadius", "config": { + "id": 5965, "type": "number", "component": "slider", "alias": "圆角", @@ -106,11 +116,13 @@ "InfiniteMax": false, "suffix": "%", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "borderRadius", "virtualPath": "" @@ -118,6 +130,7 @@ { "key": "alwaysShow", "config": { + "id": 4338, "type": "boolean", "component": "switch", "alias": "始终显示图片背景", @@ -135,13 +148,15 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "alwaysShow", "virtualPath": "" } -] +] \ No newline at end of file diff --git a/src/components/button/full-screen/src/config.vue b/src/components/button/full-screen/src/config.vue index 6e41cf1e..7c306532 100644 --- a/src/components/button/full-screen/src/config.vue +++ b/src/components/button/full-screen/src/config.vue @@ -35,34 +35,21 @@ - - diff --git a/src/components/button/full-screen/src/full-screen.ts b/src/components/button/full-screen/src/full-screen.ts index 6348a244..bb195952 100644 --- a/src/components/button/full-screen/src/full-screen.ts +++ b/src/components/button/full-screen/src/full-screen.ts @@ -41,8 +41,6 @@ export class FullScreen extends DatavComponent { async loadData() { try { - // 组件静态数据来源,当前项目统一管理目录:public/data/* - // 如:public/data/demo/data.json 简写为 => demo/data const path = '' const res = await getStaticData(this.id, path) this.apiData.source.config.data = JSON.stringify(res.data) diff --git a/src/components/chart/word-cloud/src/config.json b/src/components/chart/word-cloud/src/config.json index dcefa5d1..5d03665d 100644 --- a/src/components/chart/word-cloud/src/config.json +++ b/src/components/chart/word-cloud/src/config.json @@ -2,6 +2,7 @@ { "key": "global", "config": { + "id": 1625, "type": "object", "component": "none", "alias": "全局样式", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global", "virtualPath": "", @@ -31,6 +34,7 @@ { "key": "fontFamily", "config": { + "id": 6065, "type": "string", "component": "fontFamily", "alias": "字体", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.fontFamily", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "max", "config": { + "id": 1721, "type": "number", "component": "slider", "alias": "最大字号", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.max", "virtualPath": "" @@ -89,6 +98,7 @@ { "key": "min", "config": { + "id": 7100, "type": "number", "component": "slider", "alias": "最小字号", @@ -106,11 +116,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.min", "virtualPath": "" @@ -118,6 +130,7 @@ { "key": "rotationRange", "config": { + "id": 5428, "type": "object", "component": "none", "alias": "旋转范围", @@ -135,11 +148,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.rotationRange", "virtualPath": "", @@ -147,6 +162,7 @@ { "key": "min", "config": { + "id": 5432, "type": "number", "component": "number", "alias": "最小角度", @@ -164,11 +180,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.rotationRange.min", "virtualPath": "" @@ -176,9 +194,10 @@ { "key": "max", "config": { + "id": 3946, "type": "number", "component": "number", - "alias": "最小角度", + "alias": "最大角度", "tip": "", "displayMode": "inline", "features": [], @@ -193,11 +212,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.rotationRange.max", "virtualPath": "" @@ -211,6 +232,7 @@ { "key": "rotate", "config": { + "id": 5462, "type": "number", "component": "slider", "alias": "旋转步长", @@ -228,11 +250,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.rotate", "virtualPath": "" @@ -240,6 +264,7 @@ { "key": "drawType", "config": { + "id": 2085, "type": "string", "component": "radio", "alias": "绘制类型", @@ -256,15 +281,23 @@ "InfiniteMin": false, "InfiniteMax": false, "suffix": "", - "enums": [ - "preset", - "image" + "enums": [], + "pairs": [ + { + "key": "preset", + "value": "内置" + }, + { + "key": "image", + "value": "自定义" + } ], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.drawType", "virtualPath": "" @@ -272,8 +305,9 @@ { "key": "shape", "config": { + "id": 7870, "type": "string", - "component": "radio", + "component": "select", "alias": "图形", "tip": "", "displayMode": "single", @@ -288,17 +322,31 @@ "InfiniteMin": false, "InfiniteMax": false, "suffix": "", - "enums": [ - "circle", - "triangle", - "diamond", - "pentagon" + "enums": [], + "pairs": [ + { + "key": "circle", + "value": "圆形" + }, + { + "key": "triangle", + "value": "三矩形" + }, + { + "key": "diamond", + "value": "菱形" + }, + { + "key": "pentagon", + "value": "五角星" + } ], "whichEnum": { "field": "drawType", "value": "preset" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.shape", "virtualPath": "" @@ -306,6 +354,7 @@ { "key": "image", "config": { + "id": 6143, "type": "string", "component": "uploadImage", "alias": "形状图片", @@ -323,11 +372,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "drawType", "value": "image" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.image", "virtualPath": "" @@ -347,6 +398,7 @@ { "key": "series", "config": { + "id": 643, "type": "array", "component": "none", "alias": "系列", @@ -370,11 +422,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series", "virtualPath": "", @@ -382,6 +436,7 @@ { "key": "0", "config": { + "id": 3589, "type": "object", "component": "none", "alias": "系列", @@ -399,11 +454,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0", "virtualPath": "", @@ -411,6 +468,7 @@ { "key": "type", "config": { + "id": 3819, "type": "string", "component": "input", "alias": "", @@ -428,11 +486,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.type", "virtualPath": "slotProps.item.type" @@ -440,6 +500,7 @@ { "key": "id", "config": { + "id": 1458, "type": "string", "component": "input", "alias": "", @@ -449,7 +510,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": true, - "defaultValue": "系列1_KNhwlz3Nnn", + "defaultValue": "0_qGiU7dtKL_", "min": 0, "max": 100, "step": 1, @@ -457,11 +518,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.id", "virtualPath": "slotProps.item.id" @@ -469,6 +532,7 @@ { "key": "name", "config": { + "id": 5276, "type": "string", "component": "input", "alias": "系列名称", @@ -486,11 +550,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.name", "virtualPath": "slotProps.item.name" @@ -498,6 +564,7 @@ { "key": "color", "config": { + "id": 754, "type": "string", "component": "color", "alias": "颜色", @@ -515,11 +582,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.color", "virtualPath": "slotProps.item.color" @@ -532,6 +601,7 @@ { "key": "tooltip", "config": { + "id": 5274, "type": "object", "component": "none", "alias": "提示框", @@ -549,11 +619,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip", "virtualPath": "", @@ -561,6 +633,7 @@ { "key": "show", "config": { + "id": 4704, "type": "boolean", "component": "switch", "alias": "", @@ -578,11 +651,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.show", "virtualPath": "" @@ -590,6 +665,7 @@ { "key": "textStyle", "config": { + "id": 5377, "type": "object", "component": "none", "alias": "文本样式", @@ -607,11 +683,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle", "virtualPath": "", @@ -619,6 +697,7 @@ { "key": "fontSize", "config": { + "id": 8259, "type": "number", "component": "number", "alias": "字号", @@ -636,11 +715,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle.fontSize", "virtualPath": "" @@ -648,6 +729,7 @@ { "key": "color", "config": { + "id": 4836, "type": "string", "component": "color", "alias": "颜色", @@ -665,11 +747,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle.color", "virtualPath": "" @@ -677,6 +761,7 @@ { "key": "fontWeight", "config": { + "id": 8430, "type": "string", "component": "fontWeight", "alias": "字体粗细", @@ -694,11 +779,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle.fontWeight", "virtualPath": "" @@ -713,6 +800,7 @@ { "key": "backgroundColor", "config": { + "id": 6823, "type": "string", "component": "color", "alias": "背景颜色", @@ -730,11 +818,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.backgroundColor", "virtualPath": "" @@ -749,6 +839,7 @@ { "key": "animation", "config": { + "id": 6473, "type": "object", "component": "none", "alias": "", @@ -766,11 +857,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation", "virtualPath": "", @@ -778,6 +871,7 @@ { "key": "enabled", "config": { + "id": 2114, "type": "boolean", "component": "switch", "alias": "", @@ -795,11 +889,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation.enabled", "virtualPath": "" @@ -809,4 +905,4 @@ "enabled" ] } -] +] \ No newline at end of file diff --git a/src/components/chart/word-cloud/src/config.vue b/src/components/chart/word-cloud/src/config.vue index 5ed9630e..ac3e8ef9 100644 --- a/src/components/chart/word-cloud/src/config.vue +++ b/src/components/chart/word-cloud/src/config.vue @@ -54,7 +54,7 @@ :max="360" :step="1" inline="inline" - label="最小角度" + label="最大角度" /> - - - {{ em.value }} - - + - - - {{ em.value }} - - + - diff --git a/src/components/chart/word-cloud/src/word-cloud.ts b/src/components/chart/word-cloud/src/word-cloud.ts index 03471cb3..f400f1e2 100644 --- a/src/components/chart/word-cloud/src/word-cloud.ts +++ b/src/components/chart/word-cloud/src/word-cloud.ts @@ -97,16 +97,4 @@ export class WordCloud extends DatavEChartsComponent { } } -export const drawTypes = [ - { id: 'preset', value: '内置图形' }, - { id: 'image', value: '自定义图形' }, -] - -export const simpleShapes = [ - { id: 'circle', value: '圆形' }, - { id: 'triangle', value: '三矩形' }, - { id: 'diamond', value: '菱形' }, - { id: 'pentagon', value: '五角星' }, -] - export default WordCloud diff --git a/src/components/line/basic-line/src/basic-line.ts b/src/components/line/basic-line/src/basic-line.ts index cc27220e..9a298be4 100644 --- a/src/components/line/basic-line/src/basic-line.ts +++ b/src/components/line/basic-line/src/basic-line.ts @@ -88,8 +88,8 @@ export class BasicLine extends DatavEChartsComponent { }, textStyle: { fontSize: 12, - color: '#90a0ae', fontWeight: 'normal', + color: '#90a0ae', }, }, axisLine: { @@ -116,8 +116,8 @@ export class BasicLine extends DatavEChartsComponent { align: 'center', textStyle: { fontSize: 12, - color: 'rgba(255, 255, 255, 0.6)', fontWeight: 'normal', + color: 'rgba(255, 255, 255, 0.6)', }, }, grid: { @@ -148,8 +148,8 @@ export class BasicLine extends DatavEChartsComponent { }, textStyle: { fontSize: 12, - color: '#90a0ae', fontWeight: 'normal', + color: '#90a0ae', }, }, axisLine: { @@ -176,8 +176,8 @@ export class BasicLine extends DatavEChartsComponent { align: 'right', textStyle: { fontSize: 12, - color: 'rgba(255, 255, 255, 0.6)', fontWeight: 'normal', + color: 'rgba(255, 255, 255, 0.6)', }, }, grid: { @@ -196,8 +196,8 @@ export class BasicLine extends DatavEChartsComponent { triggerOn: 'mousemove', textStyle: { fontSize: 14, - color: '#fff', fontWeight: 'normal', + color: '#fff', }, background: { padding: { @@ -225,8 +225,8 @@ export class BasicLine extends DatavEChartsComponent { orient: 'horizontal', textStyle: { fontSize: 12, - color: '#90a0ae', fontWeight: 'normal', + color: '#90a0ae', }, symbol: { show: true, diff --git a/src/components/line/basic-line/src/config.json b/src/components/line/basic-line/src/config.json index a781ee8e..f95ff966 100644 --- a/src/components/line/basic-line/src/config.json +++ b/src/components/line/basic-line/src/config.json @@ -2,6 +2,7 @@ { "key": "global", "config": { + "id": 4205, "type": "object", "component": "none", "alias": "全局", @@ -24,7 +25,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global", "virtualPath": "", @@ -32,6 +34,7 @@ { "key": "fontFamily", "config": { + "id": 8017, "type": "string", "component": "fontFamily", "alias": "字体", @@ -54,7 +57,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.fontFamily", "virtualPath": "" @@ -62,6 +66,7 @@ { "key": "margin", "config": { + "id": 9764, "type": "object", "component": "none", "alias": "边距", @@ -84,7 +89,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.margin", "virtualPath": "", @@ -92,6 +98,7 @@ { "key": "top", "config": { + "id": 4123, "type": "number", "component": "number", "alias": "顶部", @@ -114,7 +121,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.margin.top", "virtualPath": "" @@ -122,6 +130,7 @@ { "key": "bottom", "config": { + "id": 7435, "type": "number", "component": "number", "alias": "底部", @@ -144,7 +153,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.margin.bottom", "virtualPath": "" @@ -152,6 +162,7 @@ { "key": "left", "config": { + "id": 1148, "type": "number", "component": "number", "alias": "左侧", @@ -174,7 +185,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.margin.left", "virtualPath": "" @@ -182,6 +194,7 @@ { "key": "right", "config": { + "id": 796, "type": "number", "component": "number", "alias": "右侧", @@ -204,7 +217,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.margin.right", "virtualPath": "" @@ -220,6 +234,7 @@ { "key": "connectNulls", "config": { + "id": 1675, "type": "boolean", "component": "switch", "alias": "连接空数据", @@ -242,7 +257,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.connectNulls", "virtualPath": "" @@ -257,6 +273,7 @@ { "key": "xAxis", "config": { + "id": 5188, "type": "object", "component": "none", "alias": "X轴", @@ -279,7 +296,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis", "virtualPath": "", @@ -287,6 +305,7 @@ { "key": "show", "config": { + "id": 1714, "type": "boolean", "component": "switch", "alias": "", @@ -309,7 +328,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.show", "virtualPath": "" @@ -317,6 +337,7 @@ { "key": "type", "config": { + "id": 2248, "type": "string", "component": "axisType", "alias": "数据类型", @@ -339,7 +360,8 @@ "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "xAxis.type", "virtualPath": "" @@ -347,6 +369,7 @@ { "key": "extent", "config": { + "id": 4944, "type": "object", "component": "none", "alias": "显示范围", @@ -369,7 +392,8 @@ "field": "type", "value": "value" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.extent", "virtualPath": "", @@ -377,6 +401,7 @@ { "key": "min", "config": { + "id": 1220, "type": "string", "component": "selectSuggest", "alias": "最小值", @@ -403,7 +428,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.extent.min", "virtualPath": "" @@ -411,6 +437,7 @@ { "key": "max", "config": { + "id": 9631, "type": "string", "component": "selectSuggest", "alias": "最大值", @@ -437,7 +464,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.extent.max", "virtualPath": "" @@ -451,6 +479,7 @@ { "key": "boundaryGap", "config": { + "id": 8024, "type": "boolean", "component": "switch", "alias": "两端留白", @@ -473,7 +502,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.boundaryGap", "virtualPath": "" @@ -481,6 +511,7 @@ { "key": "title", "config": { + "id": 9891, "type": "object", "component": "none", "alias": "轴标题", @@ -503,7 +534,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title", "virtualPath": "", @@ -511,6 +543,7 @@ { "key": "show", "config": { + "id": 1039, "type": "boolean", "component": "switch", "alias": "", @@ -533,7 +566,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.show", "virtualPath": "" @@ -541,6 +575,7 @@ { "key": "name", "config": { + "id": 1179, "type": "string", "component": "input", "alias": "标题显示", @@ -563,7 +598,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.name", "virtualPath": "" @@ -571,6 +607,7 @@ { "key": "location", "config": { + "id": 2361, "type": "string", "component": "titleLocation", "alias": "位置", @@ -593,7 +630,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.location", "virtualPath": "" @@ -601,6 +639,7 @@ { "key": "display", "config": { + "id": 9561, "type": "object", "component": "none", "alias": "展示方式", @@ -623,7 +662,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.display", "virtualPath": "", @@ -631,6 +671,7 @@ { "key": "rotate", "config": { + "id": 4634, "type": "number", "component": "number", "alias": "旋转", @@ -653,7 +694,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.display.rotate", "virtualPath": "" @@ -661,6 +703,7 @@ { "key": "offset", "config": { + "id": 9787, "type": "number", "component": "number", "alias": "偏移", @@ -683,7 +726,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.display.offset", "virtualPath": "" @@ -697,6 +741,7 @@ { "key": "textStyle", "config": { + "id": 8141, "type": "object", "component": "none", "alias": "文本样式", @@ -719,7 +764,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.textStyle", "virtualPath": "", @@ -727,6 +773,7 @@ { "key": "fontSize", "config": { + "id": 7609, "type": "number", "component": "number", "alias": "字号", @@ -749,24 +796,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.title.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 2875, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "#90a0ae", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -779,24 +828,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "xAxis.title.textStyle.color", + "path": "xAxis.title.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 2193, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", - "displayMode": "inline", + "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "#90a0ae", "min": 0, "max": 100, "step": 1, @@ -809,16 +860,17 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "xAxis.title.textStyle.fontWeight", + "path": "xAxis.title.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] } ], @@ -833,6 +885,7 @@ { "key": "axisLine", "config": { + "id": 1368, "type": "object", "component": "none", "alias": "轴线", @@ -855,7 +908,8 @@ "field": null, "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLine", "virtualPath": "", @@ -863,6 +917,7 @@ { "key": "show", "config": { + "id": 3128, "type": "boolean", "component": "switch", "alias": "", @@ -885,7 +940,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLine.show", "virtualPath": "" @@ -893,6 +949,7 @@ { "key": "type", "config": { + "id": 7252, "type": "string", "component": "lineStyle", "alias": "类型", @@ -915,7 +972,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLine.type", "virtualPath": "" @@ -923,6 +981,7 @@ { "key": "width", "config": { + "id": 1413, "type": "number", "component": "number", "alias": "粗细", @@ -945,7 +1004,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLine.width", "virtualPath": "" @@ -953,6 +1013,7 @@ { "key": "color", "config": { + "id": 5045, "type": "string", "component": "color", "alias": "颜色", @@ -975,7 +1036,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLine.color", "virtualPath": "" @@ -991,6 +1053,7 @@ { "key": "axisTick", "config": { + "id": 3913, "type": "object", "component": "none", "alias": "轴刻度", @@ -1013,7 +1076,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisTick", "virtualPath": "", @@ -1021,6 +1085,7 @@ { "key": "show", "config": { + "id": 633, "type": "boolean", "component": "switch", "alias": "", @@ -1043,7 +1108,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisTick.show", "virtualPath": "" @@ -1051,6 +1117,7 @@ { "key": "type", "config": { + "id": 2146, "type": "string", "component": "lineStyle", "alias": "类型", @@ -1073,7 +1140,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisTick.type", "virtualPath": "" @@ -1081,6 +1149,7 @@ { "key": "width", "config": { + "id": 5106, "type": "number", "component": "number", "alias": "粗细", @@ -1103,7 +1172,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisTick.width", "virtualPath": "" @@ -1111,6 +1181,7 @@ { "key": "color", "config": { + "id": 2129, "type": "string", "component": "color", "alias": "颜色", @@ -1133,7 +1204,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisTick.color", "virtualPath": "" @@ -1149,6 +1221,7 @@ { "key": "axisLabel", "config": { + "id": 1464, "type": "object", "component": "none", "alias": "轴标签", @@ -1171,7 +1244,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel", "virtualPath": "", @@ -1179,6 +1253,7 @@ { "key": "show", "config": { + "id": 1435, "type": "boolean", "component": "switch", "alias": "", @@ -1201,7 +1276,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.show", "virtualPath": "" @@ -1209,6 +1285,7 @@ { "key": "valueFormat", "config": { + "id": 5684, "type": "string", "component": "valueFormat", "alias": "显示格式", @@ -1231,7 +1308,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.valueFormat", "virtualPath": "" @@ -1239,6 +1317,7 @@ { "key": "timeFormat", "config": { + "id": 3569, "type": "string", "component": "timeFormat", "alias": "显示格式", @@ -1261,7 +1340,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.timeFormat", "virtualPath": "" @@ -1269,6 +1349,7 @@ { "key": "interval", "config": { + "id": 2745, "type": "string", "component": "selectSuggest", "alias": "间隔", @@ -1296,7 +1377,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.interval", "virtualPath": "" @@ -1304,6 +1386,7 @@ { "key": "display", "config": { + "id": 5558, "type": "object", "component": "none", "alias": "展示方式", @@ -1326,7 +1409,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.display", "virtualPath": "", @@ -1334,6 +1418,7 @@ { "key": "rotate", "config": { + "id": 908, "type": "number", "component": "number", "alias": "旋转", @@ -1356,7 +1441,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.display.rotate", "virtualPath": "" @@ -1364,6 +1450,7 @@ { "key": "margin", "config": { + "id": 7969, "type": "number", "component": "number", "alias": "偏移", @@ -1386,7 +1473,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.display.margin", "virtualPath": "" @@ -1400,6 +1488,7 @@ { "key": "align", "config": { + "id": 5070, "type": "string", "component": "hAlign", "alias": "对齐方式", @@ -1422,7 +1511,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.align", "virtualPath": "" @@ -1430,6 +1520,7 @@ { "key": "textStyle", "config": { + "id": 9697, "type": "object", "component": "none", "alias": "文本样式", @@ -1452,7 +1543,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.textStyle", "virtualPath": "", @@ -1460,6 +1552,7 @@ { "key": "fontSize", "config": { + "id": 3577, "type": "number", "component": "number", "alias": "字号", @@ -1482,24 +1575,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.axisLabel.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 8716, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "rgba(255, 255, 255, 0.6)", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -1512,24 +1607,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "xAxis.axisLabel.textStyle.color", + "path": "xAxis.axisLabel.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 4854, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", - "displayMode": "inline", + "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "rgba(255, 255, 255, 0.6)", "min": 0, "max": 100, "step": 1, @@ -1542,16 +1639,17 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "xAxis.axisLabel.textStyle.fontWeight", + "path": "xAxis.axisLabel.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] } ], @@ -1568,6 +1666,7 @@ { "key": "grid", "config": { + "id": 5393, "type": "object", "component": "none", "alias": "网格线", @@ -1590,7 +1689,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid", "virtualPath": "", @@ -1598,6 +1698,7 @@ { "key": "show", "config": { + "id": 9198, "type": "boolean", "component": "switch", "alias": "", @@ -1620,7 +1721,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.show", "virtualPath": "" @@ -1628,6 +1730,7 @@ { "key": "line", "config": { + "id": 9784, "type": "object", "component": "none", "alias": "线型样式", @@ -1650,7 +1753,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line", "virtualPath": "", @@ -1658,6 +1762,7 @@ { "key": "type", "config": { + "id": 6359, "type": "string", "component": "lineStyle", "alias": "类型", @@ -1680,7 +1785,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line.type", "virtualPath": "" @@ -1688,6 +1794,7 @@ { "key": "width", "config": { + "id": 5463, "type": "number", "component": "number", "alias": "粗细", @@ -1710,7 +1817,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line.width", "virtualPath": "" @@ -1718,6 +1826,7 @@ { "key": "color", "config": { + "id": 1323, "type": "string", "component": "color", "alias": "颜色", @@ -1740,7 +1849,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line.color", "virtualPath": "" @@ -1748,6 +1858,7 @@ { "key": "dashedLength", "config": { + "id": 4655, "type": "number", "component": "number", "alias": "长度", @@ -1770,7 +1881,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line.dashedLength", "virtualPath": "" @@ -1778,6 +1890,7 @@ { "key": "dashedSpace", "config": { + "id": 85, "type": "number", "component": "number", "alias": "间隔", @@ -1800,7 +1913,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "xAxis.grid.line.dashedSpace", "virtualPath": "" @@ -1836,6 +1950,7 @@ { "key": "yAxis", "config": { + "id": 171, "type": "object", "component": "none", "alias": "Y轴", @@ -1858,7 +1973,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis", "virtualPath": "", @@ -1866,6 +1982,7 @@ { "key": "show", "config": { + "id": 9977, "type": "boolean", "component": "switch", "alias": "", @@ -1888,7 +2005,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.show", "virtualPath": "" @@ -1896,6 +2014,7 @@ { "key": "type", "config": { + "id": 3564, "type": "string", "component": "axisType", "alias": "数据类型", @@ -1918,7 +2037,8 @@ "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "yAxis.type", "virtualPath": "" @@ -1926,6 +2046,7 @@ { "key": "extent", "config": { + "id": 3150, "type": "object", "component": "none", "alias": "显示范围", @@ -1948,7 +2069,8 @@ "field": "type", "value": "value" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.extent", "virtualPath": "", @@ -1956,6 +2078,7 @@ { "key": "min", "config": { + "id": 7690, "type": "string", "component": "selectSuggest", "alias": "最小值", @@ -1982,7 +2105,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.extent.min", "virtualPath": "" @@ -1990,6 +2114,7 @@ { "key": "max", "config": { + "id": 8706, "type": "string", "component": "selectSuggest", "alias": "最大值", @@ -2016,7 +2141,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.extent.max", "virtualPath": "" @@ -2030,6 +2156,7 @@ { "key": "title", "config": { + "id": 3694, "type": "object", "component": "none", "alias": "轴标题", @@ -2052,7 +2179,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title", "virtualPath": "", @@ -2060,6 +2188,7 @@ { "key": "show", "config": { + "id": 2321, "type": "boolean", "component": "switch", "alias": "", @@ -2082,7 +2211,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.show", "virtualPath": "" @@ -2090,6 +2220,7 @@ { "key": "name", "config": { + "id": 6369, "type": "string", "component": "input", "alias": "标题显示", @@ -2112,7 +2243,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.name", "virtualPath": "" @@ -2120,6 +2252,7 @@ { "key": "location", "config": { + "id": 7077, "type": "string", "component": "titleLocation", "alias": "位置", @@ -2142,7 +2275,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.location", "virtualPath": "" @@ -2150,6 +2284,7 @@ { "key": "display", "config": { + "id": 5440, "type": "object", "component": "none", "alias": "展示方式", @@ -2172,7 +2307,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.display", "virtualPath": "", @@ -2180,6 +2316,7 @@ { "key": "rotate", "config": { + "id": 5341, "type": "number", "component": "number", "alias": "旋转", @@ -2202,7 +2339,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.display.rotate", "virtualPath": "" @@ -2210,6 +2348,7 @@ { "key": "offset", "config": { + "id": 9439, "type": "number", "component": "number", "alias": "偏移", @@ -2232,7 +2371,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.display.offset", "virtualPath": "" @@ -2246,6 +2386,7 @@ { "key": "textStyle", "config": { + "id": 9884, "type": "object", "component": "none", "alias": "文本样式", @@ -2268,7 +2409,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.textStyle", "virtualPath": "", @@ -2276,6 +2418,7 @@ { "key": "fontSize", "config": { + "id": 3701, "type": "number", "component": "number", "alias": "字号", @@ -2298,24 +2441,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.title.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 6170, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "#90a0ae", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -2328,24 +2473,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "yAxis.title.textStyle.color", + "path": "yAxis.title.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 9484, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", - "displayMode": "inline", + "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "#90a0ae", "min": 0, "max": 100, "step": 1, @@ -2358,16 +2505,17 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "yAxis.title.textStyle.fontWeight", + "path": "yAxis.title.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] } ], @@ -2382,6 +2530,7 @@ { "key": "axisLine", "config": { + "id": 5314, "type": "object", "component": "none", "alias": "轴线", @@ -2404,7 +2553,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLine", "virtualPath": "", @@ -2412,6 +2562,7 @@ { "key": "show", "config": { + "id": 8549, "type": "boolean", "component": "switch", "alias": "", @@ -2434,7 +2585,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLine.show", "virtualPath": "" @@ -2442,6 +2594,7 @@ { "key": "type", "config": { + "id": 4638, "type": "string", "component": "lineStyle", "alias": "类型", @@ -2464,7 +2617,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLine.type", "virtualPath": "" @@ -2472,6 +2626,7 @@ { "key": "width", "config": { + "id": 3720, "type": "number", "component": "number", "alias": "粗细", @@ -2494,7 +2649,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLine.width", "virtualPath": "" @@ -2502,6 +2658,7 @@ { "key": "color", "config": { + "id": 7402, "type": "string", "component": "color", "alias": "颜色", @@ -2524,7 +2681,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLine.color", "virtualPath": "" @@ -2540,6 +2698,7 @@ { "key": "axisTick", "config": { + "id": 7480, "type": "object", "component": "none", "alias": "轴刻度", @@ -2562,7 +2721,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisTick", "virtualPath": "", @@ -2570,6 +2730,7 @@ { "key": "show", "config": { + "id": 8304, "type": "boolean", "component": "switch", "alias": "", @@ -2592,7 +2753,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisTick.show", "virtualPath": "" @@ -2600,6 +2762,7 @@ { "key": "type", "config": { + "id": 8995, "type": "string", "component": "lineStyle", "alias": "类型", @@ -2622,7 +2785,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisTick.type", "virtualPath": "" @@ -2630,6 +2794,7 @@ { "key": "width", "config": { + "id": 8659, "type": "number", "component": "number", "alias": "粗细", @@ -2652,7 +2817,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisTick.width", "virtualPath": "" @@ -2660,6 +2826,7 @@ { "key": "color", "config": { + "id": 1848, "type": "string", "component": "color", "alias": "颜色", @@ -2682,7 +2849,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisTick.color", "virtualPath": "" @@ -2698,6 +2866,7 @@ { "key": "axisLabel", "config": { + "id": 766, "type": "object", "component": "none", "alias": "轴标签", @@ -2720,7 +2889,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel", "virtualPath": "", @@ -2728,6 +2898,7 @@ { "key": "show", "config": { + "id": 2512, "type": "boolean", "component": "switch", "alias": "", @@ -2750,7 +2921,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.show", "virtualPath": "" @@ -2758,6 +2930,7 @@ { "key": "valueFormat", "config": { + "id": 1795, "type": "string", "component": "valueFormat", "alias": "显示格式", @@ -2780,7 +2953,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.valueFormat", "virtualPath": "" @@ -2788,6 +2962,7 @@ { "key": "timeFormat", "config": { + "id": 1831, "type": "string", "component": "timeFormat", "alias": "显示格式", @@ -2810,7 +2985,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.timeFormat", "virtualPath": "" @@ -2818,6 +2994,7 @@ { "key": "boundaryGap", "config": { + "id": 3227, "type": "number", "component": "number", "alias": "两端间距", @@ -2840,7 +3017,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.boundaryGap", "virtualPath": "" @@ -2848,6 +3026,7 @@ { "key": "display", "config": { + "id": 7066, "type": "object", "component": "none", "alias": "展示方式", @@ -2870,7 +3049,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.display", "virtualPath": "", @@ -2878,6 +3058,7 @@ { "key": "rotate", "config": { + "id": 9323, "type": "number", "component": "number", "alias": "旋转", @@ -2900,7 +3081,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.display.rotate", "virtualPath": "" @@ -2908,6 +3090,7 @@ { "key": "margin", "config": { + "id": 4411, "type": "number", "component": "number", "alias": "偏移", @@ -2930,7 +3113,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.display.margin", "virtualPath": "" @@ -2944,6 +3128,7 @@ { "key": "align", "config": { + "id": 1408, "type": "string", "component": "hAlign", "alias": "对齐方式", @@ -2966,7 +3151,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.align", "virtualPath": "" @@ -2974,6 +3160,7 @@ { "key": "textStyle", "config": { + "id": 4185, "type": "object", "component": "none", "alias": "文本样式", @@ -2996,7 +3183,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.textStyle", "virtualPath": "", @@ -3004,6 +3192,7 @@ { "key": "fontSize", "config": { + "id": 3405, "type": "number", "component": "number", "alias": "字号", @@ -3026,24 +3215,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.axisLabel.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 4139, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "rgba(255, 255, 255, 0.6)", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -3056,24 +3247,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "yAxis.axisLabel.textStyle.color", + "path": "yAxis.axisLabel.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 8207, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", - "displayMode": "inline", + "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "rgba(255, 255, 255, 0.6)", "min": 0, "max": 100, "step": 1, @@ -3086,16 +3279,17 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "yAxis.axisLabel.textStyle.fontWeight", + "path": "yAxis.axisLabel.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] } ], @@ -3112,6 +3306,7 @@ { "key": "grid", "config": { + "id": 910, "type": "object", "component": "none", "alias": "网格线", @@ -3134,7 +3329,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid", "virtualPath": "", @@ -3142,6 +3338,7 @@ { "key": "show", "config": { + "id": 7997, "type": "boolean", "component": "switch", "alias": "", @@ -3164,7 +3361,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.show", "virtualPath": "" @@ -3172,6 +3370,7 @@ { "key": "line", "config": { + "id": 1603, "type": "object", "component": "none", "alias": "线型样式", @@ -3194,7 +3393,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line", "virtualPath": "", @@ -3202,6 +3402,7 @@ { "key": "type", "config": { + "id": 8237, "type": "string", "component": "lineStyle", "alias": "类型", @@ -3224,7 +3425,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line.type", "virtualPath": "" @@ -3232,6 +3434,7 @@ { "key": "width", "config": { + "id": 3110, "type": "number", "component": "number", "alias": "粗细", @@ -3254,7 +3457,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line.width", "virtualPath": "" @@ -3262,6 +3466,7 @@ { "key": "color", "config": { + "id": 1453, "type": "string", "component": "color", "alias": "颜色", @@ -3284,7 +3489,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line.color", "virtualPath": "" @@ -3292,6 +3498,7 @@ { "key": "dashedLength", "config": { + "id": 6149, "type": "number", "component": "number", "alias": "长度", @@ -3314,7 +3521,8 @@ "field": "type", "value": "dashed" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line.dashedLength", "virtualPath": "" @@ -3322,6 +3530,7 @@ { "key": "dashedSpace", "config": { + "id": 5623, "type": "number", "component": "number", "alias": "间距", @@ -3344,7 +3553,8 @@ "field": "type", "value": "dashed" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "yAxis.grid.line.dashedSpace", "virtualPath": "" @@ -3379,6 +3589,7 @@ { "key": "tooltip", "config": { + "id": 6432, "type": "object", "component": "none", "alias": "提示框", @@ -3401,7 +3612,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip", "virtualPath": "", @@ -3409,6 +3621,7 @@ { "key": "show", "config": { + "id": 6796, "type": "boolean", "component": "switch", "alias": "", @@ -3431,7 +3644,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.show", "virtualPath": "" @@ -3439,6 +3653,7 @@ { "key": "triggerOn", "config": { + "id": 1266, "type": "string", "component": "radio", "alias": "触发方式", @@ -3470,7 +3685,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.triggerOn", "virtualPath": "" @@ -3478,11 +3694,12 @@ { "key": "textStyle", "config": { + "id": 2995, "type": "object", "component": "none", "alias": "文本样式", "tip": "", - "displayMode": "nest", + "displayMode": "flat", "features": [], "layout": "horizontal", "toggleCol": "", @@ -3500,7 +3717,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle", "virtualPath": "", @@ -3508,11 +3726,12 @@ { "key": "fontSize", "config": { + "id": 4349, "type": "number", "component": "number", "alias": "字号", "tip": "", - "displayMode": "single", + "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", @@ -3530,24 +3749,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 1107, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", - "displayMode": "single", + "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "#fff", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -3560,24 +3781,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "tooltip.textStyle.color", + "path": "tooltip.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 2963, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", - "displayMode": "single", + "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "#fff", "min": 0, "max": 100, "step": 1, @@ -3590,21 +3813,23 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "tooltip.textStyle.fontWeight", + "path": "tooltip.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] }, { "key": "background", "config": { + "id": 3686, "type": "object", "component": "none", "alias": "弹框背景", @@ -3627,7 +3852,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background", "virtualPath": "", @@ -3635,6 +3861,7 @@ { "key": "padding", "config": { + "id": 8126, "type": "object", "component": "none", "alias": "背景边距", @@ -3657,7 +3884,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.padding", "virtualPath": "", @@ -3665,6 +3893,7 @@ { "key": "h", "config": { + "id": 672, "type": "number", "component": "number", "alias": "水平", @@ -3687,7 +3916,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.padding.h", "virtualPath": "" @@ -3695,6 +3925,7 @@ { "key": "v", "config": { + "id": 279, "type": "number", "component": "number", "alias": "垂直", @@ -3717,7 +3948,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.padding.v", "virtualPath": "" @@ -3731,6 +3963,7 @@ { "key": "color", "config": { + "id": 4998, "type": "string", "component": "color", "alias": "背景色", @@ -3753,7 +3986,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.color", "virtualPath": "" @@ -3761,6 +3995,7 @@ { "key": "borderColor", "config": { + "id": 8448, "type": "string", "component": "color", "alias": "边框颜色", @@ -3783,7 +4018,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.borderColor", "virtualPath": "" @@ -3791,6 +4027,7 @@ { "key": "borderWidth", "config": { + "id": 9205, "type": "number", "component": "number", "alias": "边框粗细", @@ -3813,7 +4050,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.background.borderWidth", "virtualPath": "" @@ -3829,6 +4067,7 @@ { "key": "pointer", "config": { + "id": 3422, "type": "object", "component": "none", "alias": "轴指示器", @@ -3851,7 +4090,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer", "virtualPath": "", @@ -3859,6 +4099,7 @@ { "key": "show", "config": { + "id": 2834, "type": "boolean", "component": "switch", "alias": "", @@ -3881,7 +4122,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.show", "virtualPath": "" @@ -3889,6 +4131,7 @@ { "key": "line", "config": { + "id": 1741, "type": "object", "component": "none", "alias": "线型样式", @@ -3911,7 +4154,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line", "virtualPath": "", @@ -3919,6 +4163,7 @@ { "key": "type", "config": { + "id": 4787, "type": "string", "component": "lineStyle", "alias": "类型", @@ -3941,7 +4186,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line.type", "virtualPath": "" @@ -3949,6 +4195,7 @@ { "key": "width", "config": { + "id": 3301, "type": "number", "component": "number", "alias": "粗细", @@ -3971,7 +4218,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line.width", "virtualPath": "" @@ -3979,6 +4227,7 @@ { "key": "color", "config": { + "id": 4241, "type": "string", "component": "color", "alias": "颜色", @@ -4001,7 +4250,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line.color", "virtualPath": "" @@ -4009,6 +4259,7 @@ { "key": "dashedLength", "config": { + "id": 544, "type": "number", "component": "number", "alias": "长度", @@ -4031,7 +4282,8 @@ "field": "type", "value": "dashed" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line.dashedLength", "virtualPath": "" @@ -4039,6 +4291,7 @@ { "key": "dashedSpace", "config": { + "id": 1155, "type": "number", "component": "number", "alias": "间距", @@ -4061,7 +4314,8 @@ "field": "type", "value": "dashed" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "tooltip.pointer.line.dashedSpace", "virtualPath": "" @@ -4093,6 +4347,7 @@ { "key": "legend", "config": { + "id": 6511, "type": "object", "component": "none", "alias": "图例", @@ -4115,7 +4370,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend", "virtualPath": "", @@ -4123,6 +4379,7 @@ { "key": "show", "config": { + "id": 4196, "type": "boolean", "component": "switch", "alias": "", @@ -4145,7 +4402,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.show", "virtualPath": "" @@ -4153,6 +4411,7 @@ { "key": "position", "config": { + "id": 5090, "type": "string", "component": "legendLocation", "alias": "位置", @@ -4175,7 +4434,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.position", "virtualPath": "" @@ -4183,6 +4443,7 @@ { "key": "orient", "config": { + "id": 3327, "type": "string", "component": "orient", "alias": "布局方式", @@ -4205,7 +4466,8 @@ "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "legend.orient", "virtualPath": "" @@ -4213,6 +4475,7 @@ { "key": "textStyle", "config": { + "id": 1734, "type": "object", "component": "none", "alias": "文本样式", @@ -4235,7 +4498,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.textStyle", "virtualPath": "", @@ -4243,6 +4507,7 @@ { "key": "fontSize", "config": { + "id": 3417, "type": "number", "component": "number", "alias": "字号", @@ -4265,24 +4530,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.textStyle.fontSize", "virtualPath": "" }, { - "key": "color", + "key": "fontWeight", "config": { + "id": 303, "type": "string", - "component": "color", - "alias": "颜色", + "component": "fontWeight", + "alias": "字体粗细", "tip": "", "displayMode": "inline", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "#90a0ae", + "defaultValue": "normal", "min": 0, "max": 100, "step": 1, @@ -4295,24 +4562,26 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "legend.textStyle.color", + "path": "legend.textStyle.fontWeight", "virtualPath": "" }, { - "key": "fontWeight", + "key": "color", "config": { + "id": 3566, "type": "string", - "component": "fontWeight", - "alias": "字体粗细", + "component": "color", + "alias": "颜色", "tip": "", "displayMode": "inline-single", "features": [], "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "normal", + "defaultValue": "#90a0ae", "min": 0, "max": 100, "step": 1, @@ -4325,21 +4594,23 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, - "path": "legend.textStyle.fontWeight", + "path": "legend.textStyle.color", "virtualPath": "" } ], "cols": [ "fontSize", - "color", - "fontWeight" + "fontWeight", + "color" ] }, { "key": "symbol", "config": { + "id": 1463, "type": "object", "component": "none", "alias": "图例图标", @@ -4362,7 +4633,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol", "virtualPath": "", @@ -4370,6 +4642,7 @@ { "key": "show", "config": { + "id": 8003, "type": "boolean", "component": "switch", "alias": "", @@ -4392,7 +4665,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol.show", "virtualPath": "" @@ -4400,6 +4674,7 @@ { "key": "icon", "config": { + "id": 2830, "type": "string", "component": "echartIcon", "alias": "图标", @@ -4422,7 +4697,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol.icon", "virtualPath": "" @@ -4430,6 +4706,7 @@ { "key": "width", "config": { + "id": 8260, "type": "number", "component": "number", "alias": "宽度", @@ -4452,7 +4729,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol.width", "virtualPath": "" @@ -4460,6 +4738,7 @@ { "key": "height", "config": { + "id": 3637, "type": "number", "component": "number", "alias": "高度", @@ -4482,7 +4761,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol.height", "virtualPath": "" @@ -4490,6 +4770,7 @@ { "key": "gap", "config": { + "id": 7172, "type": "number", "component": "number", "alias": "间隔", @@ -4512,7 +4793,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.symbol.gap", "virtualPath": "" @@ -4529,6 +4811,7 @@ { "key": "page", "config": { + "id": 892, "type": "object", "component": "none", "alias": "翻页功能", @@ -4551,7 +4834,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page", "virtualPath": "", @@ -4559,6 +4843,7 @@ { "key": "enabled", "config": { + "id": 3218, "type": "boolean", "component": "switch", "alias": "", @@ -4581,7 +4866,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.enabled", "virtualPath": "" @@ -4589,6 +4875,7 @@ { "key": "size", "config": { + "id": 873, "type": "object", "component": "none", "alias": "容器尺寸", @@ -4611,7 +4898,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.size", "virtualPath": "", @@ -4619,6 +4907,7 @@ { "key": "width", "config": { + "id": 4382, "type": "number", "component": "number", "alias": "宽度", @@ -4641,7 +4930,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.size.width", "virtualPath": "" @@ -4649,6 +4939,7 @@ { "key": "height", "config": { + "id": 124, "type": "number", "component": "number", "alias": "高度", @@ -4671,7 +4962,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.size.height", "virtualPath": "" @@ -4685,6 +4977,7 @@ { "key": "button", "config": { + "id": 1417, "type": "object", "component": "none", "alias": "翻页按钮", @@ -4707,7 +5000,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.button", "virtualPath": "", @@ -4715,6 +5009,7 @@ { "key": "size", "config": { + "id": 6970, "type": "number", "component": "number", "alias": "尺寸", @@ -4737,7 +5032,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.button.size", "virtualPath": "" @@ -4745,6 +5041,7 @@ { "key": "color", "config": { + "id": 7993, "type": "string", "component": "color", "alias": "颜色", @@ -4767,7 +5064,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.button.color", "virtualPath": "" @@ -4775,6 +5073,7 @@ { "key": "inactiveColor", "config": { + "id": 5412, "type": "string", "component": "color", "alias": "禁用颜色", @@ -4797,7 +5096,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.button.inactiveColor", "virtualPath": "" @@ -4812,6 +5112,7 @@ { "key": "pageNumColor", "config": { + "id": 2289, "type": "string", "component": "color", "alias": "页码颜色", @@ -4834,7 +5135,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "legend.page.pageNumColor", "virtualPath": "" @@ -4860,6 +5162,7 @@ { "key": "series", "config": { + "id": 7225, "type": "array", "component": "none", "alias": "系列", @@ -4888,7 +5191,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series", "virtualPath": "", @@ -4896,6 +5200,7 @@ { "key": "0", "config": { + "id": 6764, "type": "object", "component": "none", "alias": "系列", @@ -4918,7 +5223,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0", "virtualPath": "", @@ -4926,6 +5232,7 @@ { "key": "type", "config": { + "id": 1873, "type": "string", "component": "input", "alias": "", @@ -4948,7 +5255,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.type", "virtualPath": "slotProps.item.type" @@ -4956,6 +5264,7 @@ { "key": "id", "config": { + "id": 4738, "type": "string", "component": "input", "alias": "", @@ -4965,7 +5274,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": true, - "defaultValue": "系列1_-AxbqvJM6_", + "defaultValue": "D0yvFjOW4t", "min": 0, "max": 100, "step": 1, @@ -4978,7 +5287,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.id", "virtualPath": "slotProps.item.id" @@ -4986,6 +5296,7 @@ { "key": "name", "config": { + "id": 7778, "type": "string", "component": "input", "alias": "系列名称", @@ -4995,7 +5306,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "系列1", + "defaultValue": "", "min": 0, "max": 100, "step": 1, @@ -5008,7 +5319,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.name", "virtualPath": "slotProps.item.name" @@ -5016,6 +5328,7 @@ { "key": "line", "config": { + "id": 6051, "type": "object", "component": "none", "alias": "折线", @@ -5038,7 +5351,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line", "virtualPath": "slotProps.item.line", @@ -5046,6 +5360,7 @@ { "key": "color", "config": { + "id": 6693, "type": "string", "component": "color", "alias": "颜色", @@ -5068,7 +5383,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line.color", "virtualPath": "slotProps.item.line.color" @@ -5076,6 +5392,7 @@ { "key": "style", "config": { + "id": 8777, "type": "string", "component": "lineStyle", "alias": "类型", @@ -5098,7 +5415,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line.style", "virtualPath": "slotProps.item.line.style" @@ -5106,6 +5424,7 @@ { "key": "width", "config": { + "id": 6361, "type": "number", "component": "number", "alias": "粗细", @@ -5128,7 +5447,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line.width", "virtualPath": "slotProps.item.line.width" @@ -5136,6 +5456,7 @@ { "key": "opacity", "config": { + "id": 749, "type": "number", "component": "slider", "alias": "透明度", @@ -5158,7 +5479,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line.opacity", "virtualPath": "slotProps.item.line.opacity" @@ -5166,6 +5488,7 @@ { "key": "smooth", "config": { + "id": 5425, "type": "number", "component": "slider", "alias": "曲线平滑程度", @@ -5188,7 +5511,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.line.smooth", "virtualPath": "slotProps.item.line.smooth" @@ -5205,6 +5529,7 @@ { "key": "point", "config": { + "id": 4993, "type": "object", "component": "none", "alias": "标记", @@ -5227,7 +5552,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point", "virtualPath": "slotProps.item.point", @@ -5235,6 +5561,7 @@ { "key": "icon", "config": { + "id": 8816, "type": "string", "component": "echartIcon", "alias": "符号", @@ -5257,7 +5584,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.icon", "virtualPath": "slotProps.item.point.icon" @@ -5265,6 +5593,7 @@ { "key": "color", "config": { + "id": 3404, "type": "string", "component": "color", "alias": "填充色", @@ -5287,7 +5616,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.color", "virtualPath": "slotProps.item.point.color" @@ -5295,6 +5625,7 @@ { "key": "borderColor", "config": { + "id": 6359, "type": "string", "component": "color", "alias": "描边颜色", @@ -5317,7 +5648,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.borderColor", "virtualPath": "slotProps.item.point.borderColor" @@ -5325,6 +5657,7 @@ { "key": "borderWidth", "config": { + "id": 8475, "type": "number", "component": "number", "alias": "描边粗细", @@ -5347,7 +5680,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.borderWidth", "virtualPath": "slotProps.item.point.borderWidth" @@ -5355,6 +5689,7 @@ { "key": "borderType", "config": { + "id": 1330, "type": "string", "component": "lineStyle", "alias": "描边类型", @@ -5377,7 +5712,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.borderType", "virtualPath": "slotProps.item.point.borderType" @@ -5385,6 +5721,7 @@ { "key": "opacity", "config": { + "id": 6006, "type": "number", "component": "slider", "alias": "透明度", @@ -5407,7 +5744,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.point.opacity", "virtualPath": "slotProps.item.point.opacity" @@ -5425,6 +5763,7 @@ { "key": "label", "config": { + "id": 5814, "type": "object", "component": "none", "alias": "标注", @@ -5447,7 +5786,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label", "virtualPath": "slotProps.item.label", @@ -5455,6 +5795,7 @@ { "key": "show", "config": { + "id": 517, "type": "boolean", "component": "switch", "alias": "", @@ -5477,7 +5818,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.show", "virtualPath": "slotProps.item.label.show" @@ -5485,6 +5827,7 @@ { "key": "field", "config": { + "id": 1843, "type": "string", "component": "input", "alias": "标注字段", @@ -5507,7 +5850,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.field", "virtualPath": "slotProps.item.label.field" @@ -5515,6 +5859,7 @@ { "key": "valueFormat", "config": { + "id": 1320, "type": "string", "component": "valueFormat", "alias": "数值格式", @@ -5537,7 +5882,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.valueFormat", "virtualPath": "slotProps.item.label.valueFormat" @@ -5545,6 +5891,7 @@ { "key": "describe", "config": { + "id": 8494, "type": "object", "component": "none", "alias": "前后缀", @@ -5567,7 +5914,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.describe", "virtualPath": "slotProps.item.label.describe", @@ -5575,6 +5923,7 @@ { "key": "prefix", "config": { + "id": 7903, "type": "string", "component": "input", "alias": "前缀", @@ -5597,7 +5946,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.describe.prefix", "virtualPath": "slotProps.item.label.describe.prefix" @@ -5605,6 +5955,7 @@ { "key": "suffix", "config": { + "id": 7486, "type": "string", "component": "input", "alias": "后缀", @@ -5627,7 +5978,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.describe.suffix", "virtualPath": "slotProps.item.label.describe.suffix" @@ -5641,6 +5993,7 @@ { "key": "offset", "config": { + "id": 6702, "type": "object", "component": "none", "alias": "相对偏移", @@ -5663,7 +6016,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.offset", "virtualPath": "slotProps.item.label.offset", @@ -5671,6 +6025,7 @@ { "key": "x", "config": { + "id": 4211, "type": "number", "component": "number", "alias": "水平", @@ -5693,7 +6048,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.offset.x", "virtualPath": "slotProps.item.label.offset.x" @@ -5701,6 +6057,7 @@ { "key": "y", "config": { + "id": 5640, "type": "number", "component": "number", "alias": "垂直", @@ -5723,7 +6080,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.offset.y", "virtualPath": "slotProps.item.label.offset.y" @@ -5737,6 +6095,7 @@ { "key": "rotate", "config": { + "id": 2801, "type": "number", "component": "number", "alias": "旋转角度", @@ -5759,7 +6118,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.rotate", "virtualPath": "slotProps.item.label.rotate" @@ -5767,6 +6127,7 @@ { "key": "textStyle", "config": { + "id": 5043, "type": "object", "component": "none", "alias": "文本样式", @@ -5789,7 +6150,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.textStyle", "virtualPath": "slotProps.item.label.textStyle", @@ -5797,6 +6159,7 @@ { "key": "fontSize", "config": { + "id": 1452, "type": "number", "component": "number", "alias": "字号", @@ -5819,7 +6182,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.textStyle.fontSize", "virtualPath": "slotProps.item.label.textStyle.fontSize" @@ -5827,6 +6191,7 @@ { "key": "color", "config": { + "id": 79, "type": "string", "component": "color", "alias": "颜色", @@ -5849,7 +6214,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.textStyle.color", "virtualPath": "slotProps.item.label.textStyle.color" @@ -5857,6 +6223,7 @@ { "key": "fontWeight", "config": { + "id": 9111, "type": "string", "component": "fontWeight", "alias": "字体粗细", @@ -5879,7 +6246,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.textStyle.fontWeight", "virtualPath": "slotProps.item.label.textStyle.fontWeight" @@ -5894,6 +6262,7 @@ { "key": "stroke", "config": { + "id": 3093, "type": "object", "component": "none", "alias": "描边", @@ -5916,7 +6285,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.stroke", "virtualPath": "slotProps.item.label.stroke", @@ -5924,6 +6294,7 @@ { "key": "color", "config": { + "id": 7647, "type": "string", "component": "color", "alias": "颜色", @@ -5946,7 +6317,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.stroke.color", "virtualPath": "slotProps.item.label.stroke.color" @@ -5954,6 +6326,7 @@ { "key": "width", "config": { + "id": 7708, "type": "number", "component": "number", "alias": "粗细", @@ -5976,7 +6349,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "series.0.label.stroke.width", "virtualPath": "slotProps.item.label.stroke.width" @@ -6007,6 +6381,7 @@ { "key": "animation", "config": { + "id": 8760, "type": "object", "component": "none", "alias": "动画", @@ -6029,7 +6404,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation", "virtualPath": "", @@ -6037,6 +6413,7 @@ { "key": "enabled", "config": { + "id": 9518, "type": "boolean", "component": "switch", "alias": "", @@ -6059,7 +6436,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation.enabled", "virtualPath": "" @@ -6067,6 +6445,7 @@ { "key": "duration", "config": { + "id": 6981, "type": "number", "component": "number", "alias": "持续时间", @@ -6089,7 +6468,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation.duration", "virtualPath": "" @@ -6097,6 +6477,7 @@ { "key": "easing", "config": { + "id": 2579, "type": "string", "component": "animationEasing", "alias": "缓动效果", @@ -6119,7 +6500,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation.easing", "virtualPath": "" @@ -6127,6 +6509,7 @@ { "key": "delay", "config": { + "id": 348, "type": "number", "component": "number", "alias": "延迟", @@ -6149,7 +6532,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "animation.delay", "virtualPath": "" @@ -6162,4 +6546,4 @@ "delay" ] } -] +] \ No newline at end of file diff --git a/src/components/line/basic-line/src/config.vue b/src/components/line/basic-line/src/config.vue index 5f2300f8..488b1902 100644 --- a/src/components/line/basic-line/src/config.vue +++ b/src/components/line/basic-line/src/config.vue @@ -59,8 +59,8 @@ :level="2" label="连接空数据" > - @@ -73,18 +73,11 @@ :level="2" label="数据类型" > - - - {{ em.value }} - - + @@ -112,8 +105,8 @@ :level="2" label="两端留白" > - - + - + - - - {{ em.value }} - - + @@ -511,17 +495,17 @@ inline="inline" label="字号" /> - + - + - - - {{ pair.value }} - - + - - - - - - - - + - - - + /> + + @@ -931,18 +895,11 @@ :level="2" label="布局方式" > - - - {{ em.value }} - - + - + - diff --git a/src/components/line/basic-line/src/index.vue b/src/components/line/basic-line/src/index.vue index 5bc608b6..cf1b1331 100644 --- a/src/components/line/basic-line/src/index.vue +++ b/src/components/line/basic-line/src/index.vue @@ -190,7 +190,9 @@ const option = computed(() => { xAxis: { show: xAxis.show, type: xAxis.type, - boundaryGap: xAxis.boundaryGap, + boundaryGap: xAxis.type === 'category' + ? xAxis.boundaryGap : xAxis.boundaryGap + ? ['5%', '5%'] : ['0%', '0%'], name: xAxis.title.show ? xAxis.title.name : '', nameLocation: xAxis.title.location, nameRotate: xAxis.title.display.rotate, diff --git a/src/components/map/china2d/src/china2d-area/config.json b/src/components/map/china2d/src/china2d-area/config.json index dfab327a..052f9430 100644 --- a/src/components/map/china2d/src/china2d-area/config.json +++ b/src/components/map/china2d/src/china2d-area/config.json @@ -2,6 +2,7 @@ { "key": "defaultStyle", "config": { + "id": 3795, "type": "object", "component": "none", "alias": "区域样式", @@ -33,6 +34,7 @@ { "key": "fill", "config": { + "id": 2760, "type": "object", "component": "none", "alias": "填充颜色", @@ -64,6 +66,7 @@ { "key": "minFillColor", "config": { + "id": 7141, "type": "string", "component": "color", "alias": "最小值", @@ -95,6 +98,7 @@ { "key": "maxFillColor", "config": { + "id": 6692, "type": "string", "component": "color", "alias": "最大值", @@ -126,6 +130,7 @@ { "key": "fillColor", "config": { + "id": 9609, "type": "string", "component": "color", "alias": "无数据", @@ -164,6 +169,7 @@ { "key": "stroke", "config": { + "id": 8550, "type": "object", "component": "none", "alias": "边线样式", @@ -195,6 +201,7 @@ { "key": "color", "config": { + "id": 3268, "type": "string", "component": "color", "alias": "颜色", @@ -226,6 +233,7 @@ { "key": "weight", "config": { + "id": 2477, "type": "number", "component": "slider", "alias": "粗细 [0, 20]", @@ -257,6 +265,7 @@ { "key": "dashArray", "config": { + "id": 3238, "type": "string", "component": "lineStyle", "alias": "线类型", @@ -301,6 +310,7 @@ { "key": "labelStyle", "config": { + "id": 6658, "type": "object", "component": "none", "alias": "标注", @@ -332,6 +342,7 @@ { "key": "show", "config": { + "id": 2303, "type": "boolean", "component": "switch", "alias": "", @@ -363,6 +374,7 @@ { "key": "fontFamily", "config": { + "id": 2025, "type": "string", "component": "fontFamily", "alias": "字体", @@ -394,6 +406,7 @@ { "key": "fontWeight", "config": { + "id": 8998, "type": "string", "component": "fontWeight", "alias": "文字粗细", @@ -425,6 +438,7 @@ { "key": "fontSize", "config": { + "id": 6170, "type": "number", "component": "number", "alias": "字号", @@ -456,6 +470,7 @@ { "key": "color", "config": { + "id": 7771, "type": "string", "component": "color", "alias": "颜色", @@ -487,6 +502,7 @@ { "key": "shadowColor", "config": { + "id": 1332, "type": "string", "component": "color", "alias": "阴影色", @@ -528,6 +544,7 @@ { "key": "tooltip", "config": { + "id": 1615, "type": "object", "component": "none", "alias": "弹框", @@ -559,6 +576,7 @@ { "key": "show", "config": { + "id": 476, "type": "boolean", "component": "switch", "alias": "", @@ -590,6 +608,7 @@ { "key": "infoField", "config": { + "id": 1855, "type": "boolean", "component": "switch", "alias": "info字段", @@ -621,6 +640,7 @@ { "key": "eventType", "config": { + "id": 929, "type": "string", "component": "radioBase", "alias": "事件类型", @@ -661,6 +681,7 @@ { "key": "styleType", "config": { + "id": 1776, "type": "string", "component": "radio", "alias": "配置选项", @@ -701,6 +722,7 @@ { "key": "textStyle", "config": { + "id": 8349, "type": "object", "component": "none", "alias": "文本样式", @@ -732,6 +754,7 @@ { "key": "fontFamily", "config": { + "id": 6036, "type": "string", "component": "fontFamily", "alias": "字体", @@ -763,6 +786,7 @@ { "key": "fontWeight", "config": { + "id": 550, "type": "string", "component": "fontWeight", "alias": "文字粗细", @@ -794,6 +818,7 @@ { "key": "fontSize", "config": { + "id": 1059, "type": "number", "component": "number", "alias": "字号", @@ -825,6 +850,7 @@ { "key": "color", "config": { + "id": 3470, "type": "string", "component": "color", "alias": "颜色", @@ -864,6 +890,7 @@ { "key": "lineHeight", "config": { + "id": 6571, "type": "number", "component": "slider", "alias": "行高比例", @@ -895,6 +922,7 @@ { "key": "borderRadius", "config": { + "id": 8925, "type": "number", "component": "slider", "alias": "圆角半径", @@ -926,6 +954,7 @@ { "key": "padding", "config": { + "id": 676, "type": "object", "component": "none", "alias": "外边距", @@ -957,6 +986,7 @@ { "key": "top", "config": { + "id": 8415, "type": "number", "component": "number", "alias": "上", @@ -988,6 +1018,7 @@ { "key": "bottom", "config": { + "id": 5631, "type": "number", "component": "number", "alias": "下", @@ -1019,6 +1050,7 @@ { "key": "left", "config": { + "id": 3864, "type": "number", "component": "number", "alias": "左", @@ -1050,6 +1082,7 @@ { "key": "right", "config": { + "id": 9368, "type": "number", "component": "number", "alias": "右", @@ -1089,6 +1122,7 @@ { "key": "bgColor", "config": { + "id": 5219, "type": "string", "component": "color", "alias": "背景色", @@ -1133,6 +1167,7 @@ { "key": "interactive", "config": { + "id": 6002, "type": "object", "component": "none", "alias": "交互配置", @@ -1164,6 +1199,7 @@ { "key": "isHover", "config": { + "id": 2095, "type": "object", "component": "none", "alias": "悬停样式", @@ -1195,6 +1231,7 @@ { "key": "show", "config": { + "id": 7308, "type": "boolean", "component": "switch", "alias": "", @@ -1226,6 +1263,7 @@ { "key": "fillColor", "config": { + "id": 5064, "type": "string", "component": "color", "alias": "填充颜色", @@ -1257,6 +1295,7 @@ { "key": "strokeColor", "config": { + "id": 2276, "type": "string", "component": "color", "alias": "边线颜色", @@ -1288,6 +1327,7 @@ { "key": "weight", "config": { + "id": 7348, "type": "number", "component": "number", "alias": "边线粗细 [0, 20]", @@ -1327,6 +1367,7 @@ { "key": "clickZoom", "config": { + "id": 6932, "type": "object", "component": "none", "alias": "点击聚焦", @@ -1358,6 +1399,7 @@ { "key": "show", "config": { + "id": 8480, "type": "boolean", "component": "switch", "alias": "", @@ -1389,6 +1431,7 @@ { "key": "zoomPad", "config": { + "id": 9137, "type": "number", "component": "slider", "alias": "聚焦范围比 [1, 3]", @@ -1429,4 +1472,4 @@ "clickZoom" ] } -] +] \ No newline at end of file diff --git a/src/components/map/china2d/src/china2d-area/config.vue b/src/components/map/china2d/src/china2d-area/config.vue index bae25695..c358d1bc 100644 --- a/src/components/map/china2d/src/china2d-area/config.vue +++ b/src/components/map/china2d/src/china2d-area/config.vue @@ -114,49 +114,28 @@ tooltip="请设置info字段作为弹窗内容,info支持配置html标签;如不选,则兼容name和value作为弹窗内容" label="info字段" > - - - - {{ pair.value }} - - + - - - {{ pair.value }} - - + () const config = toRef(props.com, 'config') + +const pairData929 = [ + { key: 'click', value: '点击区域' }, + { key: 'mousemove', value: '鼠标移入时' }, +] + +const pairData1776 = [ + { key: 'parent', value: '父容器默认' }, + { key: 'custom', value: '自定义配置' }, +] + diff --git a/src/components/map/china2d/src/china2d-bubbles/config.json b/src/components/map/china2d/src/china2d-bubbles/config.json index 02778c40..1141e8c4 100644 --- a/src/components/map/china2d/src/china2d-bubbles/config.json +++ b/src/components/map/china2d/src/china2d-bubbles/config.json @@ -2,6 +2,7 @@ { "key": "defaultStyle", "config": { + "id": 9170, "type": "object", "component": "none", "alias": "默认样式", @@ -33,6 +34,7 @@ { "key": "effectType", "config": { + "id": 2390, "type": "string", "component": "radioBase", "alias": "动画效果", @@ -69,6 +71,7 @@ { "key": "sizeRange", "config": { + "id": 4914, "type": "array", "component": "sliderRange", "alias": "气泡大小", @@ -99,43 +102,12 @@ }, "path": "defaultStyle.sizeRange", "virtualPath": "", - "children": [ - { - "key": "0", - "config": { - "type": "number", - "component": "number", - "alias": "", - "tip": "", - "displayMode": "single", - "features": [], - "layout": "horizontal", - "toggleCol": "", - "isHide": false, - "defaultValue": 5, - "min": 0, - "max": 100, - "step": 1, - "InfiniteMin": false, - "InfiniteMax": false, - "suffix": "", - "enums": [], - "pairs": [], - "whichEnum": { - "field": "", - "value": "" - }, - "flatValue": false, - "isRange": false - }, - "path": "defaultStyle.sizeRange.0", - "virtualPath": "" - } - ] + "children": [] }, { "key": "offset", "config": { + "id": 8919, "type": "number", "component": "slider", "alias": "呼吸范围", @@ -167,6 +139,7 @@ { "key": "opacity", "config": { + "id": 1377, "type": "number", "component": "slider", "alias": "透明度", @@ -198,6 +171,7 @@ { "key": "period", "config": { + "id": 1624, "type": "number", "component": "slider", "alias": "动画时长", @@ -229,6 +203,7 @@ { "key": "number", "config": { + "id": 6251, "type": "number", "component": "slider", "alias": "波纹数量", @@ -260,6 +235,7 @@ { "key": "brushType", "config": { + "id": 460, "type": "string", "component": "selectImage", "alias": "绘制方式", @@ -302,6 +278,7 @@ { "key": "typeSeries", "config": { + "id": 223, "type": "array", "component": "none", "alias": "气泡类型", @@ -339,6 +316,7 @@ { "key": "0", "config": { + "id": 6487, "type": "object", "component": "none", "alias": "类型", @@ -370,6 +348,7 @@ { "key": "bubbleType", "config": { + "id": 6791, "type": "string", "component": "input", "alias": "类型过滤值", @@ -401,6 +380,7 @@ { "key": "bubbleKey", "config": { + "id": 3423, "type": "string", "component": "echartIcon", "alias": "气泡类型", @@ -432,6 +412,7 @@ { "key": "fillColor", "config": { + "id": 6184, "type": "string", "component": "color", "alias": "填充颜色", @@ -465,4 +446,4 @@ } ] } -] +] \ No newline at end of file diff --git a/src/components/map/china2d/src/china2d-bubbles/config.vue b/src/components/map/china2d/src/china2d-bubbles/config.vue index 51ff3338..cec5a6d7 100644 --- a/src/components/map/china2d/src/china2d-bubbles/config.vue +++ b/src/components/map/china2d/src/china2d-bubbles/config.vue @@ -7,20 +7,10 @@ :level="2" label="动画效果" > - - - {{ pair.value }} - - + import { toRef } from 'vue' -import { China2dBubbles, bubbleTypes, brushTypes } from './index' +import { China2dBubbles, brushTypes, bubbleTypes } from './index' const props = defineProps<{ com: China2dBubbles @@ -140,6 +130,10 @@ const props = defineProps<{ const config = toRef(props.com, 'config') +const pairData2390 = [ + { key: 'ripple', value: '涟漪动效' }, +] + const handleAddTypeSeriesItem = () => { return { bubbleType: '1', @@ -147,4 +141,5 @@ const handleAddTypeSeriesItem = () => { fillColor: 'rgba(198, 236, 238, 1)', } } + diff --git a/src/components/map/china2d/src/china2d-bubbles/index.ts b/src/components/map/china2d/src/china2d-bubbles/index.ts index f76ea0e0..5388da9f 100644 --- a/src/components/map/china2d/src/china2d-bubbles/index.ts +++ b/src/components/map/china2d/src/china2d-bubbles/index.ts @@ -79,16 +79,6 @@ export class China2dBubbles extends DatavComponent { export default China2dBubbles -export const bubbleTypes = [ - { id: 'circle', value: '圆形', icon: 'shape-circle' }, - { id: 'rect', value: '矩形', icon: 'shape-rect' }, - { id: 'roundRect', value: '圆角矩形', icon: 'shape-round-rect' }, - { id: 'triangle', value: '三矩形', icon: 'shape-triangle' }, - { id: 'diamond', value: '菱形', icon: 'shape-diamond' }, - { id: 'arrow', value: '箭头', icon: 'shape-arrow' }, - { id: 'pin', value: '针头', icon: 'shape-pin' }, -] - export const brushTypes = [ { id: 'fill', @@ -101,3 +91,13 @@ export const brushTypes = [ src: 'https://files.pengxiaotian.com/com-materiel/bubble-2-162-104.png', }, ] + +export const bubbleTypes = [ + { id: 'circle', value: '圆形', icon: 'shape-circle' }, + { id: 'rect', value: '矩形', icon: 'shape-rect' }, + { id: 'roundRect', value: '圆角矩形', icon: 'shape-round-rect' }, + { id: 'triangle', value: '三矩形', icon: 'shape-triangle' }, + { id: 'diamond', value: '菱形', icon: 'shape-diamond' }, + { id: 'arrow', value: '箭头', icon: 'shape-arrow' }, + { id: 'pin', value: '针头', icon: 'shape-pin' }, +] diff --git a/src/components/map/china2d/src/china2d-flyingline/config.json b/src/components/map/china2d/src/china2d-flyingline/config.json index eb40f721..524eceab 100644 --- a/src/components/map/china2d/src/china2d-flyingline/config.json +++ b/src/components/map/china2d/src/china2d-flyingline/config.json @@ -2,6 +2,7 @@ { "key": "flyinglineStyle", "config": { + "id": 834, "type": "object", "component": "none", "alias": "飞线样式", @@ -33,6 +34,7 @@ { "key": "fromColor", "config": { + "id": 1410, "type": "string", "component": "color", "alias": "起点颜色", @@ -64,6 +66,7 @@ { "key": "toColor", "config": { + "id": 6163, "type": "string", "component": "color", "alias": "终点颜色", @@ -95,6 +98,7 @@ { "key": "k", "config": { + "id": 7113, "type": "number", "component": "slider", "alias": "飞线渐变", @@ -126,6 +130,7 @@ { "key": "trailLength", "config": { + "id": 5709, "type": "number", "component": "slider", "alias": "飞线长度", @@ -157,6 +162,7 @@ { "key": "trailSize", "config": { + "id": 3874, "type": "number", "component": "slider", "alias": "飞线粗细", @@ -188,6 +194,7 @@ { "key": "curveness", "config": { + "id": 3418, "type": "number", "component": "slider", "alias": "飞线曲率", @@ -219,6 +226,7 @@ { "key": "constantSpeed", "config": { + "id": 7789, "type": "number", "component": "slider", "alias": "飞行速度", @@ -250,6 +258,7 @@ { "key": "period", "config": { + "id": 1604, "type": "number", "component": "slider", "alias": "飞行时长", @@ -281,6 +290,7 @@ { "key": "lineWidth", "config": { + "id": 5492, "type": "number", "component": "slider", "alias": "轨迹粗细", @@ -312,6 +322,7 @@ { "key": "opacity", "config": { + "id": 8615, "type": "number", "component": "slider", "alias": "轨迹透明度", @@ -357,6 +368,7 @@ { "key": "flareStyle", "config": { + "id": 7963, "type": "object", "component": "none", "alias": "耀斑样式", @@ -388,6 +400,7 @@ { "key": "show", "config": { + "id": 5541, "type": "boolean", "component": "switch", "alias": "", @@ -419,6 +432,7 @@ { "key": "type", "config": { + "id": 7382, "type": "string", "component": "echartIcon", "alias": "类型", @@ -450,6 +464,7 @@ { "key": "color", "config": { + "id": 6640, "type": "string", "component": "color", "alias": "颜色", @@ -481,6 +496,7 @@ { "key": "size", "config": { + "id": 8571, "type": "number", "component": "slider", "alias": "大小", @@ -512,6 +528,7 @@ { "key": "lineWidth", "config": { + "id": 2980, "type": "number", "component": "number", "alias": "", @@ -549,4 +566,4 @@ "lineWidth" ] } -] +] \ No newline at end of file diff --git a/src/components/map/china2d/src/china2d-flyingline/config.vue b/src/components/map/china2d/src/china2d-flyingline/config.vue index 66d11843..5e80c11a 100644 --- a/src/components/map/china2d/src/china2d-flyingline/config.vue +++ b/src/components/map/china2d/src/china2d-flyingline/config.vue @@ -157,4 +157,5 @@ const props = defineProps<{ }>() const config = toRef(props.com, 'config') + diff --git a/src/components/map/china2d/src/china2d-flyingline/index.ts b/src/components/map/china2d/src/china2d-flyingline/index.ts index 7ef77a95..493d51ca 100644 --- a/src/components/map/china2d/src/china2d-flyingline/index.ts +++ b/src/components/map/china2d/src/china2d-flyingline/index.ts @@ -73,6 +73,8 @@ export class China2dFlyingline extends DatavComponent { } } +export default China2dFlyingline + export const flareTypes = [ { id: 'circle', value: '圆形', icon: 'shape-circle' }, { id: 'rect', value: '矩形', icon: 'shape-rect' }, @@ -86,4 +88,3 @@ export const flareIcons = { airplane: 'path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z', } -export default China2dFlyingline diff --git a/src/components/map/china2d/src/config.json b/src/components/map/china2d/src/config.json index 5368a442..03c3daa1 100644 --- a/src/components/map/china2d/src/config.json +++ b/src/components/map/china2d/src/config.json @@ -2,6 +2,7 @@ { "key": "global", "config": { + "id": 2481, "type": "object", "component": "none", "alias": "全局配置", @@ -33,6 +34,7 @@ { "key": "bgColor", "config": { + "id": 4349, "type": "string", "component": "color", "alias": "地图背景", @@ -64,6 +66,7 @@ { "key": "zoom", "config": { + "id": 1962, "type": "object", "component": "none", "alias": "地图缩放", @@ -95,6 +98,7 @@ { "key": "range", "config": { + "id": 481, "type": "array", "component": "sliderRange", "alias": "缩放范围 [0, 20]", @@ -125,43 +129,12 @@ }, "path": "global.zoom.range", "virtualPath": "", - "children": [ - { - "key": "0", - "config": { - "type": "number", - "component": "number", - "alias": "", - "tip": "", - "displayMode": "single", - "features": [], - "layout": "horizontal", - "toggleCol": "", - "isHide": false, - "defaultValue": 0, - "min": 0, - "max": 100, - "step": 1, - "InfiniteMin": false, - "InfiniteMax": false, - "suffix": "", - "enums": [], - "pairs": [], - "whichEnum": { - "field": "", - "value": "" - }, - "flatValue": false, - "isRange": false - }, - "path": "global.zoom.range.0", - "virtualPath": "" - } - ] + "children": [] }, { "key": "value", "config": { + "id": 6054, "type": "number", "component": "slider", "alias": "默认级别 [0, 20]", @@ -171,7 +144,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": 4.5, + "defaultValue": 1.5, "min": 0, "max": 20, "step": 0.1, @@ -199,6 +172,7 @@ { "key": "center", "config": { + "id": 830, "type": "object", "component": "none", "alias": "地图中心", @@ -230,6 +204,7 @@ { "key": "lng", "config": { + "id": 4172, "type": "number", "component": "slider", "alias": "经度", @@ -261,6 +236,7 @@ { "key": "lat", "config": { + "id": 2910, "type": "number", "component": "slider", "alias": "纬度", @@ -305,6 +281,7 @@ { "key": "tooltip", "config": { + "id": 6014, "type": "object", "component": "none", "alias": "弹框设置", @@ -336,6 +313,7 @@ { "key": "textStyle", "config": { + "id": 698, "type": "object", "component": "none", "alias": "文本样式", @@ -367,6 +345,7 @@ { "key": "fontFamily", "config": { + "id": 3075, "type": "string", "component": "fontFamily", "alias": "字体", @@ -398,6 +377,7 @@ { "key": "fontWeight", "config": { + "id": 1107, "type": "string", "component": "fontWeight", "alias": "文字粗细", @@ -429,6 +409,7 @@ { "key": "fontSize", "config": { + "id": 5753, "type": "number", "component": "number", "alias": "字号", @@ -460,6 +441,7 @@ { "key": "color", "config": { + "id": 2320, "type": "string", "component": "color", "alias": "颜色", @@ -499,6 +481,7 @@ { "key": "lineHeight", "config": { + "id": 8620, "type": "number", "component": "slider", "alias": "行高比例", @@ -530,6 +513,7 @@ { "key": "borderRadius", "config": { + "id": 8323, "type": "number", "component": "slider", "alias": "圆角半径", @@ -561,6 +545,7 @@ { "key": "padding", "config": { + "id": 7521, "type": "object", "component": "none", "alias": "外边距", @@ -592,6 +577,7 @@ { "key": "top", "config": { + "id": 3491, "type": "number", "component": "number", "alias": "上", @@ -623,6 +609,7 @@ { "key": "bottom", "config": { + "id": 6218, "type": "number", "component": "number", "alias": "下", @@ -654,6 +641,7 @@ { "key": "left", "config": { + "id": 8615, "type": "number", "component": "number", "alias": "左", @@ -685,6 +673,7 @@ { "key": "right", "config": { + "id": 2589, "type": "number", "component": "number", "alias": "右", @@ -724,6 +713,7 @@ { "key": "bgColor", "config": { + "id": 1139, "type": "string", "component": "color", "alias": "背景色", @@ -764,6 +754,7 @@ { "key": "interactive", "config": { + "id": 7575, "type": "object", "component": "none", "alias": "交互配置", @@ -795,6 +786,7 @@ { "key": "dragging", "config": { + "id": 5068, "type": "boolean", "component": "switch", "alias": "开启拖拽", @@ -826,6 +818,7 @@ { "key": "scrollWheelZoom", "config": { + "id": 1713, "type": "boolean", "component": "switch", "alias": "开启缩放", @@ -857,6 +850,7 @@ { "key": "isInteractive", "config": { + "id": 4611, "type": "boolean", "component": "switch", "alias": "地图交互", @@ -892,4 +886,4 @@ "isInteractive" ] } -] +] \ No newline at end of file diff --git a/src/components/map/china2d/src/config.vue b/src/components/map/china2d/src/config.vue index f79822e7..f28c8535 100644 --- a/src/components/map/china2d/src/config.vue +++ b/src/components/map/china2d/src/config.vue @@ -167,55 +167,42 @@ :level="2" label="开启拖拽" > - - - - diff --git a/src/components/media/bg-box/src/bg-box.ts b/src/components/media/bg-box/src/bg-box.ts index 362c8129..4fb6fce9 100644 --- a/src/components/media/bg-box/src/bg-box.ts +++ b/src/components/media/bg-box/src/bg-box.ts @@ -89,6 +89,8 @@ export class BgBox extends DatavComponent { async loadData() {} } +export default BgBox + export const presetImages: BorderImage[] = [ ...BorderBoxPresetImages, { @@ -273,4 +275,3 @@ export const presetImages: BorderImage[] = [ }, ] -export default BgBox diff --git a/src/components/media/bg-box/src/config.json b/src/components/media/bg-box/src/config.json index 97597130..e42f6bb1 100644 --- a/src/components/media/bg-box/src/config.json +++ b/src/components/media/bg-box/src/config.json @@ -2,6 +2,7 @@ { "key": "borderRadius", "config": { + "id": 2169, "type": "number", "component": "number", "alias": "圆角", @@ -24,7 +25,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "borderRadius", "virtualPath": "" @@ -32,6 +34,7 @@ { "key": "fills", "config": { + "id": 977, "type": "array", "component": "none", "alias": "填充", @@ -60,7 +63,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "fills", "virtualPath": "", @@ -68,6 +72,7 @@ { "key": "0", "config": { + "id": 6016, "type": "object", "component": "none", "alias": "填充", @@ -90,7 +95,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "fills.0", "virtualPath": "", @@ -98,6 +104,7 @@ { "key": "fill", "config": { + "id": 2799, "type": "string", "component": "color", "alias": "填充", @@ -120,7 +127,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "fills.0.fill", "virtualPath": "slotProps.item.fill" @@ -128,6 +136,7 @@ { "key": "opacity", "config": { + "id": 6991, "type": "number", "component": "number", "alias": "透明度", @@ -150,7 +159,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "fills.0.opacity", "virtualPath": "slotProps.item.opacity" @@ -163,6 +173,7 @@ { "key": "border", "config": { + "id": 5508, "type": "object", "component": "none", "alias": "边框", @@ -185,7 +196,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border", "virtualPath": "", @@ -193,6 +205,7 @@ { "key": "show", "config": { + "id": 5970, "type": "boolean", "component": "switch", "alias": "", @@ -215,7 +228,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.show", "virtualPath": "" @@ -223,6 +237,7 @@ { "key": "type", "config": { + "id": 8683, "type": "string", "component": "radio", "alias": "边框类型", @@ -258,7 +273,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.type", "virtualPath": "" @@ -266,6 +282,7 @@ { "key": "flat", "config": { + "id": 6420, "type": "object", "component": "none", "alias": "边框配置", @@ -288,7 +305,8 @@ "field": "type", "value": "flat" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.flat", "virtualPath": "", @@ -296,6 +314,7 @@ { "key": "width", "config": { + "id": 4072, "type": "number", "component": "number", "alias": "粗细", @@ -318,7 +337,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.flat.width", "virtualPath": "" @@ -326,6 +346,7 @@ { "key": "style", "config": { + "id": 7362, "type": "string", "component": "lineStyle", "alias": "样式", @@ -348,7 +369,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.flat.style", "virtualPath": "" @@ -356,6 +378,7 @@ { "key": "color", "config": { + "id": 5722, "type": "string", "component": "color", "alias": "颜色", @@ -378,7 +401,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.flat.color", "virtualPath": "" @@ -393,6 +417,7 @@ { "key": "linearGradient", "config": { + "id": 9003, "type": "object", "component": "none", "alias": "边框配置", @@ -415,7 +440,8 @@ "field": "type", "value": "linearGradient" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient", "virtualPath": "", @@ -423,6 +449,7 @@ { "key": "width", "config": { + "id": 2122, "type": "number", "component": "number", "alias": "粗细", @@ -445,7 +472,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.width", "virtualPath": "" @@ -453,6 +481,7 @@ { "key": "color", "config": { + "id": 5774, "type": "object", "component": "none", "alias": "渐变色", @@ -475,7 +504,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color", "virtualPath": "", @@ -483,6 +513,7 @@ { "key": "angle", "config": { + "id": 4154, "type": "number", "component": "number", "alias": "角度", @@ -505,7 +536,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color.angle", "virtualPath": "" @@ -513,6 +545,7 @@ { "key": "stops", "config": { + "id": 1551, "type": "array", "component": "none", "alias": "节点", @@ -541,7 +574,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color.stops", "virtualPath": "", @@ -549,6 +583,7 @@ { "key": "0", "config": { + "id": 4947, "type": "object", "component": "none", "alias": "节点", @@ -571,7 +606,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color.stops.0", "virtualPath": "", @@ -579,6 +615,7 @@ { "key": "offset", "config": { + "id": 8303, "type": "number", "component": "number", "alias": "位置", @@ -601,7 +638,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color.stops.0.offset", "virtualPath": "slotProps.item.offset" @@ -609,6 +647,7 @@ { "key": "color", "config": { + "id": 3720, "type": "string", "component": "color", "alias": "颜色", @@ -631,7 +670,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.linearGradient.color.stops.0.color", "virtualPath": "slotProps.item.color" @@ -656,6 +696,7 @@ { "key": "imageType", "config": { + "id": 406, "type": "string", "component": "radio", "alias": "配置方式", @@ -687,7 +728,8 @@ "field": "type", "value": "image" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.imageType", "virtualPath": "" @@ -695,6 +737,7 @@ { "key": "presetImage", "config": { + "id": 8798, "type": "string", "component": "selectImage", "alias": "边框配置", @@ -717,7 +760,8 @@ "field": "imageType", "value": "preset" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.presetImage", "virtualPath": "" @@ -725,6 +769,7 @@ { "key": "customImage", "config": { + "id": 819, "type": "object", "component": "none", "alias": "边框配置", @@ -747,7 +792,8 @@ "field": "imageType", "value": "custom" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage", "virtualPath": "", @@ -755,6 +801,7 @@ { "key": "source", "config": { + "id": 5794, "type": "string", "component": "uploadImage", "alias": "图片", @@ -777,7 +824,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage.source", "virtualPath": "" @@ -785,6 +833,7 @@ { "key": "slice", "config": { + "id": 1370, "type": "string", "component": "input", "alias": "切片", @@ -807,7 +856,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage.slice", "virtualPath": "" @@ -815,6 +865,7 @@ { "key": "width", "config": { + "id": 3020, "type": "string", "component": "input", "alias": "宽度", @@ -837,7 +888,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage.width", "virtualPath": "" @@ -845,6 +897,7 @@ { "key": "outset", "config": { + "id": 3569, "type": "string", "component": "input", "alias": "外扩", @@ -867,7 +920,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage.outset", "virtualPath": "" @@ -875,6 +929,7 @@ { "key": "repeat", "config": { + "id": 3049, "type": "string", "component": "repeatType", "alias": "平铺类型", @@ -897,7 +952,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "border.customImage.repeat", "virtualPath": "" @@ -925,6 +981,7 @@ { "key": "filter", "config": { + "id": 5294, "type": "object", "component": "none", "alias": "滤镜", @@ -947,7 +1004,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "filter", "virtualPath": "", @@ -955,6 +1013,7 @@ { "key": "blur", "config": { + "id": 1227, "type": "string", "component": "input", "alias": "模糊", @@ -977,7 +1036,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "filter.blur", "virtualPath": "" @@ -990,6 +1050,7 @@ { "key": "backdropFilter", "config": { + "id": 7356, "type": "object", "component": "none", "alias": "背景过滤器", @@ -1012,7 +1073,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "backdropFilter", "virtualPath": "", @@ -1020,6 +1082,7 @@ { "key": "blur", "config": { + "id": 6151, "type": "string", "component": "input", "alias": "磨玻璃模糊", @@ -1042,7 +1105,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "backdropFilter.blur", "virtualPath": "" @@ -1055,6 +1119,7 @@ { "key": "urlConfig", "config": { + "id": 3438, "type": "object", "component": "none", "alias": "超链接配置", @@ -1077,7 +1142,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig", "virtualPath": "", @@ -1085,6 +1151,7 @@ { "key": "url", "config": { + "id": 8067, "type": "string", "component": "input", "alias": "超链接", @@ -1107,7 +1174,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig.url", "virtualPath": "" @@ -1115,6 +1183,7 @@ { "key": "ifBlank", "config": { + "id": 9480, "type": "boolean", "component": "switch", "alias": "是否新打开窗口", @@ -1137,7 +1206,8 @@ "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig.ifBlank", "virtualPath": "" @@ -1148,4 +1218,4 @@ "ifBlank" ] } -] +] \ No newline at end of file diff --git a/src/components/media/bg-box/src/config.vue b/src/components/media/bg-box/src/config.vue index 948a09b0..15ab3bb8 100644 --- a/src/components/media/bg-box/src/config.vue +++ b/src/components/media/bg-box/src/config.vue @@ -55,22 +55,11 @@ :level="2" label="边框类型" > - - - {{ pair.value }} - - + - - - {{ pair.value }} - - + @@ -198,7 +177,7 @@ /> - - diff --git a/src/components/media/border-box/src/border-box.ts b/src/components/media/border-box/src/border-box.ts index 57b16016..a8bab687 100644 --- a/src/components/media/border-box/src/border-box.ts +++ b/src/components/media/border-box/src/border-box.ts @@ -40,6 +40,8 @@ export class BorderBox extends DatavComponent { async loadData() {} } +export default BorderBox + export const presetImages: BorderImage[] = [ { id: 'box1', @@ -187,4 +189,3 @@ export const presetImages: BorderImage[] = [ }, ] -export default BorderBox diff --git a/src/components/media/border-box/src/config.json b/src/components/media/border-box/src/config.json index bdf140c4..678ceef6 100644 --- a/src/components/media/border-box/src/config.json +++ b/src/components/media/border-box/src/config.json @@ -2,6 +2,7 @@ { "key": "boxStyle", "config": { + "id": 9653, "type": "object", "component": "none", "alias": "框", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "boxStyle", "virtualPath": "", @@ -31,6 +34,7 @@ { "key": "style", "config": { + "id": 4207, "type": "string", "component": "selectImage", "alias": "样式", @@ -40,7 +44,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "box1", + "defaultValue": "box15", "min": 0, "max": 100, "step": 1, @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "boxStyle.style", "virtualPath": "" @@ -62,4 +68,4 @@ "style" ] } -] +] \ No newline at end of file diff --git a/src/components/media/border-box/src/config.vue b/src/components/media/border-box/src/config.vue index 63b55758..c3feedd7 100644 --- a/src/components/media/border-box/src/config.vue +++ b/src/components/media/border-box/src/config.vue @@ -16,25 +16,14 @@ - diff --git a/src/components/media/decoration/src/config.json b/src/components/media/decoration/src/config.json index 72a197b4..048165fe 100644 --- a/src/components/media/decoration/src/config.json +++ b/src/components/media/decoration/src/config.json @@ -2,6 +2,7 @@ { "key": "global", "config": { + "id": 2870, "type": "object", "component": "none", "alias": "全局", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global", "virtualPath": "", @@ -31,6 +34,7 @@ { "key": "img", "config": { + "id": 2657, "type": "string", "component": "selectImage", "alias": "装饰元素", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.img", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "opacity", "config": { + "id": 9224, "type": "number", "component": "slider", "alias": "透明度", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.opacity", "virtualPath": "" @@ -92,4 +101,4 @@ "opacity" ] } -] +] \ No newline at end of file diff --git a/src/components/media/decoration/src/config.vue b/src/components/media/decoration/src/config.vue index 605982b7..f75e36d2 100644 --- a/src/components/media/decoration/src/config.vue +++ b/src/components/media/decoration/src/config.vue @@ -9,7 +9,7 @@ > - diff --git a/src/components/media/decoration/src/decoration.ts b/src/components/media/decoration/src/decoration.ts index dffc73e4..f7472802 100644 --- a/src/components/media/decoration/src/decoration.ts +++ b/src/components/media/decoration/src/decoration.ts @@ -3,6 +3,7 @@ import { ApiConfigMap, ApiDataConfigMap, } from '@/components/_models/data-source' import { DataEventConfig } from '@/components/_models/data-event' +import { BorderImage } from '@/components/_models/border-image' /** * Decoration @@ -40,391 +41,496 @@ export class Decoration extends DatavComponent { async loadData() {} } -export const presetImages: { - [key: string]: { - url: string - css: Record - } -} = { - gif1: { - url: 'https://img.alicdn.com/tps/TB1tFMtPXXXXXXyXpXXXXXXXXXX-1920-1080.gif', +export default Decoration + +export const presetImages: BorderImage[] = [ + { + id: 'gif1', + name: 'gif1', + src: 'https://files.pengxiaotian.com/deco/gif1-1920-1080.gif', css: { 'background-position': 'left bottom', }, }, - gif2: { - url: 'https://img.alicdn.com/tps/TB1Pg3pPXXXXXcxXpXXXXXXXXXX-1920-1080.gif', + { + id: 'gif2', + name: 'gif2', + src: 'https://files.pengxiaotian.com/deco/gif2-1920-1080.gif', css: { 'background-position': 'center', }, }, - gif3: { - url: 'https://img.alicdn.com/tps/TB1XLAgPXXXXXbCXFXXXXXXXXXX-1080-824.gif', + { + id: 'gif3', + name: 'gif3', + src: 'https://files.pengxiaotian.com/deco/gif3-1080-824.gif', css: { 'background-position': 'right top', }, }, - gif4: { - url: 'https://img.alicdn.com/tps/TB1LArQPXXXXXcLapXXXXXXXXXX-1080-824.gif', + { + id: 'gif4', + name: 'gif4', + src: 'https://files.pengxiaotian.com/deco/gif4-1080-824.gif', css: { 'background-position': 'right bottom', }, }, - gif5: { - url: 'https://img.alicdn.com/tps/TB18er0PXXXXXXwapXXXXXXXXXX-1920-1080.gif', + { + id: 'gif5', + name: 'gif5', + src: 'https://files.pengxiaotian.com/deco/gif5-1920-1080.gif', css: { 'background-position': 'left top', }, }, - gif6: { - url: 'https://img.alicdn.com/tps/TB12FP6PXXXXXczXVXXXXXXXXXX-1626-356.gif', + { + id: 'gif6', + name: 'gif6', + src: 'https://files.pengxiaotian.com/deco/gif6-1626-356.gif', css: { 'background-position': 'center', }, }, - gif7: { - url: 'https://img.alicdn.com/tps/TB1ZXD8PXXXXXX1aXXXXXXXXXXX-94-1461.gif', + { + id: 'gif7', + name: 'gif7', + src: 'https://files.pengxiaotian.com/deco/gif7-94-1461.gif', css: { 'background-size': 'contain', 'background-position': 'left top', }, }, - gif8: { - url: 'https://img.alicdn.com/tps/TB1Z8MHPFXXXXacaXXXXXXXXXXX-500-54.gif', + { + id: 'gif8', + name: 'gif8', + src: 'https://files.pengxiaotian.com/deco/gif8-500-54.gif', css: { 'background-size': 'contain', 'background-position': 'left top', }, }, - gif9: { - url: 'https://img.alicdn.com/tps/TB1tIIKPFXXXXXIXVXXXXXXXXXX-500-64.gif', + { + id: 'gif9', + name: 'gif9', + src: 'https://files.pengxiaotian.com/deco/gif9-500-64.gif', css: { 'background-size': 'contain', 'background-position': 'left top', }, }, - gif10: { - url: 'https://img.alicdn.com/tps/TB10bUCPFXXXXajapXXXXXXXXXX-782-259.gif', + { + id: 'gif10', + name: 'gif10', + src: 'https://files.pengxiaotian.com/deco/gif10-782-259.gif', css: { 'background-size': 'contain', 'background-position': 'left top', }, }, - gif11: { - url: 'https://img.alicdn.com/tfs/TB15JPjtMTqK1RjSZPhXXXfOFXa-280-800.png', + { + id: 'gif11', + name: 'gif11', + src: 'https://files.pengxiaotian.com/deco/gif11-280-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif12: { - url: 'https://img.alicdn.com/tfs/TB1_PYmtMHqK1RjSZJnXXbNLpXa-254-800.png', + { + id: 'gif12', + name: 'gif12', + src: 'https://files.pengxiaotian.com/deco/gif12-254-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif13: { - url: 'https://img.alicdn.com/tfs/TB16KbftSzqK1RjSZPxXXc4tVXa-800-171.png', + { + id: 'gif13', + name: 'gif13', + src: 'https://files.pengxiaotian.com/deco/gif13-800-171.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif14: { - url: 'https://img.alicdn.com/tfs/TB1Zo2ntQvoK1RjSZFwXXciCFXa-800-103.png', + { + id: 'gif14', + name: 'gif14', + src: 'https://files.pengxiaotian.com/deco/gif14-800-103.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif15: { - url: 'https://img.alicdn.com/tfs/TB1R7fqtMHqK1RjSZFkXXX.WFXa-800-143.png', + { + id: 'gif15', + name: 'gif15', + src: 'https://files.pengxiaotian.com/deco/gif15-800-143.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif16: { - url: 'https://img.alicdn.com/tfs/TB1A26ntHvpK1RjSZFqXXcXUVXa-800-154.png', + { + id: 'gif16', + name: 'gif16', + src: 'https://files.pengxiaotian.com/deco/gif16-800-154.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif17: { - url: 'https://img.alicdn.com/tfs/TB19EDvtNYaK1RjSZFnXXa80pXa-254-800.png', + { + id: 'gif17', + name: 'gif17', + src: 'https://files.pengxiaotian.com/deco/gif17-254-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif18: { - url: 'https://img.alicdn.com/tfs/TB115YhtMDqK1RjSZSyXXaxEVXa-800-143.png', + { + id: 'gif18', + name: 'gif18', + src: 'https://files.pengxiaotian.com/deco/gif18-800-143.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif19: { - url: 'https://img.alicdn.com/tfs/TB1F3bqtQzoK1RjSZFlXXai4VXa-113-800.png', + { + id: 'gif19', + name: 'gif19', + src: 'https://files.pengxiaotian.com/deco/gif19-113-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif20: { - url: 'https://img.alicdn.com/tfs/TB1pZLmtFzqK1RjSZFCXXbbxVXa-840-700.png', + { + id: 'gif20', + name: 'gif20', + src: 'https://files.pengxiaotian.com/deco/gif20-840-700.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif21: { - url: 'https://img.alicdn.com/tfs/TB1NT_ltFzqK1RjSZFoXXbfcXXa-368-800.png', + { + id: 'gif21', + name: 'gif21', + src: 'https://files.pengxiaotian.com/deco/gif21-368-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif22: { - url: 'https://img.alicdn.com/tfs/TB1YUbltFzqK1RjSZFoXXbfcXXa-800-103.png', + { + id: 'gif22', + name: 'gif22', + src: 'https://files.pengxiaotian.com/deco/gif22-800-103.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif23: { - url: 'https://img.alicdn.com/tfs/TB1AgnntQvoK1RjSZPfXXXPKFXa-800-86.png', + { + id: 'gif23', + name: 'gif23', + src: 'https://files.pengxiaotian.com/deco/gif23-800-86.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif24: { - url: 'https://img.alicdn.com/tfs/TB1mtbmtFzqK1RjSZFCXXbbxVXa-456-800.png', + { + id: 'gif24', + name: 'gif24', + src: 'https://files.pengxiaotian.com/deco/gif24-456-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif25: { - url: 'https://img.alicdn.com/tfs/TB1eOYKtNnaK1RjSZFtXXbC2VXa-132-800.png', + { + id: 'gif25', + name: 'gif25', + src: 'https://files.pengxiaotian.com/deco/gif25-132-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif26: { - url: 'https://img.alicdn.com/tfs/TB101HktSzqK1RjSZFHXXb3CpXa-184-800.png', + { + id: 'gif26', + name: 'gif26', + src: 'https://files.pengxiaotian.com/deco/gif26-184-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif27: { - url: 'https://img.alicdn.com/tfs/TB1t_PftRLoK1RjSZFuXXXn0XXa-800-800.png', + { + id: 'gif27', + name: 'gif27', + src: 'https://files.pengxiaotian.com/deco/gif27-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif28: { - url: 'https://img.alicdn.com/tfs/TB1m5_KtNnaK1RjSZFtXXbC2VXa-800-800.png', + { + id: 'gif28', + name: 'gif28', + src: 'https://files.pengxiaotian.com/deco/gif28-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif29: { - url: 'https://img.alicdn.com/tfs/TB1KtritHPpK1RjSZFFXXa5PpXa-254-800.png', + { + id: 'gif29', + name: 'gif29', + src: 'https://files.pengxiaotian.com/deco/gif29-254-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif30: { - url: 'https://img.alicdn.com/tfs/TB1oujktMHqK1RjSZFPXXcwapXa-500-500.png', + { + id: 'gif30', + name: 'gif30', + src: 'https://files.pengxiaotian.com/deco/gif30-500-500.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif31: { - url: 'https://img.alicdn.com/tfs/TB1WxTntQvoK1RjSZPfXXXPKFXa-1000-800.png', + { + id: 'gif31', + name: 'gif31', + src: 'https://files.pengxiaotian.com/deco/gif31-1000-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif32: { - url: 'https://img.alicdn.com/tfs/TB1aQPltMHqK1RjSZFgXXa7JXXa-800-800.png', + { + id: 'gif32', + name: 'gif32', + src: 'https://files.pengxiaotian.com/deco/gif32-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif33: { - url: 'https://img.alicdn.com/tfs/TB1HYbwtNYaK1RjSZFnXXa80pXa-800-800.png', + { + id: 'gif33', + name: 'gif33', + src: 'https://files.pengxiaotian.com/deco/gif33-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif34: { - url: 'https://img.alicdn.com/tfs/TB1dg2jtMTqK1RjSZPhXXXfOFXa-800-800.png', + { + id: 'gif34', + name: 'gif34', + src: 'https://files.pengxiaotian.com/deco/gif34-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif35: { - url: 'https://img.alicdn.com/tfs/TB1Y6zntHvpK1RjSZFqXXcXUVXa-800-800.png', + { + id: 'gif35', + name: 'gif35', + src: 'https://files.pengxiaotian.com/deco/gif35-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif36: { - url: 'https://img.alicdn.com/tfs/TB1.sLotQvoK1RjSZFwXXciCFXa-800-800.png', + { + id: 'gif36', + name: 'gif36', + src: 'https://files.pengxiaotian.com/deco/gif36-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif37: { - url: 'https://img.alicdn.com/tfs/TB1OhvktMHqK1RjSZFPXXcwapXa-800-800.png', + { + id: 'gif37', + name: 'gif37', + src: 'https://files.pengxiaotian.com/deco/gif37-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif38: { - url: 'https://img.alicdn.com/tfs/TB1aU_itNTpK1RjSZFGXXcHqFXa-800-800.png', + { + id: 'gif38', + name: 'gif38', + src: 'https://files.pengxiaotian.com/deco/gif38-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif39: { - url: 'https://img.alicdn.com/tfs/TB1iFrotQPoK1RjSZKbXXX1IXXa-1200-1200.png', + { + id: 'gif39', + name: 'gif39', + src: 'https://files.pengxiaotian.com/deco/gif39-1200-1200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif40: { - url: 'https://img.alicdn.com/tfs/TB1uSTjtH2pK1RjSZFsXXaNlXXa-800-800.png', + { + id: 'gif40', + name: 'gif40', + src: 'https://files.pengxiaotian.com/deco/gif40-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif41: { - url: 'https://img.alicdn.com/tfs/TB1nXLptQvoK1RjSZFDXXXY3pXa-800-800.png', + { + id: 'gif41', + name: 'gif41', + src: 'https://files.pengxiaotian.com/deco/gif41-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif42: { - url: 'https://img.alicdn.com/tfs/TB1ZMDntHrpK1RjSZTEXXcWAVXa-800-200.png', + { + id: 'gif42', + name: 'gif42', + src: 'https://files.pengxiaotian.com/deco/gif42-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif43: { - url: 'https://img.alicdn.com/tfs/TB1MtTmtFzqK1RjSZFoXXbfcXXa-800-200.png', + { + id: 'gif43', + name: 'gif43', + src: 'https://files.pengxiaotian.com/deco/gif43-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif44: { - url: 'https://img.alicdn.com/tfs/TB1UffotQvoK1RjSZFwXXciCFXa-800-200.png', + { + id: 'gif44', + name: 'gif44', + src: 'https://files.pengxiaotian.com/deco/gif44-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif45: { - url: 'https://img.alicdn.com/tfs/TB1LdnitSzqK1RjSZFLXXcn2XXa-800-200.png', + { + id: 'gif45', + name: 'gif45', + src: 'https://files.pengxiaotian.com/deco/gif45-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif46: { - url: 'https://img.alicdn.com/tfs/TB1o.fKtNnaK1RjSZFtXXbC2VXa-800-200.png', + { + id: 'gif46', + name: 'gif46', + src: 'https://files.pengxiaotian.com/deco/gif46-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif47: { - url: 'https://img.alicdn.com/tfs/TB19K_mtSzqK1RjSZFpXXakSXXa-800-200.png', + { + id: 'gif47', + name: 'gif47', + src: 'https://files.pengxiaotian.com/deco/gif47-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif48: { - url: 'https://img.alicdn.com/tfs/TB1tefhtNTpK1RjSZR0XXbEwXXa-300-800.png', + { + id: 'gif48', + name: 'gif48', + src: 'https://files.pengxiaotian.com/deco/gif48-300-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif49: { - url: 'https://img.alicdn.com/tfs/TB1MAYktSzqK1RjSZFHXXb3CpXa-800-200.png', + { + id: 'gif49', + name: 'gif49', + src: 'https://files.pengxiaotian.com/deco/gif49-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif50: { - url: 'https://img.alicdn.com/tfs/TB1VefitSzqK1RjSZFLXXcn2XXa-800-65.png', + { + id: 'gif50', + name: 'gif50', + src: 'https://files.pengxiaotian.com/deco/gif50-800-65.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif51: { - url: 'https://img.alicdn.com/tfs/TB1iirptNTpK1RjSZFMXXbG_VXa-800-200.png', + { + id: 'gif51', + name: 'gif51', + src: 'https://files.pengxiaotian.com/deco/gif51-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif52: { - url: 'https://img.alicdn.com/tfs/TB1lFbktH2pK1RjSZFsXXaNlXXa-800-800.png', + { + id: 'gif52', + name: 'gif52', + src: 'https://files.pengxiaotian.com/deco/gif52-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif53: { - url: 'https://img.alicdn.com/tfs/TB1m7zmtFzqK1RjSZFCXXbbxVXa-800-200.png', + { + id: 'gif53', + name: 'gif53', + src: 'https://files.pengxiaotian.com/deco/gif53-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif54: { - url: 'https://img.alicdn.com/tfs/TB1Df6mtFzqK1RjSZFoXXbfcXXa-800-200.png', + { + id: 'gif54', + name: 'gif54', + src: 'https://files.pengxiaotian.com/deco/gif54-800-200.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, - gif55: { - url: 'https://img.alicdn.com/tfs/TB1sg6mtSzqK1RjSZFpXXakSXXa-800-800.png', + { + id: 'gif55', + name: 'gif55', + src: 'https://files.pengxiaotian.com/deco/gif55-800-800.png', css: { 'background-position': 'center', 'background-size': 'contain', }, }, -} - -export default Decoration +] diff --git a/src/components/media/decoration/src/index.vue b/src/components/media/decoration/src/index.vue index 923e30f6..b09547b6 100644 --- a/src/components/media/decoration/src/index.vue +++ b/src/components/media/decoration/src/index.vue @@ -29,12 +29,12 @@ export default defineComponent({ }) const imgBoxStyle = computed(() => { - const gif = presetImages[config.value.global.img] + const gif = presetImages.find(m => m.id === config.value.global.img) return { width: '100%', height: '100%', opacity: config.value.global.opacity, - 'background-image': `url(${gif.url})`, + 'background-image': `url(${gif.src})`, 'background-size': '100%', 'background-repeat': 'no-repeat', 'background-position': 'center', diff --git a/src/components/media/main-img/src/config.json b/src/components/media/main-img/src/config.json index 0c0a06b1..45029c5c 100644 --- a/src/components/media/main-img/src/config.json +++ b/src/components/media/main-img/src/config.json @@ -2,6 +2,7 @@ { "key": "imageType", "config": { + "id": 869, "type": "string", "component": "imageType", "alias": "图片类型", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "imageType", "virtualPath": "" @@ -31,6 +34,7 @@ { "key": "backgroundImage", "config": { + "id": 6028, "type": "string", "component": "uploadImage", "alias": "背景图", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "backgroundImage", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "vectorImage", "config": { + "id": 8705, "type": "string", "component": "uploadImage", "alias": "矢量图", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "imageType", "value": "vector" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "vectorImage", "virtualPath": "" @@ -89,6 +98,7 @@ { "key": "vectorFill", "config": { + "id": 8762, "type": "string", "component": "color", "alias": "填充色", @@ -106,11 +116,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "imageType", "value": "vector" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "vectorFill", "virtualPath": "" @@ -118,6 +130,7 @@ { "key": "repeat", "config": { + "id": 3260, "type": "string", "component": "repeatType", "alias": "图片重复", @@ -135,11 +148,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "repeat", "virtualPath": "" @@ -147,6 +162,7 @@ { "key": "radius", "config": { + "id": 1272, "type": "number", "component": "number", "alias": "圆角", @@ -156,7 +172,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": 0, + "defaultValue": 1, "min": 0, "max": 100, "step": 1, @@ -164,11 +180,13 @@ "InfiniteMax": true, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "radius", "virtualPath": "" @@ -176,6 +194,7 @@ { "key": "urlConfig", "config": { + "id": 492, "type": "object", "component": "none", "alias": "超链接配置", @@ -193,11 +212,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig", "virtualPath": "", @@ -205,6 +226,7 @@ { "key": "url", "config": { + "id": 9326, "type": "string", "component": "input", "alias": "超链接", @@ -222,11 +244,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig.url", "virtualPath": "" @@ -234,6 +258,7 @@ { "key": "ifBlank", "config": { + "id": 8402, "type": "boolean", "component": "switch", "alias": "是否打开新窗口", @@ -251,11 +276,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "urlConfig.ifBlank", "virtualPath": "" @@ -269,6 +296,7 @@ { "key": "cursor", "config": { + "id": 4851, "type": "boolean", "component": "switch", "alias": "手势光标", @@ -286,13 +314,15 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "cursor", "virtualPath": "" } -] +] \ No newline at end of file diff --git a/src/components/media/main-img/src/config.vue b/src/components/media/main-img/src/config.vue index 9ff8f453..902ec979 100644 --- a/src/components/media/main-img/src/config.vue +++ b/src/components/media/main-img/src/config.vue @@ -3,18 +3,11 @@ - - - {{ em.value }} - - + - - - diff --git a/src/components/other/date-picker/src/config.json b/src/components/other/date-picker/src/config.json index 92139758..125fbfe0 100644 --- a/src/components/other/date-picker/src/config.json +++ b/src/components/other/date-picker/src/config.json @@ -2,6 +2,7 @@ { "key": "global", "config": { + "id": 9366, "type": "object", "component": "none", "alias": "全局样式", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global", "virtualPath": "", @@ -31,6 +34,7 @@ { "key": "date", "config": { + "id": 2288, "type": "string", "component": "input", "alias": "日期", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.date", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "fontFamily", "config": { + "id": 7500, "type": "string", "component": "fontFamily", "alias": "字体", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "global.fontFamily", "virtualPath": "" @@ -95,6 +104,7 @@ { "key": "input", "config": { + "id": 4720, "type": "object", "component": "none", "alias": "文本框", @@ -112,11 +122,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input", "virtualPath": "", @@ -124,6 +136,7 @@ { "key": "size", "config": { + "id": 2448, "type": "object", "component": "none", "alias": "大小", @@ -141,11 +154,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.size", "virtualPath": "", @@ -153,6 +168,7 @@ { "key": "width", "config": { + "id": 8534, "type": "number", "component": "number", "alias": "宽度", @@ -170,11 +186,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.size.width", "virtualPath": "" @@ -182,6 +200,7 @@ { "key": "height", "config": { + "id": 258, "type": "number", "component": "number", "alias": "高度", @@ -199,11 +218,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.size.height", "virtualPath": "" @@ -217,6 +238,7 @@ { "key": "border", "config": { + "id": 6858, "type": "object", "component": "none", "alias": "边框", @@ -234,11 +256,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.border", "virtualPath": "", @@ -246,6 +270,7 @@ { "key": "width", "config": { + "id": 5262, "type": "number", "component": "number", "alias": "宽度", @@ -263,11 +288,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.border.width", "virtualPath": "" @@ -275,6 +302,7 @@ { "key": "color", "config": { + "id": 6047, "type": "string", "component": "color", "alias": "颜色", @@ -292,11 +320,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.border.color", "virtualPath": "" @@ -304,6 +334,7 @@ { "key": "radius", "config": { + "id": 1610, "type": "number", "component": "number", "alias": "圆角", @@ -321,11 +352,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.border.radius", "virtualPath": "" @@ -340,6 +373,7 @@ { "key": "bgColor", "config": { + "id": 4971, "type": "string", "component": "color", "alias": "背景颜色", @@ -357,11 +391,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.bgColor", "virtualPath": "" @@ -369,6 +405,7 @@ { "key": "fontSize", "config": { + "id": 8881, "type": "number", "component": "number", "alias": "文字字号", @@ -386,11 +423,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.fontSize", "virtualPath": "" @@ -398,6 +437,7 @@ { "key": "fontColor", "config": { + "id": 8649, "type": "string", "component": "color", "alias": "文字颜色", @@ -415,11 +455,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.fontColor", "virtualPath": "" @@ -427,6 +469,7 @@ { "key": "separator", "config": { + "id": 7248, "type": "string", "component": "input", "alias": "时间分隔符", @@ -444,11 +487,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.separator", "virtualPath": "" @@ -456,6 +501,7 @@ { "key": "pos", "config": { + "id": 8705, "type": "string", "component": "hAlign", "alias": "文字位置", @@ -473,11 +519,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "input.pos", "virtualPath": "" @@ -496,6 +544,7 @@ { "key": "calendar", "config": { + "id": 1464, "type": "object", "component": "none", "alias": "日历", @@ -513,11 +562,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar", "virtualPath": "", @@ -525,6 +576,7 @@ { "key": "fontSize", "config": { + "id": 7095, "type": "number", "component": "number", "alias": "文字字号", @@ -542,11 +594,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.fontSize", "virtualPath": "" @@ -554,6 +608,7 @@ { "key": "fontColor", "config": { + "id": 2281, "type": "string", "component": "color", "alias": "文字颜色", @@ -571,11 +626,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.fontColor", "virtualPath": "" @@ -583,6 +640,7 @@ { "key": "bgColor", "config": { + "id": 502, "type": "string", "component": "color", "alias": "日历背景", @@ -600,11 +658,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.bgColor", "virtualPath": "" @@ -612,6 +672,7 @@ { "key": "selectBGColor", "config": { + "id": 5338, "type": "string", "component": "color", "alias": "选择器背景", @@ -629,11 +690,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.selectBGColor", "virtualPath": "" @@ -641,6 +704,7 @@ { "key": "border", "config": { + "id": 884, "type": "object", "component": "none", "alias": "外边框", @@ -658,11 +722,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.border", "virtualPath": "", @@ -670,6 +736,7 @@ { "key": "width", "config": { + "id": 2592, "type": "number", "component": "number", "alias": "宽度", @@ -687,11 +754,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.border.width", "virtualPath": "" @@ -699,6 +768,7 @@ { "key": "color", "config": { + "id": 7519, "type": "string", "component": "color", "alias": "颜色", @@ -716,11 +786,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.border.color", "virtualPath": "" @@ -728,6 +800,7 @@ { "key": "radius", "config": { + "id": 3733, "type": "number", "component": "number", "alias": "圆角", @@ -745,11 +818,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.border.radius", "virtualPath": "" @@ -764,6 +839,7 @@ { "key": "paddingBorder", "config": { + "id": 9900, "type": "object", "component": "none", "alias": "内边框", @@ -781,11 +857,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.paddingBorder", "virtualPath": "", @@ -793,6 +871,7 @@ { "key": "width", "config": { + "id": 4659, "type": "number", "component": "number", "alias": "宽度", @@ -810,11 +889,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.paddingBorder.width", "virtualPath": "" @@ -822,6 +903,7 @@ { "key": "color", "config": { + "id": 915, "type": "string", "component": "color", "alias": "颜色", @@ -839,11 +921,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.paddingBorder.color", "virtualPath": "" @@ -851,6 +935,7 @@ { "key": "padding", "config": { + "id": 4628, "type": "number", "component": "number", "alias": "内边距", @@ -868,11 +953,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.paddingBorder.padding", "virtualPath": "" @@ -887,6 +974,7 @@ { "key": "select", "config": { + "id": 1113, "type": "object", "component": "none", "alias": "选择器内边距", @@ -904,11 +992,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.select", "virtualPath": "", @@ -916,6 +1006,7 @@ { "key": "time", "config": { + "id": 7485, "type": "number", "component": "number", "alias": "时间", @@ -933,11 +1024,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.select.time", "virtualPath": "" @@ -945,6 +1038,7 @@ { "key": "today", "config": { + "id": 3389, "type": "number", "component": "number", "alias": "今", @@ -962,11 +1056,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "calendar.select.today", "virtualPath": "" @@ -988,4 +1084,4 @@ "select" ] } -] +] \ No newline at end of file diff --git a/src/components/other/date-picker/src/config.vue b/src/components/other/date-picker/src/config.vue index 48eccc99..38242589 100644 --- a/src/components/other/date-picker/src/config.vue +++ b/src/components/other/date-picker/src/config.vue @@ -249,31 +249,18 @@ - diff --git a/src/components/pie/basic-pie/src/basic-pie.ts b/src/components/pie/basic-pie/src/basic-pie.ts index 2680c86d..6d8f753f 100644 --- a/src/components/pie/basic-pie/src/basic-pie.ts +++ b/src/components/pie/basic-pie/src/basic-pie.ts @@ -11,7 +11,24 @@ import { getStaticData } from '@/api/data' * BasicPie */ export class BasicPie extends DatavComponent { - config = {} + config = { + name: '', + isUse: false, + value: 0, + fontSize: 12, + textStyle: { + color: '', + value: 0, + isUse: false, + fontSize: 12, + }, + border: { + size: 1, + color: '#fff', + type: 'solid', + }, + ran: [10, 20], + } apis: Partial apiData: Partial diff --git a/src/components/pie/basic-pie/src/config.json b/src/components/pie/basic-pie/src/config.json index fe51488c..f8714bbb 100644 --- a/src/components/pie/basic-pie/src/config.json +++ b/src/components/pie/basic-pie/src/config.json @@ -1 +1,433 @@ -[] +[ + { + "key": "name", + "config": { + "id": 2682, + "type": "string", + "component": "input", + "alias": "名称", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": "", + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "name", + "virtualPath": "" + }, + { + "key": "isUse", + "config": { + "id": 1287, + "type": "boolean", + "component": "switch", + "alias": "使用", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": false, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "isUse", + "virtualPath": "" + }, + { + "key": "value", + "config": { + "id": 3812, + "type": "number", + "component": "number", + "alias": "值", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": 0, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "value", + "virtualPath": "" + }, + { + "key": "fontSize", + "config": { + "id": 841, + "type": "number", + "component": "number", + "alias": "字体", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": 12, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "fontSize", + "virtualPath": "" + }, + { + "key": "textStyle", + "config": { + "id": 8087, + "type": "object", + "component": "none", + "alias": "文本样式", + "tip": "", + "displayMode": "flat", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": null, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "textStyle", + "virtualPath": "", + "children": [ + { + "key": "color", + "config": { + "id": 2231, + "type": "string", + "component": "input", + "alias": "颜色", + "tip": "测试的颜色", + "displayMode": "inline", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": "", + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "textStyle.color", + "virtualPath": "" + }, + { + "key": "value", + "config": { + "id": 8802, + "type": "number", + "component": "input", + "alias": "值", + "tip": "用来测试的值", + "displayMode": "inline", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": 0, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "textStyle.value", + "virtualPath": "" + }, + { + "key": "isUse", + "config": { + "id": 9342, + "type": "boolean", + "component": "switch", + "alias": "", + "tip": "", + "displayMode": "inline", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": false, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "textStyle.isUse", + "virtualPath": "" + }, + { + "key": "fontSize", + "config": { + "id": 8399, + "type": "number", + "component": "number", + "alias": "", + "tip": "", + "displayMode": "inline", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": 12, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "textStyle.fontSize", + "virtualPath": "" + } + ], + "cols": [ + "color", + "value", + "isUse", + "fontSize" + ] + }, + { + "key": "border", + "config": { + "id": 2366, + "type": "object", + "component": "none", + "alias": "边框", + "tip": "", + "displayMode": "nest", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": null, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "border", + "virtualPath": "", + "children": [ + { + "key": "size", + "config": { + "id": 4713, + "type": "number", + "component": "number", + "alias": "尺寸", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": 1, + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "border.size", + "virtualPath": "" + }, + { + "key": "color", + "config": { + "id": 6862, + "type": "string", + "component": "color", + "alias": "颜色", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": "#fff", + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": false, + "isRange": false + }, + "path": "border.color", + "virtualPath": "" + }, + { + "key": "type", + "config": { + "id": 6192, + "type": "string", + "component": "lineStyle", + "alias": "类型", + "tip": "", + "displayMode": "single", + "features": [], + "layout": "horizontal", + "toggleCol": "", + "isHide": false, + "defaultValue": "solid", + "min": 0, + "max": 100, + "step": 1, + "InfiniteMin": false, + "InfiniteMax": false, + "suffix": "", + "enums": [], + "pairs": [], + "whichEnum": { + "field": "", + "value": "" + }, + "flatValue": true, + "isRange": false + }, + "path": "border.type", + "virtualPath": "" + } + ], + "cols": [ + "size", + "color", + "type" + ] + } +] \ No newline at end of file diff --git a/src/components/pie/basic-pie/src/config.vue b/src/components/pie/basic-pie/src/config.vue index 7b8b46cb..d5c88ce8 100644 --- a/src/components/pie/basic-pie/src/config.vue +++ b/src/components/pie/basic-pie/src/config.vue @@ -1,3 +1,33 @@ + + diff --git a/src/components/table/carousel-table/src/config.json b/src/components/table/carousel-table/src/config.json index eabb8b80..20b9f914 100644 --- a/src/components/table/carousel-table/src/config.json +++ b/src/components/table/carousel-table/src/config.json @@ -316,7 +316,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": true, + "defaultValue": false, "min": 0, "max": 100, "step": 1, diff --git a/src/components/table/carousel-table/src/config.vue b/src/components/table/carousel-table/src/config.vue index 7defa7db..5d902123 100644 --- a/src/components/table/carousel-table/src/config.vue +++ b/src/components/table/carousel-table/src/config.vue @@ -18,8 +18,8 @@ :level="2" label="自动轮播" > - - - - {{ pair.value }} - - + - @@ -84,8 +76,8 @@ tooltip="关闭时, 可指定高亮行" label="自动依次高亮" > - - - - - - - {{ pair.value }} - - + - { + return new CarouselTableSeries('series1', '类别一') +} + const pairData7136 = [ { key: 'text', value: '文本' }, { key: 'img', value: '图片' }, ] -const handleAddSeriesItem = () => { - return new CarouselTableSeries('series1', '类别一') -} diff --git a/src/components/table/table-bar/src/config.json b/src/components/table/table-bar/src/config.json index 857406a4..0fba0740 100644 --- a/src/components/table/table-bar/src/config.json +++ b/src/components/table/table-bar/src/config.json @@ -1804,7 +1804,7 @@ "layout": "horizontal", "toggleCol": "", "isHide": false, - "defaultValue": "solid", + "defaultValue": "gradient", "min": 0, "max": 100, "step": 1, @@ -2277,4 +2277,4 @@ "height" ] } -] +] \ No newline at end of file diff --git a/src/components/table/table-bar/src/config.vue b/src/components/table/table-bar/src/config.vue index 01844632..f4968b00 100644 --- a/src/components/table/table-bar/src/config.vue +++ b/src/components/table/table-bar/src/config.vue @@ -17,8 +17,8 @@ :level="2" label="开启动画" > - - - - - - - {{ em.value }} - - + - - - {{ em.value }} - - + - - - diff --git a/src/components/text/marquee/src/config.vue b/src/components/text/marquee/src/config.vue index 848cf528..545b29c8 100644 --- a/src/components/text/marquee/src/config.vue +++ b/src/components/text/marquee/src/config.vue @@ -46,15 +46,15 @@ - - - - - - diff --git a/src/components/text/paragraph/src/config.json b/src/components/text/paragraph/src/config.json index 7fc05762..4e378ac4 100644 --- a/src/components/text/paragraph/src/config.json +++ b/src/components/text/paragraph/src/config.json @@ -2,6 +2,7 @@ { "key": "content", "config": { + "id": 8239, "type": "string", "component": "input", "alias": "段落内容", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "content", "virtualPath": "" @@ -31,6 +34,7 @@ { "key": "textStyle", "config": { + "id": 602, "type": "object", "component": "none", "alias": "文本样式", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textStyle", "virtualPath": "", @@ -60,6 +66,7 @@ { "key": "fontFamily", "config": { + "id": 8681, "type": "string", "component": "fontFamily", "alias": "字体", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textStyle.fontFamily", "virtualPath": "" @@ -89,6 +98,7 @@ { "key": "fontSize", "config": { + "id": 9101, "type": "number", "component": "number", "alias": "字号", @@ -106,11 +116,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textStyle.fontSize", "virtualPath": "" @@ -118,6 +130,7 @@ { "key": "color", "config": { + "id": 690, "type": "string", "component": "color", "alias": "字体颜色", @@ -135,11 +148,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textStyle.color", "virtualPath": "" @@ -147,6 +162,7 @@ { "key": "fontWeight", "config": { + "id": 4324, "type": "string", "component": "fontWeight", "alias": "字体粗细", @@ -164,11 +180,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textStyle.fontWeight", "virtualPath": "" @@ -184,6 +202,7 @@ { "key": "scroll", "config": { + "id": 3789, "type": "object", "component": "none", "alias": "文本滚落", @@ -201,11 +220,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "scroll", "virtualPath": "", @@ -213,6 +234,7 @@ { "key": "duration", "config": { + "id": 9580, "type": "number", "component": "number", "alias": "滚动持续时间", @@ -230,11 +252,13 @@ "InfiniteMax": true, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "scroll.duration", "virtualPath": "" @@ -242,6 +266,7 @@ { "key": "overScroll", "config": { + "id": 7596, "type": "boolean", "component": "switch", "alias": "溢出滚动", @@ -259,11 +284,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "scroll.overScroll", "virtualPath": "" @@ -277,6 +304,7 @@ { "key": "lineHeight", "config": { + "id": 6530, "type": "number", "component": "slider", "alias": "行高", @@ -294,11 +322,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "lineHeight", "virtualPath": "" @@ -306,6 +336,7 @@ { "key": "textAlign", "config": { + "id": 7716, "type": "string", "component": "hAlign", "alias": "对齐方式", @@ -323,11 +354,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textAlign", "virtualPath": "" @@ -335,6 +368,7 @@ { "key": "textIndent", "config": { + "id": 2335, "type": "number", "component": "slider", "alias": "首行缩进", @@ -352,13 +386,15 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "textIndent", "virtualPath": "" } -] +] \ No newline at end of file diff --git a/src/components/text/paragraph/src/config.vue b/src/components/text/paragraph/src/config.vue index 5cc9d565..3becce39 100644 --- a/src/components/text/paragraph/src/config.vue +++ b/src/components/text/paragraph/src/config.vue @@ -69,8 +69,8 @@ tooltip="仅当文本溢出时有效" label="溢出滚动" > - @@ -105,8 +105,8 @@ - diff --git a/src/components/text/timer/src/config.json b/src/components/text/timer/src/config.json index ae1ac008..17396df6 100644 --- a/src/components/text/timer/src/config.json +++ b/src/components/text/timer/src/config.json @@ -2,6 +2,7 @@ { "key": "iconStyle", "config": { + "id": 2203, "type": "object", "component": "none", "alias": "图标样式", @@ -19,11 +20,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "iconStyle", "virtualPath": "", @@ -31,6 +34,7 @@ { "key": "show", "config": { + "id": 1931, "type": "boolean", "component": "switch", "alias": "", @@ -48,11 +52,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "iconStyle.show", "virtualPath": "" @@ -60,6 +66,7 @@ { "key": "size", "config": { + "id": 3302, "type": "number", "component": "slider", "alias": "大小", @@ -77,11 +84,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "iconStyle.size", "virtualPath": "" @@ -89,6 +98,7 @@ { "key": "color", "config": { + "id": 6051, "type": "string", "component": "color", "alias": "颜色", @@ -106,11 +116,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "iconStyle.color", "virtualPath": "" @@ -118,6 +130,7 @@ { "key": "marginRight", "config": { + "id": 7409, "type": "number", "component": "slider", "alias": "边距", @@ -135,11 +148,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "iconStyle.marginRight", "virtualPath": "" @@ -155,6 +170,7 @@ { "key": "time", "config": { + "id": 9333, "type": "object", "component": "none", "alias": "时间器", @@ -172,11 +188,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time", "virtualPath": "", @@ -184,6 +202,7 @@ { "key": "textStyle", "config": { + "id": 9462, "type": "object", "component": "none", "alias": "文本样式", @@ -201,11 +220,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.textStyle", "virtualPath": "", @@ -213,6 +234,7 @@ { "key": "fontFamily", "config": { + "id": 6763, "type": "string", "component": "fontFamily", "alias": "字体", @@ -230,11 +252,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.textStyle.fontFamily", "virtualPath": "" @@ -242,6 +266,7 @@ { "key": "fontSize", "config": { + "id": 7364, "type": "number", "component": "number", "alias": "字号", @@ -259,11 +284,13 @@ "InfiniteMax": false, "suffix": "px", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.textStyle.fontSize", "virtualPath": "" @@ -271,6 +298,7 @@ { "key": "color", "config": { + "id": 9634, "type": "string", "component": "color", "alias": "字体颜色", @@ -288,11 +316,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.textStyle.color", "virtualPath": "" @@ -300,6 +330,7 @@ { "key": "fontWeight", "config": { + "id": 8507, "type": "string", "component": "fontWeight", "alias": "字体粗细", @@ -317,11 +348,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.textStyle.fontWeight", "virtualPath": "" @@ -337,6 +370,7 @@ { "key": "format", "config": { + "id": 4875, "type": "string", "component": "input", "alias": "格式化", @@ -354,11 +388,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.format", "virtualPath": "" @@ -366,6 +402,7 @@ { "key": "duration", "config": { + "id": 6281, "type": "number", "component": "number", "alias": "间隔时间", @@ -383,11 +420,13 @@ "InfiniteMax": true, "suffix": "ms", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": false + "flatValue": false, + "isRange": false }, "path": "time.duration", "virtualPath": "" @@ -395,6 +434,7 @@ { "key": "horizontal", "config": { + "id": 3748, "type": "string", "component": "justifyContent", "alias": "水平对齐", @@ -412,11 +452,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "time.horizontal", "virtualPath": "" @@ -424,6 +466,7 @@ { "key": "vertical", "config": { + "id": 8100, "type": "string", "component": "align", "alias": "垂直对齐", @@ -441,11 +484,13 @@ "InfiniteMax": false, "suffix": "", "enums": [], + "pairs": [], "whichEnum": { "field": "", "value": "" }, - "flatValue": true + "flatValue": true, + "isRange": false }, "path": "time.vertical", "virtualPath": "" @@ -459,4 +504,4 @@ "vertical" ] } -] +] \ No newline at end of file diff --git a/src/components/text/timer/src/config.vue b/src/components/text/timer/src/config.vue index 1f2a753f..1632daa7 100644 --- a/src/components/text/timer/src/config.vue +++ b/src/components/text/timer/src/config.vue @@ -106,42 +106,28 @@ :level="2" label="水平对齐" > - - - {{ em.value }} - - + - - - {{ em.value }} - - + - diff --git a/src/components/ui/checkbox/index.ts b/src/components/ui/checkbox/index.ts new file mode 100644 index 00000000..3bb21c38 --- /dev/null +++ b/src/components/ui/checkbox/index.ts @@ -0,0 +1,2 @@ +import Checkbox from './src/index.vue' +export default Checkbox diff --git a/src/components/ui/checkbox/src/index.vue b/src/components/ui/checkbox/src/index.vue new file mode 100644 index 00000000..7b23a7c3 --- /dev/null +++ b/src/components/ui/checkbox/src/index.vue @@ -0,0 +1,67 @@ + + + diff --git a/src/components/ui/field-collapse/src/index.vue b/src/components/ui/field-collapse/src/index.vue index 00b97c1c..f8436c0b 100644 --- a/src/components/ui/field-collapse/src/index.vue +++ b/src/components/ui/field-collapse/src/index.vue @@ -30,7 +30,7 @@ {{ label }} - + {{ tooltip }} - + {{ tooltip }}