.new-class{
margin-left: 10px;
+ overflow-x:scroll;
+ white-space: nowrap;
.box-content{
margin-right:10px;
+ display:inline-block;
}
}
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGrid/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGrid/index.vue
index 1c5ef1d..1ac4dea 100644
--- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGrid/index.vue
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGrid/index.vue
@@ -3,7 +3,7 @@
@@ -14,11 +14,11 @@
>
{{ item.badge.text }}
-
+
{{ item.title }}
-
+
{{ item.subtitle }}
@@ -32,4 +32,9 @@ defineOptions({ name: 'MenuGrid' })
defineProps<{ property: MenuGridProperty }>()
-
+
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/config.ts b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/config.ts
new file mode 100644
index 0000000..52adcc9
--- /dev/null
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/config.ts
@@ -0,0 +1,80 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+import { cloneDeep } from 'lodash-es'
+
+/** 宫格导航属性 */
+export interface MenuGridProperty {
+ // 列数
+ column: number
+ // 导航菜单列表
+ list: MenuGridItemProperty[]
+ // 组件样式
+ style: ComponentStyle
+}
+
+/** 宫格导航项目属性 */
+export interface MenuGridItemProperty {
+ // 图标链接
+ iconUrl: string
+ // 标题
+ title: string
+ // 标题颜色
+ titleColor: string
+ // 副标题
+ subtitle: string
+ // 副标题颜色
+ subtitleColor: string
+ // 链接
+ url: string
+ // 角标
+ badge: {
+ // 是否显示
+ show: boolean
+ // 角标文字
+ text: string
+ // 角标文字颜色
+ textColor: string
+ // 角标背景颜色
+ bgColor: string
+ }
+}
+
+export const EMPTY_MENU_GRID_ITEM_PROPERTY = {
+ title: '标题',
+ titleColor: '#333',
+ subtitle: '副标题',
+ subtitleColor: '#bbb',
+ badge: {
+ show: false,
+ textColor: '#fff',
+ bgColor: '#FF6000'
+ }
+} as MenuGridItemProperty
+import logo from '@/assets/imgs/DiyEditorImges/组件图标-04.png'
+// 定义组件
+export const component = {
+ id: 'MenuGridTow',
+ name: '魔方',
+ // icon: 'bi:grid-3x3-gap',
+ icon: logo,
+ property: {
+ column: 3,
+ list: [cloneDeep(EMPTY_MENU_GRID_ITEM_PROPERTY)],
+ style: {
+ bgType: 'color',
+ bgColor: '#fff',
+ marginBottom: 8,
+ marginLeft: 8,
+ marginRight: 8,
+ padding: 8,
+ paddingTop: 8,
+ paddingRight: 8,
+ paddingBottom: 8,
+ paddingLeft: 8,
+ borderRadius: 8,
+ borderTopLeftRadius: 8,
+ borderTopRightRadius: 8,
+ borderBottomRightRadius: 8,
+ borderBottomLeftRadius: 8
+ } as ComponentStyle
+ }
+} as DiyComponent
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/index.vue
new file mode 100644
index 0000000..68f7b1e
--- /dev/null
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/index.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
今日推荐
+
店主诚意推荐品质商品
+
+
+

+
+
+
+
+

+
+
+
+
+
+
+
+
热门榜单
+
店主诚意推荐品质商品
+
+
+

+
+
+
+

+
+
+
+
+
+
+
+
首发新品
+
新品上架等 你来拿
+
+
+

+
+
+
+

+
+
+
+
+
+
+
+
促销单品
+
综合评选好 产品
+
+
+

+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/property.vue
new file mode 100644
index 0000000..f127127
--- /dev/null
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/MenuGridTow/property.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+ 3个
+ 4个
+ 5个
+
+
+
+
+
+
+
+
+ 建议尺寸:44 * 44
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/NoticeBar/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/NoticeBar/index.vue
index fce1afb..0058b91 100644
--- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/NoticeBar/index.vue
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/NoticeBar/index.vue
@@ -10,7 +10,7 @@
{{ item.text }}
-
+
diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue
index a7f0de4..998c5aa 100644
--- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue
+++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue
@@ -1,5 +1,23 @@