New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-facing-decorator

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-facing-decorator

This repo is not released yet. Welcome to suggest and contribute. Message me on github.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-44.56%
Maintainers
1
Weekly downloads
 
Created
Source

Read me

This repo is not released yet. Welcome to suggest and contribute. Message me on github.

Finished

import { Component, Ref, Base } from "ThisRepo";

//super class
class Sup extends Base {
  //reactivity super property
  supProp = "supProp";
  //super method
  supMethod() {}
  //super getter
  get supGetter() {
    return "supFoo";
  }
}

//component class
@Component
export default class Comp extends Sup {
  //create a ref
  @Ref
  ref!: HTMLDivElement;
  //reactivity property
  prop = "prop";
  //getter
  get getter() {
    return "foo";
  }
  //method
  method() {
    //call vue api
    this.$forceUpdate();
  }
  mounted() {
    //vue lifecycle
    console.log(this.ref,  this.prop, this.supProp,this.getter, this.supGetter);
  }
}

is equal to

import { defineComponent} from "vue";
export default defineComponent({
  data() {
    return {
      supProp: "supProp",
      prop: "prop",
    };
  },
  methods: {
    supMethod() {},
    method() {
      this.$forceUpdate();
    },
  },
  computed: {
    supGetter() {
      return "supGetter";
    },
    getter() {
      return "getter";
    },
    ref() {
      this.$refs["ref"];
    },
  },
  mounted() {
    console.log(this.ref, this.prop, this.supProp, this.getter, this.supGetter);
  },
});

FAQs

Package last updated on 04 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc