wui-components-v2 1.2.15 → 1.2.17

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.
@@ -100,10 +100,9 @@ onMounted(() => {
100
100
  <slot name="top" :style="{ background: currentThemeColor.primary }" />
101
101
  <view v-if="props.menuTopType === '自定义'" class="p-2" />
102
102
  </template>
103
- <template #topImg>
104
- <slot name="topImg" />
105
- </template>
106
103
  <view class="px-3 pb-4">
104
+ <!-- 自定义顶部图片插槽:直接渲染在可滚动内容区顶部,避免被当作 z-paging 不存在的 topImg 插槽而丢弃 -->
105
+ <slot name="topImg" />
107
106
  <!-- 菜单搜索 -->
108
107
  <searchBar v-if="themeConfig?.showHomePage" />
109
108
  <!-- 轮播图 -->
@@ -20,6 +20,10 @@ const props = defineProps({
20
20
  type: Boolean,
21
21
  default: true,
22
22
  },
23
+ showSettings: {
24
+ type: Boolean,
25
+ default: true,
26
+ },
23
27
  })
24
28
 
25
29
  const { currentThemeColor, isDark } = useManualTheme()
@@ -109,6 +113,7 @@ async function clearCache() {
109
113
  <view class="mx-[15px] rounded-2">
110
114
  <wd-cell-group :custom-style="cellGroupStyle">
111
115
  <wd-cell
116
+ v-if="showSettings"
112
117
  title="系统设置"
113
118
  icon="setting"
114
119
  :is-link="true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",