1.4.0 • Published 5 years ago

vue-decorate v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-decorate

what

A simple component wrapper to add attributes and other kind of things to it's child

Use

  • download the package npm i -s vue-decorate

  • Plugin:

    import Decorate from 'vue-decorate'
    Vue.use(Decorate.Plugin)
    
    …
    
    export const MyComponent {
      template: '
      <v-decorate class="bar" type="text">
        <input class="foo" type="password">
      </v-decorate>
      ',
    }
  • Component:

    import Decorate from 'vue-decorate'
    
    export const MyComponent {
      components: { decorate: Decorate.component },
      template: '
      <decorate class="bar" type="text">
        <input class="foo" type="password">
      </decorate>
      ',
    }
1.4.0

5 years ago

1.3.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago