@vue/babel-helper-vue-jsx-merge-props
Babel helper for Vue JSX spread
Last updated a year ago by nickmessing .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @vue/babel-helper-vue-jsx-merge-props 
SYNC missed versions from official npm registry.

@vue/babel-helper-vue-jsx-merge-props

A package used internally by vue jsx transformer to merge props spread. It is required to merge some prop trees like this:

import mergeProps from '@vue/babel-helper-vue-jsx-merge-props'

const MyComponent = {
  render(h) {
    // original: <button onClick={$event => console.log($event)} {...{ on: { click: $event => doSomething($event) } }} />
    return h(
      'button',
      mergeProps([
        {
          on: {
            click: $event => console.log($event),
          },
        },
        {
          on: {
            click: $event => doSomething($event),
          },
        },
      ]),
    )
  },
}

This tool is used internally and there is no reason for you to ever use it.

Current Tags

  • 1.0.0                                ...           latest (a year ago)

5 Versions

  • 1.0.0                                ...           a year ago
  • 1.0.0-beta.3                                ...           a year ago
  • 1.0.0-beta.2                                ...           a year ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 502
This Week 502
This Month 57,575
Last Day 4,732
Last Week 88,711
Last Month 371,869
Dependencies (0)
None
Dev Dependencies (8)
Dependents (225)

Copyright 2014 - 2016 © taobao.org |