mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
chore: 图标和图片动态组件设置成static静态资源
This commit is contained in:
@@ -100,6 +100,7 @@ const dblclickHandle = async (item: ConfigType) => {
|
||||
if (item.redirectComponent) {
|
||||
item.dataset && (newComponent.option.dataset = item.dataset)
|
||||
newComponent.chartConfig.title = item.title
|
||||
newComponent.chartConfig.chartFrame = item.chartFrame
|
||||
}
|
||||
// 添加
|
||||
chartEditStore.addComponentList(newComponent, false, true)
|
||||
|
||||
@@ -161,6 +161,7 @@ const selectChartHandle = async (item: ConfigType) => {
|
||||
if (item.redirectComponent) {
|
||||
item.dataset && (newComponent.option.dataset = item.dataset)
|
||||
newComponent.chartConfig.title = item.title
|
||||
newComponent.chartConfig.chartFrame = item.chartFrame
|
||||
}
|
||||
// 添加
|
||||
chartEditStore.addComponentList(newComponent, false, true)
|
||||
|
||||
@@ -36,6 +36,7 @@ export const dragHandle = async (e: DragEvent) => {
|
||||
if (dropData.redirectComponent) {
|
||||
dropData.dataset && (newComponent.option.dataset = dropData.dataset)
|
||||
newComponent.chartConfig.title = dropData.title
|
||||
newComponent.chartConfig.chartFrame = dropData.chartFrame
|
||||
}
|
||||
|
||||
setComponentPosition(newComponent, e.offsetX - newComponent.attr.w / 2, e.offsetY - newComponent.attr.h / 2)
|
||||
|
||||
@@ -135,6 +135,7 @@ export const useSync = () => {
|
||||
if (_componentInstance.chartConfig.redirectComponent) {
|
||||
_componentInstance.chartConfig.dataset && (newComponent.option.dataset = _componentInstance.chartConfig.dataset)
|
||||
newComponent.chartConfig.title = _componentInstance.chartConfig.title
|
||||
newComponent.chartConfig.chartFrame = _componentInstance.chartConfig.chartFrame
|
||||
}
|
||||
if (callBack) {
|
||||
if (changeId) {
|
||||
|
||||
Reference in New Issue
Block a user