New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-with-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-with-wrapper

A object deconstruction in `Vue`

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

vue-with-wrapper

A object deconstruction in Vue

CodeSandbox

Notice

It is a functional component

Example

Pass any props

<template>
  <div>
    <with :e="a.b.c.d.e" :f="123" :b="a.b" :parse="parseObj()">
      <template #default="{ e, f, b, parse }">
        {{e}}
        <br>
        {{f}}
        <br>
        {{b}}
        <br>
        {{parse.b}}
        {{parse.c}}
        {{parse.d}}
      </template>
    </with>
  </div>
</template>

Pass object with v-bind

<template>
  <div>
    <with v-bind="someData">
      <template #default="{ data_1, data_2, data_3 }">
        {{data_1}}
        {{data_2}}
      </template>
    </with>
  </div>
</template>
<!-- someData = { data_1: 1, data_2: 2, data_3: 3} -->

Keywords

vue

FAQs

Package last updated on 04 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts