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

chore: build

上级 e01f7336
......@@ -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) => {
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册