提交 fe9cc31f 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 e01f7336
...@@ -12219,7 +12219,6 @@ const ShowActionSheetProtocol = { ...@@ -12219,7 +12219,6 @@ const ShowActionSheetProtocol = {
required: true, required: true,
}, },
title: String, title: String,
alertText: String,
itemColor: String, itemColor: String,
popover: Object, popover: Object,
}; };
...@@ -15858,7 +15857,7 @@ const showModal = defineAsyncApi(API_SHOW_MODAL, ({ title = '', content = '', sh ...@@ -15858,7 +15857,7 @@ const showModal = defineAsyncApi(API_SHOW_MODAL, ({ title = '', content = '', sh
}, title, tip, buttons); }, title, tip, buttons);
}, ShowModalProtocol, ShowModalOptions); }, 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(); initI18nShowActionSheetMsgsOnce();
const { t } = useI18n(); const { t } = useI18n();
const options = { const options = {
...@@ -15869,9 +15868,6 @@ const showActionSheet = defineAsyncApi(API_SHOW_ACTION_SHEET, ({ itemList = [], ...@@ -15869,9 +15868,6 @@ const showActionSheet = defineAsyncApi(API_SHOW_ACTION_SHEET, ({ itemList = [],
color: itemColor, color: itemColor,
})), })),
}; };
if (title || alertText) {
options.title = alertText || title;
}
plus.nativeUI.actionSheet(extend(options, { plus.nativeUI.actionSheet(extend(options, {
popover, popover,
}), (e) => { }), (e) => {
......
...@@ -5319,7 +5319,6 @@ const ShowActionSheetProtocol = { ...@@ -5319,7 +5319,6 @@ const ShowActionSheetProtocol = {
required: true required: true
}, },
title: String, title: String,
alertText: String,
itemColor: String, itemColor: String,
popover: Object popover: Object
}; };
...@@ -18809,10 +18808,6 @@ const props$4 = { ...@@ -18809,10 +18808,6 @@ const props$4 = {
type: String, type: String,
default: "" default: ""
}, },
alertText: {
type: String,
default: ""
},
itemList: { itemList: {
type: Array, type: Array,
default() { default() {
...@@ -18899,10 +18894,9 @@ var actionSheet = /* @__PURE__ */ defineComponent({ ...@@ -18899,10 +18894,9 @@ var actionSheet = /* @__PURE__ */ defineComponent({
} }
$event.preventDefault(); $event.preventDefault();
} }
const fixTitle = computed(() => props2.title || props2.alertText);
watch(() => props2.visible, () => { watch(() => props2.visible, () => {
nextTick(() => { nextTick(() => {
if (fixTitle.value) { if (props2.title) {
titleHeight.value = document.querySelector(".uni-actionsheet__title").offsetHeight; titleHeight.value = document.querySelector(".uni-actionsheet__title").offsetHeight;
} }
scroller.update(); scroller.update();
...@@ -18932,14 +18926,14 @@ var actionSheet = /* @__PURE__ */ defineComponent({ ...@@ -18932,14 +18926,14 @@ var actionSheet = /* @__PURE__ */ defineComponent({
"ref": main, "ref": main,
"class": "uni-actionsheet__menu", "class": "uni-actionsheet__menu",
"onWheel": _handleWheel "onWheel": _handleWheel
}, [fixTitle.value ? createVNode(Fragment, null, [createVNode("div", { }, [props2.title ? createVNode(Fragment, null, [createVNode("div", {
"class": "uni-actionsheet__cell", "class": "uni-actionsheet__cell",
"style": { "style": {
height: `${titleHeight.value}px` height: `${titleHeight.value}px`
} }
}, null), createVNode("div", { }, null), createVNode("div", {
"class": "uni-actionsheet__title" "class": "uni-actionsheet__title"
}, [fixTitle.value])]) : "", createVNode("div", { }, [props2.title])]) : "", createVNode("div", {
"style": { "style": {
maxHeight: `${HEIGHT.value}px`, maxHeight: `${HEIGHT.value}px`,
overflow: "hidden" overflow: "hidden"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册