wui-components-v2 1.2.46 → 1.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,26 @@ const props = defineProps({
39
39
  type: Boolean,
40
40
  default: true,
41
41
  },
42
+ // 是否显示搜索栏,默认不显示
43
+ showSearchBar: {
44
+ type: Boolean,
45
+ default: false,
46
+ },
47
+ // 是否显示轮播图,默认不显示
48
+ showBannerCarousel: {
49
+ type: Boolean,
50
+ default: false,
51
+ },
52
+ // 是否显示快捷菜单,默认不显示
53
+ showSectionMenus: {
54
+ type: Boolean,
55
+ default: false,
56
+ },
57
+ // 是否显示统计,默认不显示
58
+ showQuickPanel: {
59
+ type: Boolean,
60
+ default: false,
61
+ },
42
62
  // 菜单网格列数,调用方可覆盖默认 4 列
43
63
  column: {
44
64
  type: Number,
@@ -104,13 +124,13 @@ onMounted(() => {
104
124
  <!-- 自定义顶部图片插槽:直接渲染在可滚动内容区顶部,避免被当作 z-paging 不存在的 topImg 插槽而丢弃 -->
105
125
  <slot name="topImg" />
106
126
  <!-- 菜单搜索 -->
107
- <searchBar v-if="themeConfig?.showHomePage" />
127
+ <searchBar v-if="themeConfig?.showHomePage && props.showSearchBar" />
108
128
  <!-- 轮播图 -->
109
- <bannerCarousel v-if="themeConfig?.showHomePage" />
129
+ <bannerCarousel v-if="themeConfig?.showHomePage && props.showBannerCarousel" />
110
130
  <!-- 快捷菜单 -->
111
- <sectionMenus v-if="themeConfig?.showHomePage" />
131
+ <sectionMenus v-if="themeConfig?.showHomePage && props.showSectionMenus" />
112
132
  <!-- 统计 -->
113
- <quickPanel v-if="themeConfig?.showHomePage" />
133
+ <quickPanel v-if="themeConfig?.showHomePage && props.showQuickPanel" />
114
134
  <!-- 消息 -->
115
135
  <!-- <wuiNotifyInfo /> -->
116
136
 
@@ -163,7 +183,7 @@ onMounted(() => {
163
183
  >
164
184
  <view
165
185
  class="menu-icon-wrapper flex items-center justify-center"
166
- :style="{ background: subItem.themeColor }"
186
+ :style="{ background: subItem.themeColor || currentThemeColor.primary }"
167
187
  >
168
188
  <text class="menu-icon !text-xl iconfont" :class="[subItem.appIcon || 'i-carbon:grid']" />
169
189
  <view class="icon-shine" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.2.46",
3
+ "version": "1.2.48",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",