feat: 新增隐藏功能 调整项目结构

Re-1.0
咬轮猫 3 years ago
parent 99cec40b43
commit 6401b51995

@ -27,6 +27,7 @@
v-for="(item, index) in globalStore.done_json" v-for="(item, index) in globalStore.done_json"
:key="item.id" :key="item.id"
:transform="`translate(${item.x},${item.y})rotate(0)scale(1)`" :transform="`translate(${item.x},${item.y})rotate(0)scale(1)`"
v-show="item.display"
> >
<g <g
:transform="`translate(${item.actual_bound.x + item.actual_bound.width / 2},${ :transform="`translate(${item.actual_bound.x + item.actual_bound.width / 2},${

@ -42,6 +42,9 @@
<el-form-item label="y轴坐标" size="small"> <el-form-item label="y轴坐标" size="small">
<el-input-number v-model="globalStore.handle_svg_info.info.y"></el-input-number> <el-input-number v-model="globalStore.handle_svg_info.info.y"></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="显示" size="small">
<el-switch v-model="globalStore.handle_svg_info.info.display"></el-switch>
</el-form-item>
<el-form-item <el-form-item
:label="globalStore.handle_svg_info.info.state?.OnOff.title" :label="globalStore.handle_svg_info.info.state?.OnOff.title"
size="small" size="small"

@ -5,6 +5,7 @@ export const custom_svg_text: IConfigItem = {
title: '文字', title: '文字',
tag: 'custom-svg-text', tag: 'custom-svg-text',
type: EDoneJsonType.CustomSvg, type: EDoneJsonType.CustomSvg,
display: true,
config: { config: {
can_zoom: true, can_zoom: true,
have_anchor: true, have_anchor: true,

@ -1,4 +1,4 @@
import { IConfigComponentGroup } from '../types'; import { IConfigComponentGroup } from '../../types';
import { custom_svg_text } from './custom-svg-text'; import { custom_svg_text } from './custom-svg-text';
export const custom_svg_group: IConfigComponentGroup = { export const custom_svg_group: IConfigComponentGroup = {

@ -9,6 +9,7 @@ export const reservoir_svg_file: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
fill: { fill: {
title: '水流颜色', title: '水流颜色',

@ -2,7 +2,7 @@ import { IConfigComponentGroup } from '../types';
import { stateful_group } from './stateful'; import { stateful_group } from './stateful';
import { stateless_group } from './stateless'; import { stateless_group } from './stateless';
import { have_animation_group } from './have-animation'; import { have_animation_group } from './have-animation';
import { custom_svg_group } from '../custom-svg'; import { custom_svg_group } from './custom-svg';
export const svgfile_config_center: IConfigComponentGroup[] = Object.seal([ export const svgfile_config_center: IConfigComponentGroup[] = Object.seal([
stateful_group, stateful_group,

@ -9,6 +9,7 @@ export const circuit_breaker_svg_file: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: {}, props: {},
state: { state: {
OnOff: { OnOff: {

@ -9,6 +9,7 @@ export const alternator_svg_file: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
fill: { fill: {
title: '填充色', title: '填充色',

@ -9,6 +9,7 @@ export const traction_transformer_svg_file: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
fill: { fill: {
title: '填充色', title: '填充色',

@ -10,6 +10,7 @@ export const straight_line_system: ISystemStraightLine = Object.seal({
have_anchor: false, have_anchor: false,
actual_rect: false actual_rect: false
}, },
display: true,
props: { props: {
fill: { fill: {
title: '填充色', title: '填充色',
@ -51,6 +52,7 @@ export const connection_line_system: ISystemStraightLine = Object.freeze({
have_anchor: false, have_anchor: false,
actual_rect: false actual_rect: false
}, },
display: true,
props: { props: {
stroke: { stroke: {
title: '线条颜色', title: '线条颜色',

@ -18,6 +18,7 @@ export interface IConfigCenter {
export interface IConfigItem { export interface IConfigItem {
name: string; name: string;
title: string; title: string;
display: boolean;
props: IConfigItemProps; props: IConfigItemProps;
type: EDoneJsonType; type: EDoneJsonType;
config: IDoneJsonConfig; config: IDoneJsonConfig;

@ -10,6 +10,7 @@ export const custom_vue_common_table: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
'col-config': { 'col-config': {
title: '列配置', title: '列配置',

@ -10,5 +10,6 @@ export const pie_charts: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: {} props: {}
}; };

@ -10,6 +10,7 @@ export const el_button_vue: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
size: { size: {
title: '尺寸', title: '尺寸',

@ -10,6 +10,7 @@ export const el_tag_vue: IConfigItem = {
have_anchor: true, have_anchor: true,
actual_rect: true actual_rect: true
}, },
display: true,
props: { props: {
type: { type: {
title: '类型', title: '类型',

Loading…
Cancel
Save