wui-components-v2 1.2.58 → 1.2.59
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.
|
@@ -93,6 +93,12 @@ function handleItemClick(item: any) {
|
|
|
93
93
|
gotoPage(item)
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
// 动作面板子项点击:同样先走调用方的 itemClick,返回 true 表示已处理,否则走内置 sheetGotoPage
|
|
97
|
+
function handleSheetItemClick(item: any) {
|
|
98
|
+
if (props.itemClick && props.itemClick(item) === true) return
|
|
99
|
+
sheetGotoPage(item)
|
|
100
|
+
}
|
|
101
|
+
|
|
96
102
|
// 当 tile 为 true 时,将 filtermenu 中所有分类的 items 平铺到一个数组中
|
|
97
103
|
const tileItems = computed(() => {
|
|
98
104
|
if (!props.tile) return []
|
|
@@ -242,7 +248,7 @@ onMounted(() => {
|
|
|
242
248
|
:title="title"
|
|
243
249
|
@select="
|
|
244
250
|
({ item }) => {
|
|
245
|
-
|
|
251
|
+
handleSheetItemClick(item)
|
|
246
252
|
}
|
|
247
253
|
"
|
|
248
254
|
/>
|