From fe9cc31fad08c188e888b96c23da47ada69ecd4b Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 7 Apr 2022 11:47:37 +0800 Subject: [PATCH] chore: build --- packages/uni-app-plus/dist/uni.runtime.esm.js | 6 +----- packages/uni-h5/dist/uni-h5.es.js | 12 +++--------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 4e119425c..c636136ca 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 97a9ec516..5dd63af9d 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" -- GitLab