mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-15 14:00:35 +00:00
Merge branch 'feat/joint-editor' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into feat/joint-editor
This commit is contained in:
commit
60ccf04915
@ -4,7 +4,7 @@
|
|||||||
"description": "低代码编辑器",
|
"description": "低代码编辑器",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/iceluna-addon-2": "^1.0.3",
|
"@ali/iceluna-addon-2": "^1.0.3",
|
||||||
"@ali/iceluna-addon-component-list": "^1.0.10",
|
"@ali/iceluna-addon-component-list": "^1.0.11",
|
||||||
"@ali/iceluna-sdk": "^1.0.5-beta.26",
|
"@ali/iceluna-sdk": "^1.0.5-beta.26",
|
||||||
"@alifd/next": "^1.x",
|
"@alifd/next": "^1.x",
|
||||||
"@alife/dpl-iceluna": "^2.3.2",
|
"@alife/dpl-iceluna": "^2.3.2",
|
||||||
|
|||||||
@ -1434,10 +1434,11 @@ export default {
|
|||||||
title: '按钮',
|
title: '按钮',
|
||||||
icon: '',
|
icon: '',
|
||||||
package: '@alife/next',
|
package: '@alife/next',
|
||||||
|
libraryId: 2,
|
||||||
snippets: [
|
snippets: [
|
||||||
{
|
{
|
||||||
title: 'private',
|
title: 'private',
|
||||||
screenshort: '',
|
screenshot: 'https://img.alicdn.com/tfs/TB16gZhi.H1gK0jSZSyXXXtlpXa-192-144.png',
|
||||||
schema: {
|
schema: {
|
||||||
componentName: 'Button',
|
componentName: 'Button',
|
||||||
props: {
|
props: {
|
||||||
@ -1448,7 +1449,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'secondary',
|
title: 'secondary',
|
||||||
screenshort: '',
|
screenshot: 'https://img.alicdn.com/tfs/TB11Hkji1H2gK0jSZFEXXcqMpXa-192-144.png',
|
||||||
schema: {
|
schema: {
|
||||||
componentName: 'Button',
|
componentName: 'Button',
|
||||||
props: {
|
props: {
|
||||||
@ -1459,7 +1460,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'normal',
|
title: 'normal',
|
||||||
screenshort: '',
|
screenshot: '',
|
||||||
schema: {
|
schema: {
|
||||||
componentName: 'Button',
|
componentName: 'Button',
|
||||||
props: {
|
props: {
|
||||||
@ -1478,21 +1479,74 @@ export default {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
componentName: 'Input',
|
componentName: 'Input',
|
||||||
|
libraryId: 2,
|
||||||
title: '输入框',
|
title: '输入框',
|
||||||
icon: '',
|
icon: '',
|
||||||
package: '@alife/next',
|
package: '@alife/next',
|
||||||
snippets: [
|
snippets: [
|
||||||
{
|
{
|
||||||
title: '普通',
|
title: '普通',
|
||||||
screenshort: '',
|
screenshot: '',
|
||||||
schema: {
|
schema: {
|
||||||
componentName: 'Input',
|
componentName: 'Input',
|
||||||
props: {}
|
props: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}, {
|
||||||
|
componentName: 'Select',
|
||||||
|
libraryId: 2,
|
||||||
|
title: '选择框',
|
||||||
|
icon: '',
|
||||||
|
package: '@alife/next',
|
||||||
|
snippets: [
|
||||||
|
{
|
||||||
|
title: '默认',
|
||||||
|
screenshot: '',
|
||||||
|
schema: {
|
||||||
|
componentName: 'Select',
|
||||||
|
props: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
componentName: 'NumberPicker',
|
||||||
|
libraryId: 2,
|
||||||
|
title: '数字',
|
||||||
|
icon: '',
|
||||||
|
package: '@alife/next',
|
||||||
|
snippets: [
|
||||||
|
{
|
||||||
|
title: '默认',
|
||||||
|
screenshot: '',
|
||||||
|
schema: {
|
||||||
|
componentName: 'NumberPicker',
|
||||||
|
props: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}, {
|
||||||
|
title: '其他',
|
||||||
|
icon: '',
|
||||||
|
children: [{
|
||||||
|
componentName: 'Div',
|
||||||
|
libraryId: 3,
|
||||||
|
title: '容器',
|
||||||
|
icon: '',
|
||||||
|
snippets: [
|
||||||
|
{
|
||||||
|
title: '默认',
|
||||||
|
screenshot: '',
|
||||||
|
schema: {
|
||||||
|
componentName: 'Div',
|
||||||
|
props: {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@ -315,11 +315,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
...comp,
|
...comp,
|
||||||
name: comp.componentName,
|
name: comp.componentName,
|
||||||
libraryId: 1,
|
|
||||||
snippets: comp.snippets.map(snippet => {
|
snippets: comp.snippets.map(snippet => {
|
||||||
return {
|
return {
|
||||||
name: snippet.title,
|
name: snippet.title,
|
||||||
screenshort: snippet.screenshort,
|
screenshot: snippet.screenshot,
|
||||||
code: JSON.stringify(snippet.schema)
|
code: JSON.stringify(snippet.schema)
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
@ -330,13 +329,17 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const list = transformMaterial(assets.componentList);
|
const list = transformMaterial(assets.componentList);
|
||||||
|
console.log('++++', list);
|
||||||
editor.set({
|
editor.set({
|
||||||
componentsMap: assets.components,
|
componentsMap: assets.components,
|
||||||
componentMaterial: {
|
componentMaterial: {
|
||||||
library: [
|
library: [
|
||||||
{
|
{
|
||||||
name: 'Fusion组件库',
|
name: 'Fusion组件库',
|
||||||
id: 1
|
id: '2'
|
||||||
|
}, {
|
||||||
|
name: '其他',
|
||||||
|
id: '3'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
list
|
list
|
||||||
|
|||||||
@ -23,20 +23,7 @@ const SCHEMA = {
|
|||||||
componentName: 'Page',
|
componentName: 'Page',
|
||||||
fileName: 'test',
|
fileName: 'test',
|
||||||
dataSource: {
|
dataSource: {
|
||||||
list: [
|
list: []
|
||||||
{
|
|
||||||
id: 'getComponentsMap',
|
|
||||||
isInit: true,
|
|
||||||
type: 'doServer',
|
|
||||||
options: {
|
|
||||||
method: 'POST',
|
|
||||||
params: {
|
|
||||||
libVersionIds: '1'
|
|
||||||
},
|
|
||||||
uri: 'getComponentsMap'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
state: {
|
state: {
|
||||||
text: 'outter'
|
text: 'outter'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user