UNPKG

taro-ui-vue3

Version:

Taro UI Rewritten in Vue 3.0

26 lines (25 loc) 686 B
import {h, defineComponent, mergeProps} from "vue"; import {View} from "@tarojs/components"; const AtActionSheetFooter = defineComponent({ name: "AtActionSheetFooter", props: { onClick: Function }, setup(props, {attrs, slots}) { function handleClick(...args) { var _a; (_a = props.onClick) == null ? void 0 : _a.call(props, ...args); } return () => h(View, mergeProps(attrs, { class: "at-action-sheet__footer", onTap: handleClick }), {default: () => { var _a; return (_a = slots.default) == null ? void 0 : _a.call(slots); }}); } }); var footer_default = AtActionSheetFooter; export { footer_default as default };