1
0
mirror of synced 2026-04-02 22:18:39 +08:00

feat: 支持迭代器容器

This commit is contained in:
roymondchen
2024-03-07 16:56:05 +08:00
parent 6dbac52c50
commit e692e01c4f
35 changed files with 1008 additions and 111 deletions

View File

@@ -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;

View File

@@ -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',
},
],
},
{

View File

@@ -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: {