import { use } from '../../utils'; import { inherit } from '../../utils/functional'; import Button from '../../button'; const [sfc, bem] = use('sku-actions'); function SkuActions(h, props, slots, ctx) { const emit = name => () => { props.skuEventBus.$emit(name); }; return (
{props.showAddCartBtn && (
); } SkuActions.props = { buyText: String, skuEventBus: Object, showAddCartBtn: Boolean }; export default sfc(SkuActions);