diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 4e119425ca4a03370b50438d1ef9c50b354e6dba..c636136ca3bd753ccafd64b636d56eef43d62339 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -12219,7 +12219,6 @@ const ShowActionSheetProtocol = { required: true, }, title: String, - alertText: String, itemColor: String, popover: Object, }; @@ -15858,7 +15857,7 @@ const showModal = defineAsyncApi(API_SHOW_MODAL, ({ title = '', content = '', sh }, title, tip, buttons); }, ShowModalProtocol, ShowModalOptions); -const showActionSheet = defineAsyncApi(API_SHOW_ACTION_SHEET, ({ itemList = [], itemColor = '#000000', title = '', alertText = '', popover, }, { resolve, reject }) => { +const showActionSheet = defineAsyncApi(API_SHOW_ACTION_SHEET, ({ itemList = [], itemColor = '#000000', title = '', popover }, { resolve, reject }) => { initI18nShowActionSheetMsgsOnce(); const { t } = useI18n(); const options = { @@ -15869,9 +15868,6 @@ const showActionSheet = defineAsyncApi(API_SHOW_ACTION_SHEET, ({ itemList = [], color: itemColor, })), }; - if (title || alertText) { - options.title = alertText || title; - } plus.nativeUI.actionSheet(extend(options, { popover, }), (e) => { diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 97a9ec516a5c4f82eda4febc9b935464bc1d3c4c..5dd63af9db6522e4e8b68d4ebb4c6cf822e2c164 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -5319,7 +5319,6 @@ const ShowActionSheetProtocol = { required: true }, title: String, - alertText: String, itemColor: String, popover: Object }; @@ -18809,10 +18808,6 @@ const props$4 = { type: String, default: "" }, - alertText: { - type: String, - default: "" - }, itemList: { type: Array, default() { @@ -18899,10 +18894,9 @@ var actionSheet = /* @__PURE__ */ defineComponent({ } $event.preventDefault(); } - const fixTitle = computed(() => props2.title || props2.alertText); watch(() => props2.visible, () => { nextTick(() => { - if (fixTitle.value) { + if (props2.title) { titleHeight.value = document.querySelector(".uni-actionsheet__title").offsetHeight; } scroller.update(); @@ -18932,14 +18926,14 @@ var actionSheet = /* @__PURE__ */ defineComponent({ "ref": main, "class": "uni-actionsheet__menu", "onWheel": _handleWheel - }, [fixTitle.value ? createVNode(Fragment, null, [createVNode("div", { + }, [props2.title ? createVNode(Fragment, null, [createVNode("div", { "class": "uni-actionsheet__cell", "style": { height: `${titleHeight.value}px` } }, null), createVNode("div", { "class": "uni-actionsheet__title" - }, [fixTitle.value])]) : "", createVNode("div", { + }, [props2.title])]) : "", createVNode("div", { "style": { maxHeight: `${HEIGHT.value}px`, overflow: "hidden"