feat: 支持迭代器容器
This commit is contained in:
@@ -31,7 +31,7 @@ export default defineComponent({
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.m-editor-nav-menu {
|
||||
justify-content: flex-end;
|
||||
height: 35px;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FolderOpened, Grid, PictureFilled, SwitchButton, Ticket, Tickets } from '@element-plus/icons-vue';
|
||||
import { Files, FolderOpened, Grid, PictureFilled, SwitchButton, Ticket, Tickets } from '@element-plus/icons-vue';
|
||||
|
||||
export default [
|
||||
{
|
||||
@@ -19,6 +19,11 @@ export default [
|
||||
text: '页面片容器',
|
||||
type: 'page-fragment-container',
|
||||
},
|
||||
{
|
||||
icon: Files,
|
||||
text: '迭代器容器',
|
||||
type: 'iterator-container',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -82,11 +82,6 @@ export default {
|
||||
age: 12, // 参数
|
||||
},
|
||||
},
|
||||
{
|
||||
actionType: 'comp',
|
||||
to: 'overlay_2159', // 联动组件id
|
||||
method: 'openOverlay', // 联动组件方法
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -369,13 +364,67 @@ export default {
|
||||
description: '按钮',
|
||||
fields: [
|
||||
{
|
||||
type: 'string',
|
||||
name: 'text',
|
||||
title: '按钮文案',
|
||||
type: 'string',
|
||||
description: '',
|
||||
enable: true,
|
||||
defaultValue: '打开弹窗',
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
name: 'array',
|
||||
title: 'array',
|
||||
type: 'array',
|
||||
description: '',
|
||||
enable: true,
|
||||
defaultValue: [
|
||||
{
|
||||
a: 1,
|
||||
},
|
||||
{
|
||||
a: 2,
|
||||
},
|
||||
],
|
||||
fields: [
|
||||
{
|
||||
name: 'a',
|
||||
title: 'a',
|
||||
type: 'number',
|
||||
description: '',
|
||||
enable: true,
|
||||
defaultValue: 1,
|
||||
fields: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'object',
|
||||
title: 'object',
|
||||
type: 'object',
|
||||
description: '',
|
||||
enable: true,
|
||||
defaultValue: {
|
||||
a: 1,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'a',
|
||||
title: 'a',
|
||||
type: 'number',
|
||||
description: '',
|
||||
enable: true,
|
||||
defaultValue: 1,
|
||||
fields: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
methods: [],
|
||||
events: '',
|
||||
mocks: [],
|
||||
beforeRequest: '',
|
||||
afterResponse: '',
|
||||
},
|
||||
],
|
||||
dataSourceDeps: {
|
||||
|
||||
Reference in New Issue
Block a user