UNPKG

choo-taro-ui-vue3

Version:

Taro UI Rewritten in Vue 3.0

37 lines (29 loc) 1.07 kB
import { defineComponent, toRefs, renderSlot, resolveComponent, mergeProps, withCtx, openBlock, createBlock } from 'vue'; const AtList = defineComponent({ name: "AtList", props: { hasBorder: { type: Boolean, default: true } }, setup(props) { return { ...toRefs(props) }; } }); // Binding optimization for webpack code-split const _renderSlot = renderSlot, _resolveComponent = resolveComponent, _mergeProps = mergeProps, _withCtx = withCtx, _openBlock = openBlock, _createBlock = createBlock; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_taro_view = process.env.TARO_ENV === "h5" ? _resolveComponent("taro-view") : "view"; return (_openBlock(), _createBlock(_component_taro_view, _mergeProps(_ctx.$attrs, { class: ['at-list', { 'at-list--no-border': !_ctx.hasBorder }] }), { default: _withCtx(() => [ _renderSlot(_ctx.$slots, "default") ]), _: 3 /* FORWARDED */ }, 16 /* FULL_PROPS */, ["class"])) } AtList.render = _sfc_render; export default AtList;