forked from yaolunmao/vue-webtopo-svgeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
190 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { svgfile_config_center } from './svg-file'; | ||
import { IComponentImport, IConfigCenter } from './types'; | ||
import customSvgText from '@/components/webtopo-svgedit/components/custom-svg/custom-svg-text/index.vue'; | ||
import { vue_config_center } from './vue'; | ||
import { ElButton, ElTag } from 'element-plus'; | ||
export const configCenter: IConfigCenter = { | ||
svg文件: svgfile_config_center, | ||
vue组件: [], | ||
自定义组件: [], | ||
图表: [] | ||
vue组件: vue_config_center | ||
}; | ||
export const ComponentImport: IComponentImport = { | ||
'custom-svg-text': customSvgText | ||
'custom-svg-text': customSvgText, | ||
'el-button': ElButton, | ||
'el-tag': ElTag | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '../../../types'; | ||
|
||
export const el_button_vue: IConfigItem = { | ||
name: 'el-button', | ||
tag: 'el-button', | ||
title: '按钮', | ||
type: EDoneJsonType.Vue, | ||
config: { | ||
can_zoom: true, | ||
have_anchor: true, | ||
actual_rect: true | ||
}, | ||
props: { | ||
size: { | ||
title: '尺寸', | ||
type: EConfigItemPropsType.Select, | ||
val: 'default', | ||
options: [ | ||
{ label: '大', value: 'large' }, | ||
{ label: '默认', value: 'default' }, | ||
{ label: '小', value: 'small' } | ||
] | ||
}, | ||
type: { | ||
title: '类型', | ||
type: EConfigItemPropsType.Select, | ||
val: 'primary', | ||
options: [ | ||
{ label: '主要按钮', value: 'primary' }, | ||
{ label: '成功按钮', value: 'success' }, | ||
{ label: '警告按钮', value: 'warning' }, | ||
{ label: '危险按钮', value: 'danger' }, | ||
{ label: '信息按钮', value: 'info' } | ||
] | ||
}, | ||
plain: { | ||
title: '朴素按钮', | ||
type: EConfigItemPropsType.Switch, | ||
val: false | ||
}, | ||
text: { | ||
title: '文字按钮', | ||
type: EConfigItemPropsType.Switch, | ||
val: false | ||
} | ||
}, | ||
tag_slot: '按钮' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { IConfigComponentGroup } from '@/config-center/types'; | ||
import { el_button_vue } from './button'; | ||
import { el_tag_vue } from './tag'; | ||
|
||
export const element_ui_group: IConfigComponentGroup = { | ||
groupType: 'element-ui', | ||
title: 'element-ui', | ||
list: [el_button_vue, el_tag_vue] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '../../../types'; | ||
|
||
export const el_tag_vue: IConfigItem = { | ||
name: 'el-tag', | ||
tag: 'el-tag', | ||
title: '标签', | ||
type: EDoneJsonType.Vue, | ||
config: { | ||
can_zoom: true, | ||
have_anchor: true, | ||
actual_rect: true | ||
}, | ||
props: { | ||
type: { | ||
title: '类型', | ||
type: EConfigItemPropsType.Select, | ||
val: 'success', | ||
options: [ | ||
{ label: '成功', value: 'success' }, | ||
{ label: '警告', value: 'warning' }, | ||
{ label: '危险', value: 'danger' }, | ||
{ label: '信息', value: 'info' } | ||
] | ||
}, | ||
closable: { | ||
title: '可关闭', | ||
type: EConfigItemPropsType.Switch, | ||
val: true | ||
}, | ||
'disable-transitions': { | ||
title: '渐变', | ||
type: EConfigItemPropsType.Switch, | ||
val: false | ||
} | ||
}, | ||
tag_slot: '标签' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { IConfigComponentGroup } from '../types'; | ||
import { element_ui_group } from './element-ui'; | ||
|
||
export const vue_config_center: IConfigComponentGroup[] = Object.seal([element_ui_group]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters