diff --git a/src/app/modules/builder/factory/getBlockSetting.ts b/src/app/modules/builder/factory/getBlockSetting.ts index d4704742..37c965e4 100644 --- a/src/app/modules/builder/factory/getBlockSetting.ts +++ b/src/app/modules/builder/factory/getBlockSetting.ts @@ -12,7 +12,7 @@ export function getBlockSetting(layout: any): FormlyFieldConfig[] { type: 'slider', key: 'xs', className: 'width-100', - defaultValue: layout.row.xs, + defaultValue: layout?.row?.xs || 12, templateOptions: { min: 1, max: 12, @@ -24,7 +24,7 @@ export function getBlockSetting(layout: any): FormlyFieldConfig[] { type: 'slider', key: 'sm', className: 'width-100', - defaultValue: layout.row.sm, + defaultValue: layout?.row?.sm || 12, templateOptions: { min: 1, max: 12, @@ -36,7 +36,7 @@ export function getBlockSetting(layout: any): FormlyFieldConfig[] { type: 'slider', key: 'md', className: 'width-100', - defaultValue: layout.row.md, + defaultValue: layout?.row?.md || 12, templateOptions: { min: 1, max: 12, @@ -48,7 +48,7 @@ export function getBlockSetting(layout: any): FormlyFieldConfig[] { type: 'slider', key: 'lg', className: 'width-100', - defaultValue: layout.row.lg, + defaultValue: layout?.row?.lg || 12, templateOptions: { min: 1, max: 12, diff --git a/src/app/modules/builder/factory/getComponentSetting.ts b/src/app/modules/builder/factory/getComponentSetting.ts index 414fc564..0697bcf7 100644 --- a/src/app/modules/builder/factory/getComponentSetting.ts +++ b/src/app/modules/builder/factory/getComponentSetting.ts @@ -281,21 +281,21 @@ export function getComponentSetting(content: any): FormlyFieldConfig[] { type: 'select', key: 'direction', className: 'width-100', - defaultValue: content.direction || 'row', + defaultValue: content.direction || 'row wrap', templateOptions: { label: '组件布局方向', options: [ { - label: 'Column', - value: 'column', + label: 'Row Wrap', + value: 'row wrap', }, { label: 'Row', value: 'row', }, { - label: 'Row Wrap', - value: 'row wrap', + label: 'Column', + value: 'column', }, ], }, diff --git a/src/app/modules/builder/factory/getImg.ts b/src/app/modules/builder/factory/getImg.ts index e8731a3e..15fead57 100644 --- a/src/app/modules/builder/factory/getImg.ts +++ b/src/app/modules/builder/factory/getImg.ts @@ -11,6 +11,16 @@ export function getImg(widget: any, options?: any[]): FormlyFieldConfig[] { label: '图片', }, fieldGroup: [ + { + key: 'src', + type: 'img-picker', + defaultValue: widget.src || '', + templateOptions: { + label: '更新图片', + fileName: widget.src.split('/').pop(), + alt: widget.alt || '', + }, + }, { key: 'classes', type: 'input', diff --git a/src/app/modules/builder/layout-builder/layout-builder.component.ts b/src/app/modules/builder/layout-builder/layout-builder.component.ts index 0f85184e..30b5b1cf 100644 --- a/src/app/modules/builder/layout-builder/layout-builder.component.ts +++ b/src/app/modules/builder/layout-builder/layout-builder.component.ts @@ -203,6 +203,9 @@ export class LayoutBuilderComponent case 'icon': fields = getIcon(widget, [animateConfig]); break; + case 'layout-builder': + fields = getBlockSetting(widget); + break; default: fields = getNone(widget, [animateConfig]); } diff --git a/src/app/modules/builder/main/builder-showcase/builder-showcase.component.scss b/src/app/modules/builder/main/builder-showcase/builder-showcase.component.scss index 93cbf66b..8db0cb6e 100644 --- a/src/app/modules/builder/main/builder-showcase/builder-showcase.component.scss +++ b/src/app/modules/builder/main/builder-showcase/builder-showcase.component.scss @@ -16,32 +16,37 @@ padding-bottom: 60px; border-radius: 4px; overflow: hidden; - ::ng-deep { - .card-1v1 { - transform: none !important; - max-height: 75vh; - overflow: auto; - .title { - margin-bottom: 0; - } - > .card-body { - display: none; - } - } - .component-toolbar { - + app-spacer { - display: block; + > app-card-1v1 { + ::ng-deep { + > .card-1v1 { + transform: none !important; + max-height: 75vh; + overflow: auto; + > .components { + padding: 0; + } + .title { + margin-bottom: 0; + } + > .card-body { + display: none; + } } - } - .layout-builder { - .block-toolbar, - .block-menu, - .actions { - display: none !important; + .component-toolbar { + + app-spacer { + display: block; + } } - .layout { - .placeholder { - pointer-events: none; + .layout-builder { + .block-toolbar, + .block-menu, + .actions { + display: none !important; + } + .layout { + .placeholder { + pointer-events: none; + } } } } diff --git a/src/app/modules/builder/main/widget-picker/widget-picker.component.scss b/src/app/modules/builder/main/widget-picker/widget-picker.component.scss index 876de4f7..1c82aa38 100644 --- a/src/app/modules/builder/main/widget-picker/widget-picker.component.scss +++ b/src/app/modules/builder/main/widget-picker/widget-picker.component.scss @@ -37,7 +37,6 @@ position: relative; width: 100%; height: 100%; - text-align: center; display: flex; justify-content: center; align-items: center; diff --git a/src/app/uiux/widgets/card/card1v1/card1v1.component.html b/src/app/uiux/widgets/card/card1v1/card1v1.component.html index ce25b266..4d55387e 100644 --- a/src/app/uiux/widgets/card/card1v1/card1v1.component.html +++ b/src/app/uiux/widgets/card/card1v1/card1v1.component.html @@ -1,14 +1,16 @@
- +
- +
- +
diff --git a/src/app/uiux/widgets/feature-box/feature-box.component.html b/src/app/uiux/widgets/feature-box/feature-box.component.html index f5efd7c6..abb645e2 100644 --- a/src/app/uiux/widgets/feature-box/feature-box.component.html +++ b/src/app/uiux/widgets/feature-box/feature-box.component.html @@ -16,7 +16,7 @@
- +
{{title}}
diff --git a/src/assets/app/core/base.json b/src/assets/app/core/base.json index 496b1483..033e47df 100644 --- a/src/assets/app/core/base.json +++ b/src/assets/app/core/base.json @@ -507,7 +507,7 @@ "title": { "label": "欢迎使用 Web builder
快速构建页面", "style": "style-v4", - "classes": "mat-display-2 bold" + "classes": "mat-display-1 bold" }, "body": "从左侧选择组件拖动到编辑区:

欢迎入群一起探索更多的可能性和数字创新体验,QQ 交流群:1176468251

", "actions": [